@import "tokens.css";

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Designed surface: warm cream base + faint, clean navy/gold corner glows.
     No grain overlay (it read as static); priority is a clean premium look. */
  background-color: var(--bg);
  background-image:
    radial-gradient(58vw 58vw at 102% -5%, rgba(232, 161, 58, 0.045), transparent 60%),
    radial-gradient(52vw 52vw at -5% 104%, rgba(21, 41, 77, 0.045), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: var(--lh-head); color: var(--navy); margin: 0 0 var(--sp-4); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.narrow { max-width: var(--container-narrow); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: var(--fs-eyebrow); color: var(--gold-600); margin: 0 0 var(--sp-4);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-gold); flex: none; }
.section { padding-block: var(--sp-8); }
.lead { font-size: var(--fs-lg); color: var(--slate); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); color: #fff; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-base);
  padding: 0.8rem 1.4rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease); line-height: 1;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Pressed/active feedback (the only response touch devices get, since they have no hover). */
.btn:active { transform: translateY(1px) scale(0.99); }
/* Touch devices: do not let the hover lift stick after a tap. */
@media (hover: none) { .btn:hover { transform: none; } }
.btn-cta { background: var(--grad-gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-cta:hover { background: var(--grad-gold); color: var(--navy); box-shadow: var(--shadow-gold); }
.btn-cta:active { box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }
/* Secondary on dark heroes: more defined at rest (clearer border + faint glass fill). */
.btn-ghost-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost-light:hover { color: var(--navy); background: #fff; border-color: #fff; }
.btn-ghost-light:active { color: #fff; background: rgba(255,255,255,0.22); }
.btn-lg { padding: 1rem 1.8rem; font-size: var(--fs-lg); }
/* Hero CTAs read flat on the dark video; rest the primary at its elevated gold shadow
   so it pops on both mobile and desktop (uses the existing hover token, not a new color). */
.hero-video__actions .btn-cta, .hero__actions .btn-cta { box-shadow: var(--shadow-gold); }

/* ============================================================
   Sticky call bar (top utility bar)
   ============================================================ */
.callbar {
  background: var(--navy); color: #fff; font-size: var(--fs-sm);
  position: sticky; top: 0; z-index: 60;
}
.callbar a { color: #fff; }
.callbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--callbar-h); }
.callbar__left { display: flex; align-items: center; gap: var(--sp-5); }
.callbar__right { display: flex; align-items: center; gap: var(--sp-4); }
.callbar__phone { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.callbar__phone:hover { color: var(--gold); }
.callbar__es {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold);
}
.callbar__eval { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.callbar__eval:hover { color: var(--gold); }
@media (max-width: 720px) {
  .callbar__eval, .callbar__es-label, .callbar .lang-toggle { display: none; }
  .callbar__inner { justify-content: space-between; }
}

/* Language toggle (drives the hidden Google Translate element via translate.js).
   On-brand text control, not the raw Google widget. */
.lang-toggle {
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; line-height: 1; cursor: pointer;
  color: #fff; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45);
  text-underline-offset: 3px;
}
.callbar .lang-toggle { white-space: nowrap; }
.lang-toggle:hover, .lang-toggle:focus-visible { color: var(--gold); text-decoration-color: var(--gold); }
.lang-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.lang-toggle--mobile {
  justify-self: center; margin-top: var(--sp-2);
  color: var(--gold); font-weight: 700; font-size: var(--fs-base);
  text-decoration-color: rgba(232,161,58,0.5);
}
.lang-toggle--mobile:hover, .lang-toggle--mobile:focus-visible { color: #fff; text-decoration-color: #fff; }

/* Google Translate: suppress injected banner and gadget, drive from our toggle.
   Force body top to 0 so the translated page is never pushed down. */
#google_translate_element { display: none !important; }
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate { display: none !important; }
.skiptranslate iframe { visibility: hidden !important; }
.goog-te-gadget, .goog-te-gadget-simple { display: none !important; }
.goog-tooltip, .goog-tooltip:hover, #goog-gt-tt { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; }

/* ============================================================
   Header + primary nav
   ============================================================ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--callbar-h); z-index: 55; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 140px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 290px; height: auto; display: block; } /* sized so the one-line CTA + full nav + 24px gaps fit at 1180-1440 (max budget 299px); width-driven so it scales down proportionally (never distorts) at the tighter 1024 width */
@media (max-width: 1000px) { .site-header__inner { min-height: 104px; } .brand img { width: 224px; } } /* 1.3x of the 172px (@60h) mobile logo, next to the hamburger */
.brand__name { display: none; }

.primary-nav { display: flex; align-items: center; gap: var(--sp-2); }
/* Direct child only: the descendant form also matched the nested .nav-menu__panel
   <ul>, forcing the mega-menu items into a horizontal row that ran off-screen
   (phantom horizontal scroll). The panel now falls back to its vertical layout. */
.primary-nav > ul { list-style: none; display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink); text-decoration: none; font-size: var(--fs-base); white-space: nowrap;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--navy); background: rgba(21,41,77,0.05); }
.nav-link__caret { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.nav-item.is-open .nav-link__caret { transform: rotate(180deg); }

/* Dropdown: trigger + menu share one parent (.nav-item) with NO gap between
   them, so the cursor never crosses dead space. A JS close-delay (180ms) on
   mouseleave lets the cursor travel from trigger to menu. The visual offset is
   created with padding-top INSIDE the menu wrapper, not margin, so the
   hoverable area stays continuous. */
.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 360px;
  padding-top: 12px; /* hover-safe gap, still inside the hitbox */
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.97); transform-origin: top center;
  transition: opacity 240ms var(--ease), transform 240ms cubic-bezier(0.34, 1.4, 0.5, 1), visibility 240ms;
  z-index: 80;
}
.nav-item.is-open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.header-cta { display: inline-flex; align-items: center; gap: var(--sp-3); }
.header-cta .btn-cta { white-space: nowrap; flex-shrink: 0; } /* never wrap to two lines; the logo (flex-shrink) yields instead */

/* Mobile nav toggle (hamburger). Opens the body-level drawer. */
.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ============================================================
   Mobile menu: a SOLID, OPAQUE, FULL-SCREEN navy overlay, rendered at body level
   (never trapped by the header). No dim backdrop and no side strip; the overlay
   covers the whole viewport so no page content shows through. The desktop
   .primary-nav stays in the header, unchanged.
   ============================================================ */
.mobile-menu { display: none; }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-cta { display: none; } /* the sticky bottom bar carries the CTA on mobile */
  .primary-nav { display: none; }          /* desktop nav is hidden; the overlay replaces it */

  .mobile-menu {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: var(--navy);   /* solid #15294D, alpha 1: no transparency, no backdrop-filter */
    color: #fff; z-index: 1200;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  html.menu-open .mobile-menu { opacity: 1; visibility: visible; }
  /* Scroll lock: pin the body (nav.js sets top to the negative scroll offset and
     restores it on close). The fixed full-screen overlay is unaffected. */
  html.menu-open body { position: fixed; left: 0; right: 0; overflow: hidden; }
}
/* Overlay internals (the element is display:none on desktop, so mobile-only in effect) */
.mobile-menu__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid rgba(255,255,255,0.14); position: sticky; top: 0; background: var(--navy); z-index: 1; }
.mobile-menu__brand { display: inline-flex; }
.mobile-menu__brand img { height: 46px; width: auto; display: block; }
.mobile-menu__close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); border-radius: 50%; color: #fff; cursor: pointer; flex: none; }
.mobile-menu__close svg { width: 24px; height: 24px; }
.mobile-menu__close:active { background: rgba(255,255,255,0.18); }
.mobile-menu__nav { flex: 1 0 auto; padding: var(--sp-3) var(--sp-5); }
.mobile-menu__nav ul { list-style: none; margin: 0; padding: 0; }
.mm-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mm-link, .mm-acc {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 0.5rem;
  min-height: 56px; padding: 0.85rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: #fff;
  text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
}
.mm-link.is-active { color: var(--gold); }
.mm-link:active, .mm-acc:active { color: var(--gold); }
.mm-caret { width: 22px; height: 22px; color: var(--gold); transition: transform var(--dur) var(--ease); flex: none; }
.mm-item.is-open .mm-caret { transform: rotate(180deg); }
.mm-sub { display: flex; flex-direction: column; max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.mm-item.is-open .mm-sub { max-height: 1000px; padding-bottom: 0.4rem; }
.mm-sublink { display: flex; align-items: center; min-height: 48px; padding: 0.5rem 0 0.5rem 1rem; margin-left: 0.1rem; color: rgba(255,255,255,0.82); text-decoration: none; font-size: var(--fs-base); border-left: 2px solid rgba(232,161,58,0.45); }
.mm-sublink:active { color: var(--gold); border-color: var(--gold); }
.mobile-menu__foot { padding: var(--sp-5); padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.14); display: grid; gap: var(--sp-4); }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__phone { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; color: #fff; font-weight: 700; text-decoration: none; font-size: var(--fs-lg); }
.mobile-menu__phone:active { color: var(--gold); }
.mobile-menu__es { margin: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .mm-sub, .mm-caret { transition: none; } }

/* ============================================================
   Sticky mobile bottom call bar
   ============================================================ */
.mobile-callbar { display: none; }
@media (max-width: 1000px) {
  .mobile-callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 95; background: var(--border); box-shadow: 0 -6px 22px rgba(21,41,77,0.24);
  }
  /* env(safe-area-inset-bottom) keeps the labels above the iOS home indicator. */
  .mobile-callbar a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px;
    padding: 0.85rem 0.7rem; padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
    font-weight: 700; text-decoration: none; font-size: var(--fs-sm); white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); transition: filter 150ms var(--ease);
  }
  .mobile-callbar a svg { flex: none; }
  .mobile-callbar a:active { filter: brightness(0.9); }
  /* Premium gradient fills + glossy sheen (gold uses the canonical --grad-gold;
     green gets a tonal sheen via white/black alpha, no new brand colors). */
  .mobile-callbar .mc-call { background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 46%, rgba(0,0,0,0.12) 100%), var(--green); color: #fff; letter-spacing: 0.01em; }
  .mobile-callbar .mc-eval { background: var(--grad-gold); color: var(--navy); letter-spacing: 0.01em; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } /* room for the fixed bar + safe area */
}

