/* ============================================================================
   MICROTAX — STYLESHEET
   Single source of truth for the entire site.
   Linked from every HTML page as /styles.css.

   Sections:
     1.  Fonts
     2.  Design tokens (CSS custom properties)
     3.  Reset and base
     4.  Typography
     5.  Layout utilities
     6.  Buttons
     7.  Site navigation
     8.  For-CPAs secondary nav
     9.  Hero patterns
     10. Section header pattern (eyebrow + h2 + lead)
     11. Cards
     12. Stat bar
     13. Trust bar
     14. F.A.S.T. tiles
     15. Ladder
     16. City grid
     17. Comparison tables and compare cards
     18. Insight panel
     19. Tags, pull-quotes, small atoms
     20. CTA banners (consumer + peer-professional)
     21. Image placeholders
     22. Forms and inputs
     23. Expandable content (FAQ)
     24. Site footer
     25. Responsive (≤900px)
     26. Accessibility — focus, motion, skip-link
     27. Print
   ============================================================================ */


/* ----------------------------------------------------------------------------
   1. FONTS
   ---------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');


/* ----------------------------------------------------------------------------
   2. DESIGN TOKENS
   ---------------------------------------------------------------------------- */

:root {
  /* Brand & accent */
  --c-accent:        #0EA5E9;
  --c-accent-dark:   #0284C7;
  --c-accent-light:  #F0F9FF;
  --c-accent-border: #BAE6FD;

  /* Text */
  --c-heading: #111827;
  --c-body:    #374151;
  --c-muted:   #6B7280;
  --c-faint:   #9CA3AF;

  /* Surfaces */
  --c-bg:      #FFFFFF;
  --c-bg-alt:  #F9FAFB;
  --c-bg-mid:  #F3F4F6;
  --c-border:  #E5E7EB;

  /* Dark surfaces (nav + closing banner only) */
  --c-dark-bg: #0F1F3D;

  /* Signal colors */
  --c-green:       #059669;
  --c-green-light: #ECFDF5;
  --c-red:         #DC2626;

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

  /* Layout */
  --max-w: 1240px;
  --pad-x-desktop: 64px;
  --pad-x-mobile:  24px;
  --sec-pad-desktop: 96px;
  --sec-pad-mobile:  64px;
  --nav-h: 64px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 10px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-btn:   0 4px 16px rgba(14, 165, 233, 0.20);

  /* Motion */
  --t-fast: 0.15s ease;
  --t-base: 0.18s ease;
}


/* ----------------------------------------------------------------------------
   3. RESET AND BASE
   ---------------------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--c-accent-dark);
  text-decoration: none;
  transition: color var(--t-base);
}

a:hover {
  color: var(--c-accent);
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}


/* ----------------------------------------------------------------------------
   4. TYPOGRAPHY
   ---------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--c-heading);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 400;
}

.h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 400;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

p {
  color: var(--c-body);
  line-height: 1.75;
}

p + p {
  margin-top: 1rem;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--c-body);
  max-width: 620px;
}

.text-small {
  font-size: 0.82rem;
}

.text-muted {
  color: var(--c-muted);
}

.text-faint {
  color: var(--c-faint);
}

/* Italic-serif rhetorical emphasis device — used inside headlines only */
.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-accent-dark);
}

/* Strong inside body copy = heading color, weight 500 */
strong {
  color: var(--c-heading);
  font-weight: 500;
}

/* Inline code (rare on this site, but defined) */
code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--c-bg-mid);
  padding: 0.1em 0.35em;
  border-radius: var(--r-sm);
}


/* ----------------------------------------------------------------------------
   5. LAYOUT UTILITIES
   ---------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x-desktop);
}

.section {
  padding: var(--sec-pad-desktop) 0;
  background: var(--c-bg);
}

.section--alt {
  background: var(--c-bg-alt);
}

.section--mid {
  background: var(--c-bg-mid);
}

.section--dark {
  background: var(--c-dark-bg);
  color: #fff;
}

/* Two-column layouts */
.cols-2 {
  display: grid;
  gap: 64px;
}

.cols-2--hero {
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}

.cols-2--split {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.cols-2--sidebar-right {
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }


/* ----------------------------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 26px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  text-align: center;
}

.btn + .btn {
  margin-left: 12px;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.btn-outline {
  background: transparent;
  color: var(--c-accent-dark);
  border-color: var(--c-accent-border);
}

.btn-outline:hover {
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
}

.btn-white {
  background: #fff;
  color: var(--c-accent-dark);
  border-color: #fff;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-group .btn {
  margin-left: 0;
}


/* ----------------------------------------------------------------------------
   7. SITE NAVIGATION
   ---------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav__inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Push body content below fixed nav */
body {
  padding-top: var(--nav-h);
}

/* Brand mark */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.nav-brand:hover {
  color: #fff;
}

.nav-brand__mark {
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  background: var(--c-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1;
}

.nav-brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand__name strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.nav-brand__tagline {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-top: 2px;
}

/* Primary nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-right: 20px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  padding: 22px 0;
  transition: color var(--t-base);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
}

.nav-link--has-menu::after {
  content: "▾";
  font-size: 0.6em;
  opacity: 0.7;
  transform: translateY(1px);
}

/* For CPAs link gets a subtle differentiation */
.nav-link--cpas {
  padding-left: 14px;
  margin-left: -2px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
}

/* Dropdown menu */
.nav-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  pointer-events: none;
}

.nav-link--has-menu:hover .nav-menu,
.nav-link--has-menu:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu__item {
  display: block;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-body);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-menu__item:hover {
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
}

.nav-menu__item--current {
  color: var(--c-accent-dark);
  background: var(--c-accent-light);
}

.nav-menu__divider {
  height: 1px;
  background: var(--c-border);
  margin: 8px 0;
}

.nav-menu__group-label {
  display: block;
  padding: 8px 22px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-faint);
}

