/* ============================================================
   STEP FORWARD KE — Design System v2.0
   Aesthetic: Afro-Futurist Editorial | Deep Earth + Electric Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── TOKENS ── */
:root {
  --ink:       #0d0d0d;
  --cream:     #f5f0e8;
  --paper:     #faf8f3;
  --forest:    #1a3d2b;
  --emerald:   #00875a;
  --jade:      #00c97a;
  --scarlet:   #c8291e;
  --flame:     #e84232;
  --gold:      #d4a017;
  --amber:     #f5c842;
  --sky:       #0a2540;
  --mist:      #e8f4f0;
  --mind:      #4a2d6b;   /* mental health purple */
  --mind-lt:   #8b5cf6;
  --mind-glow: #c4b5fd;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius: 4px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.18);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 72px;
  background: rgba(250,248,243,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
}
.flag-badge {
  display: flex;
  flex-direction: column;
  width: 32px;
  height: 22px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.flag-badge span { flex: 1; }
.flag-badge .f1 { background: #000; }
.flag-badge .f2 { background: #DE2910; }
.flag-badge .f3 { background: #006644; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  opacity: .7;
  transition: opacity .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { opacity: 1; color: var(--forest); }
.nav-links .nav-mind {
  background: var(--mind);
  color: #fff;
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  opacity: 1;
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-links .nav-mind:hover { background: var(--mind-lt); transform: translateY(-1px); }
.nav-links .nav-mind::after { display: none; }
.nav-cta {
  background: var(--scarlet);
  color: #fff !important;
  padding: .4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  opacity: 1 !important;
  transition: background .2s, transform .2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--flame); transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all .3s; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--paper);
  z-index: 999;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(0,0,0,.06);
}
.mobile-nav a { font-size: 1.4rem; font-family: var(--font-display); font-weight: 700; color: var(--forest); }
.mobile-nav.open { display: flex; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  transition: all .25s;
  cursor: pointer;
}
.btn-primary { background: var(--scarlet); color: #fff; }
.btn-primary:hover { background: var(--flame); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,41,30,.35); }
.btn-green { background: var(--forest); color: #fff; }
.btn-green:hover { background: var(--emerald); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,135,90,.3); }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.btn-mind { background: var(--mind); color: #fff; }
.btn-mind:hover { background: var(--mind-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,45,107,.35); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }

/* ── LAYOUT HELPERS ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--emerald);
}

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.75rem; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* ── STAT PILL ── */
.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
}
.stat-pill .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}
.stat-pill .unit { font-size: 1.2rem; font-weight: 700; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: translate(0); }

/* ── FOOTER ── */
.footer {
  background: var(--sky);
  color: rgba(255,255,255,.75);
  padding: 5rem 0 2rem;
}
.footer h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .2s; display: block; margin-bottom: .5rem; }
.footer a:hover { color: var(--jade); }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 700; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 3rem 0 1.5rem; }
.social-row { display: flex; gap: .75rem; margin-top: 1rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--jade); color: #fff; }

/* ── NEWSLETTER INPUT ── */
.email-row { display: flex; gap: 0; border-radius: var(--radius-pill); overflow: hidden; margin-top: 1rem; }
.email-row input {
  flex: 1;
  padding: .65rem 1rem;
  border: none;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .85rem;
}
.email-row input::placeholder { color: rgba(255,255,255,.4); }
.email-row input:focus { outline: none; background: rgba(255,255,255,.15); }
.email-row button {
  padding: .65rem 1.2rem;
  background: var(--jade);
  color: var(--forest);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: background .2s;
}
.email-row button:hover { background: var(--amber); }

/* ── TAG ── */
.tag {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .05em;
}
.tag-green { background: var(--mist); color: var(--forest); }
.tag-red { background: #fce8e6; color: var(--scarlet); }
.tag-gold { background: #fef9e7; color: #8a6a00; }
.tag-mind { background: #ede9fe; color: var(--mind); }

/* ── PROGRESS BAR ── */
.progress-bar {
  height: 6px;
  background: rgba(0,0,0,.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--emerald);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: rgba(0,0,0,.25);
  font-size: .8rem;
  font-family: var(--font-mono);
  letter-spacing: .08em;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.1); }

/* ── QUOTE BLOCK ── */
.pull-quote {
  border-left: 4px solid var(--jade);
  padding: 1.5rem 2rem;
  background: var(--mist);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--forest);
}

/* ── AVATAR STACK ── */
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--forest);
  overflow: hidden;
}
.avatar-stack .av:first-child { margin-left: 0; }

/* ── BADGE / ICON BOX ── */
.icon-box {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.icon-box-green { background: var(--mist); color: var(--emerald); }
.icon-box-red { background: #fce8e6; color: var(--scarlet); }
.icon-box-gold { background: #fef9e7; color: var(--gold); }
.icon-box-mind { background: #ede9fe; color: var(--mind); }
.icon-box-sky { background: #e0f2fe; color: #0369a1; }

/* ── MENTAL HEALTH SECTION SPECIFICS ── */
.mind-hero {
  background: linear-gradient(135deg, var(--mind) 0%, #1e1035 60%, var(--sky) 100%);
  position: relative;
  overflow: hidden;
}
.mind-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(139,92,246,.3) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,201,122,.15) 0%, transparent 50%);
}
.mind-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse-orb 6s ease-in-out infinite;
}
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: .4; }
  50% { transform: scale(1.2); opacity: .7; }
}
.counsellor-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s, border-color .3s;
}
.counsellor-card:hover { transform: translateY(-6px); border-color: rgba(196,181,253,.4); }
.chat-bubble {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  max-width: 85%;
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: .75rem;
}
.chat-bubble.user {
  background: var(--mind-lt);
  color: #fff;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.chat-bubble.bot {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border-bottom-left-radius: 4px;
}
.typing-dots span {
  display: inline-block;
  width: 7px; height: 7px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  margin: 0 2px;
  animation: dot-bounce .9s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
}

/* ── HERO PATTERNS ── */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255,255,255,.04) 1px, transparent 0);
  background-size: 40px 40px;
}
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: .6rem; top: 0; bottom: 0; width: 2px; background: var(--mist); }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: .2rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--forest);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem;
  color: #fff;
}

/* ── ACCORDION ── */
.accordion-item { border-bottom: 1px solid rgba(0,0,0,.08); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--ink);
  transition: color .2s;
}
.accordion-trigger:hover { color: var(--forest); }
.accordion-trigger .icon { transition: transform .3s; font-size: .85rem; color: var(--emerald); }
.accordion-trigger.open .icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.accordion-body.open { max-height: 500px; padding-bottom: 1.25rem; }
.accordion-body p { color: rgba(0,0,0,.65); line-height: 1.7; }

/* ── HERO BIG TEXT ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--jade);
  background: rgba(0,201,122,.1);
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: '●'; font-size: .5rem; animation: blink 1.5s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--jade) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-mind {
  background: linear-gradient(135deg, var(--mind-glow) 0%, var(--jade) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.keep-2 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .grid-3.keep-2 { grid-template-columns: 1fr; }
}
