/*
 * Self-hosted font stack for siliconvalleytax.co
 * Generated: 2026-06-30
 * Source: Google Fonts API (woff2 latin subsets, Chrome UA)
 *
 * Place this file at: css/fonts.css
 * Font files live at: fonts/ (sibling directory to css/)
 *
 * Inter v20 note: Google Fonts serves a single variable-font woff2 for the
 * latin subset across all weights. The @font-face declarations for each weight
 * all point to inter-400.woff2 — this is correct and matches Google's own CSS.
 * The browser reads the weight declarations for matching; the variable font
 * handles the actual rendering at each weight on the wght axis.
 *
 * Playfair Display: Separate woff2 files per weight (not variable). We only
 * serve the 2 weights actually used in CSS (600, 700), plus 700 italic.
 * Dropped: Playfair 400, 500 — not found in any CSS font-family context.
 *
 * Total unique payload:
 *   Inter (variable latin):       47 KB  (one file, all weights)
 *   Playfair 600:                 38 KB
 *   Playfair 700:                 38 KB
 *   Playfair 700 italic:          23 KB
 *   --------------------------------
 *   Total:                       146 KB  (vs ~200 KB+ Google loads incl. unused)
 *
 * font-display: optional — chosen per SEO audit #32 requirement. "optional" lets
 * the browser skip the web font entirely on constrained connections rather than
 * causing layout shift. Safe here because Inter/Playfair are display-only; body
 * fallback (system-ui) is acceptable. Change to "swap" only if A/B testing shows
 * measurable FOUT impact.
 *
 * local() removed — audit finding #5. local() can match stale/wrong Inter/Playfair
 * versions on user machines (e.g., older OS bundles). Without local(), the browser
 * always loads the exact versioned woff2 we ship. Negligible extra bytes; eliminates
 * wrong-font render risk.
 *
 * unicode-range: kept (latin subset only). Grep of all 91 production HTML files
 * found zero instances of smart quotes ('' ""), copyright, registered, or ellipsis
 * as literal characters — all use HTML entities (&copy; &reg; &hellip; etc.) which
 * are ASCII-range. The latin unicode-range is therefore safe and reduces woff2 payload.
 */

/* ============================================================
   INTER — Variable-weight sans-serif
   Inter v20: Google serves ONE woff2 for all latin weights.
   All @font-face blocks point to the same inter-400.woff2 file.
   This matches Google's own CSS output exactly.
   Dropped from Google load: weight 300 (zero usage in CSS)
   ============================================================ */

/* Inter 400 — body text */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 500 — subheadings, secondary labels */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 600 — navigation, CTAs, card headings (most-used weight) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 700 — page-level h1/h2 headings */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   PLAYFAIR DISPLAY — Serif display font (headings only)
   Separate static woff2 files per weight (not variable).
   Dropped from Google load: weights 400 and 500 (zero heading usage in CSS).
   ============================================================ */

/* Playfair Display 600 — serif subheadings */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('../fonts/playfair-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display 700 — primary serif headings */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('../fonts/playfair-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display 700 italic — optional, for editorial/blockquote use */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: optional;
  src: url('../fonts/playfair-700-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* === existing styles below === */

/* ============================================
   Silicon Valley Tax — Stylesheet
   ============================================ */

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

:root {
  /* Colors */
  --navy-950: #0a0f1e;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748b;
  --navy-400: #94a3b8;
  --navy-300: #cbd5e1;
  --navy-200: #e2e8f0;
  --navy-100: #f1f5f9;
  --navy-50: #f8fafc;

  --accent-600: #2563eb;
  --accent-500: #3b82f6;
  --accent-400: #60a5fa;
  --accent-100: #dbeafe;

  --gold-500: #c9a84c;
  --gold-400: #d4b968;
  --gold-300: #e0ca84;

  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease-out);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-800);
  background-color: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-pad) 0;
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate="fade-right"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Section Headers --- */
.section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-500);
  margin-bottom: 1rem;
}

.section__label--light {
  color: var(--accent-400);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.section__title--light {
  color: var(--white);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--navy-500);
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__header .section__title,
.section__header .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn--primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn--secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-300);
}
.btn--secondary:hover {
  border-color: var(--navy-900);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--navy-900);
  background: var(--navy-100);
}

