/* ===== DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== LIGHT MODE (default) ===== */
:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:             #F8F7F3;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F2F1ED;
  --color-surface-offset: #EBE9E3;
  --color-divider:        #DDD9D1;
  --color-border:         #D0CCC4;

  /* Text */
  --color-text:           #1A1A2E;
  --color-text-muted:     #5C5C6D;
  --color-text-faint:     #9E9EA8;
  --color-text-inverse:   #FFFFFF;

  /* Primary — Navy */
  --color-primary:        #1B3A5C;
  --color-primary-hover:  #142D48;
  --color-primary-light:  #E8EDF3;

  /* Accent — Warm Gold */
  --color-accent:         #C5932E;
  --color-accent-hover:   #A87B22;
  --color-accent-light:   #FDF5E6;

  /* Success */
  --color-success:        #2E7D42;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.12);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:             #0F0F1A;
  --color-surface:        #1A1A2E;
  --color-surface-2:      #222236;
  --color-surface-offset: #16162A;
  --color-divider:        #2A2A40;
  --color-border:         #3A3A52;

  --color-text:           #E4E4EA;
  --color-text-muted:     #9E9EB0;
  --color-text-faint:     #6E6E82;
  --color-text-inverse:   #0F0F1A;

  --color-primary:        #6B9FD4;
  --color-primary-hover:  #5487BC;
  --color-primary-light:  rgba(107, 159, 212, 0.12);

  --color-accent:         #E0B050;
  --color-accent-hover:   #CCA040;
  --color-accent-light:   rgba(224, 176, 80, 0.12);

  --color-success:        #66BB6A;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0F0F1A;
    --color-surface:        #1A1A2E;
    --color-surface-2:      #222236;
    --color-surface-offset: #16162A;
    --color-divider:        #2A2A40;
    --color-border:         #3A3A52;
    --color-text:           #E4E4EA;
    --color-text-muted:     #9E9EB0;
    --color-text-faint:     #6E6E82;
    --color-text-inverse:   #0F0F1A;
    --color-primary:        #6B9FD4;
    --color-primary-hover:  #5487BC;
    --color-primary-light:  rgba(107, 159, 212, 0.12);
    --color-accent:         #E0B050;
    --color-accent-hover:   #CCA040;
    --color-accent-light:   rgba(224, 176, 80, 0.12);
    --color-success:        #66BB6A;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ===== GLOBAL STYLES ===== */

/* Default inline text links (e.g. links inside FAQ/body copy) to the gold
   accent instead of the browser's default purple/blue. Nav, footer, and
   button links already set their own color via more specific selectors
   below and are unaffected. */
a {
  color: var(--color-accent);
}

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

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .header__inner { padding-inline: var(--space-8); }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo-icon {
  width: 40px;
  height: 40px;
}

/* jbj-logo-full.svg is a single full lockup (mark + wordmark). Height-only
   sizing (width: auto) preserves the file's own aspect ratio everywhere it
   appears; header and footer get different heights via more specific
   selectors below, since the same .header__logo-img class is reused in both
   places. Vertical centering comes from the flex row it sits in
   (.header__inner, align-items: center) or, in the footer, from being the
   sole element at the top of a natural block stack — no extra centering
   rule needed there. */
.header__logo-img {
  height: 38px; /* mobile header default, ~36-40px range */
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .header__inner .header__logo-img {
    height: 52px; /* desktop header */
  }
}

.footer__brand .header__logo-img {
  height: 48px; /* footer, both breakpoints: mid-range of 40-56px */
}

/* Light/dark logo swap. jbj-logo-full.svg has navy text and reads poorly
   on the dark surface; jbj-logo-dark.svg (white text) is shown instead
   whenever the dark theme is active. Mirrors the same two rules used for
   the color tokens above: an explicit [data-theme="dark"] toggle, and a
   prefers-color-scheme fallback for when no toggle has been clicked yet. */
.header__logo-img--dark {
  display: none;
}

[data-theme="dark"] .header__logo-img--light {
  display: none;
}

[data-theme="dark"] .header__logo-img--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .header__logo-img--light {
    display: none;
  }

  :root:not([data-theme]) .header__logo-img--dark {
    display: block;
  }
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.2;
}

.header__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .header__nav { display: flex; }
}

.header__nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}

.header__nav a:hover {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-interactive);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary-light);
}

.btn--large {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

.btn--icon:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.btn--header-cta {
  display: none;
}

@media (min-width: 768px) {
  .btn--header-cta { display: inline-flex; }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 100;
  flex-direction: column;
  padding: var(--space-6);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-8);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  list-style: none;
}

.mobile-nav__links a {
  text-decoration: none;
  color: var(--color-accent);
  font-size: var(--text-xl);
  font-family: var(--font-display);
}

.mobile-nav__links a:hover {
  color: var(--color-accent-hover);
}