/* ============================================================
   Hero
   ============================================================ */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; padding-block: var(--sp-8); }
.hero__text { min-width: 0; }
.hero__title { margin-bottom: var(--sp-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__es { margin-top: var(--sp-4); margin-bottom: 0; }

/* Hero media: real photo, framed, sized to avoid layout shift */
.hero__media { min-width: 0; }
.hero__media img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 6px solid #fff; background: var(--border);
}
/* Optional aside card, kept for pages that still use it */
.hero__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: var(--sp-6); }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__media { order: 2; max-width: 460px; }
  .hero__media img { aspect-ratio: 16 / 11; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-sm); color: var(--slate); padding-block: var(--sp-3); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 0.4rem; color: var(--border); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }

/* ============================================================
   Cards, trust strip, prose, FAQ
   ============================================================ */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Premium card: gradient fill + gradient-hairline border + navy-tinted shadow
   + inner top highlight. Never a flat white box with a gray line. */
.card {
  position: relative; border: 1px solid transparent; border-radius: var(--radius); padding: var(--sp-5);
  background: var(--grad-card) padding-box, var(--border-grad) border-box;
  box-shadow: var(--shadow-sm), var(--inset-hi);
}
.card h3 { margin-bottom: var(--sp-2); }
/* Optional gold accent top-edge for feature cards */
.card--feature { overflow: hidden; }
.card--feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-gold); }

