/* ============================================
   x10edu — Global Styles
   Colors: #80DDD9 teal | #473FA8 purple | #EFEEEE light | #E8693A orange
   ============================================ */

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

:root {
  --teal:    #80DDD9;
  --purple:  #473FA8;
  --light:   #EFEEEE;
  --orange:  #E8693A;
  --dark:    #1A1740;
  --mid:     #2E2A6E;
  --gray:    #6B7280;
  --gray-lt: #F4F4F6;
  --white:   #FFFFFF;

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(71,63,168,0.10);
  --shadow-lg: 0 12px 48px rgba(71,63,168,0.18);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 16px; display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  color: var(--dark); line-height: 1.18; margin-bottom: 20px;
}
.section-sub {
  font-size: 18px; color: var(--gray); max-width: 640px; line-height: 1.7;
  margin-bottom: 56px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--purple); color: var(--white); border-color: var(--purple);
}
.btn-primary:hover { background: var(--mid); border-color: var(--mid); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--purple); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-lt); }
.btn-outline {
  background: transparent; color: var(--purple); border-color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--dark); border-color: var(--teal); }
.btn-teal:hover { background: #5EC9C5; border-color: #5EC9C5; transform: translateY(-2px); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(71,63,168,0.08);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-mark { width: 40px; height: 40px; }
.logo-text {
  font-size: 22px; font-weight: 900; color: var(--purple);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--dark); font-weight: 600;
  font-size: 13px; padding: 8px 10px; border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--purple); background: rgba(71,63,168,0.07); }
.nav-links a.active { color: var(--purple); }
.nav-cta {
  background: var(--purple) !important; color: var(--white) !important;
  border-radius: 50px !important; padding: 10px 16px !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--mid) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 60%, #3D3690 100%);
  overflow: hidden; padding-top: 72px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shapes { position: absolute; inset: 0; }

.shape { position: absolute; opacity: 0.12; }
.shape-circle {
  width: 320px; height: 320px; border-radius: 50%;
  border: 3px solid var(--teal);
  top: -60px; right: 8%;
  animation: floatA 8s ease-in-out infinite;
}
.shape-square {
  width: 180px; height: 180px;
  background: var(--light);
  top: 15%; right: 20%;
  animation: floatB 10s ease-in-out infinite;
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 155px solid var(--orange);
  opacity: 0.15;
  bottom: 15%; right: 10%;
  animation: floatA 12s ease-in-out infinite reverse;
}
.shape-plus {
  font-size: 120px; font-weight: 900; color: var(--teal);
  bottom: 20%; left: 5%; line-height: 1;
  animation: floatB 9s ease-in-out infinite;
}
.shape-dot {
  border-radius: 50%; background: var(--teal);
}
.s1 { width: 8px; height: 8px; top: 30%; left: 20%; opacity: 0.4; }
.s2 { width: 14px; height: 14px; top: 60%; left: 35%; opacity: 0.25; }
.s3 { width: 6px; height: 6px; top: 45%; right: 40%; opacity: 0.35; }

@keyframes floatA {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(3deg); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(16px) rotate(-2deg); }
}

