/* ============================================================
   STS PRAGATI FOUNDATION — Design System
   Palette:  Genda (marigold) #FF7A00 · Dhaan (crop green) #1B9E4B
             Aasman (sky) #1789FC · Ink #14231A · Paper #FFFDF7
   Type:     Bricolage Grotesque (display) · Instrument Sans (body)
   Signature: "Pragati Steps" — three ascending bars
   ============================================================ */

:root {
  --genda: #FF7A00;
  --genda-deep: #E85D04;
  --genda-tint: #FFF1E0;
  --dhaan: #1B9E4B;
  --dhaan-deep: #0B6B33;
  --dhaan-tint: #E7F6EC;
  --aasman: #1789FC;
  --aasman-deep: #0B62C4;
  --aasman-tint: #E5F1FF;
  --ink: #14231A;
  --ink-soft: #3D4A42;
  --paper: #FFFDF7;
  --sand: #FFF6E8;
  --line: #E8E2D5;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-pop: 6px 6px 0 var(--ink);
  --shadow-pop-sm: 4px 4px 0 var(--ink);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--aasman);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; }

.display-xl { font-size: clamp(2.9rem, 7.5vw, 5.6rem); font-weight: 800; }
.display-lg { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.display-md { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 26px; height: 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--genda) 0 33%, var(--dhaan) 33% 66%, var(--aasman) 66%);
}

.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; }

.hindi { font-weight: 800; }

mark {
  background: linear-gradient(transparent 55%, var(--genda-tint) 55%);
  color: inherit; padding: 0 2px;
}