.btn--white {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--navy-100);
  transform: translateY(-1px);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-out);
}

.header.is-scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.625rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.header:not(.is-scrolled) .nav__logo-img {
  filter: brightness(0) invert(1);
}

.nav__logo-img--footer {
  height: 28px;
  width: auto;
}

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--navy-600);
  transition: color var(--transition);
  position: relative;
}

.header:not(.is-scrolled) .nav__link {
  color: rgba(255,255,255,0.8);
}

.nav__link:hover,
.nav__link.active {
  color: var(--navy-900);
}

.header:not(.is-scrolled) .nav__link:hover,
.header:not(.is-scrolled) .nav__link.active {
  color: var(--white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header:not(.is-scrolled) .btn--primary {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.header:not(.is-scrolled) .btn--primary:hover {
  background: var(--navy-100);
  border-color: var(--navy-100);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  transition: all var(--transition);
  border-radius: 2px;
}

.header:not(.is-scrolled) .nav__toggle span {
  background: var(--white);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 40%, #162033 100%);
  z-index: -2;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
  z-index: -1;
}

.hero__container {
  width: 100%;
}

.hero__content {
  max-width: 700px;
}

.hero__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-400);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--accent-400);
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--navy-300);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .btn--primary {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}
.hero .btn--primary:hover {
  background: var(--navy-100);
  border-color: var(--navy-100);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-400);
  line-height: 1;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--navy-400);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.stat__divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy-400);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--navy-400), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--navy-50);
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--navy-200);
}

.trust-bar__grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-600);
}

.trust-item__icon {
  width: 20px;
  height: 20px;
  color: var(--accent-500);
  flex-shrink: 0;
}

/* --- Service Cards --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  background: var(--white);
}

.service-card:hover {
  border-color: var(--navy-300);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-50);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--navy-700);
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.625rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--navy-500);
  line-height: 1.65;
  flex-grow: 1;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-500);
  margin-top: 1.25rem;
  transition: color var(--transition);
}

.service-card:hover .service-card__link {
  color: var(--accent-600);
}

.services__cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Why Section --- */
.section--dark {
  background: var(--navy-900);
}

.why__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why__text {
  font-size: 1.0625rem;
  color: var(--navy-300);
  line-height: 1.75;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why__check {
  width: 22px;
  height: 22px;
  color: var(--accent-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.why__item strong {
  display: block;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.why__item span {
  font-size: 0.875rem;
  color: var(--navy-400);
  line-height: 1.6;
}

.why__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why__card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.why__card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-400);
  margin-bottom: 1.25rem;
}

.why__card-header svg {
  width: 20px;
  height: 20px;
}

.why__quote {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--navy-200);
  line-height: 1.7;
}

.why__attribution {
  font-size: 0.8125rem;
  color: var(--navy-500);
  margin-top: 1rem;
}

.why__card--accent {
  background: var(--accent-600);
  border-color: transparent;
  text-align: center;
}

.why__card-stat {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why__card-stat span {
  font-size: 1.5rem;
  font-weight: 400;
}

.why__card--accent p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

/* --- Specialties --- */
.specialties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.specialty {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-100);
  transition: all var(--transition);
}

.specialty:hover {
  background: var(--navy-50);
  border-color: var(--navy-200);
}

.specialty__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-200);
  margin-bottom: 1rem;
  line-height: 1;
}

.specialty__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.625rem;
}

.specialty__desc {
  font-size: 0.875rem;
  color: var(--navy-500);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
  padding: var(--section-pad) 0;
}

.cta__box {
  text-align: center;
  background: var(--navy-50);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
}

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.cta__text {
  font-size: 1.0625rem;
  color: var(--navy-500);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--navy-950);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__brand .nav__logo {
  margin-bottom: 1.25rem;
}


.footer__desc {
  font-size: 0.875rem;
  color: var(--navy-400);
  line-height: 1.7;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--navy-400);
  transition: all var(--transition);
  background: rgba(255,255,255,0.05);
}

