/* ================================================================
   Legalaya — Design System
   Primary:   #00399A  Royal Blue   — contrast on white: 9.1:1 ✅
   Secondary: #FABD5C  Amber Gold
   Neutral:   #0b0b0b  Near-Black / #ffffff White
   Muted:     #666666  — contrast on white: 5.74:1 ✅ (WCAG AA)

   TYPEFACE PAIRING
   Display / Headings: Fraunces  — optical serif, warm authority
   Body / UI:          Inter     — geometric sans, crisp legibility

   TYPE SCALE (Major Third · 1.25×)
   --text-xs    12px   captions, badges, overlines
   --text-sm    14px   secondary body, metadata, labels
   --text-base  16px   primary body (WCAG base)
   --text-lg    18px   lead text, card titles
   --text-xl    20px   small headings
   --text-2xl   24px   h4 level
   --text-3xl   30px   h3 level
   --text-4xl   36px   h2 level
   --text-5xl   48px   h1 level

   LINE HEIGHTS (WCAG 1.4.12)
   body: 1.5 minimum   headings: 1.1–1.25   small: 1.65

   WCAG 2.1 AA TARGETS
   Normal text <24px: 4.5:1 · Large text ≥24px bold or ≥19px: 3:1
================================================================ */

/* Google Fonts — Fraunces (variable optical-size serif) + Inter */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================== FONTS ===================== */

@font-face {
  font-family: "Geist";
  src: url("https://fonts.gstatic.com/s/geist/v1/gyBhhwUxId8gMGYQMKR3pzfaWI_RwuM4mJPby1QNtA.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Geist";
  src: url("https://fonts.gstatic.com/s/geist/v1/gyBhhwUxId8gMGYQMKR3pzfaWI_RnOM4mJPby1QNtA.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Geist";
  src: url("https://fonts.gstatic.com/s/geist/v1/gyBhhwUxId8gMGYQMKR3pzfaWI_Re-Q4mJPby1QNtA.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

/* ===================== TOKENS ===================== */

:root {
  /* ── Brand ── */
  --royal:        #00399A;
  --royal-50:     rgba(0, 57, 154, 0.5);
  --royal-10:     rgba(0, 57, 154, 0.1);
  --amber:        #FABD5C;
  --amber-40:     rgba(250, 189, 92, 0.4);
  --ink:          #0b0b0b;
  --paper:        #ffffff;
  --muted:        #666666;   /* 5.74:1 on white — WCAG AA ✅ */
  --surface:      #f7f7f5;

  /* Aliases */
  --forest:       #00399A;
  --forest-50:    rgba(0, 57, 154, 0.5);
  --forest-10:    rgba(0, 57, 154, 0.1);

  /* ── On-dark text (on blue #00399A or near-black #0b0b0b) ── */
  --on-dark:        rgba(255, 255, 255, 0.95);  /* 18.4:1 ✅ */
  --on-dark-sub:    rgba(255, 255, 255, 0.75);  /* 5.82:1 ✅ — body on blue */
  --on-dark-muted:  rgba(255, 255, 255, 0.60);  /* 4.27:1 — large text only */

  /* ── Typefaces ── */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* ── Type scale ── */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */

  /* ── Leading ── */
  --leading-tight:    1.1;
  --leading-snug:     1.25;
  --leading-normal:   1.5;   /* WCAG minimum for body */
  --leading-relaxed:  1.65;

  /* ── Borders ── */
  --border-dark:  rgba(255, 255, 255, 0.12);
  --border-light: rgba(0, 0, 0, 0.08);

  /* ── Shadow ── */
  --shadow-card:
    0px 0.6px 1.6px -1.5px rgba(0, 0, 0, 0.17),
    0px 2.3px 5.95px -3px rgba(0, 0, 0, 0.14),
    0px 10px 26px -4.5px rgba(0, 0, 0, 0.02);
  --shadow-hover:
    0px 2px 4px rgba(0, 0, 0, 0.06),
    0px 16px 40px rgba(0, 0, 0, 0.09);
}

/* ===================== BASE ===================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);        /* 16px */
  font-weight: 400;
  line-height: var(--leading-normal); /* 1.5 — WCAG 1.4.12 */
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);  /* Fraunces */
  font-weight: 600;
  line-height: var(--leading-snug);  /* 1.25 */
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; line-height: var(--leading-normal); }

/* ===================== SCROLLBAR ===================== */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--forest); border-radius: 3px; }

