/* ===========================
   Whaterr Design System v2
   Navy + Gold + White
   Matching mockup design
   =========================== */

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

:root {
  /* Core Brand Colors */
  --navy-darkest: #0B1730;
  --navy-dark: #10213D;
  --navy-mid: #152846;
  --navy-light: #1C3054;
  --navy-text: #18233D;

  --gold: #D8A53A;
  --gold-light: #E0B64B;
  --gold-dark: #B8891E;
  --gold-bg: #F5E9C8;
  --gold-section: #E8C56A;

  --white: #FFFFFF;
  --off-white: #F7F8FB;
  --light-gray: #EEF0F5;
  --border-gray: #DEE3EB;
  --text-muted: #6E7684;
  --text-dark: #18233D;
  --text-body: #374151;

  --green-badge: #5B8C5A;
  --green-badge-light: #E8F3E8;
  --teal-accent: #2A8C82;

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

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Border Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.14);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);
  --shadow-card: 0 2px 12px rgba(11,23,48,0.08);

  --transition: all 0.25s ease;
}

/* ===========================
   Reset
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text-body); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===========================
   Container
   =========================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-xl); }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--sp-xl); }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-weight: 600; font-size: 0.9375rem;
  border-radius: var(--r-pill); border: 2px solid transparent;
  transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.0625rem; }

.btn-gold {
  background: var(--gold); color: var(--navy-darkest); border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(216,165,58,0.35);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(216,165,58,0.4); }

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

.btn-outline-navy {
  background: transparent; color: var(--navy-text); border-color: var(--border-gray);
}
.btn-outline-navy:hover { background: var(--light-gray); border-color: var(--navy-text); }

.btn-outline-gold {
  background: transparent; color: var(--gold-dark); border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold-bg); }

.btn-navy {
  background: var(--navy-darkest); color: var(--white); border-color: var(--navy-darkest);
}
.btn-navy:hover { background: var(--navy-mid); }

/* Text link CTA */
.link-gold { color: var(--gold-dark); font-weight: 600; font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-gold:hover { color: var(--gold); gap: 0.55rem; }

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy-darkest);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem var(--sp-xl);
  max-width: 1220px; margin: 0 auto;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: var(--navy-darkest);
  font-family: var(--font-sans);
  letter-spacing: -1px;
}
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--white); letter-spacing: -0.3px; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.82); border-radius: var(--r-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link .chevron { font-size: 0.7rem; transition: transform 0.2s; }
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md); padding: 0.5rem;
  min-width: 230px; opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 0.55rem 0.9rem; font-size: 0.875rem;
  color: rgba(255,255,255,0.8); border-radius: var(--r-sm);
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-dropdown .dropdown-cta { color: var(--gold); font-weight: 600; }
.nav-dropdown .dropdown-cta:hover { background: rgba(216,165,58,0.15); color: var(--gold-light); }

.nav-cta-btn { margin-left: var(--sp-md); }

/* Always hidden — only revealed inside .mobile-open on small screens */
.nav-mobile-cta { display: none; }

.mobile-toggle {
  display: none; color: var(--white); font-size: 1.4rem; padding: 0.4rem;
}

/* ===========================
   Hero — Homepage
   =========================== */
.hero-home {
  background: linear-gradient(160deg, var(--navy-darkest) 0%, var(--navy-mid) 60%, #0e2a45 100%);
  position: relative; overflow: hidden; min-height: 88vh;
  display: flex; align-items: center; padding: var(--sp-4xl) 0 var(--sp-3xl);
}

/* Decorative mesh lines background */
.hero-home::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(216,165,58,0.08) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(42,140,130,0.06) 0%, transparent 45%);
  pointer-events: none;
}

.hero-mesh {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-mesh svg { position: absolute; right: -60px; bottom: -40px; opacity: 0.18; width: 65%; }

.hero-home .container { position: relative; z-index: 1; text-align: center; }

.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-lg);
}

.hero-headline {
  font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 900;
  line-height: 1.02; letter-spacing: -0.02em; color: var(--white);
  margin-bottom: var(--sp-xl);
}