.trust-strip { background: var(--navy); color: #fff; }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4) var(--sp-6); padding-block: var(--sp-5); }
.trust-strip .badge { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; font-weight: 600; font-size: var(--fs-base); }
.trust-strip .badge svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.trust-strip .badge__stars { color: var(--gold); letter-spacing: 1px; font-size: 1.05rem; }
.trust-strip .badge__label { white-space: nowrap; }
@media (max-width: 720px) {
  .trust-strip .container { justify-content: flex-start; gap: var(--sp-3) var(--sp-5); }
  .trust-strip .badge { font-size: var(--fs-sm); }
}

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose ul, .prose ol { margin-bottom: var(--sp-4); }

.faq details { border: 1px solid transparent; border-radius: var(--radius); background: var(--grad-card) padding-box, var(--border-grad) border-box; box-shadow: var(--shadow-sm), var(--inset-hi); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-3); transition: box-shadow 200ms var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md), var(--inset-hi); }
.faq summary { font-family: var(--font-head); font-weight: 600; color: var(--navy); cursor: pointer; font-size: var(--fs-lg); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: var(--sp-3); }

/* Testimonials */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: var(--sp-2); }
.testimonial blockquote { margin: 0 0 var(--sp-3); }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); }
.testimonial .src { color: var(--slate); font-size: var(--fs-sm); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: var(--sp-7); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band .actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-5); }

/* ============================================================
   Footer
   ============================================================ */
/* ---- Pre-footer CTA band (overlaps the footer top edge) ---- */
.pre-footer { position: relative; z-index: 2; margin-top: var(--sp-9); margin-bottom: -70px; }
.pre-footer__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto;
  gap: var(--sp-5) var(--sp-7); align-items: center; padding: var(--sp-7);
  border: 1px solid transparent; border-radius: var(--radius-lg); color: #fff;
  background: var(--grad-navy) padding-box, var(--border-grad-dark) border-box;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.08);
}
.pre-footer__card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(36vw 36vw at 88% 0%, rgba(232,161,58,0.18), transparent 60%); }
.pre-footer__card > * { position: relative; z-index: 1; }
.pre-footer__card h2 { color: #fff; margin: 0 0 0.4rem; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.pre-footer__card p { color: rgba(255,255,255,0.85); margin: 0; }
.pre-footer__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 760px) { .pre-footer__card { grid-template-columns: 1fr; } .pre-footer { margin-bottom: -60px; } }

/* ---- Footer ---- */
/* padding-top clears the overlapping pre-footer CTA card (margin-bottom: -70px)
   and leaves a comfortable ~56px gap above the footer grid. */
.site-footer { position: relative; color: rgba(255,255,255,0.78); margin-top: 0; padding-top: 126px; padding-bottom: var(--sp-6); }
/* The monogram is gone, so the footer no longer needs to clip. Override the
   overflow:hidden that .band-dark sets, so card shadows are never clipped. */
.site-footer.band-dark { overflow: visible; }
.site-footer .container { position: relative; z-index: 1; }
/* Full-width areas chip cloud */
.footer-areas { margin-top: var(--sp-7); }
.site-footer a { color: rgba(255,255,255,0.80); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: clamp(200px, 16vw, 260px) 1.4fr 1fr 1fr; gap: var(--sp-7); }
/* Decorative white H&H crest filling the left, vertically centered against the
   content columns. Bounded inside its own grid track (no overlap, no overflow). */
.footer-crest { align-self: center; justify-self: center; width: 100%; max-width: 260px; height: auto; opacity: 0.85; pointer-events: none; user-select: none; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: var(--sp-5); position: relative; padding-bottom: 0.6rem; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 2px; background: var(--grad-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }

/* Glass business card */
.footer-card {
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: var(--sp-5);
  background: rgba(255,255,255,0.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
/* Footer business card NAP: reuses the contact page's gold-icon contact-rows.
   Footer-scoped recolor so labels/values/links read on navy. The contact page's
   own .contact-card (light) keeps its navy labels and is not affected. */
.footer-card .contact-rows { gap: var(--sp-4); }
.footer-card .contact-row__label { color: rgba(255,255,255,0.55); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; }
.footer-card .contact-row__value { color: rgba(255,255,255,0.85); }
.footer-card .contact-row__value a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-card .contact-row__value a:hover { color: var(--gold); }

/* Animated gold underline on column links */
.footer-links li { margin: 0.55rem 0; }
.footer-links a { position: relative; display: inline-block; padding-bottom: 1px; }
/* Larger touch targets for the footer column links on mobile. */
@media (max-width: 1000px) { .footer-links a { padding-block: 0.45rem; } .footer-links li { margin: 0.2rem 0; } }
.footer-links a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease); }
.footer-links a:hover::after { transform: scaleX(1); }

/* City chips with gold dot separators */
.footer-cities { display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem; font-size: var(--fs-sm); }
.footer-cities a { position: relative; padding-left: 0.85rem; }
.footer-cities a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--gold); opacity: 0.6; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.footer-cities a:hover::before { opacity: 1; transform: scale(1.25); }