.footer__social a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-300);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--navy-400);
  transition: color var(--transition);
}

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

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--navy-400);
  margin-bottom: 0.75rem;
}

.footer__contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--navy-500);
}

.footer__contact a {
  color: var(--navy-400);
  transition: color var(--transition);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem;
  color: var(--navy-500);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: var(--navy-500);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--navy-300);
}

/* --- Page Headers (subpages) --- */
.page-header {
  background: var(--navy-900);
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}

.page-header__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-400);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-header__subtitle {
  font-size: 1.0625rem;
  color: var(--navy-300);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* --- Service Detail (services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--navy-100);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail__content {
  max-width: 520px;
}

.service-detail__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.service-detail__desc {
  font-size: 1rem;
  color: var(--navy-500);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-detail__features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.service-detail__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.service-detail__feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent-500);
  flex-shrink: 0;
}

.service-detail__visual {
  background: var(--navy-50);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.service-detail__visual-icon {
  width: 80px;
  height: 80px;
  color: var(--navy-200);
}

.service-detail__visual::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-100);
  opacity: 0.3;
  top: -40px;
  right: -40px;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro__visual {
  background: var(--navy-50);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.about-intro__visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid var(--navy-200);
  border-radius: 50%;
  opacity: 0.5;
}

.about-intro__visual::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid var(--navy-200);
  border-radius: 50%;
  opacity: 0.3;
}

.about-intro__visual-text {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--navy-200);
  text-align: center;
  position: relative;
  z-index: 1;
}

.about__text {
  font-size: 1.0625rem;
  color: var(--navy-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about__text:first-of-type {
  font-size: 1.1875rem;
  color: var(--navy-700);
}

/* Values */
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.04);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-400);
}

.value-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.value-card__desc {
  font-size: 0.875rem;
  color: var(--navy-400);
  line-height: 1.7;
}

/* --- Contact Page --- */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__info-group {
  margin-bottom: 2rem;
}

.contact__info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy-400);
  margin-bottom: 0.75rem;
}

.contact__info-value {
  font-size: 1rem;
  color: var(--navy-800);
  line-height: 1.7;
}

.contact__info-value a {
  color: var(--accent-500);
  transition: color var(--transition);
}

.contact__info-value a:hover {
  color: var(--accent-600);
}

.contact__hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1rem;
  font-size: 0.9375rem;
}

.contact__hours-day {
  color: var(--navy-700);
  font-weight: 500;
}

.contact__hours-time {
  color: var(--navy-500);
}

.contact__form-card {
  background: var(--navy-50);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.contact__form-subtitle {
  font-size: 0.9375rem;
  color: var(--navy-500);
  margin-bottom: 2rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy-700);
  margin-bottom: 0.375rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--navy-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}

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

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

.form__submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* --- Map --- */
.map-section {
  height: 400px;
  background: var(--navy-100);
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3) contrast(1.05);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specialties__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail:nth-child(even) {
    direction: ltr;
  }
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s var(--ease-out);
    z-index: 100;
  }

  .nav__menu.is-open {
    right: 0;
  }

  .nav__menu.is-open .nav__link {
    color: var(--navy-800) !important;
    font-size: 1.25rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__actions .btn {
    display: none;
  }

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

  .stat__divider {
    width: 40px;
    height: 1px;
  }

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

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

  .trust-bar__grid {
    gap: 1.5rem;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero__scroll {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 3rem;
  }

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

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

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    text-align: center;
    justify-content: center;
  }

  .sticky-cta {
    display: flex !important;
  }
}