/* Nav CTA button (slightly tighter than body buttons) */
.nav-cta {
  font-size: 0.82rem;
  padding: 9px 18px;
}

/* Mobile hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
  color: #fff;
}

.nav-hamburger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav-hamburger span:nth-child(1) { top: 8px; }
.nav-hamburger span:nth-child(2) { top: 14px; }
.nav-hamburger span:nth-child(3) { top: 20px; }

/* Mobile menu open state — toggle .is-open on .site-nav via JS */
.site-nav.is-open .nav-hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-nav.is-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.site-nav.is-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ----------------------------------------------------------------------------
   8. FOR-CPAS SECONDARY NAV
   Renders just below main nav on /for-cpas/* pages only.
   ---------------------------------------------------------------------------- */

.cpa-subnav {
  position: sticky;
  top: var(--nav-h);
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  z-index: 50;
}

.cpa-subnav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x-desktop);
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cpa-subnav__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  white-space: nowrap;
  padding-right: 16px;
  border-right: 1px solid var(--c-border);
}

.cpa-subnav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t-base), border-color var(--t-base);
}

.cpa-subnav__link:hover {
  color: var(--c-heading);
}

.cpa-subnav__link--current {
  color: var(--c-accent-dark);
  border-bottom-color: var(--c-accent-dark);
}


/* ----------------------------------------------------------------------------
   9. HERO PATTERNS
   ---------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 80px 0 96px;
  background: var(--c-bg);
  overflow: hidden;
}

.hero--tall {
  min-height: 92vh;
  display: flex;
  align-items: center;
}

/* Subtle background atmosphere — grid + warm radial spots */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 165, 233, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 220, 180, 0.10), transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(14, 165, 233, 0.05), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--c-heading);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--c-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero__body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-body);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--c-heading);
  padding: 16px 0 16px 24px;
  border-left: 3px solid var(--c-accent);
  margin: 28px 0;
  max-width: 580px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  max-width: 580px;
}

.hero__chips-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-faint);
  font-weight: 600;
  width: 100%;
  margin-bottom: 6px;
}


/* ----------------------------------------------------------------------------
   10. SECTION HEADER PATTERN
   Eyebrow → h2 → optional lead. Used at top of every section.
   ---------------------------------------------------------------------------- */

.sec-hd {
  margin-bottom: 56px;
  max-width: 820px;
}

.sec-hd--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-hd--center .lead {
  margin-left: auto;
  margin-right: auto;
}

.sec-hd .h2 {
  margin: 14px 0 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-accent);
  margin-right: 12px;
  flex-shrink: 0;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow--light::before {
  background: rgba(255, 255, 255, 0.85);
}

.sec-hd--center .eyebrow {
  display: inline-flex;
}


/* ----------------------------------------------------------------------------
   11. CARDS
   ---------------------------------------------------------------------------- */

/* Serve cards — 4-grid with hairline dividers via 1px gap on bordered bg.
   Wrap the grid in a .serve-frame to set the divider color. */
.serve-frame {
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.serve-card {
  background: var(--c-bg);
  padding: 40px 36px;
  transition: background var(--t-base);
}

.serve-card:hover {
  background: var(--c-accent-light);
}

.serve-card__icon {
  font-size: 1.75rem;
  margin-bottom: 18px;
  line-height: 1;
}

.serve-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 10px;
}

.serve-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.serve-card__body {
  font-size: 0.92rem;
  color: var(--c-body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.serve-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.serve-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-accent-dark);
}

.serve-card__link:hover {
  gap: 8px;
}

/* Engine cards — 3-grid with shadow on hover */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.engine-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.engine-card:hover {
  border-color: var(--c-accent-border);
  box-shadow: var(--shadow-hover);
}

.engine-card__header {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 12px;
}

.engine-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: 14px;
  line-height: 1.3;
}

.engine-card__body {
  font-size: 0.92rem;
  color: var(--c-body);
  line-height: 1.65;
}

/* Testimonial cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  color: var(--c-accent);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--c-heading);
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-card__attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-heading);
  line-height: 1.3;
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--c-muted);
  line-height: 1.3;
}

/* "What your situation looks like" card — used on persona hero right column */
.situation-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.situation-card__header {
  background: var(--c-accent-light);
  padding: 16px 24px;
  border-bottom: 1px solid var(--c-accent-border);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
}

.situation-card__list {
  padding: 8px 0;
}

.situation-card__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 24px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--c-body);
  border-bottom: 1px solid var(--c-border);
}

.situation-card__item:last-child {
  border-bottom: none;
}

.situation-card__item::before {
  content: "→";
  color: var(--c-accent);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 1px;
}

.situation-card__footer {
  background: var(--c-bg-alt);
  padding: 14px 24px;
  font-size: 0.78rem;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
}


/* ----------------------------------------------------------------------------
   12. STAT BAR
   ---------------------------------------------------------------------------- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}

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

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

.stat-item__number {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--c-accent-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  line-height: 1.4;
}

/* Stat callout group — 3-grid variant for "the numbers behind the argument" */
.stat-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 56px 0;
}

.stat-callout {
  text-align: center;
  padding: 36px 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}