.hero-content {
  position: relative; z-index: 2;
  padding: 80px 24px;
  max-width: 720px;
}
.hero-tag {
  display: inline-block; background: rgba(128,221,217,0.2);
  color: var(--teal); font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  border: 1px solid rgba(128,221,217,0.3);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(42px, 6vw, 80px); font-weight: 900;
  color: var(--white); line-height: 1.06;
  margin-bottom: 24px; letter-spacing: -1px;
}
.hero-title .highlight { color: var(--teal); }
.hero-sub {
  font-size: 18px; color: rgba(239,238,238,0.8);
  line-height: 1.7; max-width: 560px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-actions .btn-primary { background: var(--teal); border-color: var(--teal); color: var(--dark); }
.hero-actions .btn-primary:hover { background: #5EC9C5; border-color: #5EC9C5; }
.hero-actions .btn-ghost { color: rgba(239,238,238,0.85); }
.hero-actions .btn-ghost:hover { background: rgba(239,238,238,0.1); color: var(--white); }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 36px; font-weight: 900; color: var(--white);
  line-height: 1; letter-spacing: -1px;
}
.stat-label { font-size: 13px; color: rgba(239,238,238,0.6); font-weight: 600; margin-top: 4px; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(239,238,238,0.4); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700; z-index: 2;
  animation: floatA 2.5s ease-in-out infinite;
}

/* ============================================
   WHAT WE DO — CARDS GRID
   ============================================ */
.what { background: var(--gray-lt); }
.what .section-title { text-align: center; }
.what .section-label { text-align: center; display: block; }
.what .section-sub { text-align: center; margin: 0 auto 56px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* 7-card home grid: first row 4, second row 3 centered */
.cards-grid .card:nth-child(5),
.cards-grid .card:nth-child(6),
.cards-grid .card:nth-child(7) {
  grid-column: span 1;
}
@supports (grid-template-columns: subgrid) {
  /* browsers that support subgrid get the centered row automatically */
}
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px; text-decoration: none; color: inherit;
  border: 1.5px solid rgba(71,63,168,0.06);
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}
.card-accent-teal::before { background: var(--teal); }
.card-accent-purple::before { background: var(--purple); }
.card-accent-orange::before { background: var(--orange); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon { width: 48px; height: 48px; margin-bottom: 4px; }
.card-icon svg { width: 100%; height: 100%; }
.card-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray);
}
.card h3 { font-size: 20px; font-weight: 800; color: var(--dark); line-height: 1.25; }
.card p { font-size: 15px; color: var(--gray); line-height: 1.65; flex: 1; }
.card-link { font-size: 14px; font-weight: 700; color: var(--purple); margin-top: 8px; }
.card:hover .card-link { text-decoration: underline; }

/* ============================================
   PPP SECTION
   ============================================ */
.ppp-section { background: var(--white); }
.ppp-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.ppp-diagram {
  position: relative; width: 360px; height: 360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 16px; padding: 48px;
}
.ppp-node {
  background: var(--gray-lt); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; font-weight: 800; color: var(--dark);
  padding: 16px; border: 1.5px solid rgba(71,63,168,0.1);
  transition: all var(--transition);
}
.ppp-node small { font-weight: 600; color: var(--gray); font-size: 11px; margin-top: 2px; }
.ppp-node.public { background: rgba(128,221,217,0.12); border-color: var(--teal); }
.ppp-node.private { background: rgba(71,63,168,0.08); border-color: var(--purple); }
.ppp-node.schools { background: rgba(232,105,58,0.1); border-color: var(--orange); }
.ppp-node.community { background: rgba(71,63,168,0.06); border-color: rgba(71,63,168,0.3); }
.ppp-node.center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--dark); border-color: var(--teal); z-index: 2;
  box-shadow: 0 0 0 8px rgba(128,221,217,0.12);
}

.ppp-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 32px 0 40px; }
.ppp-list li { display: flex; align-items: center; gap: 16px; font-size: 16px; color: var(--dark); font-weight: 600; }
.ppp-bullet {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple); color: var(--white);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   QUOTE
   ============================================ */
.quote-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  padding: 80px 0;
}
.pull-quote {
  font-size: clamp(22px, 3.5vw, 38px); font-weight: 700;
  color: var(--white); text-align: center;
  line-height: 1.4; max-width: 800px; margin: 0 auto;
  font-style: normal; position: relative;
}
.quote-mark {
  font-size: 120px; color: var(--teal); line-height: 0.5;
  display: block; text-align: center; margin-bottom: 16px; opacity: 0.6;
}
.pull-quote cite {
  display: block; font-size: 16px; font-weight: 600;
  color: var(--teal); margin-top: 24px; font-style: normal; opacity: 0.85;
}

/* ============================================
   UPSTREAM PREVIEW
   ============================================ */
