/* ============================================================
   EmployWell — Shared Stylesheet
   Palette pulled from the Savings Report PDF
   ============================================================ */

:root {
  /* Official EmployWell brand palette */
  --navy-900: #0B3F81;   /* royal blue - primary dark (text use) */
  --navy-800: #114A94;
  --navy-700: #1A57A5;
  --navy-deep: #2D4866;  /* muted slate-navy - dark backgrounds */
  --slate-700: #405965;  /* slate gray - logo "Employ" + secondary dark */
  --slate-600: #526B78;
  --teal-500: #299DB9;   /* cyan-teal - primary accent + logo "Well" */
  --teal-400: #3DB0CC;
  --teal-300: #67C2D6;
  --teal-100: #B8DEE8;
  --teal-50:  #E3F2F6;
  --ink-900:  #1A2B3B;
  --ink-700:  #2E3F4D;
  --ink-500:  #5B6B7C;
  --ink-400:  #8B97A3;
  --ink-200:  #D9DEE4;
  --bg-0:     #FFFFFF;
  --bg-1:     #F4F6FA;
  --bg-2:     #EAECF2;   /* brand light gray */
  --border:   #E2E6EC;
  --shadow-sm: 0 1px 2px rgba(11,63,129,0.05), 0 2px 6px rgba(11,63,129,0.05);
  --shadow-md: 0 6px 20px rgba(11,63,129,0.09);
  --radius:   14px;
  --radius-lg: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-500); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', 'Source Serif Pro', Georgia, serif;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-weight: 400;
  text-wrap: balance;
  margin: 0 0 16px;
}
h1 { font-size: clamp(36px, 5.2vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 16px; color: var(--ink-500); }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-500);
  font-weight: 600;
  margin-bottom: 14px;
}

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

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
/* Tighter logo-full sizing inside the nav so it doesn't blow up the header height */
.nav-inner .logo-full { font-size: 22px; gap: 3px; }
.nav-inner .logo-full .logo-sub { font-size: 0.62em; }
.nav-inner .logo-full .logo-sub::after { width: 34px; height: 2.5px; }
.logo {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  color: var(--slate-700);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: flex-start;
}
.logo .logo-row { color: var(--slate-700); }
.logo .logo-row > span { color: var(--teal-500); font-weight: 800; }
.logo .tm {
  font-size: 0.42em;
  font-weight: 700;
  font-style: normal;
  color: var(--teal-500);
  margin-left: 2px;
  letter-spacing: 0;
  line-height: 1;
  padding-top: 0.25em;
}
/* Full logo treatment (footer) — stacks "Program" + accent bar below */
.logo-full {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 6px;
}
.logo-full .logo-row { display: inline-flex; align-items: flex-start; }
.logo-full .logo-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7em;
  font-style: italic;
  font-weight: 700;
  color: var(--teal-400);
  letter-spacing: -0.005em;
  padding-left: 2px;
}
.logo-full .logo-sub::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--slate-700);
  border-radius: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--teal-500); }