.hero-subtext {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 400;
  color: rgba(255,255,255,0.78); max-width: 660px; margin: 0 auto var(--sp-2xl);
  line-height: 1.65;
}
.hero-subtext strong { color: rgba(255,255,255,0.95); font-weight: 600; }

.hero-ctas { display: flex; align-items: center; justify-content: center; gap: var(--sp-md); flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  position: relative; z-index: 2;
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  margin: 0 auto; max-width: 1000px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  transform: translateY(-50%);
}
.stats-bar-item {
  padding: var(--sp-xl) var(--sp-lg); text-align: center;
  border-right: 1px solid var(--border-gray); position: relative;
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-item::after { display: none; }

.stat-icon { font-size: 1.3rem; color: var(--gold); margin-bottom: var(--sp-xs); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--navy-text); line-height: 1; margin-bottom: 0.35rem; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===========================
   Section Wrappers
   =========================== */
.section { padding: var(--sp-4xl) 0; }
.section-light { background: var(--off-white); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy-darkest); color: var(--white); }
.section-gold { background: linear-gradient(135deg, #D8A53A, #E8C56A); color: var(--navy-darkest); }

.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-dark);
  text-align: center; margin-bottom: var(--sp-md);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  color: var(--navy-text); text-align: center; line-height: 1.2;
  margin-bottom: var(--sp-sm);
}
.section-title-white { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem; color: var(--text-muted); text-align: center;
  max-width: 620px; margin: 0 auto var(--sp-3xl); line-height: 1.65;
}
.section-subtitle-white { color: rgba(255,255,255,0.75); }

/* ===========================
   Promises Cards
   =========================== */
.promises-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl);
}

.promise-card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border-gray); padding: var(--sp-2xl) var(--sp-xl);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.promise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.promise-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.promise-card.heal::before { background: var(--green-badge); }
.promise-card.grow::before { background: var(--teal-accent); }
.promise-card.earn::before { background: var(--gold); }

.promise-icon-wrap {
  width: 56px; height: 56px; border-radius: var(--r-md); margin: 0 auto var(--sp-lg);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.promise-card.heal .promise-icon-wrap { background: var(--green-badge-light); color: var(--green-badge); }
.promise-card.grow .promise-icon-wrap { background: #E3F6F4; color: var(--teal-accent); }
.promise-card.earn .promise-icon-wrap { background: #FDF4E3; color: var(--gold-dark); }

.promise-card h3 { font-size: 1.6rem; font-weight: 800; color: var(--navy-text); text-align: center; margin-bottom: var(--sp-sm); }
.promise-tagline { font-size: 0.95rem; color: var(--text-muted); text-align: center; font-style: italic; margin-bottom: var(--sp-lg); }
.promise-list { margin-bottom: var(--sp-lg); }
.promise-list li { font-size: 0.9rem; color: var(--text-body); padding: 0.3rem 0; text-align: center; }
.promise-cta { text-align: center; }

/* ===========================
   Product Ecosystem Grid
   =========================== */
.ecosystem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl);
}

.eco-card {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-lg); padding: var(--sp-2xl) var(--sp-xl);
  transition: var(--transition); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.eco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }

.eco-icon {
  font-size: 2.2rem; color: var(--navy-text); margin-bottom: var(--sp-lg);
  text-align: center;
}

.eco-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem; border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: var(--sp-sm);
  width: fit-content;
}
.eco-badge.coming-soon { background: #FDF4E3; color: var(--gold-dark); border: 1px solid var(--gold); }
.eco-badge.active { background: var(--green-badge-light); color: var(--green-badge); border: 1px solid var(--green-badge); }
.eco-badge.live { background: #E3EFF8; color: #2563EB; border: 1px solid #93c5fd; }

.eco-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-text); margin-bottom: var(--sp-sm); }
.eco-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--sp-lg); flex: 1; }
.eco-cta { margin-top: auto; }

/* ===========================
   Vision Quote Block
   =========================== */