.upstream-preview { background: var(--gray-lt); }
.upstream-cards {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 40px;
}
.upstream-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; border: 1.5px solid rgba(71,63,168,0.07);
  display: flex; flex-direction: column; gap: 12px;
  transition: all var(--transition);
}
.upstream-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.upstream-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
}
.upstream-card h4 { font-size: 17px; font-weight: 800; color: var(--dark); line-height: 1.35; }
.upstream-card p { font-size: 14px; color: var(--gray); line-height: 1.65; flex: 1; }
.upstream-link { font-size: 14px; font-weight: 700; color: var(--purple); text-decoration: none; }
.upstream-link:hover { text-decoration: underline; }
.upstream-cta { display: flex; gap: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: var(--light); padding: 72px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 80px; padding-bottom: 64px;
}
.footer .logo-text { color: var(--white); }
.footer-tagline {
  font-size: 13px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 12px;
}
.footer-desc { font-size: 14px; color: rgba(239,238,238,0.55); margin-top: 12px; line-height: 1.65; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: rgba(239,238,238,0.65); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(239,238,238,0.1); padding: 20px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(239,238,238,0.4);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.page-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero .hero-tag { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  color: var(--white); line-height: 1.1; margin-bottom: 20px;
}
.page-hero h1 .highlight { color: var(--teal); }
.page-hero p {
  font-size: 18px; color: rgba(239,238,238,0.78);
  max-width: 600px; line-height: 1.7; margin-bottom: 36px;
}

/* ============================================
   FEATURE ROWS
   ============================================ */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  padding: 80px 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual {
  background: var(--gray-lt); border-radius: var(--radius);
  aspect-ratio: 4/3; display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative;
}
.feature-visual .fv-icon {
  width: 120px; height: 120px; opacity: 0.3;
}
.feature-copy .section-label { display: block; margin-bottom: 12px; }
.feature-copy h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }
.feature-copy p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.feature-copy ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.feature-copy ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--dark); font-weight: 600;
}
.feature-copy ul li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 2px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-section { background: var(--gray-lt); }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; border: 1.5px solid rgba(71,63,168,0.07);
  transition: all var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-num {
  font-size: 48px; font-weight: 900; color: rgba(71,63,168,0.12);
  line-height: 1; margin-bottom: 12px; font-family: var(--font);
}
.service-card h3 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--gray); line-height: 1.65; }

/* ============================================
   CONSULTATION TIERS
   ============================================ */
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tier-card {
  border-radius: var(--radius); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 20px;
  border: 2px solid rgba(71,63,168,0.1);
  transition: all var(--transition); background: var(--white);
  position: relative;
}
.tier-card.featured {
  background: var(--purple); color: var(--white);
  border-color: var(--purple); transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.tier-card:hover:not(.featured) { border-color: var(--purple); box-shadow: var(--shadow); }
.tier-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--dark);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 16px; border-radius: 50px;
}
.tier-icon { font-size: 40px; }
.tier-name { font-size: 22px; font-weight: 900; }
.tier-card.featured .tier-name { color: var(--white); }
.tier-tagline { font-size: 14px; opacity: 0.75; }
.tier-price { font-size: 28px; font-weight: 900; }
.tier-price span { font-size: 15px; font-weight: 600; opacity: 0.6; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier-features li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.tier-features li::before { content: '✓'; font-weight: 900; color: var(--teal); flex-shrink: 0; }
.tier-card.featured .tier-features li::before { color: var(--teal); }

/* ============================================
   UPSTREAM PAGE
   ============================================ */
.upstream-hero-sub { color: var(--teal); font-weight: 800; font-size: 14px; letter-spacing: 0.05em; }
.posts-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.post-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1.5px solid rgba(71,63,168,0.07);
  transition: all var(--transition); display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
.post-thumb.policy { background: linear-gradient(135deg, rgba(71,63,168,0.15), rgba(71,63,168,0.05)); }
.post-thumb.innovation { background: linear-gradient(135deg, rgba(128,221,217,0.2), rgba(128,221,217,0.05)); }
.post-thumb.equity { background: linear-gradient(135deg, rgba(232,105,58,0.15), rgba(232,105,58,0.05)); }
.post-thumb.systems { background: linear-gradient(135deg, rgba(71,63,168,0.1), rgba(128,221,217,0.1)); }
.post-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 12px; align-items: center; }
.post-cat {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
}
.post-date { font-size: 12px; color: var(--gray); }
.post-body h3 { font-size: 17px; font-weight: 800; color: var(--dark); line-height: 1.35; }
.post-body p { font-size: 14px; color: var(--gray); line-height: 1.65; flex: 1; }
.post-link { font-size: 14px; font-weight: 700; color: var(--purple); text-decoration: none; margin-top: 4px; }
.post-link:hover { text-decoration: underline; }

