/* ============================================================
   Whispering Brain — shared styles
   Palette: neural-connection motif (aubergine + coral + mint)
   Type: Baloo 2 (display, rounded) + Nunito (body)
   ============================================================ */

:root {
  --ink: #2a1b47; /* deep aubergine - primary text + dark sections */
  --ink-soft: #4a3a68;
  --plum: #6a44b8; /* secondary purple */
  --plum-tint: #f2ecfb; /* soft lavender wash */
  --coral: #ff6a56; /* primary accent / CTA */
  --coral-deep: #ec4f3b;
  --peach: #ffd9cf;
  --mint: #22b394; /* growth / teal */
  --mint-tint: #e4f7f1;
  --sun: #ffbe3d; /* highlight yellow */
  --sun-tint: #fff3d6;
  --bg: #fff9f4; /* warm off-white */
  --card: #ffffff;
  --line: #efe6dd;
  --shadow: 0 18px 40px -22px rgba(42, 27, 71, 0.35);
  --shadow-sm: 0 8px 22px -14px rgba(42, 27, 71, 0.4);
  --r-lg: 34px;
  --r-md: 22px;
  --r-sm: 14px;
  --maxw: 1160px;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--plum);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}
p {
  margin: 0 0 1.1em;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.center {
  text-align: center;
}
.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum);
  background: var(--plum-tint);
  padding: 0.3em 1em;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hl {
  color: var(--coral);
}
section {
  position: relative;
}
.section-pad {
  padding: clamp(56px, 8vw, 110px) 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 24px -12px var(--coral);
}
.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- header / nav ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
}
.topbar .wrap {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a {
  color: #fff;
  opacity: 0.9;
}
.topbar a:hover {
  opacity: 1;
  color: var(--sun);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo img {
  height: 52px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-links > li > a:hover,
.nav-links > li.current > a {
  background: var(--plum-tint);
  color: var(--plum);
}
.has-sub > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 0.35em;
  opacity: 0.6;
}
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.submenu a:hover {
  background: var(--mint-tint);
  color: var(--mint);
}
.nav-cta {
  margin-left: 6px;
}
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  margin: 5px 0;
  transition: 0.25s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      1200px 500px at 85% -10%,
      var(--plum-tint),
      transparent 60%
    ),
    radial-gradient(900px 500px at 0% 110%, var(--mint-tint), transparent 55%),
    var(--bg);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(50px, 7vw, 90px);
}
.hero h1 {
  margin-bottom: 0.35em;
}
.hero .lead {
  margin-bottom: 1.6em;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-figure {
  position: relative;
}
.hero-figure .blob {
  position: absolute;
  inset: -6% -4% -6% -4%;
  background: linear-gradient(140deg, var(--coral), var(--sun));
  border-radius: 46% 54% 60% 40%/52% 44% 56% 48%;
  z-index: 0;
  opacity: 0.9;
}
.hero-figure img {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.neural {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stats b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--plum);
  display: block;
  line-height: 1;
}
.hero-stats span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- generic grids / cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin-top: 0.2em;
}
.card .ic {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* colored feature cards */
.feat {
  border-radius: var(--r-md);
  padding: 30px 26px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.feat h3 {
  margin-bottom: 0.3em;
}
.feat p {
  margin-bottom: 0;
  color: var(--ink-soft);
}
.feat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.5;
}
.feat.c1 {
  background: var(--sun-tint);
}
.feat.c2 {
  background: var(--mint-tint);
}
.feat.c3 {
  background: var(--plum-tint);
}
.feat.c4 {
  background: var(--peach);
}
.feat.c5 {
  background: #e3f0ff;
}

/* pillars */
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pillar img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.pillar small {
  display: block;
  color: var(--mint);
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: none;
  margin-bottom: 2px;
}

/* dark band */
.band-dark {
  background:
    radial-gradient(
      700px 400px at 90% 10%,
      rgba(106, 68, 184, 0.5),
      transparent 60%
    ),
    var(--ink);
  color: #fff;
}
.band-dark h2,
.band-dark h3 {
  color: #fff;
}
.band-dark p {
  color: #e7ddf5;
}
.band-dark .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* split image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.rev .split-media {
  order: 2;
}
.split-media img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  background: #fff;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  position: relative;
  padding: 6px 0 6px 34px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-tint);
}
.checklist li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 5px;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #fff;
}

/* program cards */
.prog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.prog:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.prog-top {
  padding: 26px;
  background: linear-gradient(140deg, var(--plum-tint), #fff);
}
.prog-top .tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--plum);
  background: #fff;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
}
.prog-body {
  padding: 0 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prog-body ul {
  padding-left: 1.1em;
  margin: 0 0 20px;
  color: var(--ink-soft);
}
.prog-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* wave divider */
.wave {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -6px;
}
.wave.flip {
  transform: rotate(180deg);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--coral), var(--sun));
  color: #fff;
  text-align: center;
  border-radius: var(--r-lg);
  padding: clamp(38px, 6vw, 64px);
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: #fff;
  opacity: 0.95;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fdfbf8;
  transition: border 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--plum);
}
.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.info-row .dot {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--plum-tint);
  color: var(--plum);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- page hero (inner) ---------- */
.page-hero {
  background:
    radial-gradient(800px 340px at 15% -20%, var(--plum-tint), transparent 60%),
    radial-gradient(700px 340px at 100% 0%, var(--sun-tint), transparent 55%),
    var(--bg);
  padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 5vw, 60px);
  text-align: center;
}
.page-hero .crumbs {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.page-hero .crumbs a {
  color: var(--plum);
}

/* legal / prose */
.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 {
  margin-top: 1.6em;
}
.prose h3 {
  margin-top: 1.3em;
}
.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose .updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 2em;
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #e7ddf5;
  padding: 64px 0 26px;
  margin-top: 0;
}
.footer a {
  color: #e7ddf5;
}
.footer a:hover {
  color: var(--sun);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer .brand img {
  height: 58px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.footer h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer ul li {
  margin-bottom: 9px;
}
.footer .muted {
  color: #b9acd6;
  font-size: 0.95rem;
}
.footer .legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px 0 10px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer .legal a {
  font-weight: 600;
}
.copyright {
  text-align: center;
  color: #b9acd6;
  font-size: 0.9rem;
}

/* ---------- reveal animation (only when JS active) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-figure {
    max-width: 520px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .split.rev .split-media {
    order: 0;
  }
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 340px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 88px 18px 24px;
    box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links > li > a {
    font-size: 1.1rem;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 2px 0 8px 12px;
    min-width: 0;
    background: transparent;
  }
  .has-sub > a::after {
    float: right;
  }
  .nav-cta {
    margin: 12px 0 0;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .g4,
  .g3,
  .g2,
  .foot-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
  .topbar .wrap {
    justify-content: center;
  }
  .footer .legal {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* .d_none {
  display: none;
} */