.footer-social { display: flex; gap: 0.65rem; margin-top: var(--sp-5); }

/* Brand-colored social buttons (Instagram gradient, Facebook blue) */
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), filter 200ms var(--ease);
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn--ig { background: radial-gradient(circle at 30% 110%, #FED373 6%, #F15245 28%, #D92E7F 52%, #9B36B7 78%, #515ECF 100%); }
.social-btn--fb { background: #1877F2; }
.social-btn:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 10px 22px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3); }
/* FOOTER ONLY: subtle uniform white-glyph chips (drops brand color here only;
   the contact page "Connect with us" icons keep their full brand color). */
.site-footer .social-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #fff; box-shadow: none; }
.site-footer .social-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(232,161,58,0.4); filter: none; box-shadow: none; transform: translateY(-3px); }

.site-footer__bar { padding-block: var(--sp-3) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); }
/* "Site by" Nexus logo credit */
.site-by { display: inline-flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.6); text-decoration: none; }
.site-by span { font-size: var(--fs-xs); }
.site-by img { width: 213px; height: auto; filter: brightness(1.08) contrast(1.05); opacity: 0.92; transition: opacity 200ms var(--ease), filter 200ms var(--ease); }
.site-by:hover img { opacity: 1; filter: brightness(1.2) contrast(1.08); }
@media (max-width: 560px) { .site-by { flex-wrap: wrap; } .site-by img { width: 150px; } }
.disclaimer { max-width: 80ch; color: rgba(255,255,255,0.55); font-size: var(--fs-xs); margin-top: var(--sp-4); }
@media (prefers-reduced-motion: reduce) { .footer-links a::after, .footer-cities a::before, .social-btn, .site-by img { transition: none; } }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .footer-crest { display: none; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Forms
   ============================================================ */
.lead-form .field { margin-bottom: var(--sp-4); }
.lead-form label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.35rem; color: var(--ink); }
.lead-form .field { margin-bottom: var(--sp-4); }
.lead-form input, .lead-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: linear-gradient(180deg, #fff, #FCFAF6); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.lead-form input:hover, .lead-form textarea:hover { border-color: rgba(21,41,77,0.3); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232,161,58,0.18); background: #fff; }
.lead-form textarea { resize: vertical; }
/* Honeypot: visually and physically hidden, but not display:none (so bots fill it) */
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Blog
   ============================================================ */
.post-hero { width: 100%; max-width: 520px; height: auto; border-radius: var(--radius); margin: 0 0 var(--sp-6); background: var(--border); }
.post-body { font-size: var(--fs-lg); }
.post-body h2 { margin-top: var(--sp-7); }
.post-body h3 { margin-top: var(--sp-6); }
.post-body img { border-radius: var(--radius-sm); margin-block: var(--sp-4); height: auto; }
.post-body ul, .post-body ol { margin-bottom: var(--sp-4); }
.post-body a { color: var(--green); text-decoration: underline; }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }
.pager__count { color: var(--slate); font-size: var(--fs-sm); }

/* ============================================================
   Motion: reading progress, hero video, carousel, entrance, CTA
   All effects degrade to final/static state under reduced-motion
   and remain fully visible if JS never runs.
   ============================================================ */

/* Reading progress bar (top of every page) */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; max-width: 100%;
  background: var(--gold); z-index: 200; transition: width 90ms linear; pointer-events: none;
}

/* Full-bleed hero video */
.hero-video {
  position: relative; display: grid; align-items: center;
  min-height: clamp(520px, 78vh, 760px); overflow: hidden; background: var(--navy);
  border-bottom: 1px solid var(--border);
}
.hero-video__media { position: absolute; inset: 0; z-index: 0; }
.hero-video__poster, .hero-video__vid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video__poster { z-index: 0; } /* always-visible fallback, video covers it when playing */
.hero-video__vid { z-index: 1; }
.hero-video__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(62% 85% at 12% 100%, rgba(232,161,58,0.16), transparent 62%),
    linear-gradient(100deg, rgba(14,28,56,0.82) 0%, rgba(21,41,77,0.56) 46%, rgba(21,41,77,0.26) 100%);
}
.hero-video__content { position: relative; z-index: 3; color: #fff; padding-block: var(--sp-8); }
.hero-video__content .eyebrow { color: var(--gold); }
.hero-video h1, .hero-video .lead { color: #fff; }
.hero-video .lead { color: rgba(255,255,255,0.92); max-width: 44ch; }
.hero-video__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* Result counter */
.result-band { background: var(--bg); }
.result-stat { text-align: center; }
.result-stat__num {
  display: block; font-family: var(--font-head); font-weight: 600; color: var(--green);
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.2rem); line-height: 1; letter-spacing: -0.02em;
}
.result-stat__label { display: block; color: var(--slate); margin-top: var(--sp-3); font-size: var(--fs-lg); }
.countup { font-variant-numeric: tabular-nums; }

/* Carousel */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; will-change: transform; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
@media (min-width: 640px) { .carousel__slide { flex-basis: calc(50% - var(--sp-5) / 2); } }
@media (min-width: 1000px) {
  .carousel--reviews .carousel__slide { flex-basis: calc(33.333% - var(--sp-5) * 2 / 3); }
  .carousel--practice .carousel__slide { flex-basis: calc(25% - var(--sp-5) * 3 / 4); }
}
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.carousel__btn {
  width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--navy); cursor: pointer; font-size: 1.3rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: background var(--dur), border-color var(--dur), transform var(--dur);
}
.carousel__btn:hover { border-color: var(--navy); background: rgba(21,41,77,0.05); }
.carousel__btn:disabled { opacity: 0.4; cursor: default; }
.carousel__dots { display: flex; gap: 0.5rem; }
.carousel__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--border); cursor: pointer; }
.carousel__dot[aria-current="true"] { background: var(--gold); }
.practice-card { display: block; text-decoration: none; color: inherit; height: 100%; }
.practice-card img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--border); }
.practice-card__body { padding: var(--sp-5); }