.nav-links a.active { color: var(--teal-500); }
/* Nav buttons override — always white text regardless of hover/active state */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary.active,
.nav-links a.btn-primary:visited,
.nav-links a.btn-primary:focus {
  color: white;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-500);
  color: white;
  box-shadow: 0 4px 14px rgba(41,157,185,0.32);
}
.btn-primary:hover {
  background: var(--teal-400);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(41,157,185,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--ink-200);
}
.btn-secondary:hover {
  background: var(--bg-1);
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-dark {
  background: var(--navy-900);
  color: white;
}
.btn-dark:hover { background: var(--navy-800); color: white; }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-arrow::after { content: "→"; font-weight: 400; }

/* ========== Hero ========== */
.hero {
  padding: 24px 0 40px;
  background:
    radial-gradient(1200px 500px at 70% 0%, rgba(41,157,185,0.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-1) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 16px; }
.hero .lede {
  font-size: 20px;
  color: var(--ink-500);
  max-width: 560px;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero .trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-50);
  color: var(--navy-900);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero .trust span::before {
  content: "✓";
  color: var(--teal-500);
  font-weight: 800;
  font-size: 12px;
}

/* Hero stat card (used on home) */
.stat-card {
  background: var(--navy-900);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(41,157,185,0.28);
}
.stat-card .label {
  color: var(--teal-400);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-card .number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 76px;
  font-weight: 400;
  color: white;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.stat-card .detail {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.stat-card .divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 28px 0;
}
.stat-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}
.stat-card .row .k { color: rgba(255,255,255,0.7); }
.stat-card .row .v { color: white; font-weight: 600; }

/* Savings Calculator (homepage hero variant of stat-card) */
.stat-card.calc {
  position: relative;
  z-index: 1;
}
.stat-card.calc .calc-input-group {
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.stat-card.calc .calc-input-group label {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.stat-card.calc .calc-input-group input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stat-card.calc .calc-input-group input::-webkit-outer-spin-button,
.stat-card.calc .calc-input-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stat-card.calc .calc-input-group input::placeholder {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.stat-card.calc .calc-input-group input:focus {
  border-color: var(--teal-400);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(41,157,185,0.22);
}
.stat-card.calc .number {
  font-size: 64px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.stat-card.calc .calc-note {
  background: rgba(41,157,185,0.14);
  border: 1px solid rgba(61,176,204,0.35);
  color: rgba(255,255,255,0.92);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 18px;
  margin-bottom: 4px;
}
.stat-card.calc .calc-note strong {
  color: var(--teal-400);
  font-weight: 700;
}
.stat-card.calc .calc-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 22px;
}
.stat-card.calc .calc-fine {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  letter-spacing: 0.005em;
}
@media (max-width: 700px) {
  .stat-card.calc .number { font-size: 48px; }
}

/* ========== Generic Sections ========== */
section { padding: 88px 0; }
section.alt { background: var(--bg-1); }
section.feature {
  background: linear-gradient(135deg, var(--teal-50) 0%, #EAF4F7 60%, #F0F8FA 100%);
  position: relative;
  overflow: hidden;
}
section.feature::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,157,185,0.18) 0%, rgba(41,157,185,0) 70%);
  pointer-events: none;
}
section.feature::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,63,129,0.08) 0%, rgba(11,63,129,0) 70%);
  pointer-events: none;
}
section.feature > .container { position: relative; z-index: 1; }
section.feature .eyebrow { color: var(--navy-900); }
section.dark {
  background: var(--navy-deep);
  color: white;
}
section.dark h1, section.dark h2, section.dark h3 { color: white; }
section.dark p { color: rgba(255,255,255,0.75); }
section.dark .eyebrow { color: var(--teal-400); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head p { font-size: 18px; }

/* ========== Cards / Grids ========== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}
.card h3 { font-size: 22px; margin-bottom: 12px; }

.pillar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar-card .pillar-head {
  background: var(--navy-900);
  color: white;
  padding: 18px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.pillar-card .pillar-body { padding: 28px 24px; }
.pillar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pillar-card li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--ink-700);
  font-size: 15px;
  border-bottom: 1px solid var(--bg-2);
}
.pillar-card li:last-child { border-bottom: none; }
.pillar-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 2px;
  background: var(--teal-500);
}

/* Step cards (how it works) */
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-500);
  color: white;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }

/* ========== Stats Strip ========== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-strip .stat {
  background: white;
  padding: 32px 24px;
  text-align: center;
}
.stat-strip .stat .big {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-strip .stat .label {
  font-size: 13px;
  color: var(--ink-500);
}

/* ========== Industries / Tier lists ========== */
.tier {
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  border-left: 4px solid;
}
.tier-1 { background: #EDF9F3; border-color: #1FB46A; }
.tier-2 { background: #EEF4FC; border-color: #3E7BD9; }
.tier-3 { background: #FFF8E8; border-color: #E5A629; }
.tier h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  margin-bottom: 6px;
}
.tier-1 h3 { color: #0F7F47; }
.tier-2 h3 { color: #2E5DAA; }
.tier-3 h3 { color: #A8741B; }
.tier p { margin-bottom: 14px; font-size: 15px; }
.tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tier-list li {
  background: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.06);
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  background: white;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.industry-tag:hover {
  border-color: var(--teal-500);
  color: var(--teal-500);
}

.not-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.not-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink-500);
  font-size: 15px;
}
.not-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 10px;
  color: #E06666;
  font-weight: 700;
}

/* ========== Quote block ========== */
.quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.3;
  color: white;
  margin: 0 0 20px;
  font-style: italic;
  font-weight: 400;
}
.quote blockquote::before { content: "“"; }
.quote blockquote::after { content: "”"; }
.quote .attrib {
  color: var(--teal-400);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ========== Final CTA strip ========== */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(41,157,185,0.20);
  top: -180px; right: -120px;
}
.cta-strip::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(41,157,185,0.14);
  bottom: -150px; left: -80px;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: white; margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }

