/* ============================================================
   EMZ PC LLC — Private Family Investment Company
   Premium institutional site design
   ============================================================ */

/* ------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------ */
:root {
  /* Brand */
  --blue:         #0056b3;
  --blue-hover:   #1a6fc4;

  /* Structure */
  --navy:         #0d1b2e;
  --navy-mid:     #14263d;
  --charcoal:     #1c2b3a;

  /* Text */
  --text-primary: #1c2b3a;
  --text-body:    #374151;
  --text-muted:   #64748b;

  /* Accent */
  --gold:         #b07d3e;
  --gold-light:   #c89b5f;

  /* Surfaces */
  --bg:           #f8fafc;
  --bg-alt:       #f1f5f9;
  --white:        #ffffff;

  /* Borders */
  --border:       #e2e8f0;
  --border-mid:   #cbd5e1;
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

/* ------------------------------------------------------------
   Typography Utilities
   ------------------------------------------------------------ */
.section-label {
  font-size: 0.6875rem;       /* 11px */
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.body-copy {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.body-copy + .body-copy {
  margin-top: 1rem;
}

/* ------------------------------------------------------------
   Layout Utility
   ------------------------------------------------------------ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 52px;
  width: auto;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  background: var(--navy);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 55% at 40% -10%,
    rgba(0, 86, 179, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Subtle bottom edge separation */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 48ch;
  font-weight: 300;
}

.hero-rule {
  position: absolute;
  bottom: 0;
  left: 3rem;
  right: 3rem;
  max-width: calc(1200px);
  margin: 0 auto;
  height: 1px;
}

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
.about {
  padding: 7rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  margin-top: 2.75rem;
  align-items: start;
}

.about-grid .section-heading {
  margin-bottom: 1.25rem;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding-left: 3.5rem;
  border-left: 1px solid var(--border);
}

.aside-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.75rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.03em;
}

.aside-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   METRICS STRIP
   ------------------------------------------------------------ */
.metrics {
  background: var(--navy);
  padding: 5.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.metric-item {
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-item:first-child {
  border-left: none;
  padding-left: 0;
  text-align: left;
}

.metric-item:last-child {
  border-right: none;
  padding-right: 0;
  text-align: right;
}

.metric-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.625rem, 2.25vw, 2.375rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.025em;
}

.metric-number sup {
  font-family: 'Inter', sans-serif;
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: super;
}

.metric-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------
   PORTFOLIO
   ------------------------------------------------------------ */
.portfolio {
  padding: 4rem 0 6rem;
  background: var(--bg);
}

.portfolio .section-heading {
  margin-top: 0.5rem;
  margin-bottom: 3.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}


.portfolio-card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative;
  cursor: default;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Top border accent that slides in on hover */
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-hover) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  box-shadow: 0 16px 40px rgba(13, 27, 46, 0.1);
  transform: translateY(-3px);
  outline: none;
}

.portfolio-card:hover::before,
.portfolio-card:focus-visible::before {
  transform: scaleX(1);
}

.card-category {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card-stat {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.125rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.card-stat sup {
  font-family: 'Inter', sans-serif;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: super;
}

.card-unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   CONTACT CTA
   ------------------------------------------------------------ */
.contact {
  padding: 5rem 0 6rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.contact .section-heading {
  margin-bottom: 2.5rem;
}

.contact-body {
  display: flex;
  align-items: baseline;
  gap: 6rem;
}

.contact-body .body-copy {
  max-width: 42ch;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.contact-email {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--blue-hover);
}

.contact-address {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--charcoal);
  padding: 1.75rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-copy a:hover {
  color: var(--white);
}

/* ------------------------------------------------------------
   RESPONSIVE — Tablet (≤ 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .section-inner,
  .nav-inner,
  .hero-inner,
  .footer-inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .about-grid {
    gap: 4rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Re-balance borders for 3-column metrics */
  .metric-item {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center !important;
  }

  .metric-item:first-child,
  .metric-item:nth-child(2),
  .metric-item:nth-child(3) {
    border-top: none;
  }

  .metric-item:nth-child(3),
  .metric-item:last-child {
    border-right: none;
  }

  .metric-item:nth-child(3n) {
    border-right: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .contact-body {
    gap: 3rem;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .section-inner,
  .nav-inner,
  .hero-inner,
  .footer-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Nav */
  .nav-inner {
    height: 60px;
  }

  .nav-logo img {
    height: 30px;
  }

  /* Hero */
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 9vw, 3rem);
    margin-bottom: 1.25rem;
  }

  .hero-sub {
    font-size: 0.9375rem;
  }

  /* About */
  .about {
    padding: 3.5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .aside-number {
    font-size: 2.5rem;
  }

  /* Metrics */
  .metrics {
    padding: 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-item {
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-left: none !important;
    text-align: left !important;
    padding: 1.25rem 0 !important;
  }

  .metric-item:first-child {
    border-top: none !important;
  }

  .metric-number {
    font-size: 1.5rem;
  }

  /* Portfolio */
  .portfolio {
    padding: 3rem 0 4rem;
  }

  .portfolio .section-heading {
    margin-bottom: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-card {
    padding: 1.5rem;
  }

  .card-stat {
    font-size: 1.625rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  /* Contact */
  .contact {
    padding: 3.5rem 0 4rem;
  }

  .contact .section-heading {
    margin-bottom: 1.75rem;
  }

  .contact-body {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-details {
    border-left: none;
    padding-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — Small Mobile (≤ 400px)
   ------------------------------------------------------------ */
@media (max-width: 400px) {
  .hero-headline {
    font-size: 2rem;
  }
}

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */
@media print {
  .nav { position: static; }
  .hero { padding: 3rem 0; }
  .portfolio-card { break-inside: avoid; }
}