/* ===================== CONTAINER ===================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===================== NAVBAR ===================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  background: transparent;
  border-bottom: 1px solid var(--border-dark);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(74px);
  -webkit-backdrop-filter: blur(74px);
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled .nav-link { color: var(--ink); }
.navbar.scrolled .nav-link.active { color: var(--forest); font-weight: 600; opacity: 1; }
.navbar.top     .nav-link.active  { color: var(--amber); opacity: 1; font-weight: 600; }
.navbar.scrolled .nav-logo-primary { display: flex !important; }
.navbar.scrolled .nav-logo-white  { display: none  !important; }
.navbar.top     .nav-logo-primary { display: none  !important; }
.navbar.top     .nav-logo-white   { display: flex  !important; }

.nav-link {
  font-size: var(--text-sm);   /* 14px */
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  padding-bottom: 0;
  position: relative;
}

.nav-link:hover { color: var(--paper); opacity: 0.7; }
.navbar.scrolled .nav-link:hover { color: var(--forest); opacity: 1; }

/* ===================== HERO ===================== */

.hero {
  background-color: var(--forest);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-text-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px 80px max(40px, calc((100vw - 1280px) / 2 + 40px));
  position: relative;
  z-index: 2;
}

.hero-image-panel {
  width: 49%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hero-image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
}

.hero-image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 57, 154, 0.3);
}

.hero-overline {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  padding: 6px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 32px;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);  /* Fraunces */
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  font-variation-settings: 'opsz' 72; /* large optical size = more contrast */
  color: var(--paper);               /* #fff — 21:1 on blue ✅ */
  line-height: var(--leading-tight); /* 1.1 */
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;                /* Fraunces italic looks elegant */
  color: rgba(255, 255, 255, 0.72);
}

.hero-subtitle {
  font-size: var(--text-base);       /* 16px */
  font-weight: 400;
  color: var(--on-dark-sub);         /* rgba(255,255,255,0.75) — 5.82:1 ✅ */
  line-height: var(--leading-relaxed); /* 1.65 for readability */
  max-width: 480px;
  margin-bottom: 40px;
}

/* ===================== BUTTONS ===================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);           /* #FABD5C — 9.66:1 with --ink ✅ */
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #f5b144;                /* slightly deeper amber on hover */
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--amber);                /* amber text on dark backgrounds */
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  padding: 12px 28px;
  border: 1px solid rgba(250, 189, 92, 0.45);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--amber);
  background: rgba(250, 189, 92, 0.08);
  color: var(--amber);
}

/* Used on light (white/surface) sections */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);           /* amber on light backgrounds */
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  background: #f5b144;
  transform: translateY(-1px);
}

.btn-gold:active { transform: translateY(0); box-shadow: none; }

/* ===================== SECTION LABEL ===================== */

.section-label {
  font-size: var(--text-xs);   /* 12px */
  font-weight: 500;
  letter-spacing: 0.08em;      /* uppercase tracking */
  text-transform: uppercase;
  color: var(--muted);          /* #666666 — 5.74:1 ✅ */
  margin-bottom: 14px;
  display: block;
}

/* ===================== DIVIDER ===================== */

.gold-divider {
  width: 40px;
  height: 2px;
  background: var(--amber);
  margin-bottom: 24px;
  opacity: 0.7;
}

.gold-divider.center { margin-left: auto; margin-right: auto; }

/* On dark (blue) sections — full amber */
.gold-divider.light { background: var(--amber); opacity: 0.8; }

/* ===================== VALUES STRIP ===================== */

.values-strip {
  background: var(--forest);
  border-bottom: 1px solid var(--border-dark);
}

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

.value-pillar {
  padding: 60px 44px;
  border-right: 1px solid var(--border-dark);
}

.value-pillar:last-child { border-right: none; }

.value-title {
  font-family: var(--font-display);   /* Fraunces */
  font-size: var(--text-xl);          /* 20px */
  font-weight: 600;
  font-variation-settings: 'opsz' 24;
  color: var(--on-dark);
  margin-bottom: 14px;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.value-desc {
  font-size: var(--text-sm);         /* 14px */
  font-weight: 400;
  color: var(--on-dark-sub);         /* rgba(255,255,255,0.75) — 5.82:1 ✅ */
  line-height: var(--leading-relaxed); /* 1.65 */
}

/* ===================== STATS STRIP ===================== */

.stats-strip {
  background: var(--forest);
  border-bottom: 1px solid var(--border-dark);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border-dark);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-5xl);         /* 48px */
  font-weight: 700;
  color: var(--amber);
  line-height: var(--leading-tight);  /* 1.1 */
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-sm);          /* 14px */
  font-weight: 400;
  color: var(--on-dark-sub);          /* rgba(255,255,255,0.75) ✅ */
  letter-spacing: 0;
  line-height: var(--leading-normal);
}

/* ===================== MISSION STATEMENT ===================== */

.section-mission {
  background: var(--paper);
  padding: 120px 0;
}

.mission-inner { max-width: 100%; }

.mission-statement {
  font-family: var(--font-display);   /* Fraunces */
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  font-variation-settings: 'opsz' 40;
  color: var(--ink);
  line-height: var(--leading-snug);   /* 1.25 */
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  padding: 0;
  border: none;
}