/* ============================================
   CRO: Lead Capture Popup
   ============================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.popup-overlay.is-active .popup {
  transform: translateY(0) scale(1);
}

.popup__header {
  background: var(--navy-900);
  padding: 2rem 2.5rem 1.75rem;
  position: relative;
}

.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--navy-400);
  transition: all var(--transition);
  background: rgba(255,255,255,0.08);
}

.popup__close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.popup__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  background: rgba(201, 168, 76, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.popup__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-400);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.popup__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.popup__body {
  padding: 2rem 2.5rem 2.5rem;
}

.popup__text {
  font-size: 0.9375rem;
  color: var(--navy-500);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.popup__form .form__group {
  margin-bottom: 1rem;
}

.popup__form .form__input {
  padding: 0.8125rem 1rem;
}

.popup__form .btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.popup__disclaimer {
  font-size: 0.75rem;
  color: var(--navy-400);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ============================================
   CRO: Sticky Mobile CTA
   ============================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--navy-200);
  padding: 0.75rem 1rem;
  gap: 0.625rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.sticky-cta .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.75rem 0.5rem;
}

.sticky-cta__call {
  background: var(--navy-900) !important;
  color: var(--white) !important;
  border-color: var(--navy-900) !important;
}

.sticky-cta__text {
  background: var(--accent-500) !important;
  color: var(--white) !important;
  border-color: var(--accent-500) !important;
}

/* ============================================
   CRO: Floating Quick Contact Widget
   ============================================ */
.quick-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 950;
}

.quick-contact__trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.3);
  transition: all var(--transition);
  position: relative;
}

.quick-contact__trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.4);
}

.quick-contact__trigger svg {
  width: 24px;
  height: 24px;
  transition: all var(--transition);
}

.quick-contact__trigger .icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

.quick-contact.is-open .quick-contact__trigger .icon-chat {
  opacity: 0;
  transform: rotate(90deg);
}

.quick-contact.is-open .quick-contact__trigger .icon-close {
  opacity: 1;
  transform: rotate(0);
}

.quick-contact__pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border: 2px solid var(--white);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.quick-contact__panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s var(--ease-out);
  transform-origin: bottom right;
}

.quick-contact.is-open .quick-contact__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.quick-contact__panel-header {
  background: var(--navy-900);
  padding: 1.25rem 1.5rem;
}

.quick-contact__panel-title {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.quick-contact__panel-sub {
  font-size: 0.8125rem;
  color: var(--navy-400);
}

.quick-contact__panel-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.quick-contact__panel-body .form__group {
  margin-bottom: 0.875rem;
}

.quick-contact__panel-body .form__input,
.quick-contact__panel-body .form__textarea {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
}

.quick-contact__panel-body .form__textarea {
  min-height: 70px;
}

.quick-contact__panel-body .btn {
  width: 100%;
  padding: 0.6875rem;
  font-size: 0.875rem;
}

.quick-contact__panel-footer {
  padding: 0 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--navy-400);
}

.quick-contact__panel-footer svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-500);
}

/* ============================================
   CRO: Inline Email Capture Banner
   ============================================ */
.inline-capture {
  background: linear-gradient(135deg, var(--navy-900) 0%, #162033 100%);
  padding: 3rem 0;
}

.inline-capture__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.inline-capture__text h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.inline-capture__text p {
  font-size: 0.9375rem;
  color: var(--navy-300);
}

.inline-capture__form {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

.inline-capture__form .form__input {
  width: 220px;
  padding: 0.75rem 1rem;
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.inline-capture__form .form__input::placeholder {
  color: var(--navy-400);
}

.inline-capture__form .form__input:focus {
  border-color: var(--accent-400);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ============================================
   Images: Service visuals with photos
   ============================================ */
.service-detail__visual--image {
  padding: 0;
  overflow: hidden;
}

.service-detail__visual--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.service-detail__visual--image::after {
  display: none;
}

.hero--image {
  position: relative;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.88) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(22, 32, 51, 0.85) 100%);
}

/* About page team/photo section */
.about-intro__visual--image {
  padding: 0;
  overflow: hidden;
}

.about-intro__visual--image::before,
.about-intro__visual--image::after {
  display: none;
}

.about-intro__visual--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* Page header with background image */
.page-header--image {
  position: relative;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.85) 100%);
}

/* ============================================
   FAQ Page
   ============================================ */
.faq__grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq__category {
  margin-bottom: 3rem;
}

.faq__category-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy-100);
}

.faq__item {
  border-bottom: 1px solid var(--navy-100);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-800);
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--accent-500);
}

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--navy-400);
  transition: transform 0.3s var(--ease-out);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  color: var(--accent-500);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq__answer-inner {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--navy-500);
  line-height: 1.75;
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

/* ============================================
   SEO Landing Pages
   ============================================ */