/* Scroll entrance: hidden initial state only when JS marks <html class="anim">.
   Reveal rules are scoped under html.anim too, so they out-specify the hide
   rule (otherwise the .in reveal loses the specificity battle and content
   stays invisible). Content defaults to fully visible when html.anim is absent
   (no JS, or reduced-motion), so it can never be permanently hidden. */
html.anim [data-animate] { opacity: 0; transform: translateY(22px); }
[data-animate] { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.anim [data-animate].in { opacity: 1; transform: none; }
/* Hero intro elements: staggered fade + rise on load (reveal.js adds .in) */
[data-hero] { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
html.anim [data-hero] { opacity: 0; transform: translateY(16px); }
html.anim [data-hero].in { opacity: 1; transform: none; }
/* Staggered children for grids/lists */
html.anim [data-animate-children] > * { opacity: 0; transform: translateY(10px); }
[data-animate-children] > * { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
html.anim [data-animate-children].in > * { opacity: 1; transform: none; }
/* Counter hidden until it scrolls in, so there is no static $0 before counting */
html.anim .countup { visibility: hidden; }
html.anim .countup.in { visibility: visible; }

/* CTA hover lift + scale + shadow; primary hero CTA gets a gentle pulse */
.btn-cta--pulse { animation: ctaPulse 2.6s ease-in-out infinite; }
/* Keep the premium gold depth shadow as a constant layer and pulse a ring on top,
   so the hero Call button never flattens to just the ring while animating. */
@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--shadow-gold), 0 0 0 0 rgba(232, 161, 58, 0.4); }
  50% { box-shadow: var(--shadow-gold), 0 0 0 12px rgba(232, 161, 58, 0); }
}

/* Reduced motion: no animation, just final state */
@media (prefers-reduced-motion: reduce) {
  .reading-progress { transition: none; }
  html.anim [data-animate], html.anim [data-hero], html.anim [data-animate-children] > * { opacity: 1; transform: none; }
  html.anim .countup { visibility: visible; }
  [data-animate] { transition: none; }
  .btn-cta--pulse { animation: none; }
  .btn:hover { transform: none; }
  .hero-video__vid { display: none; } /* show poster only, no autoplaying video */
  .carousel__track { transition: none; }
  /* No hover/lift/zoom motion under reduced-motion */
  .hoverable, a.card, .card.hoverable, .pcard, .review-card, .pcard__media img { transition: none; }
  .hoverable:hover, a.card:hover, .pcard:hover, .review-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .pcard:hover .pcard__media img { transform: none; }
  .nav-menu { transition: none; }
}

/* ============================================================
   Design primitives (Step 0): glass, hover-depth, gradients
   ============================================================ */
/* Glass: ONLY over media or dark/gradient sections (never on flat cream) */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
/* Hover-depth for interactive cards: lift + shadow-grow */
.hoverable { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Dark gradient feature section */
.feature-dark { background: var(--grad-navy); color: #fff; }
.feature-dark h2, .feature-dark h3 { color: #fff; }
.feature-dark .eyebrow { color: var(--gold); }
.feature-dark .lead { color: rgba(255,255,255,0.85); }

/* Card hover: lift + navy-tinted shadow grow + faint gold glow */
a.card, .card.hoverable { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 0 1px rgba(232,161,58,0.20), var(--inset-hi); }

/* Gradient divider rule */
.divider { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(21,41,77,0.18), transparent); }
.divider--gold { background: linear-gradient(90deg, transparent, rgba(232,161,58,0.5), transparent); }
.divider--dark { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); }

/* Animated underline for inline links (grows from left on hover) */
.link-underline { position: relative; text-decoration: none; color: var(--navy); font-weight: 600; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.link-underline:hover { color: var(--navy); }
.link-underline:hover::after { transform: scaleX(1); }

/* Gold CTA sheen on hover (soft moving highlight) */
.btn-cta { position: relative; overflow: hidden; isolation: isolate; }
.btn-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.45) 48%, transparent 66%);
  transform: translateX(-130%); transition: transform 650ms var(--ease);
}
.btn-cta:hover::after { transform: translateX(130%); }

/* ============================================================
   Mega-menu (nav dropdown) - elevated card with icon rows
   ============================================================ */