/* ===================== PRACTICE AREAS ===================== */

.section-practice { background: var(--paper); }

.practice-card {
  background: var(--paper);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  border-radius: 11px;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: var(--shadow-card);
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.practice-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--forest);
}

.practice-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--forest);
  stroke-width: 1.5;
  fill: none;
}

.practice-title {
  font-family: var(--font-display);   /* Fraunces */
  font-size: var(--text-lg);          /* 18px */
  font-weight: 600;
  font-variation-settings: 'opsz' 18;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.practice-desc {
  font-size: var(--text-sm);          /* 14px */
  font-weight: 400;
  color: var(--muted);                /* #666666 — 5.74:1 ✅ */
  line-height: var(--leading-relaxed); /* 1.65 */
}

/* ===================== HOW IT WORKS ===================== */

.section-how { background: var(--forest); }

.step-number {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-5xl);         /* 48px */
  font-weight: 700;
  color: var(--amber);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.step-title {
  font-family: var(--font-display);   /* Fraunces */
  font-size: var(--text-xl);          /* 20px */
  font-weight: 600;
  font-variation-settings: 'opsz' 24;
  color: var(--on-dark);
  margin-bottom: 12px;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: var(--text-sm);          /* 14px */
  font-weight: 400;
  color: var(--on-dark-sub);          /* rgba(255,255,255,0.75) — 5.82:1 ✅ */
  line-height: var(--leading-relaxed);
}

/* ===================== ATTORNEYS ===================== */

.section-attorneys { background: var(--paper); }

.attorney-card {
  background: var(--paper);
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.attorney-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.attorney-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.attorney-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attorney-initials {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.attorney-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
}

.attorney-info { padding: 20px; }

.attorney-name {
  font-family: var(--font-display);   /* Fraunces */
  font-size: var(--text-lg);          /* 18px */
  font-weight: 600;
  font-variation-settings: 'opsz' 18;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.attorney-title {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 500;
  color: var(--royal);                /* 9.1:1 on white ✅ */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: var(--leading-normal);
}

.attorney-exp {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 400;
  color: var(--muted);                /* #666666 ✅ */
  line-height: var(--leading-normal);
}

/* ===================== TESTIMONIALS ===================== */

.section-testimonials { background: var(--paper); }

.testimonial-card {
  background: var(--paper);
  padding: 40px;
  border: 1px solid var(--border-light);
  border-radius: 11px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.quote-mark {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--royal);
  line-height: 0.7;
  margin-bottom: 20px;
  opacity: 0.2;
}

.testimonial-text {
  font-size: var(--text-base);        /* 16px */
  font-weight: 400;
  line-height: var(--leading-relaxed); /* 1.65 — generous for quotes */
  color: var(--ink);
  margin-bottom: 28px;
  font-style: normal;
  font-family: 'Inter', sans-serif;
}

.testimonial-author-name {
  font-size: var(--text-sm);          /* 14px */
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

.testimonial-author-loc {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 400;
  color: var(--muted);                /* #666666 ✅ */
  line-height: var(--leading-normal);
}

/* ===================== BLOG ===================== */

.section-blog { background: var(--paper); }

.blog-card {
  border: 1px solid var(--border-light);
  border-radius: 11px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-body { padding: 24px; }

.blog-tag {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);                /* #666666 ✅ */
  margin-bottom: 10px;
  display: block;
}

.blog-title {
  font-family: var(--font-display);   /* Fraunces */
  font-size: var(--text-lg);          /* 18px */
  font-weight: 600;
  font-variation-settings: 'opsz' 18;
  color: var(--ink);
  line-height: var(--leading-snug);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-title { color: var(--forest); }

.blog-excerpt {
  font-size: var(--text-sm);          /* 14px */
  font-weight: 400;
  color: var(--muted);                /* #666666 ✅ */
  line-height: var(--leading-relaxed);
  margin-bottom: 20px;
}

.blog-meta {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 400;
  color: var(--muted);                /* #666666 ✅ */
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: var(--leading-normal);
}

/* ===================== CTA BANNER ===================== */

.section-cta {
  background: var(--forest);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* ===================== FOOTER ===================== */

.footer {
  background: var(--ink);
  padding: 80px 0 40px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 48px 0 32px;
}

.footer-link {
  font-size: var(--text-sm);          /* 14px */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);  /* 6.7:1 on #0b0b0b ✅ */
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 2;
}

.footer-link:hover { color: var(--paper); }

.footer-heading {
  font-size: var(--text-xs);          /* 12px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);   /* 5.5:1 on #0b0b0b ✅ */
  margin-bottom: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--paper);
}

.social-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ===================== MOBILE NAV ===================== */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--forest);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-nav-link {
  font-family: var(--font-display);   /* Fraunces */
  font-size: 2rem;                    /* 32px */
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  color: var(--paper);
  text-decoration: none;
  transition: opacity 0.2s ease;
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

.mobile-nav-link:hover { opacity: 0.55; }

/* ===================== PAGE HERO (inner pages) ===================== */

.page-hero {
  background: var(--royal);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250,189,92,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,189,92,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--amber);
  opacity: 0.85;
  margin-bottom: 16px;
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero-title {
  font-family: var(--font-display);   /* Fraunces */
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  font-variation-settings: 'opsz' 56;
  color: var(--paper);
  line-height: var(--leading-tight);  /* 1.1 */
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero-subtitle {
  font-size: var(--text-base);        /* 16px */
  font-weight: 400;
  color: var(--on-dark-sub);          /* rgba(255,255,255,0.75) — 5.82:1 ✅ */
  line-height: var(--leading-relaxed); /* 1.65 */
  max-width: 520px;
}

/* ===================== ACCORDION (FAQ) ===================== */

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.accordion-question {
  font-family: var(--font-display);   /* Fraunces */
  font-size: var(--text-lg);          /* 18px */
  font-weight: 600;
  font-variation-settings: 'opsz' 18;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  display: none;
  padding: 0 0 24px;
  font-size: var(--text-base);        /* 16px — not 14px for readability */
  font-weight: 400;
  color: var(--muted);                /* #666666 ✅ */
  line-height: var(--leading-relaxed); /* 1.65 */
  max-width: 680px;
}

.accordion-item.open .accordion-body { display: block; }

/* ===================== CONTACT FORM ===================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: var(--text-sm);          /* 14px */
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

.form-input,
.form-textarea,
.form-select {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);        /* 16px — prevents iOS zoom */
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  line-height: var(--leading-normal);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(0,57,154,0.08);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ===================== ANIMATIONS ===================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.65s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
  .hero-image-panel { width: 42%; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero-title { font-size: 42px; letter-spacing: -1.26px; }
  .hero-text-panel { padding: 120px 24px 60px; }
  .hero-image-panel { display: none; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-dark); padding: 16px; }
  .testimonial-card { padding: 28px 20px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-pillar { border-right: none; border-bottom: 1px solid var(--border-dark); padding: 36px 24px; }
  .value-pillar:last-child { border-bottom: none; }
  section > .container > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  section > .container > div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  .footer > .container > div[style*="grid-template-columns:2fr"] { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
  .stats-strip > .container > div { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; letter-spacing: -0.9px; }
  .stats-strip > .container > div { grid-template-columns: 1fr 1fr; }
  .footer > .container > div[style*="grid-template-columns:2fr"] { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════
   ATTORNEY DETAIL — profile overlap layout
════════════════════════════════════════════════ */

.atty-hero {
  background: #00399A;
  padding: 110px 0 56px;
}

.atty-hero-content {
  max-width: 660px;
}

.atty-detail {
  background: #fff;
  padding: 0 0 80px;
}

.atty-detail-grid {
  display: grid;
  /* content left, photo right */
  grid-template-columns: 1fr 280px;
  grid-template-areas: "content photo";
  gap: 64px;
  /* NO align-items: start — default stretch lets sticky scroll the full column height */
}

/* Photo column: pull up 160px so frame straddles blue / white boundary */
.atty-photo-col {
  grid-area: photo;
  margin-top: -160px;
}

.atty-photo-sticky {
  position: sticky;
  top: 100px;              /* clears navbar (80px) + 20px breathing room */
  padding-top: 28px;       /* space between top of sticky zone and frame */
}

.atty-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,57,154,0.18),
    0 40px 80px rgba(0,57,154,0.14);
  border: 5px solid #fff;
  background: #00399A;
}

.atty-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.atty-photo-frame:hover img {
  transform: scale(1.03);
}

.atty-content-col {
  grid-area: content;
  padding-top: 52px;       /* bio starts just below the blue/white boundary */
}

.atty-bio {
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .atty-detail-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "content";
    gap: 0;
  }
  .atty-photo-col {
    margin-top: -80px;
    width: 180px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
  }
  .atty-photo-sticky { position: static; padding-top: 0; }
  .atty-content-col  { padding-top: 0; }
}

/* ===================== OTHER ATTORNEYS (detail page nav) ===================== */
.other-attorneys-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.other-atty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebebeb;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.other-atty-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.other-atty-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ebebeb;
  flex-shrink: 0;
}
.other-atty-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.other-atty-name {
  font-size: 13px;
  font-weight: 500;
  color: #0b0b0b;
  line-height: 1.3;
}
.other-atty-title {
  font-size: 12px;
  color: #9e9e9e;
}
@media (max-width: 768px) {
  .other-attorneys-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .other-attorneys-grid { grid-template-columns: repeat(2, 1fr); }
}