.subscribe-section {
  background: linear-gradient(135deg, var(--dark), var(--mid));
  padding: 80px 0; text-align: center;
}
.subscribe-section h2 { color: var(--white); font-size: 36px; margin-bottom: 16px; }
.subscribe-section p { color: rgba(239,238,238,0.7); font-size: 18px; max-width: 500px; margin: 0 auto 36px; }
.subscribe-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.subscribe-form input {
  flex: 1; padding: 14px 20px; border-radius: 50px;
  border: none; font-family: var(--font); font-size: 15px;
  outline: none;
}
.subscribe-form .btn { flex-shrink: 0; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; margin-bottom: 20px;
}
.breadcrumb a { color: rgba(239,238,238,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: rgba(239,238,238,0.3); }
.breadcrumb strong { color: var(--teal); }

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--teal); padding: 72px 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: var(--dark); max-width: 560px; }
.cta-band .btn-primary { background: var(--dark); border-color: var(--dark); }
.cta-band .btn-primary:hover { background: var(--mid); border-color: var(--mid); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ppp-inner { grid-template-columns: 1fr; gap: 48px; }
  .ppp-diagram { margin: 0 auto; }
  .tiers-grid { grid-template-columns: 1fr; gap: 32px; }
  .tier-card.featured { transform: none; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .upstream-cards { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .hero-stats { gap: 28px; }
  /* --- Hamburger toggle visible + X transform --- */
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --- Backdrop --- */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 998;
    background: rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease-out;
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }

  /* --- Drawer panel --- */
  .nav-links {
    visibility: hidden;
    display: flex; flex-direction: column; gap: 0; list-style: none;
    position: fixed; top: 0; right: 0; height: 100dvh;
    width: 85vw; max-width: 360px;
    background: var(--white); z-index: 999;
    transform: translateX(100%);
    transition: transform 0.25s ease-out, visibility 0s linear 0.25s;
    overflow-y: auto;
    padding: 72px 0 32px;
    box-shadow: -4px 0 32px rgba(71,63,168,0.18);
  }
  .nav-links.open {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.25s ease-out, visibility 0s linear 0s;
  }

  /* --- Nav items: dividers + tap targets --- */
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links a {
    display: flex; align-items: center;
    min-height: 52px; padding: 0 16px 0 20px;
    font-size: 17px; font-weight: 500; line-height: 1.4;
    border-radius: 0; color: var(--dark); text-decoration: none;
  }
  .nav-links a::after {
    content: '›'; margin-left: auto; padding-left: 8px;
    font-size: 18px; color: rgba(0,0,0,0.3); flex-shrink: 0;
  }

  /* --- Texas Family Connect featured --- */
  .nav-links a[href*="texas-families"] {
    background: rgba(128,221,217,0.08);
    border-left: 3px solid var(--teal);
    text-decoration: none !important;
  }

  /* --- Work With Us CTA --- */
  .nav-links li:last-child {
    border-bottom: none; border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 24px; padding: 0 20px;
  }
  .nav-cta {
    display: flex !important; align-items: center; justify-content: center !important;
    min-height: auto !important; padding: 16px 24px !important;
    margin: 8px 0 !important; border-radius: 50px !important;
    background: var(--purple) !important; color: var(--white) !important;
    font-size: 17px !important; font-weight: 700 !important;
  }
  .nav-cta::after { display: none !important; }
  .subscribe-form { flex-direction: column; }
  .ppp-diagram { width: 100%; height: auto; padding: 24px; }
}