.stat-callout__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
  color: var(--c-accent-dark);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-callout__label {
  font-size: 0.92rem;
  color: var(--c-body);
  line-height: 1.5;
}


/* ----------------------------------------------------------------------------
   13. TRUST BAR
   Six checkmark items in a single horizontal row before footer.
   ---------------------------------------------------------------------------- */

.trust-bar {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 24px 0;
}

.trust-bar__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-body);
}

.trust-item::before {
  content: "✓";
  color: var(--c-accent);
  font-weight: 600;
}


/* ----------------------------------------------------------------------------
   14. F.A.S.T. TILES
   ---------------------------------------------------------------------------- */

.fast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.fast-tile {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color var(--t-base), transform var(--t-base);
}

.fast-tile:hover {
  border-color: var(--c-accent-border);
  transform: translateY(-2px);
}

.fast-tile__letter {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.fast-tile__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.fast-tile__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: 10px;
}

.fast-tile__body {
  font-size: 0.86rem;
  color: var(--c-body);
  line-height: 1.55;
}


/* ----------------------------------------------------------------------------
   15. LADDER
   ---------------------------------------------------------------------------- */

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

.ladder-row {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 24px;
  transition: border-color var(--t-base), transform var(--t-base);
}

.ladder-row:hover {
  border-color: var(--c-accent-border);
  transform: translateX(4px);
}

.ladder-row--featured {
  border-color: var(--c-accent);
  background: var(--c-accent-light);
}

.ladder-row__num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--c-accent-dark);
  line-height: 1;
}

.ladder-row__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-heading);
  margin-bottom: 4px;
}

.ladder-row__body {
  font-size: 0.88rem;
  color: var(--c-body);
  line-height: 1.5;
}

.ladder-row__meta {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-weight: 500;
  white-space: nowrap;
}


/* ----------------------------------------------------------------------------
   16. CITY GRID
   ---------------------------------------------------------------------------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.city-tile {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-body);
  text-align: left;
  transition: all var(--t-base);
  display: block;
}

.city-tile:hover {
  border-color: var(--c-accent-border);
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
}

.city-tile--active {
  border-color: var(--c-accent-border);
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
  font-weight: 500;
}

.city-tile--active::after {
  content: " · Active";
  font-size: 0.7rem;
  color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.city-tile--soon {
  opacity: 0.6;
  cursor: default;
}

.city-tile--soon::after {
  content: " · Soon";
  font-size: 0.7rem;
  color: var(--c-faint);
  font-weight: 500;
}

/* Compact chip variant used on the home hero */
.city-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: all var(--t-base);
}

.city-chip:hover {
  border-color: var(--c-accent-border);
  color: var(--c-accent-dark);
  background: var(--c-accent-light);
}

.city-chip--active {
  border-color: var(--c-accent-border);
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
}


/* ----------------------------------------------------------------------------
   17. COMPARISON TABLES AND COMPARE CARDS
   ---------------------------------------------------------------------------- */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.9rem;
  line-height: 1.5;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  background: var(--c-bg-alt);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--c-heading);
  letter-spacing: 0.02em;
}

.compare-table th:first-child {
  font-weight: 500;
  color: var(--c-muted);
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--c-heading);
  background: var(--c-bg-alt);
}

.compare-table .col-microtax {
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
  font-weight: 500;
}

/* Smaller side-by-side compare card (e.g. "MicroTax vs your CPA today") */
.compare-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.compare-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--c-border);
}

.compare-card__row:last-child {
  border-bottom: none;
}

.compare-card__cell {
  padding: 18px 22px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.compare-card__cell--label {
  background: var(--c-bg-alt);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.compare-card__cell--them {
  color: var(--c-muted);
}

.compare-card__cell--us {
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
  font-weight: 500;
}


/* ----------------------------------------------------------------------------
   18. INSIGHT PANEL
   Right-column sticky card used on hero and deep service pages.
   ---------------------------------------------------------------------------- */

.insight-panel {
  background: var(--c-bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.insight-panel__header {
  background: var(--c-accent-light);
  padding: 16px 24px;
  border-bottom: 1px solid var(--c-accent-border);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
}

.insight-panel__row {
  padding: 22px 24px;
  border-bottom: 1px solid var(--c-border);
}

.insight-panel__row:last-child {
  border-bottom: none;
}

.insight-panel__profile {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.insight-panel__trigger {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-heading);
  line-height: 1.35;
  margin-bottom: 10px;
}

.insight-panel__arrow {
  color: var(--c-accent);
  font-size: 0.85rem;
  margin: 6px 0;
}

.insight-panel__solution {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--c-body);
}

.insight-panel__footer {
  background: var(--c-bg-alt);
  padding: 14px 24px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  text-align: center;
  font-style: italic;
}

/* Sticky variant for service-page right-column TOC */
.insight-panel--sticky {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}


/* ----------------------------------------------------------------------------
   19. TAGS, PULL-QUOTES, SMALL ATOMS
   ---------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent-border);
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-accent-dark);
  letter-spacing: 0.01em;
}

.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--c-heading);
  padding: 20px 0 20px 28px;
  border-left: 3px solid var(--c-accent);
  margin: 36px 0;
  max-width: 720px;
}

/* Arrow used in "Learn more →" links */
.arrow {
  display: inline-block;
  transition: transform var(--t-base);
}

a:hover .arrow {
  transform: translateX(3px);
}

/* Inline link styled inside body copy */
.link-inline {
  color: var(--c-accent-dark);
  border-bottom: 1px solid var(--c-accent-border);
}

.link-inline:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

/* Credential pill row (used on Reenu's page) */
.credential-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.credential-pill {
  padding: 6px 14px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-body);
}


/* ----------------------------------------------------------------------------
   20. CTA BANNERS
   ---------------------------------------------------------------------------- */

/* Consumer CTA — closing element of major pages. Sky-blue gradient. */
.cta-banner {
  background: linear-gradient(135deg, var(--c-accent-dark) 0%, var(--c-accent) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 18px;
}

.cta-banner__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
}

.cta-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Peer-professional CTA card — quieter alternative for For-CPAs pages.
   NOT a gradient. Bordered card on light background. */
.cta-quiet {
  background: var(--c-bg);
  border: 1px solid var(--c-dark-bg);
  border-radius: var(--r-xl);
  padding: 48px;
  margin: 64px auto;
  max-width: 760px;
  text-align: center;
}

.cta-quiet__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.cta-quiet__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--c-heading);
  margin-bottom: 18px;
  line-height: 1.3;
}