.landing-hero {
  background: var(--navy-900);
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.landing-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.landing-hero__subtitle {
  font-size: 1.125rem;
  color: var(--navy-300);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.landing-hero__form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  max-width: 420px;
}

.landing-hero__form-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.landing-hero__form .form__group {
  margin-bottom: 0.875rem;
}

.landing-hero__form .btn {
  width: 100%;
}

/* Social proof bar */
.social-proof {
  background: var(--navy-50);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--navy-200);
}

.social-proof__grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.social-proof__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-proof__stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.social-proof__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-proof__text {
  font-size: 0.875rem;
  color: var(--navy-600);
  font-weight: 500;
}

/* Content sections for landing pages */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}

.content-section:nth-child(even) {
  direction: rtl;
}

.content-section:nth-child(even) > * {
  direction: ltr;
}

.content-section__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-section__image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* --- Team Section --- */
.team-tier-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-400);
  margin-bottom: 1.25rem;
}

.team-grid--leadership {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-grid--senior {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-grid--junior {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.team-card {
  text-align: center;
}

.team-card--leadership {
  padding: 2.5rem 2rem;
}

.team-card--senior {
  padding: 2rem 1.5rem;
}

.team-card--junior {
  padding: 1.75rem 1.25rem;
}

.team-card__avatar {
  background: var(--navy-200);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-card__avatar--lg {
  width: 96px;
  height: 96px;
}

.team-card__avatar--md {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.team-card__avatar--sm {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.team-card__name {
  font-family: var(--font-serif);
}

.team-card__name--lg {
  font-size: 1.25rem;
}

.team-card__name--md {
  font-size: 1.125rem;
}

.team-card__name--sm {
  font-size: 1.0625rem;
}

.team-card__role {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--accent-600);
}

.team-card__role--junior {
  color: var(--navy-500);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

/* --- Testimonials --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--navy-50);
  border: 1px solid var(--navy-200);
  text-align: left;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.testimonial-card__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-card__quote {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--navy-700);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.875rem;
}

.testimonial-card__detail {
  color: var(--navy-500);
  font-size: 0.8125rem;
}

/* --- Credential Box --- */
.credential-box {
  background: var(--navy-50);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.credential-box--horizontal {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-align: left;
  max-width: none;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.credential-box__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.credential-box__icon--round {
  width: 56px;
  height: 56px;
  background: var(--accent-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.credential-box__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.credential-box__title--sm {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.credential-box__text {
  color: var(--navy-600);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 0;
}

.credential-box__text--compact {
  line-height: 1.7;
}

/* --- Stats (light theme variant) --- */
.hero__stats--light {
  border-top: none;
  padding-top: 0;
  justify-content: center;
  gap: 4rem;
}

.hero__stats--light .stat__number {
  color: var(--navy-900);
}

.hero__stats--light .stat__suffix {
  color: var(--accent-500);
}

.hero__stats--light .stat__label {
  color: var(--navy-500);
}

.hero__stats--light .stat__divider {
  background: var(--navy-200);
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-600);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card__excerpt {
  color: var(--navy-600);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--navy-400);
}

.blog-card__link {
  color: var(--accent-600);
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card__link:hover {
  color: var(--accent-500);
}

/* --- Blog Post Pages --- */
.blog-post__breadcrumb {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--navy-400);
}

.blog-post__breadcrumb a {
  color: var(--navy-500);
  text-decoration: none;
}

.blog-post__breadcrumb a:hover {
  color: var(--accent-600);
}

.blog-post__breadcrumb span {
  margin: 0 0.5rem;
}

.blog-post__header {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.blog-post__header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post__header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
}

.blog-post__header-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  color: var(--white);
}

.blog-post__header-content .blog-card__tag {
  color: var(--gold-400);
}

.blog-post__header-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  margin-top: 0.5rem;
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--navy-400);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--navy-200);
}

.blog-post__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.blog-post__content {
  max-width: 100%;
}

.blog-post__content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-900);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.blog-post__content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.4;
}

.blog-post__content p {
  color: var(--navy-700);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.blog-post__content ul,
.blog-post__content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--navy-700);
  line-height: 1.8;
}

.blog-post__content li {
  margin-bottom: 0.5rem;
}

.blog-post__content strong {
  color: var(--navy-900);
  font-weight: 600;
}

.blog-post__content blockquote {
  border-left: 3px solid var(--accent-500);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--navy-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy-700);
  font-style: italic;
}

.blog-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.blog-post__content th,
.blog-post__content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--navy-200);
  text-align: left;
}