.quote-block {
  background: var(--navy-darkest); padding: var(--sp-4xl) var(--sp-2xl);
  position: relative; overflow: hidden;
}
.quote-block::before {
  content: '"'; font-size: 18rem; font-family: var(--font-serif);
  position: absolute; top: -60px; left: 30px; opacity: 0.06;
  color: var(--gold); line-height: 1;
}
.quote-deco { width: 50px; height: 2px; background: var(--gold); margin: 0 auto var(--sp-xl); }
.quote-deco-right { width: 50px; height: 2px; background: var(--gold); margin: var(--sp-xl) auto 0; }
.quote-text {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 500;
  color: var(--white); text-align: center; line-height: 1.65;
  max-width: 900px; margin: 0 auto; position: relative; z-index: 1;
}
.quote-author { font-size: 1rem; color: var(--gold); font-weight: 600; text-align: center; margin-top: var(--sp-xl); }

/* ===========================
   Featured Content Cards (Homepage)
   =========================== */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }

.featured-card {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-lg); overflow: hidden; transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card-img {
  height: 180px; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.4);
  position: relative; overflow: hidden;
}
.featured-card-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-card-img .date-badge {
  position: absolute; top: var(--sp-md); left: var(--sp-md);
  background: var(--gold); color: var(--navy-darkest);
  padding: 0.25rem 0.6rem; border-radius: var(--r-sm);
  font-size: 0.75rem; font-weight: 700;
}
.featured-card-body { padding: var(--sp-xl); }
.content-tag {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: var(--sp-sm);
}
.tag-journal { background: #E3EEF8; color: #1D6FAB; }
.tag-event { background: #FDF4E3; color: var(--gold-dark); }
.tag-spotlight { background: var(--green-badge-light); color: var(--green-badge); }
.featured-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-text); margin-bottom: var(--sp-sm); line-height: 1.4; }
.featured-card-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: var(--sp-md); }

/* Therapist spotlight card */
.spotlight-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--teal-accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: var(--white);
  margin: 0 auto var(--sp-md);
}
.spotlight-name { font-size: 1.1rem; font-weight: 700; color: var(--navy-text); text-align: center; }
.spotlight-role { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: var(--sp-md); }

/* ===========================
   CTA Section
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, #E8C56A 100%);
  padding: var(--sp-4xl) 0; text-align: center;
}
.cta-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(11,23,48,0.6); margin-bottom: var(--sp-md); }
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy-darkest); margin-bottom: var(--sp-md); }
.cta-section p { font-size: 1.1rem; color: rgba(11,23,48,0.75); max-width: 580px; margin: 0 auto var(--sp-2xl); }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: var(--sp-md); flex-wrap: wrap; }

/* ===========================
   Footer
   =========================== */
.footer { background: var(--navy-darkest); padding: var(--sp-4xl) 0 var(--sp-xl); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-3xl); margin-bottom: var(--sp-3xl); }

.footer-brand .logo-text-footer { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: var(--sp-sm); }
.footer-brand .logo-icon-footer {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--gold); border-radius: 8px;
  font-size: 1.1rem; font-weight: 900; color: var(--navy-darkest); margin-bottom: var(--sp-md);
}
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: var(--sp-xl); }

.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: var(--sp-lg); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--white); }

.footer-newsletter { margin-bottom: var(--sp-2xl); }
.footer-newsletter h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: var(--sp-md); }
.newsletter-form { display: flex; gap: 0; border-radius: var(--r-pill); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); max-width: 480px; }
.newsletter-form input {
  flex: 1; padding: 0.75rem 1.25rem; background: rgba(255,255,255,0.08);
  border: none; color: var(--white); font-size: 0.9rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 0.75rem 1.5rem; background: var(--gold); color: var(--navy-darkest);
  font-weight: 700; font-size: 0.875rem; flex-shrink: 0; transition: var(--transition);
}
.newsletter-form button:hover { background: var(--gold-light); }

.social-links { display: flex; gap: var(--sp-sm); }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.social-links a:hover { background: var(--gold); color: var(--navy-darkest); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-xl); display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-md);
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: var(--sp-xl); }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===========================
   Page Heroes (inner pages)
   =========================== */