/* True frosted-glass floating panel */
.nav-menu__panel {
  position: relative; list-style: none; margin: 0; padding: 0.5rem; border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(251,249,245,0.74)) padding-box,
    var(--border-grad) border-box;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 44px rgba(21,41,77,0.22), 0 0 0 1px rgba(232,161,58,0.08), 0 0 30px rgba(232,161,58,0.10), var(--inset-hi);
}
/* Connector caret bridging the trigger to the panel */
.nav-menu__panel::before {
  content: ""; position: absolute; top: -7px; left: 30px; width: 14px; height: 14px; transform: rotate(45deg);
  background: rgba(255,255,255,0.82);
  border-left: 1px solid rgba(232,161,58,0.4); border-top: 1px solid rgba(232,161,58,0.4);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.nav-menu__panel li { margin: 0; }
.mega-link {
  position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 0.05rem 0.85rem;
  padding: 0.7rem 0.8rem; border-radius: 13px; text-decoration: none; color: var(--ink); overflow: hidden;
  transition: background 180ms var(--ease);
}
/* hover: soft gradient wash + gold left-accent bar slides in */
.mega-link::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px; border-radius: 3px;
  background: var(--grad-gold); transform: scaleY(0); transform-origin: center; transition: transform 200ms var(--ease);
}
.mega-link:hover, .mega-link:focus-visible { background: linear-gradient(90deg, rgba(232,161,58,0.12), rgba(21,41,77,0.04)); }
.mega-link:hover::before, .mega-link:focus-visible::before { transform: scaleY(1); }
.mega-link__icon {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: var(--grad-gold); box-shadow: 0 4px 10px rgba(232,161,58,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.mega-link:hover .mega-link__icon { transform: scale(1.06); box-shadow: 0 6px 14px rgba(232,161,58,0.45), inset 0 1px 0 rgba(255,255,255,0.5); }
.mega-link__icon svg { width: 21px; height: 21px; }
.mega-link__title { font-weight: 700; font-size: var(--fs-base); color: var(--navy); line-height: 1.2; transition: color 180ms var(--ease); }
.mega-link:hover .mega-link__title { color: var(--gold-600); }
.mega-link__desc { grid-column: 2; color: var(--slate); font-size: var(--fs-xs); line-height: 1.3; }
.mega-viewall {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-top: 0.4rem; padding: 0.8rem 0.85rem; border-radius: 13px; font-weight: 700; text-decoration: none;
  color: var(--navy); background: linear-gradient(90deg, rgba(232,161,58,0.16), rgba(232,161,58,0.05));
  border: 1px solid rgba(232,161,58,0.30);
}
.mega-viewall:hover { color: var(--navy); background: linear-gradient(90deg, rgba(232,161,58,0.26), rgba(232,161,58,0.08)); }
.mega-viewall svg { width: 18px; height: 18px; color: var(--gold-600); transition: transform 180ms var(--ease); }
.mega-viewall:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .nav-menu { transition: opacity 240ms, visibility 240ms; }
  .mega-link::before, .mega-link__icon, .mega-viewall svg { transition: none; }
}
.mega-viewall:hover svg { transform: translateX(3px); }

/* ============================================================
   Practice-area cards (carousel + hub) - depth, scrim, hover zoom
   ============================================================ */
.pcard {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  border: 1px solid transparent; border-radius: var(--radius); overflow: hidden;
  background: var(--grad-card) padding-box, var(--border-grad) border-box;
  box-shadow: var(--shadow-sm), var(--inset-hi);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(232,161,58,0.22); }
.pcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--border); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,41,77,0.45) 0%, rgba(21,41,77,0) 45%); }
.pcard__body { display: flex; flex-direction: column; gap: 0.4rem; padding: var(--sp-5); flex: 1; }
.pcard__title { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.2rem; line-height: 1.2; }
.pcard__desc { color: var(--slate); font-size: var(--fs-sm); }
.pcard__more { margin-top: auto; color: var(--green); font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 0.35rem; }
.pcard__more svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.pcard:hover .pcard__more svg { transform: translateX(4px); }

/* ============================================================
   Reviews feature band (navy gradient) + glass review cards
   ============================================================ */
.reviews-band { background: var(--grad-navy); color: #fff; }
.reviews-band .eyebrow { color: var(--gold); }
.reviews-band h2 { color: #fff; }
.reviews-band .lead { color: rgba(255,255,255,0.82); }
/* Review cards size to their content (cards align to the top, no big empty gaps) */
.carousel--reviews .carousel__track { align-items: flex-start; }
.review-card {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  padding: var(--sp-5); border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow-md); color: #fff; overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-card__quotemark {
  position: absolute; top: -0.5rem; right: 0.5rem; font-family: var(--font-head); font-weight: 700;
  font-size: 6rem; line-height: 1; color: rgba(255,255,255,0.08); pointer-events: none; user-select: none;
}
.review-card__head { display: flex; align-items: center; gap: 0.75rem; }
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(232,161,58,0.18); color: var(--gold); font-weight: 700;
  font-family: var(--font-head); border: 1px solid rgba(232,161,58,0.4);
}
.review-card__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.review-card__name { font-weight: 700; }
.review-card__src { display: inline-flex; align-items: center; gap: 0.3rem; color: rgba(255,255,255,0.7); font-size: var(--fs-xs); }
.review-card__stars { color: var(--gold); letter-spacing: 2px; }
.review-card blockquote { margin: 0; position: relative; z-index: 1; color: rgba(255,255,255,0.95); }