.cta-quiet__body {
  font-size: 0.95rem;
  color: var(--c-body);
  line-height: 1.65;
  margin-bottom: 28px;
}

.cta-quiet__note {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: 18px;
  font-style: italic;
}


/* ----------------------------------------------------------------------------
   21. IMAGE PLACEHOLDERS
   Used during build before Nano Banana images are produced.
   ---------------------------------------------------------------------------- */

.img-placeholder {
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--c-muted);
  text-align: center;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

/* Aspect-ratio utilities for placeholders */
.img-placeholder--16-9 { aspect-ratio: 16 / 9; }
.img-placeholder--4-5  { aspect-ratio: 4 / 5; }
.img-placeholder--1-1  { aspect-ratio: 1 / 1; }
.img-placeholder--21-9 { aspect-ratio: 21 / 9; }
.img-placeholder--3-2  { aspect-ratio: 3 / 2; }

.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--c-border);
  border-radius: var(--r-md);
  pointer-events: none;
}

.img-placeholder__caption {
  position: relative;
  z-index: 1;
  max-width: 80%;
}

.img-placeholder__caption strong {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--c-body);
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ----------------------------------------------------------------------------
   22. FORMS AND INPUTS
   ---------------------------------------------------------------------------- */

.field {
  display: block;
  margin-bottom: 18px;
}

.field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-heading);
  margin-bottom: 6px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-heading);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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

.field__hint {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 4px;
}

/* Newsletter inline form */
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.newsletter-form .input {
  flex: 1;
}


/* ----------------------------------------------------------------------------
   23. EXPANDABLE CONTENT (FAQ)
   Styled <details>/<summary> with no JS.
   ---------------------------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--c-border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-heading);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-accent-dark);
  flex-shrink: 0;
  transition: transform var(--t-base);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--c-body);
  max-width: 780px;
}

.faq-group {
  margin-bottom: 56px;
}

.faq-group__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
  margin-bottom: 12px;
}


/* ----------------------------------------------------------------------------
   24. SITE FOOTER
   ---------------------------------------------------------------------------- */

.site-footer {
  background: var(--c-bg-alt);
  padding: 72px 0 32px;
  border-top: 1px solid var(--c-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand__mark .nav-brand__mark {
  background: var(--c-accent);
}

.footer-brand__mark strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-heading);
}

.footer-brand__tagline {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 340px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-social__btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--c-muted);
  transition: all var(--t-base);
}

.footer-social__btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.footer-col__heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 18px;
}

.footer-col__list li {
  margin-bottom: 10px;
}

.footer-col__list a {
  font-size: 0.88rem;
  color: var(--c-body);
  transition: color var(--t-base);
}

.footer-col__list a:hover {
  color: var(--c-accent-dark);
}

/* Locations subgrid */
.footer-locations {
  border-top: 1px solid var(--c-border);
  padding: 32px 0;
  margin-bottom: 24px;
}

.footer-locations__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.footer-locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px 16px;
}

.footer-locations__grid a {
  font-size: 0.82rem;
  color: var(--c-body);
  padding: 2px 0;
}