.blog-post__content th {
  background: var(--navy-50);
  font-weight: 600;
  color: var(--navy-900);
}

.blog-post__sidebar {
  position: sticky;
  top: 6rem;
}

.blog-post__cta-box {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.blog-post__cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-post__cta-box p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--navy-300);
  margin-bottom: 1.25rem;
}

.blog-post__related {
  background: var(--navy-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.blog-post__related h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-500);
  margin-bottom: 1rem;
}

.blog-post__related-item {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--navy-200);
  text-decoration: none;
  color: var(--navy-800);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
}

.blog-post__related-item:last-child {
  border-bottom: none;
}

.blog-post__related-item:hover {
  color: var(--accent-600);
}

@media (max-width: 768px) {
  .quick-contact {
    bottom: 5rem;
  }

  .quick-contact__panel {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }

  .inline-capture__inner {
    flex-direction: column;
    text-align: center;
  }

  .inline-capture__form {
    flex-direction: column;
    width: 100%;
  }

  .inline-capture__form .form__input {
    width: 100%;
  }

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

  .content-section:nth-child(even) {
    direction: ltr;
  }

  .landing-hero {
    padding: 8rem 0 3rem;
  }

  .social-proof__grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

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

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

  .blog-post__header {
    height: 240px;
  }

  .blog-post__layout {
    grid-template-columns: 1fr;
  }

  .blog-post__sidebar {
    position: static;
  }

  .credential-box--horizontal {
    flex-direction: column;
    text-align: center;
  }

  .credential-box__icon {
    margin: 0 auto;
  }

  .hero__stats--light {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .team-grid--leadership,
  .team-grid--senior {
    grid-template-columns: 1fr;
  }
}

/* --- Portal Page --- */
.portal__container {
  max-width: 640px;
}

.portal__body {
  text-align: center;
  padding: 2rem 0;
}

.portal__icon {
  width: 72px;
  height: 72px;
  background: var(--navy-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.portal__heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.portal__desc {
  color: var(--navy-600);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 2rem;
}

.portal__help {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-200);
}

.portal__help h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 1rem;
}

.portal__help-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  color: var(--navy-500);
  font-size: 0.875rem;
  line-height: 1.7;
}

.portal__help-item {
  max-width: 240px;
}

.portal__help-item strong {
  color: var(--navy-700);
}

.portal__help-item a {
  color: var(--accent-600);
}

/* --- Unsubscribe Page --- */
.unsub__container {
  max-width: 540px;
}