/* ============================================================
   Credibility panel (Treatment A) - elevation, NOT glass (flat bg)
   ============================================================ */
.cred-panel {
  border: 1px solid transparent; border-radius: var(--radius-lg);
  background: var(--grad-card) padding-box, var(--border-grad) border-box;
  box-shadow: var(--shadow-md), var(--inset-hi); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4);
  position: relative; overflow: hidden;
}
.cred-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-gold); }
.cred-panel__rating { display: flex; align-items: center; gap: 0.75rem; }
.cred-panel__rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.15rem; }
.cred-panel__rating strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); }
.cred-panel__stat { border-block: 1px solid var(--border); padding-block: var(--sp-4); }
.cred-panel__num { display: block; font-family: var(--font-head); font-weight: 600; color: var(--green); font-size: 2.4rem; line-height: 1; }
.cred-panel__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cred-panel__badges li {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.4rem 0.7rem;
  background: rgba(21,41,77,0.05); border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy);
}
.cred-panel__badges svg { width: 15px; height: 15px; color: var(--green); }
.cred-panel__office { color: var(--slate); font-size: var(--fs-sm); font-style: normal; line-height: 1.6; }

/* ============================================================
   Contact page: info card, icon rows, social, map, success panel
   ============================================================ */
.contact-card { padding: var(--sp-6); }
.contact-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-row { display: grid; grid-template-columns: 46px 1fr; gap: 0.15rem 1rem; align-items: start; margin: 0; }
.contact-row__icon {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: #fff; background: var(--grad-gold);
  box-shadow: 0 4px 12px rgba(232,161,58,0.30), inset 0 1px 0 rgba(255,255,255,0.4);
}
.contact-row__icon svg { width: 21px; height: 21px; }
.contact-row__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.contact-row__label { font-weight: 700; color: var(--navy); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-row__value { color: var(--ink); line-height: 1.5; }
/* Links on the light contact card: navy with a gold underline (never white) */
.contact-row__value a, .contact-row__link {
  color: var(--navy); font-weight: 700; text-decoration: underline;
  text-decoration-color: rgba(232,161,58,0.55); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.contact-row__value a:hover, .contact-row__link:hover { color: var(--navy); text-decoration-color: var(--gold); }
.contact-row__link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.3rem; font-size: var(--fs-sm); }
.contact-row__link svg { width: 14px; height: 14px; }
.btn-directions { margin-top: var(--sp-6); }
/* Contact social uses the shared brand-colored .social-btn (Instagram gradient, Facebook blue) */
.contact-social { display: flex; gap: 0.65rem; margin-top: var(--sp-5); }

/* Premium map frame: gradient-hairline border + navy-tinted shadow */
.contact-map__frame {
  border: 1px solid transparent; border-radius: var(--radius); padding: 6px;
  background: var(--grad-card) padding-box, var(--border-grad) border-box;
  box-shadow: var(--shadow-md), var(--inset-hi);
}
.contact-map iframe {
  display: block; width: 100%; aspect-ratio: 16 / 7; height: auto; border: 0;
  border-radius: calc(var(--radius) - 6px); background: var(--border);
}
@media (max-width: 720px) { .contact-map iframe { aspect-ratio: 4 / 3; } }

/* Form success panel (replaces the form in place) - celebratory */
.form-success { position: relative; text-align: center; padding-block: var(--sp-6); overflow: hidden; }
.form-success::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%; pointer-events: none; background: radial-gradient(50% 100% at 50% 0%, rgba(232,161,58,0.16), transparent 70%); }
.form-success > * { position: relative; z-index: 1; }
.form-success__check {
  width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4); color: #fff; background: linear-gradient(135deg, #2a9b69 0%, var(--green) 100%);
  box-shadow: 0 10px 26px rgba(30,122,82,0.35);
}
.form-success__check svg { width: 44px; height: 44px; }
.form-success h2 { margin-bottom: var(--sp-2); }
.form-success.is-in { animation: successIn 0.5s var(--ease) both; }
.form-success.is-in .form-success__check { animation: checkPop 0.5s var(--ease) 0.12s both; }
@keyframes successIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes checkPop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .form-success.is-in, .form-success.is-in .form-success__check { animation: none; }
}

/* ============================================================
   Section rhythm: dark feature band + stats band
   ============================================================ */
/* Dark bands: rich, deep navy gradient + a single faint gold glow. No grain. */
.band-dark { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; }
.band-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(44vw 44vw at 88% 6%, rgba(232,161,58,0.14), transparent 60%),
    radial-gradient(40vw 40vw at -2% 102%, rgba(74,144,226,0.10), transparent 60%);
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .eyebrow { color: var(--gold); }
.band-dark .lead { color: rgba(255,255,255,0.84); }
/* Reviews band: same rich navy + faint gold glow, no grain */
.reviews-band { position: relative; overflow: hidden; }
.reviews-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(44vw 44vw at 88% 6%, rgba(232,161,58,0.14), transparent 60%);
}
.reviews-band > * { position: relative; z-index: 1; }

/* Stats / credibility band */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); text-align: center; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-4); } }
.stat__num {
  display: block; font-family: var(--font-head); font-weight: 600; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.6rem);
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: var(--sp-3); color: rgba(255,255,255,0.82); font-size: var(--fs-sm); }
.stat__sub { display: block; color: rgba(255,255,255,0.55); font-size: var(--fs-xs); margin-top: 0.2rem; }