/* Legal strip at bottom */
.footer-legal {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-legal__copy {
  font-size: 0.67rem;
  color: var(--c-faint);
  line-height: 1.6;
  max-width: 720px;
}

.footer-legal__links {
  display: flex;
  gap: 18px;
}

.footer-legal__links a {
  font-size: 0.75rem;
  color: var(--c-muted);
}

.footer-legal__links a:hover {
  color: var(--c-accent-dark);
}


/* ----------------------------------------------------------------------------
   25. RESPONSIVE (≤900px)
   Single breakpoint. All multi-column patterns collapse to single column.
   ---------------------------------------------------------------------------- */

@media (max-width: 900px) {
  /* Layout */
  .container {
    padding: 0 var(--pad-x-mobile);
  }

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

  /* Nav */
  .site-nav__inner {
    padding: 0 var(--pad-x-mobile);
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-dark-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0;
    margin: 0;
    transform: translateX(100%);
    transition: transform var(--t-base);
    overflow-y: auto;
  }

  .site-nav.is-open .nav-links {
    transform: translateX(0);
  }

  .nav-link {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
  }

  .nav-link--cpas {
    border-left: none;
    padding-left: 24px;
    margin-left: 0;
  }

  .nav-menu {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border-radius: 0;
    padding: 8px 0;
    display: none;
  }

  .nav-link--has-menu:focus-within .nav-menu,
  .nav-link--has-menu.is-open .nav-menu {
    display: block;
  }

  .nav-menu__item {
    color: #fff;
    padding-left: 36px;
  }

  .nav-menu__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .nav-cta {
    /* Keep visible on mobile, just smaller */
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .nav-hamburger {
    display: block;
  }

  /* CPA subnav becomes horizontally scrolling */
  .cpa-subnav__inner {
    padding: 0 var(--pad-x-mobile);
    gap: 18px;
  }

  /* Section headers */
  .sec-hd {
    margin-bottom: 40px;
  }

  /* Two-column layouts collapse */
  .cols-2,
  .cols-2--hero,
  .cols-2--split,
  .cols-2--sidebar-right,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Hero */
  .hero {
    padding: 56px 0 64px;
  }

  .hero--tall {
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .hero__pullquote {
    font-size: 1.05rem;
    padding-left: 18px;
  }

  /* Cards */
  .serve-grid {
    grid-template-columns: 1fr;
  }

  .serve-card {
    padding: 32px 28px;
  }

  .engine-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-bottom: 1px solid var(--c-border);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--c-border);
  }

  .stat-item:nth-child(even) {
    border-right: none;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .stat-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .stat-callouts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Trust */
  .trust-bar__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* FAST */
  .fast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Ladder */
  .ladder-row {
    grid-template-columns: 32px 1fr;
    padding: 20px 22px;
    gap: 16px;
  }

  .ladder-row__meta {
    grid-column: 1 / -1;
    padding-left: 48px;
  }

  /* City grid */
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sticky elements lose stickiness on mobile */
  .insight-panel--sticky {
    position: static;
  }

  /* CTA banner */
  .cta-banner {
    padding: 56px 0;
  }

  .cta-quiet {
    padding: 32px 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

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

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Compare table — stack on mobile */
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    border-radius: 0;
  }

  .compare-table {
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tr {
    border-bottom: 1px solid var(--c-border);
  }

  .compare-table tr:last-child {
    border-bottom: none;
  }

  .compare-table td {
    border-bottom: none;
    padding: 12px 18px;
  }

  .compare-table td:first-child {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-muted);
    background: var(--c-bg-alt);
  }
}


/* ----------------------------------------------------------------------------
   26. ACCESSIBILITY
   ---------------------------------------------------------------------------- */

/* Visible focus state — applied site-wide */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Skip-to-content link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--c-dark-bg);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1000;
  border-radius: 0 0 var(--r-md) 0;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ----------------------------------------------------------------------------
   27. PRINT
   Hide chrome, keep substance. Body text and core structure only.
   ---------------------------------------------------------------------------- */

@media print {
  .site-nav,
  .cpa-subnav,
  .nav-hamburger,
  .cta-banner,
  .cta-quiet,
  .trust-bar,
  .site-footer,
  .btn,
  .img-placeholder {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
    background: #fff;
    font-size: 11pt;
    line-height: 1.5;
  }

  .section {
    padding: 24pt 0;
    page-break-inside: avoid;
  }

  .h1, .h2, .h3 {
    color: #000;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  /* Show full URL after links for print */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
}


/* ----------------------------------------------------------------------------
   END OF STYLESHEET
   ---------------------------------------------------------------------------- */


/* ============================================================
   INTEGRATED IMAGES — Phase 4
   Real <img> tags inside <figure> wrappers with aspect-ratio.
   These replace the .img-placeholder pattern from earlier phases.
   ============================================================ */

.img {
  display: block;
  margin: 0;
  width: 100%;
  border-radius: var(--radius-md, 6px);
  overflow: hidden;
  background-color: var(--c-surface-alt, #f1f5f9);
  position: relative;
}

.img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Aspect-ratio modifiers */
.img--16-9 { aspect-ratio: 16 / 9; }
.img--21-9 { aspect-ratio: 21 / 9; }
.img--4-5  { aspect-ratio: 4 / 5; }
.img--1-1  { aspect-ratio: 1 / 1; }

/* Fallback for browsers that don't support aspect-ratio (very rare in 2026, but defensive) */
@supports not (aspect-ratio: 1) {
  .img--16-9 { padding-bottom: 56.25%; }
  .img--21-9 { padding-bottom: 42.86%; }
  .img--4-5  { padding-bottom: 125%; }
  .img--1-1  { padding-bottom: 100%; }
  .img--16-9 img,
  .img--21-9 img,
  .img--4-5 img,
  .img--1-1 img {
    position: absolute;
    inset: 0;
  }
}

/* Slight subtle entry treatment — fade in once loaded */
.img img {
  opacity: 0;
  transition: opacity 280ms ease-out;
}
.img img[src] {
  opacity: 1;
}

/* Reduce motion preference respected */
@media (prefers-reduced-motion: reduce) {
  .img img {
    transition: none;
    opacity: 1;
  }
}


/* ============================================================
   VISUAL COMPONENT SYSTEM — Phase 4a
   Added to address "dull and text-heavy" feedback.
   Three families: pull statistics, callout boxes, photo placeholders,
   and chart containers.
   ============================================================ */

/* ---------- Pull statistics ----------
   A large numerical anchor with a small descriptive label.
   Used inline within long-form content to break up text and emphasize
   a single quantitative claim. */

.pull-stat {
  margin: 48px auto;
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  max-width: 680px;
}
.pull-stat__number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}
.pull-stat__number--accent { color: var(--c-accent-dark); }
.pull-stat__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  font-weight: 500;
  margin: 0;
}
.pull-stat__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  margin: 8px 0 0 0;
  line-height: 1.4;
}
.pull-stat--dual .pull-stat__sub {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 16px;
}