.unsub__confirm {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.unsub__icon {
  width: 56px;
  height: 56px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.unsub__heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.unsub__text {
  color: var(--navy-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.unsub__text a {
  color: var(--accent-600);
}

/* ============================================
   CRO Phase 1 (real) — hero hierarchy + trust signals + CTA color hierarchy
   ============================================ */

/* Trust chip row promoted into hero */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__chip svg {
  width: 14px;
  height: 14px;
  color: var(--gold-400);
  flex-shrink: 0;
}

/* Bigger primary CTA — bright accent so it visually dominates */
.btn--xl {
  padding: 1.0625rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  letter-spacing: 0.005em;
}

/* Primary "accent" CTA — darker blue for WCAG AA contrast (4.7:1 with white).
   Was --accent-500 (#3b82f6, 3.67:1, failed WCAG AA per Lighthouse 2026-06-10). */
.btn--accent {
  background: var(--accent-600);
  color: var(--white);
  border-color: var(--accent-600);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}
.btn--accent:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.5);
}

/* Secondary "ghost-light" CTA — outlined on dark, muted so it doesn't compete */
.btn--ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* In hero context, the existing btn--primary stays for backwards compat but
   should NOT compete with btn--accent. The header chip uses btn--primary
   which is now dark navy — fine, distinct from the bright accent in hero. */

/* Risk-reversal mini-text under primary CTA */
.hero__reassurance {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

/* Review pill — third-party proof */
.hero__reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.hero__reviews:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero__reviews-stars {
  color: var(--gold-400);
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* Stats row — compact variant so it doesn't dominate the (now denser) hero */
.hero__stats--compact {
  margin-top: 2.5rem;
  gap: 1.75rem;
  opacity: 0.92;
}
.hero__stats--compact .stat__number,
.hero__stats--compact .stat__suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.hero__stats--compact .stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Mobile: reorder hero so primary CTA lives above the long subtitle copy */
@media (max-width: 720px) {
  .hero__content {
    display: flex;
    flex-direction: column;
  }
  .hero__content .hero__label    { order: 1; }
  .hero__content .hero__title    { order: 2; }
  .hero__content .hero__cta      { order: 3; margin-top: 1.25rem; }
  .hero__content .hero__reassurance { order: 4; }
  .hero__content .hero__chips    { order: 5; margin-top: 1.25rem; }
  .hero__content .hero__subtitle { order: 6; margin-top: 1.25rem; }
  .hero__content .hero__reviews  { order: 7; }

  .hero__chips { gap: 0.5rem; }
  .hero__chip { font-size: 0.75rem; padding: 0.375rem 0.75rem; }
  .btn--xl { width: 100%; justify-content: center; padding: 1rem 1.5rem; font-size: 1rem; }
  .hero__cta { flex-direction: column; gap: 0.625rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* Service cards — top 3 visually dominant (information hierarchy) */
.services__grid > .service-card:nth-child(-n+3) {
  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  border: 1.5px solid var(--accent-100);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.08);
}
.services__grid > .service-card:nth-child(-n+3):hover {
  border-color: var(--accent-400);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}
.services__grid > .service-card:nth-child(-n+3) .service-card__icon {
  color: var(--accent-500);
}
.services__grid > .service-card:nth-child(-n+3) .service-card__link {
  color: var(--accent-600);
  font-weight: 600;
}

/* Sticky header CTA — accent the primary chip when scrolled so it pops */
.header.is-scrolled .nav__actions .btn--primary {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.header.is-scrolled .nav__actions .btn--primary:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  transform: translateY(-1px);
}

/* ============================================
   Copy + a11y cleanup: pricing reassurance line + WCAG AA contrast fixes
   ============================================ */
.cta__reassurance {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-300);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* Footer bottom + legal links: #64748b on #0a0f1e = 4.01 (fails 4.5 AA).
   Bumped to #94a3b8 = ~7.0 contrast on dark footer (passes AAA). */
.footer__bottom p,
.footer__legal a {
  color: #94a3b8;
}
.footer__legal a:hover {
  color: var(--white);
}

/* Sticky mobile CTA: white on #3b82f6 = 3.67 (fails 4.5 AA).
   Darkened to #1d4ed8 (blue-700) = ~6.3 contrast with white (passes AA).
   Text also bumped to font-weight 600 for added legibility. */
.sticky-cta__text {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  font-weight: 600;
}

/* ===========================================================
   CRO Phase 2 — .hero--compact modifier for interior pages
   Homepage hero is min-height: 100vh which dominates the fold.
   Interior pages (services, about, contact) get a tighter
   banner: padding-only, no forced viewport height. Dark
   gradient bg, light text, chips, CTAs all inherited from .hero.
   =========================================================== */
.hero--compact {
  min-height: auto;
  padding: 7rem 0 3.5rem;
}
@media (max-width: 720px) {
  .hero--compact {
    padding: 5.5rem 0 2.5rem;
  }
}

/* ===========================================================
   CRO Phase 3 — Contact tabs (Send Message / Book a Time)
   Tabbed UI to expose both the Netlify contact form AND a
   Calendly inline widget without choosing one over the other.
   "Book a Time" is the default-active tab (higher-intent path).
   =========================================================== */
.contact-tabs {
  display: flex;
  flex-direction: column;
}
.contact-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--navy-200);
  margin: -1.5rem -1.5rem 1.5rem;
  padding: 0;
}
.contact-tabs__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--navy-500);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.contact-tabs__btn:hover {
  color: var(--navy-800);
  background: var(--navy-50);
}
.contact-tabs__btn.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: transparent;
}
.contact-tabs__btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
.contact-tabs__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.contact-tabs__panel {
  display: none;
}
.contact-tabs__panel.is-active {
  display: block;
}
.calendly-embed-wrapper {
  min-width: 320px;
  height: 720px;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (max-width: 720px) {
  .contact-tabs__nav {
    margin: -1rem -1rem 1rem;
  }
  .contact-tabs__btn {
    font-size: 0.875rem;
    padding: 0.875rem 0.5rem;
  }
  .calendly-embed-wrapper {
    height: 680px;
  }
}

/* ===========================================================
   CRO Phase 5 — Desktop Sticky CTA Bar
   Shows after scrolling past the hero. Hidden on mobile (mobile
   already has its own sticky-cta). Sits at bottom of viewport.
   =========================================================== */
.desktop-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 899;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
@media (min-width: 769px) {
  .desktop-cta-bar { display: block; }
}
.desktop-cta-bar.is-visible {
  transform: translateY(0);
}
.desktop-cta-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.desktop-cta-bar__text {
  flex: 1;
  color: var(--navy-300);
  font-size: 0.9375rem;
  font-weight: 500;
}
.desktop-cta-bar .btn--ghost {
  color: var(--navy-300);
  border-color: var(--navy-600);
}
.desktop-cta-bar .btn--ghost:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ===========================================================
   CRO Phase 5 — Exit Intent Overlay
   Desktop only, once per session. Dark overlay + centered card.
   =========================================================== */
.exit-intent {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
@media (min-width: 769px) {
  .exit-intent { display: flex; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  .exit-intent.is-visible { opacity: 1; pointer-events: auto; }
}
.exit-intent__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.exit-intent.is-visible .exit-intent__card {
  transform: translateY(0);
}
.exit-intent__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--navy-400);
  cursor: pointer;
  line-height: 1;
}
.exit-intent__close:hover { color: var(--navy-900); }
.exit-intent__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}
.exit-intent__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-600);
  margin-bottom: 1.5rem;
}
.exit-intent__cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}
.exit-intent__sub {
  font-size: 0.875rem;
  color: var(--navy-500);
}
.exit-intent__sub a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
}
.exit-intent__sub a:hover { text-decoration: underline; }