/* ---------- Pragati Steps motif ---------- */
.steps { display: inline-flex; align-items: flex-end; gap: 4px; }
.steps span { width: 9px; border-radius: 3px; }
.steps span:nth-child(1) { height: 12px; background: var(--genda); }
.steps span:nth-child(2) { height: 20px; background: var(--dhaan); }
.steps span:nth-child(3) { height: 28px; background: var(--aasman); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .steps span { width: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: 0.98rem; padding: 6px 2px;
  border-bottom: 3px solid transparent; transition: border-color .2s;
}
.nav-links a:hover { border-bottom-color: var(--genda); }
.nav-links a.active { border-bottom-color: var(--dhaan); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  border: 2.5px solid var(--ink); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--genda); color: var(--ink); box-shadow: var(--shadow-pop-sm); }
.btn-green { background: var(--dhaan); color: #fff; box-shadow: var(--shadow-pop-sm); }
.btn-blue { background: var(--aasman); color: #fff; box-shadow: var(--shadow-pop-sm); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-ghost:hover { box-shadow: var(--shadow-pop-sm); }

.nav-toggle { display: none; background: none; border: 2.5px solid var(--ink); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 3px; background: var(--ink); border-radius: 2px; margin: 4px 0; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 13px 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot { color: var(--genda); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .display-xl .line-genda { color: var(--genda-deep); }
.hero .display-xl .line-dhaan { color: var(--dhaan-deep); }
.hero .display-xl .line-aasman { color: var(--aasman-deep); }
.hero-devnagari {
  position: absolute; top: -8px; right: -30px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(9rem, 22vw, 19rem); line-height: 1;
  color: var(--sand); z-index: -1; user-select: none;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* Hero art — sun over stepped fields */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

.badge-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 15px; border-radius: 999px; border: 2px solid var(--ink);
  background: #fff;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sand { background: var(--sand); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .lead { margin-top: 16px; }
.section-ink .lead { color: #C9D4CC; }

/* ---------- Pillar cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 34px 28px; background: #fff;
  box-shadow: var(--shadow-pop);
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column; gap: 14px;
}
.pillar:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.pillar .pillar-ico {
  width: 62px; height: 62px; border-radius: 18px; border: 2.5px solid var(--ink);
  display: grid; place-items: center; font-size: 1.7rem;
}
.pillar h3 { font-size: 1.45rem; }
.pillar p { color: var(--ink-soft); font-size: 0.99rem; flex: 1; }
.pillar-genda .pillar-ico { background: var(--genda); }
.pillar-dhaan .pillar-ico { background: var(--dhaan); }
.pillar-aasman .pillar-ico { background: var(--aasman); }
.pillar-link { font-weight: 700; font-family: var(--font-display); display: inline-flex; gap: 6px; align-items: center; }
.pillar-genda .pillar-link { color: var(--genda-deep); }
.pillar-dhaan .pillar-link { color: var(--dhaan-deep); }
.pillar-aasman .pillar-link { color: var(--aasman-deep); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  border: 2.5px solid var(--paper); border-radius: var(--radius);
  padding: 30px 24px; text-align: left;
}
.stat .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem); line-height: 1;
}
.stat:nth-child(1) .num { color: var(--genda); }
.stat:nth-child(2) .num { color: var(--dhaan); }
.stat:nth-child(3) .num { color: var(--aasman); }
.stat:nth-child(4) .num { color: var(--genda); }
.stat .label { margin-top: 10px; font-weight: 600; color: #C9D4CC; font-size: 0.95rem; }
.stat .goal {
  margin-top: 16px; padding-top: 12px; border-top: 1.5px dashed rgba(255,253,247,.35);
  font-size: 0.85rem; font-weight: 600; color: var(--paper); letter-spacing: .01em;
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-art { border: 2.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-pop); }
.split-art svg { width: 100%; height: auto; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist .tick {
  flex: none; width: 26px; height: 26px; margin-top: 2px;
  border: 2px solid var(--ink); border-radius: 8px;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}
.tick-g { background: var(--genda); } .tick-d { background: var(--dhaan); color:#fff; } .tick-a { background: var(--aasman); color:#fff; }

/* ---------- Programme detail blocks ---------- */
.prog {
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 44px; background: #fff;
  box-shadow: var(--shadow-pop);
}
.prog-head { padding: 40px 44px; color: #fff; }
.prog-head .eyebrow::before { background: rgba(255,255,255,.85); }
.prog-head h2 { color: #fff; margin-top: 8px; }
.prog-head p { margin-top: 12px; max-width: 66ch; opacity: .94; }
.prog-genda .prog-head { background: linear-gradient(120deg, var(--genda), var(--genda-deep)); }
.prog-dhaan .prog-head { background: linear-gradient(120deg, var(--dhaan), var(--dhaan-deep)); }
.prog-aasman .prog-head { background: linear-gradient(120deg, var(--aasman), var(--aasman-deep)); }
.prog-body { padding: 38px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.prog-body h4 { font-size: 1.12rem; margin-bottom: 14px; }
.prog-body ul { list-style: none; display: grid; gap: 11px; }
.prog-body li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.prog-body li::before { content: "▸"; font-weight: 800; margin-top: 1px; }
.prog-genda .prog-body li::before { color: var(--genda-deep); }
.prog-dhaan .prog-body li::before { color: var(--dhaan-deep); }
.prog-aasman .prog-body li::before { color: var(--aasman-deep); }

/* ---------- Value / impact cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  background: #fff; padding: 30px 26px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .big-hindi { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.card-genda { background: var(--genda-tint); }
.card-dhaan { background: var(--dhaan-tint); }
.card-aasman { background: var(--aasman-tint); }
.card-genda .big-hindi { color: var(--genda-deep); }
.card-dhaan .big-hindi { color: var(--dhaan-deep); }
.card-aasman .big-hindi { color: var(--aasman-deep); }

/* ---------- Story / quote ---------- */
.story {
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 36px 32px; background: #fff; box-shadow: var(--shadow-pop);
}
.story blockquote { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.45; }
.story .who { margin-top: 18px; font-weight: 700; }
.story .who small { display: block; font-weight: 500; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; position: relative; margin-top: 20px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 26px 0; border-bottom: 2px dashed var(--line); }
.tl-item:last-child { border-bottom: none; }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--genda-deep); }
.tl-item:nth-child(2) .tl-year { color: var(--dhaan-deep); }
.tl-item:nth-child(3) .tl-year { color: var(--aasman-deep); }
.tl-item:nth-child(4) .tl-year { color: var(--genda-deep); }
.tl-body h4 { font-size: 1.15rem; margin-bottom: 6px; }
.tl-body p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  background: linear-gradient(115deg, var(--genda) 0%, var(--genda) 33%, var(--dhaan) 33%, var(--dhaan) 66%, var(--aasman) 66%);
  padding: 3px; box-shadow: var(--shadow-pop);
}
.cta-inner {
  background: var(--paper); border-radius: calc(var(--radius) - 5px);
  padding: 54px 48px; text-align: center;
}
.cta-inner .display-lg { margin-bottom: 14px; }
.cta-inner p { max-width: 56ch; margin: 0 auto 30px; color: var(--ink-soft); }

/* ---------- Forms / involvement ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.involve {
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 34px 28px; background: #fff; box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 12px;
}
.involve .num-tag {
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  width: fit-content; padding: 4px 14px; border-radius: 999px;
  border: 2px solid var(--ink);
}
.involve:nth-child(1) .num-tag { background: var(--genda); }
.involve:nth-child(2) .num-tag { background: var(--dhaan); color: #fff; }
.involve:nth-child(3) .num-tag { background: var(--aasman); color: #fff; }
.involve h3 { font-size: 1.35rem; }
.involve p { color: var(--ink-soft); flex: 1; font-size: 0.98rem; }

.contact-panel {
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-pop);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.contact-info { background: var(--ink); color: var(--paper); padding: 44px 40px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-info ul { list-style: none; display: grid; gap: 16px; font-size: 1rem; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info .ico { font-size: 1.1rem; }
.contact-form { padding: 44px 40px; display: grid; gap: 16px; }
.contact-form label { font-weight: 700; font-size: 0.9rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--paper); margin-top: 6px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 30px; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { font-size: 1.02rem; margin-bottom: 16px; color: #fff; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: #B9C6BD; font-size: 0.96rem; }
.footer-grid a:hover { color: var(--genda); }
.footer-brand p { color: #B9C6BD; font-size: 0.95rem; margin-top: 14px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid #2C3B31; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #8FA096; font-size: 0.88rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .prog-body, .contact-panel { grid-template-columns: 1fr; }
  .pillars, .cards-3, .involve-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-devnagari { font-size: 11rem; opacity: .6; }
}
@media (max-width: 700px) {
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; z-index: 55;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 5%; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .pillars, .cards-3, .cards-2, .involve-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .prog-head, .prog-body { padding: 28px 24px; }
  .cta-inner { padding: 38px 24px; }
}

/* Contact form status and note */
.form-status { margin: 0; padding: 12px 16px; border: 2.5px solid var(--ink); border-radius: 14px; font-weight: 600; font-size: 0.95rem; }
.form-status.ok { background: var(--dhaan-tint); }
.form-status.err { background: var(--genda-tint); }
.form-note { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