/* Side-by-side dual statistics */
.pull-stat--dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: 100%;
}
.pull-stat--dual .pull-stat__half {
  text-align: center;
}
.pull-stat--dual .pull-stat__arrow {
  text-align: center;
  font-size: 2rem;
  color: var(--c-muted);
  line-height: 1;
}
@media (max-width: 600px) {
  .pull-stat--dual {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pull-stat--dual .pull-stat__arrow {
    transform: rotate(90deg);
  }
}

/* ---------- Sidebar callout boxes ----------
   Gray-tinted aside with single concept explained in ~50 words.
   Used for parenthetical detail that supplements the main argument. */

.callout {
  margin: 32px 0;
  padding: 24px 28px;
  background-color: var(--c-surface-alt, #f1f5f9);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius-sm, 4px) var(--radius-sm, 4px) 0;
}
.callout__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-dark);
  font-weight: 600;
  margin: 0 0 8px 0;
}
.callout__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c-ink);
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.callout__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.55;
}
.callout__body p {
  margin: 0 0 8px 0;
}
.callout__body p:last-child { margin-bottom: 0; }

/* Warning variant — for cautionary content */
.callout--warning {
  background-color: #fef3c7;
  border-left-color: #b45309;
}
.callout--warning .callout__label { color: #92400e; }

/* ---------- Numbered step cards ----------
   For F.A.S.T. stages, 5-stage integration, etc.
   Grid of cards with a large numeral and a body. */

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.step-card {
  background-color: var(--c-surface, #ffffff);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md, 6px);
  padding: 28px 24px;
  position: relative;
}
.step-card__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-accent);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}
.step-card__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  font-weight: 500;
  margin: 0 0 6px 0;
}
.step-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--c-ink);
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.step-card__body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Photo placeholders ----------
   For real-person photographs that will be commissioned.
   Display as a warm-tinted box with a person silhouette + caption.
   Replace with <img> tags once photoshoot is complete. */

.photo-placeholder {
  display: block;
  background: linear-gradient(135deg, #faf7f2 0%, #ede4d8 100%);
  border-radius: var(--radius-md, 6px);
  overflow: hidden;
  position: relative;
  margin: 0;
  border: 1px dashed rgba(148, 163, 184, 0.35);
}
.photo-placeholder--4-5  { aspect-ratio: 4 / 5; }
.photo-placeholder--1-1  { aspect-ratio: 1 / 1; }
.photo-placeholder--3-4  { aspect-ratio: 3 / 4; }
.photo-placeholder--16-9 { aspect-ratio: 16 / 9; }

.photo-placeholder__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.photo-placeholder__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  opacity: 0.4;
  color: var(--c-ink-soft);
}
.photo-placeholder__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  margin: 0 0 4px 0;
  font-style: italic;
}
.photo-placeholder__meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.4;
  max-width: 90%;
}
.photo-placeholder__note {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--c-muted);
  margin-top: 16px;
  font-style: italic;
  opacity: 0.7;
}

/* ---------- Confidential variant ----------
   Used when a testimonial is intentionally anonymized. Drops the dashed
   "placeholder" border and styles the card as a finished design element,
   not a TODO. Pair with a lock icon and an "identity protected" note. */
.photo-placeholder--confidential {
  border: 1px solid var(--c-border, rgba(148, 163, 184, 0.25));
}
.photo-placeholder--confidential .photo-placeholder__icon {
  opacity: 0.55;
}
.photo-placeholder--confidential .photo-placeholder__name {
  font-style: normal;
  color: var(--c-ink);
}

/* ---------- Credential card ----------
   Replaces a photo with the substantive credentials of an anonymized client:
   role label, headline metric, engagement detail, confidentiality note.
   Same outer aspect/feel as photo-placeholder for layout continuity. */
.credential-card {
  display: block;
  background: linear-gradient(135deg, #faf7f2 0%, #ede4d8 100%);
  border-radius: var(--radius-md, 6px);
  border: 1px solid var(--c-border, rgba(148, 163, 184, 0.25));
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.credential-card__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  text-align: left;
}
.credential-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin: 0 0 14px 0;
}
.credential-card__metric {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--c-accent, #1d4f8b);
  margin: 0 0 4px 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.credential-card__metric-caption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--c-ink-soft);
  margin: 0 0 18px 0;
  line-height: 1.3;
}
.credential-card__role {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--c-ink);
  margin: 0 0 4px 0;
  line-height: 1.4;
}
.credential-card__engagement {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--c-muted);
  margin: 0 0 14px 0;
  line-height: 1.4;
}
.credential-card__note {
  font-family: var(--font-body);
  font-size: 0.66rem;
  color: var(--c-muted);
  font-style: italic;
  opacity: 0.75;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 10px;
}

/* ---------- Testimonial blocks ----------
   Real-person photo + pull quote + name/role */

.testimonial {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
  margin: 48px 0;
  padding: 0;
}
.testimonial__photo {
  width: 100%;
}
.testimonial__quote {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--c-accent);
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--c-ink);
  margin: 0 0 16px 0;
  font-weight: 400;
}
.testimonial__attribution {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  font-style: normal;
  margin: 0;
}
.testimonial__name {
  font-weight: 500;
  color: var(--c-ink);
  display: block;
}
.testimonial__role {
  color: var(--c-muted);
  display: block;
  margin-top: 2px;
}
@media (max-width: 720px) {
  .testimonial {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .testimonial__photo {
    max-width: 200px;
  }
  .testimonial__quote {
    padding-left: 20px;
  }
  .testimonial__text {
    font-size: 1.2rem;
  }
}

/* ---------- Chart container ----------
   Wrapper for inline SVG charts. Caption below. */

.chart {
  margin: 40px 0;
}
.chart__svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.chart__caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-muted);
  font-style: italic;
  text-align: center;
  margin: 12px 0 0 0;
  line-height: 1.4;
}
.chart__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-ink);
  margin: 0 0 8px 0;
  text-align: left;
}
.chart__subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-dark);
  margin: 0 0 16px 0;
  font-weight: 500;
}