/* ============================================================
   Reviews carousel — GBP-sourced 5.0★ (10 reviews)
   Pure CSS scroll-snap. No JS.
   ============================================================ */

.reviews {
  background: var(--navy-50);
  border-top: 1px solid var(--navy-200);
}

.reviews__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: 999px;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.reviews__aggregate {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}

.reviews__aggregate-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.reviews__aggregate-stars {
  color: var(--gold-500);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.reviews__aggregate-count {
  font-size: 0.75rem;
  color: var(--navy-600);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.reviews__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.reviews__subtitle {
  font-size: 1rem;
  color: var(--navy-600);
  line-height: 1.6;
}

/* Carousel track — CSS scroll-snap */
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 22rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 0.75rem 0.25rem 1.5rem;
  margin: 0 -0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-300) transparent;
}

.reviews__track::-webkit-scrollbar {
  height: 6px;
}

.reviews__track::-webkit-scrollbar-track {
  background: transparent;
}

.reviews__track::-webkit-scrollbar-thumb {
  background: var(--navy-300);
  border-radius: 3px;
}

.reviews__track:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.reviews__card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.reviews__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.reviews__stars {
  color: var(--gold-500);
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.reviews__quote {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--navy-800);
  flex-grow: 1;
}

.reviews__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.875rem;
  border-top: 1px solid var(--navy-100);
  gap: 1rem;
}

.reviews__author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
}

.reviews__date {
  font-size: 0.8125rem;
  color: var(--navy-500);
}

.reviews__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .reviews__track {
    grid-auto-columns: 85vw;
  }
  .reviews__badge {
    padding: 0.625rem 1.125rem;
    gap: 0.75rem;
  }
  .reviews__aggregate {
    font-size: 1.75rem;
  }
}