/* Reduced motion: disable the new sheen / underline / glows motion */
@media (prefers-reduced-motion: reduce) {
  .btn-cta::after { display: none; }
  .link-underline::after { transition: none; }
}

/* ============================================================
   Attorney profile cards (photo-led)
   ============================================================ */
.profile-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-lg);
  background: var(--grad-card) padding-box, var(--border-grad) border-box; box-shadow: var(--shadow-md), var(--inset-hi);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(232,161,58,0.18); }
.profile-card__photo { aspect-ratio: 5 / 4; overflow: hidden; background: var(--border); }
@media (min-width: 640px) { .profile-card__photo { aspect-ratio: 4 / 4.4; } }
.profile-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 500ms var(--ease); }
.profile-card:hover .profile-card__photo img { transform: scale(1.04); }
.profile-card__body { padding: var(--sp-6); }
.profile-card__body h3 { margin-bottom: 0.15rem; }
.profile-card__role { color: var(--gold-600); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-sm); margin: 0 0 var(--sp-3); }

/* ============================================================
   Part 8 polish: condensing header, back-to-top, active nav, credential strip
   ============================================================ */
/* Sticky header condenses on scroll */
/* Only cosmetic (non-layout) properties ease. The condense SNAPS its size
   (min-height/logo width) instantly: animating layout props during an active
   scroll caused a per-frame reflow shudder. */
.site-header { transition: box-shadow 220ms var(--ease), background 220ms var(--ease), -webkit-backdrop-filter 220ms var(--ease), backdrop-filter 220ms var(--ease); }
html.scrolled .site-header { box-shadow: var(--shadow-md); background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.scrolled .site-header__inner { min-height: 99px; }
html.scrolled .brand img { width: 246px; } /* ~0.85x of the 290px expanded logo; width-driven, height auto */

/* Active nav indicator */
.nav-link.is-active { color: var(--navy); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 6px; height: 2px; border-radius: 2px; background: var(--grad-gold); }
.nav-item { position: relative; }

/* Back-to-top button */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90;
  width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer; color: var(--navy);
  background: var(--grad-gold); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.4);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms, box-shadow 200ms var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.4); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 1000px) { .to-top { bottom: 76px; } } /* clear the mobile call bar */

/* Credential strip (real facts only) */
.credibility {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: var(--sp-4) var(--sp-6);
  padding: var(--sp-5) var(--sp-6); border: 1px solid transparent; border-radius: var(--radius);
  background: var(--grad-card) padding-box, var(--border-grad) border-box; box-shadow: var(--shadow-sm), var(--inset-hi);
}
.cred-item { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--navy); font-size: var(--fs-sm); }
.cred-item svg { width: 22px; height: 22px; color: var(--gold-600); flex: none; }

/* Premium focus-visible sitewide */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header__inner, .brand img, .to-top, .profile-card, .profile-card__photo img { transition: none; }
  .profile-card:hover, .profile-card:hover .profile-card__photo img { transform: none; }
}

/* Utilities */
.u-center { text-align: center; }
.u-mt-6 { margin-top: var(--sp-6); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   Flat-fee contracts landing (page-scoped; reuses tokens + components)
   ============================================================ */
.ffc-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-5); }
.ffc-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: var(--fs-sm); padding: 0.5rem 0.95rem; border-radius: 999px; color: var(--navy); background: var(--grad-gold); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.4); }
.ffc-chip--ghost { background: rgba(232,161,58,0.12); color: var(--ink); border: 1px solid rgba(232,161,58,0.45); box-shadow: none; }
.ffc-trustline { margin-top: var(--sp-5); color: rgba(255,255,255,0.82); font-size: var(--fs-sm); }
/* Numbered steps */
.ffc-step__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-gold); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; box-shadow: 0 4px 12px rgba(232,161,58,0.30), inset 0 1px 0 rgba(255,255,255,0.4); margin-bottom: var(--sp-4); }
/* Pricing tiers */
.ffc-price { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
.ffc-price span { font-size: var(--fs-base); color: var(--green); font-family: var(--font-body); font-weight: 700; }
.ffc-tagline { color: var(--slate); margin-top: 0.4rem; }
.ffc-feat { list-style: none; margin: var(--sp-5) 0 0; padding: 0; }
.ffc-feat li { display: grid; grid-template-columns: 20px 1fr; gap: 0.65rem; align-items: start; margin: 0.6rem 0; color: var(--ink); }
.ffc-feat li svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; flex: none; }
.ffc-scopenote { color: var(--slate); font-size: var(--fs-sm); margin-top: var(--sp-6); max-width: 70ch; }
/* Tag chips (who this is for, what we handle) */
.ffc-tags { display: flex; flex-wrap: wrap; gap: 0.6rem 0.65rem; margin-top: var(--sp-5); }
.ffc-tag { display: inline-flex; align-items: center; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); padding: 0.55rem 0.95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.band-dark .ffc-tag { color: #fff; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); box-shadow: none; }
/* Comparison table */
.ffc-compare__wrap { overflow-x: auto; margin-top: var(--sp-6); }
.ffc-compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.ffc-compare th, .ffc-compare td { text-align: left; padding: var(--sp-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.ffc-compare thead th { font-family: var(--font-head); color: var(--navy); font-size: var(--fs-base); }
.ffc-compare thead th:last-child { color: var(--gold-600); }
.ffc-compare tbody th { font-weight: 700; color: var(--slate); width: 22%; }
.ffc-compare td:last-child { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .ffc-compare { min-width: 620px; } }