.page-hero {
  background: linear-gradient(160deg, var(--navy-darkest), var(--navy-mid));
  padding: var(--sp-4xl) 0 var(--sp-3xl); color: var(--white); text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(216,165,58,0.07) 0%, transparent 60%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .hero-eyebrow { margin-bottom: var(--sp-md); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: var(--sp-lg); line-height: 1.15; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.78); max-width: 680px; margin: 0 auto var(--sp-2xl); line-height: 1.65; }
.page-hero .hero-ctas { justify-content: center; }

/* ===========================
   General Components
   =========================== */

/* Info Cards */
.info-card {
  background: var(--white); border: 1px solid var(--border-gray);
  border-radius: var(--r-lg); padding: var(--sp-xl);
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.info-card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--light-gray); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: var(--sp-lg);
}
.info-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-text); margin-bottom: var(--sp-sm); }
.info-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Generic grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-xl); }

/* Verified badge */
.verified-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--green-badge-light); color: var(--green-badge);
  border: 1px solid var(--green-badge); padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700;
}

/* Tier badge */
.tier-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem; border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.tier-pill.parachute { background: #E8F3E8; color: var(--green-badge); border: 1px solid #c3d9c3; }
.tier-pill.launchpad { background: #FDF4E3; color: var(--gold-dark); border: 1px solid var(--gold); }
.tier-pill.copilot { background: #EEE8F8; color: #6B4FA0; border: 1px solid #c4b0e0; }

/* Forms */
.form-group { margin-bottom: var(--sp-lg); }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy-text); margin-bottom: var(--sp-xs); }
.form-control {
  width: 100%; padding: 0.75rem var(--sp-md);
  border: 1.5px solid var(--border-gray); border-radius: var(--r-md);
  font-size: 0.9375rem; font-family: inherit; color: var(--text-dark);
  background: var(--white); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,165,58,0.15); }