/* SVG chart color tokens — referenced inside the inline SVGs */
.chart__svg {
  --chart-axis: #cbd5e1;
  --chart-grid: #e2e8f0;
  --chart-text: #475569;
  --chart-text-strong: #0f172a;
  --chart-baseline: #94a3b8;
  --chart-accent: #0EA5E9;
  --chart-accent-soft: #BAE6FD;
  --chart-target: #0F1F3D;
  --chart-positive: #059669;
  --chart-negative: #DC2626;
  --chart-warm: #F59E0B;
  --chart-cream: #FAF7F2;
}


/* ============================================================
   CALCULATOR UI — Phase 4c
   Editorial calculator components. Vanilla JS interactivity,
   no framework, no build step.
   ============================================================ */

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 48px 0 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .calculator { grid-template-columns: 1fr; gap: 32px; }
}

.calc-inputs {
  background: var(--c-surface-alt, #f1f5f9);
  border-radius: var(--radius-md, 6px);
  padding: 32px;
}

.calc-inputs__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-dark);
  font-weight: 600;
  margin: 0 0 4px 0;
}
.calc-inputs__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-ink);
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.calc-field {
  margin-bottom: 20px;
}
.calc-field:last-child { margin-bottom: 0; }

.calc-field__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.calc-field__hint {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-top: 4px;
  font-style: italic;
}
.calc-field__input,
.calc-field__select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-ink);
  background: white;
  border: 1px solid var(--c-border, #cbd5e1);
  border-radius: 4px;
  transition: border-color 150ms ease;
  box-sizing: border-box;
}
.calc-field__input:focus,
.calc-field__select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.calc-field__input--prefix {
  padding-left: 28px;
  background-image: linear-gradient(to right, transparent 0, transparent 14px, transparent 14px);
}

.calc-field__group {
  position: relative;
}
.calc-field__prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  color: var(--c-muted);
  font-size: 1rem;
  pointer-events: none;
}
.calc-field__group .calc-field__input { padding-left: 28px; }

.calc-results {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md, 6px);
  padding: 32px;
}
.calc-results__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-dark);
  font-weight: 600;
  margin: 0 0 4px 0;
}
.calc-results__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-ink);
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.calc-result {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}
.calc-result:last-of-type {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.calc-result__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}
.calc-result__value--accent { color: var(--c-accent-dark); }
.calc-result__value--secondary {
  font-size: 1.8rem;
  color: var(--c-ink-soft);
}

.calc-result__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.4;
}

.calc-formula {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--c-muted);
  font-style: italic;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--c-surface-alt, #f8fafc);
  border-radius: 4px;
  line-height: 1.5;
}

.calc-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.calc-cta__body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.calc-disclaimer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--c-muted);
  font-style: italic;
  line-height: 1.55;
  margin: 24px 0 0 0;
  padding: 16px 20px;
  background: var(--c-surface-alt);
  border-left: 2px solid var(--c-muted);
  border-radius: 0 4px 4px 0;
}

.calc-assumptions {
  margin: 32px 0;
}
.calc-assumptions__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  font-weight: 600;
  margin: 0 0 12px 0;
}
.calc-assumptions ul {
  margin: 0;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.calc-assumptions li { margin-bottom: 4px; }


/* PHASE 4f FIX (v2) — only the direct top-level <a> inherits .nav-link color.
   The earlier rule (.nav-link a) was too broad and made dropdown items white-on-white.
   The direct-child combinator (>) scopes the fix to the top-level nav label only. */
.nav-link > a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* Explicit color for dropdown items — defensive against future global a {} changes.
   Scoped to DESKTOP ONLY because on mobile the dropdown sits on a dark navy
   background and needs white text (handled in the mobile media query above). */
@media (min-width: 901px) {
  .nav-menu .nav-menu__item,
  .nav-menu a.nav-menu__item {
    color: var(--c-body);
    text-decoration: none;
  }
  .nav-menu .nav-menu__item:hover,
  .nav-menu a.nav-menu__item:hover {
    color: var(--c-accent-dark);
  }
}


/* PHASE 4f FIX — hide tagline below 1280px to allow nav items to fit on one line */
@media (max-width: 1280px) {
  .nav-brand__tagline { display: none; }
}


/* ============================================================
   HERO ROTATING CAROUSEL — Phase 4g
   Atmospheric backgrounds + rotating headline content.
   Slow 9-second cycle, cross-fade, Ken Burns zoom.
   Respects prefers-reduced-motion.
   ============================================================ */

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: #0F1F3D;
}

.hero-carousel__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  transform: scale(1.0);
}

.hero-carousel__slide.is-active {
  opacity: 1;
  animation: heroKenBurns 30s ease-in-out forwards;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.00); }
  100% { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide {
    transition: none;
    animation: none !important;
    transform: none !important;
  }
}

/* Dark gradient overlay — text readability against any background image */
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(15, 31, 61, 0.94) 0%,
    rgba(15, 31, 61, 0.82) 35%,
    rgba(15, 31, 61, 0.50) 65%,
    rgba(15, 31, 61, 0.22) 100%
  );
}