/* ========== Footer ========== */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
footer h4 {
  color: white;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
footer .logo {
  color: rgba(255,255,255,0.92);
  font-size: 26px;
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 800;
}
footer .logo span { color: var(--teal-400); font-weight: 800; }
/* Footer logo: fully white on the navy footer background */
footer .logo { color: #ffffff; }
footer .logo .logo-row { color: #ffffff; }
footer .logo .logo-row > span { color: #ffffff; }
footer .logo-full .logo-sub { color: #ffffff; }
footer .logo-full .logo-sub::after { background: #ffffff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--teal-400); }
footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* ========== Utilities ========== */
.center { text-align: center; }
.mt-md { margin-top: 28px; }
.hidden-mobile { display: block; }

/* ========== Responsive ========== */
/* ========== Hero Pillar Nav (pillars.html) ========== */
.hero-pillar-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-700);
  transition: transform 0.2s ease;
}
.hero-pillar-link:hover { transform: translateY(-3px); }
.hero-pillar-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hero-pillar-link:hover .hero-pillar-icon {
  background: var(--teal-100);
  box-shadow: 0 6px 18px rgba(41,157,185,0.22);
}
.hero-pillar-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-700);
  transition: color 0.2s ease;
}
.hero-pillar-link:hover .hero-pillar-label { color: var(--teal-500); }
#physical, #mental, #emotional { scroll-margin-top: 90px; }

/* Prevent accidental horizontal scroll on all devices */
html, body { overflow-x: hidden; }

@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .not-list { grid-template-columns: 1fr 1fr; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { padding: 40px 24px; }
  /* Ensure all cards get sensible padding when stacked */
  .card { padding: 28px; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 0; }
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
  /* Compact the logo inside nav on small screens */
  .nav-inner .logo-full { font-size: 20px; gap: 2px; }
  .nav-inner .logo-full .logo-sub { font-size: 0.58em; gap: 8px; }
  .nav-inner .logo-full .logo-sub::after { width: 24px; height: 2px; }
  /* Tighten nav button so it fits next to the logo */
  .nav-links a.btn { padding: 10px 14px; font-size: 13px; }
  .nav-links a.btn.btn-arrow::after { content: ""; }
  section { padding: 56px 0; }
  .stat-strip { grid-template-columns: 1fr; }
  .not-list { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-card { padding: 28px; }
  .stat-card .number { font-size: 56px; }
  /* Calculator: touch-friendly input */
  .stat-card.calc .calc-input-group input { padding: 14px 16px; font-size: 16px; min-height: 48px; }
  .stat-card.calc .number { font-size: 48px; }
  /* CTA strip tighter on mobile */
  .cta-strip { padding: 36px 20px; border-radius: var(--radius); }
  .cta-strip h2 { font-size: 28px; }
  .cta-strip p { font-size: 16px; }
  /* Section heads tighter on mobile */
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  /* Footer logo a bit smaller on mobile */
  footer .logo { font-size: 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  /* Shrink the nav logo's "Program" label further on the tiniest screens */
  .nav-inner .logo-full { font-size: 18px; }
  .nav-inner .logo-full .logo-sub { font-size: 0.54em; gap: 6px; }
  .nav-inner .logo-full .logo-sub::after { width: 18px; }
  /* Tighter hero spacing on phones */
  .hero { padding: 48px 0 40px; }
  /* Quote block sized for phones */
  .quote blockquote { font-size: 22px; }
  /* Step card in how-it-works */
  .step { padding: 24px 20px; }
  /* Card padding compact */
  .card { padding: 24px; }
  .stat-card { padding: 24px; }
  .stat-card .number { font-size: 44px; }
  .stat-card.calc .number { font-size: 40px; }
}

/* ========== Mobile Nav Toggle (hamburger) ========== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-900);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 6px;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, background 0.2s ease;
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after  { top:  7px; }
.nav.open .nav-toggle .bar { background: transparent; }
.nav.open .nav-toggle .bar::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle .bar::after  { top: 0; transform: rotate(-45deg); }

/* Mobile nav menu (collapses below 960px into a slide-down panel) */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .nav-inner > nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .nav.open .nav-inner > nav {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }
  .nav-links li {
    width: 100%;
    margin: 0 !important;
  }
  .nav-links a {
    display: block;
    padding: 14px 28px;
    font-size: 16px;
    border-bottom: 1px solid var(--bg-2);
    min-height: 48px;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a.btn {
    margin: 12px 24px 4px;
    padding: 14px 24px;
    text-align: center;
    justify-content: center;
    border-bottom: none;
    min-height: 48px;
  }
  /* Override desktop overflow rules so all items show inside the mobile menu */
  .nav-links .hide-sm { display: block; }
  .nav-links li:nth-child(2) { display: block; }

  /* Prevent body scroll while menu is open */
  body.nav-locked { overflow: hidden; }
}

/* ========== Mobile Stack Order (grid-2 helper) ========== */
/* Apply .flip-mobile to a .grid-2 wrapper when its first child is a card/visual
   that should appear AFTER the text content on mobile. */
@media (max-width: 960px) {
  .grid-2.flip-mobile > :first-child { order: 2; }
}