.mobile-nav__cta {
  margin-top: auto;
  padding-top: var(--space-8);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.hero__content {
  order: 2;
}

@media (min-width: 768px) {
  .hero__content { order: 1; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.03em;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__image {
  order: 1;
  position: relative;
}

@media (min-width: 768px) {
  .hero__image { order: 2; }
}

.hero__image img {
  border-radius: var(--radius-xl);
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* Tight crop wrapper: anchors the photo to its bottom edge so the
   third-party office branding at the top stays out of frame.
   Measured on Jeremy Hero 2.webp (924x1299): branding ends at 25.6% of
   image height, hair starts at 31.9%. This ratio hides the top 28.1%. */
.hero__image-crop {
  aspect-ratio: 0.99;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero__image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.hero__cta-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

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

/* ===== SECTION UTILITIES ===== */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section--alt {
  background: var(--color-surface);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section__overline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-inline: auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Featured row: the two core protection services lead, side by side. */
.services-grid--featured {
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid--featured { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid--featured { grid-template-columns: repeat(2, 1fr); }
}

.service-card--featured {
  border-top: 3px solid var(--color-accent);
  padding: var(--space-8);
}

/* Secondary row: supporting services, visually lighter. */
@media (min-width: 640px) {
  .services-grid--secondary { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid--secondary { grid-template-columns: repeat(4, 1fr); }
}

.service-card--secondary {
  padding: var(--space-5);
}

.service-card--secondary .service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
}

.service-card--secondary .service-card__title {
  font-size: var(--text-base);
}

/* ===== EMPLOYER BENEFITS AWARENESS ===== */
.employer-awareness__lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.employer-awareness__lead strong {
  color: var(--color-accent);
  font-weight: 700;
}

.employer-awareness__content {
  text-align: center;
}

.employer-awareness__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .employer-awareness__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.gap-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.gap-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gap-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(197, 147, 46, 0.12);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.gap-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.gap-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
/* Cards reuse .gap-card as-is for identical card treatment to the
   Employer Coverage Gap section (same background, border, radius,
   padding, hover lift). Only the grid and the numbered circle are new. */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.how-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #17294d;
  color: #b8925a;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

/* The requested navy/gold (#17294d, #b8925a) are fixed values, not theme
   tokens, so they don't adapt on their own. In dark mode, fall back to the
   site's dark-mode primary/accent tokens to stay legible against the dark
   surface, same pattern used for the header/footer logo swap. */
[data-theme="dark"] .how-card__number {
  background: var(--color-primary);
  color: var(--color-accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .how-card__number {
    background: var(--color-primary);
    color: var(--color-accent);
  }
}

.employer-awareness__cta {
  max-width: 640px;
  margin: 0 auto;
}

.employer-awareness__cta p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* ===== ABOUT / TWO-COL ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.about-grid__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-grid__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.about-grid__content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.about-grid__content p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.credentials-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--color-primary);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(197,147,46,0.15), transparent 60%);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-banner .btn--accent {
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-8);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.testimonial-card__stars {
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
}

.testimonial-card__quote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-card__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ===== RESOURCES ===== */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--content-default);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

.resource-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  overflow: hidden;
}

.resource-card__image {
  width: calc(100% + var(--space-6) * 2);
  max-width: none;
  margin: calc(var(--space-8) * -1) calc(var(--space-6) * -1) 0;
  aspect-ratio: 1600 / 859;
  object-fit: cover;
  object-position: top;
}

.resource-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}

.resource-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.resource-card--gated {
  border-top: 3px solid var(--color-accent);
}

/* MailerLite embedded form: best-effort match to the site's navy/gold system
   and fonts. MailerLite renders its own DOM/inline styles at runtime, so
   !important is needed to consistently win; for guaranteed pixel-level
   control, set colors directly in the form's MailerLite design editor. */
.ml-embedded {
  width: 100%;
  margin-top: var(--space-2);
}

.ml-embedded * {
  font-family: var(--font-body) !important;
}

.ml-embedded input[type="text"],
.ml-embedded input[type="email"] {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}

.ml-embedded button[type="submit"],
.ml-embedded .ml-form-embedSubmit button {
  background: var(--color-accent) !important;
  border-radius: var(--radius-md) !important;
  color: #FFFFFF !important;
  border: none !important;
}

.ml-embedded button[type="submit"]:hover,
.ml-embedded .ml-form-embedSubmit button:hover {
  background: var(--color-accent-hover) !important;
}

.ml-embedded a {
  color: var(--color-accent);
}

/* ===== LEGAL PAGES ===== */
.legal {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.legal__updated {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: var(--space-8);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

.legal p,
.legal li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal ul {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.legal li {
  margin-bottom: var(--space-2);
}

.legal li strong {
  color: var(--color-text);
}

.legal a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal a:hover {
  color: var(--color-primary-hover);
}

/* ===== A11Y ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: var(--content-narrow);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer-inner {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 36ch;
  line-height: 1.6;
}

.footer__col-title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

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

.footer__links li:not(:has(a)) {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}

.footer__disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer__bottom p, .footer__bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__bottom a {
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__bottom a:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}

.footer__social a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ===== PHONE LINK ===== */
.phone-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.phone-link:hover {
  text-decoration: underline;
}