.form-control::placeholder { color: #B0B7C3; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: var(--sp-sm); }
.accordion-item { background: var(--white); border: 1px solid var(--border-gray); border-radius: var(--r-md); overflow: hidden; }
.accordion-trigger {
  width: 100%; padding: var(--sp-lg) var(--sp-xl); text-align: left;
  font-size: 0.9375rem; font-weight: 600; color: var(--navy-text);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: var(--transition); background: var(--white);
}
.accordion-trigger:hover { background: var(--off-white); }
.accordion-trigger .acc-icon { font-size: 0.8rem; transition: transform 0.25s; }
.accordion-trigger.open .acc-icon { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-body.open { max-height: 400px; }
.accordion-body p { padding: 0 var(--sp-xl) var(--sp-lg); font-size: 0.9375rem; color: var(--text-body); line-height: 1.7; }

/* Notification toast */
.toast {
  position: fixed; bottom: var(--sp-2xl); right: var(--sp-2xl); z-index: 9999;
  background: var(--white); border-radius: var(--r-lg); padding: var(--sp-lg) var(--sp-xl);
  box-shadow: var(--shadow-xl); border-left: 4px solid var(--green-badge);
  transform: translateY(20px); opacity: 0; transition: all 0.3s ease;
  max-width: 340px; font-size: 0.9375rem; color: var(--navy-text);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: #ef4444; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); }
  .stats-bar { grid-template-columns: repeat(3, 1fr); max-width: 700px; }
  .stats-bar-item:nth-child(3) { border-right: none; }
}

/* ── Tablet / large mobile ────────────────────── */
@media (max-width: 768px) {

  /* --- Spacing scale reduction --- */
  :root {
    --sp-4xl: 3.5rem;
    --sp-3xl: 2.5rem;
    --sp-2xl: 2rem;
  }

  /* --- Container padding --- */
  .container, .container-sm { padding: 0 var(--sp-lg); }

  /* --- Navbar --- */
  .mobile-toggle { display: block; }
  .nav-links, .nav-cta-btn { display: none; }
  .nav-container { padding: 0.75rem var(--sp-lg); }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-darkest);
    padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
    gap: 0.15rem;
    box-shadow: var(--shadow-lg);
    align-items: stretch;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 999;
  }

  /* Mobile CTA — show the "Join T.E.A.C.H" button at the bottom of open menu */
  .nav-links.mobile-open .nav-mobile-cta {
    display: block;
    margin: var(--sp-sm) 0 0;
  }
  .nav-links.mobile-open .nav-mobile-cta a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.7rem var(--sp-lg);
    background: var(--gold);
    color: var(--navy-darkest);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--r-md);
  }

  .nav-link { padding: 0.65rem 0.75rem; font-size: 0.9rem; }
  .nav-item { position: relative; }

  /* Dropdowns in mobile: always visible, indented */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 0.15rem 0 0.35rem 0.75rem;
    padding: 0.35rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-sm);
    min-width: unset;
  }
  .nav-dropdown a { font-size: 0.85rem; padding: 0.45rem 0.75rem; }

  /* Mobile CTA inside the open menu (last item) */
  .nav-links.mobile-open .nav-cta-inline {
    display: block;
    margin: var(--sp-sm) 0 0;
    text-align: center;
  }

  /* --- Hero --- */
  .hero-headline { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .hero-subtext { font-size: 1rem; padding: 0 var(--sp-sm); }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: var(--sp-sm); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-home { padding: var(--sp-3xl) 0 var(--sp-2xl); min-height: auto; }

  /* Stats bar — hide translateY, use regular flow */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    transform: none;
    margin: var(--sp-lg) auto;
    max-width: 95%;
    border-radius: var(--r-lg);
  }
  .stats-bar-item { padding: var(--sp-lg) var(--sp-md); }
  .stats-bar-item:nth-child(2) { border-right: none; }
  .stats-bar-item:nth-child(3) { border-right: 1px solid var(--border-gray); }
  .stat-num { font-size: 1.6rem; }

  /* --- Section headings --- */
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-subtitle { font-size: 0.95rem; margin-bottom: var(--sp-2xl); }
  .section { padding: var(--sp-3xl) 0; }

  /* --- Grids --- */
  .promises-grid, .ecosystem-grid, .featured-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* --- Promise cards --- */
  .promise-card { padding: var(--sp-xl) var(--sp-lg); }

  /* --- Eco cards --- */
  .eco-card { padding: var(--sp-xl) var(--sp-lg); }

  /* --- CTA section --- */
  .cta-section { padding: var(--sp-3xl) 0; }
  .cta-section h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cta-section p { font-size: 0.95rem; }
  .cta-btns { flex-direction: column; align-items: stretch; gap: var(--sp-sm); }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* --- Quote block --- */
  .quote-block { padding: var(--sp-3xl) var(--sp-lg); }
  .quote-text { font-size: clamp(1.1rem, 3.5vw, 1.4rem); }

  /* --- Page hero (inner pages) --- */
  .page-hero { padding: var(--sp-3xl) 0 var(--sp-2xl); }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .page-hero p { font-size: 0.95rem; }
  .page-hero .hero-ctas { flex-direction: column; align-items: stretch; gap: var(--sp-sm); }
  .page-hero .hero-ctas .btn { width: 100%; justify-content: center; }

  /* --- Buttons --- */
  .btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; }

  /* --- Footer --- */
  .footer { padding: var(--sp-3xl) 0 var(--sp-lg); }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--sp-sm); }
  .footer-legal { justify-content: center; gap: var(--sp-lg); }
  .newsletter-form { max-width: 100%; }

  /* --- Toast --- */
  .toast { right: var(--sp-lg); left: var(--sp-lg); max-width: none; bottom: var(--sp-lg); }
}

/* ── Small phones ─────────────────────────── */
@media (max-width: 480px) {
  :root {
    --sp-4xl: 2.5rem;
    --sp-3xl: 2rem;
    --sp-2xl: 1.75rem;
    --sp-xl: 1.5rem;
  }

  .container, .container-sm { padding: 0 var(--sp-md); }

  /* Stats bar: single col on very small screens */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-item:nth-child(5) { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--border-gray); }
  .stat-num { font-size: 1.4rem; }

  /* Hero */
  .hero-headline { font-size: clamp(2rem, 11vw, 3rem); }

  /* Promise cards */
  .promise-card { padding: var(--sp-lg) var(--sp-md); }
  .promise-card h3 { font-size: 1.3rem; }

  /* Page hero */
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Footer */
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  /* Nav logo */
  .logo-img { height: 36px; }
}