.hero-carousel__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-carousel__content {
  max-width: 700px;
}

.hero-carousel__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7DD3FC;
  font-weight: 600;
  margin: 0 0 18px 0;
}

/* Headline slides — only one visible at a time */
.hero-carousel__messages {
  position: relative;
  min-height: 360px;
}

.hero-carousel__message {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.0s ease-in-out, transform 1.0s ease-in-out;
  pointer-events: none;
}

.hero-carousel__message.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__message {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
}

.hero-carousel__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 22px 0;
}

.hero-carousel__title em {
  font-style: italic;
  color: #7DD3FC;
  font-weight: 400;
}

.hero-carousel__title strong {
  color: #FFFFFF;
  font-weight: 500;
}

.hero-carousel__title--quote {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  border-left: 3px solid #7DD3FC;
  padding-left: 24px;
  font-weight: 400;
}

.hero-carousel__subtitle {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin: 0 0 28px 0;
  max-width: 560px;
}

/* CTA — fixed below the rotating headlines, never moves */
.hero-carousel__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-carousel__cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--c-accent, #0EA5E9);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.hero-carousel__cta:hover {
  background: #0284C7;
}

.hero-carousel__cta--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
}
.hero-carousel__cta--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Indicator dots — bottom center */
.hero-carousel__indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-carousel__dot {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}
.hero-carousel__dot:hover,
.hero-carousel__dot:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}
.hero-carousel__dot.is-active {
  background: rgba(255, 255, 255, 0.95);
}

/* Pause button — bottom right, subtle */
.hero-carousel__pause {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hero-carousel__pause:hover,
.hero-carousel__pause:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  outline: none;
}

/* Insight panel — now in its own section below the hero */
.insight-section {
  background: #FAF8F3;
  padding: 64px 0;
  border-bottom: 1px solid var(--c-border, #E2E8F0);
}
.insight-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.insight-section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-accent-dark, #0284C7);
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: center;
}
.insight-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 400;
  color: #0F1F3D;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 36px 0;
  text-align: center;
}
.insight-section__title em {
  font-style: italic;
  color: var(--c-accent-dark, #0284C7);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-carousel {
    min-height: 660px;
  }
  .hero-carousel__inner {
    min-height: 660px;
    padding: 80px 20px 60px;
  }
  .hero-carousel__messages {
    min-height: 360px;
  }
  .hero-carousel__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-carousel__cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}


/* ============================================================
   PHASE 4h FIX — mobile nav menu height
   ============================================================
   Problem: .site-nav has backdrop-filter: blur(14px), which creates
   a containing block for position: fixed descendants. As a result,
   the mobile .nav-links panel (which uses position: fixed; top: var(--nav-h);
   bottom: 0;) was being positioned relative to the 64px-tall .site-nav
   rather than the viewport — collapsing to a 32px tall scrollable strip
   instead of filling the viewport below the nav.

   Fix: at mobile widths, the .nav-links panel uses height calc against
   100dvh (dynamic viewport height, accounts for iOS bottom URL bar)
   with 100vh fallback for older browsers. Explicit min-height ensures
   we never collapse. Internal scroll preserved as fallback for very
   long menus on very small viewports (still useful for landscape phones).
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    /* Override the buggy top:64/bottom:0 sizing — set explicit height */
    bottom: auto;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));  /* prefers dvh where supported */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));

    /* Give items room to breathe — large tap targets, comfortable density */
    padding: 8px 0 24px;

    /* Internal scroll only kicks in for the rare case of many open dropdowns
       on a very short landscape viewport. Hide the scrollbar visually while
       keeping it functional. */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Hide native scrollbar in WebKit/Blink to remove visual clutter
     (scroll still works via touch + arrow keys + wheel) */
  .nav-links::-webkit-scrollbar {
    width: 0;
    background: transparent;
  }
  .nav-links {
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* legacy IE/Edge */
  }

  /* Slightly tighter spacing per item so all 7 top-level items + one
     expanded dropdown fit on a typical 667px iPhone SE viewport */
  .nav-link {
    padding: 12px 24px;
  }

  /* Mobile dropdown items — tighter, indented */
  .nav-menu__item {
    padding: 10px 36px;
    font-size: 0.9rem;
  }
}

/* Even tighter spacing for very short viewports (landscape phones) */
@media (max-width: 900px) and (max-height: 500px) {
  .nav-link {
    padding: 8px 24px;
    font-size: 0.88rem;
  }
  .nav-menu__item {
    padding: 6px 36px;
    font-size: 0.85rem;
  }
}


/* ============================================================
   Mobile dropdown text color — final source-order override
   ============================================================
   Belt-and-braces fix to guarantee dropdown sub-items render as solid
   white on mobile, regardless of any other rule's specificity.
   Sits at end of file so source-order tiebreaks favor this rule. */
@media (max-width: 900px) {
  .nav-menu .nav-menu__item,
  .nav-menu a.nav-menu__item {
    color: #fff;
    text-decoration: none;
  }
  .nav-menu .nav-menu__item:hover,
  .nav-menu .nav-menu__item:focus,
  .nav-menu .nav-menu__item:active,
  .nav-menu a.nav-menu__item:hover,
  .nav-menu a.nav-menu__item:focus,
  .nav-menu a.nav-menu__item:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
  /* Suppress iOS Safari tap-highlight blue flash on touch */
  .nav-menu__item {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
  }
}
