/* ==========================================================================
   VITHI FOUNDATION — shared stylesheet
   Same architecture as the Apna Foundation site: one stylesheet, CSS custom
   properties at the top, no build step.

   Palette is drawn from the Vithi logo — a hand-drawn crayon mark in two
   teals with a marigold sun. Deep forest-teal carries the structure, the
   brighter teal carries action, and the sun is the accent. Change these
   values and the whole site follows.
   ========================================================================== */

:root {
  --forest: #14544A;
  --forest-dark: #0E3B34;
  --teal: #1B8175;
  --teal-dark: #14655B;
  --teal-bright: #35B7A6;
  --sun: #F0A62E;
  --sun-deep: #B87708;
  --bg: #FBF8F2;
  --bg-deep: #EFEAE0;
  --ink: #23312E;
  --muted: #5F6B67;
  --white: #ffffff;
  --shadow: 0 14px 44px rgba(20, 84, 74, 0.16);
  --shadow-sm: 0 5px 20px rgba(20, 84, 74, 0.11);
  --radius: 18px;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--forest);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-deep); }
.section--forest { background: var(--forest); color: #cfe0db; }
.section--forest h2, .section--forest h3 { color: #fff; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 700; color: var(--teal); margin-bottom: 14px;
}
.section--forest .eyebrow { color: var(--sun); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section--forest .lead { color: #b8d2cc; }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.section-head { text-align: center; max-width: 64ch; margin: 0 auto 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-family: 'Source Sans 3', sans-serif; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--teal { background: var(--teal-bright); color: #fff; box-shadow: var(--shadow-sm); }
.btn--teal:hover { background: var(--forest-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { background: #fff; color: var(--teal-dark); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.93); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 84, 74, 0.12);
}
.nav { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; object-fit: contain; }
.site-footer .brand-logo { background:#fff; padding:5px 7px; border-radius:10px; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.2rem; color: var(--forest); line-height: 1.05; }
.brand-name span { display: block; font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { color: var(--forest); font-weight: 600; font-size: 0.96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { padding: 10px 22px !important; font-size: 0.9rem; }
/* the CTA is a filled button — keep its label white even when it is the active page */
.nav-links a.nav-cta, .nav-links a.nav-cta.active, .nav-links a.nav-cta:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--forest); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 118px 24px 128px; overflow: hidden;
  background:
    linear-gradient(150deg, rgba(14,59,52,.93), rgba(20,84,74,.86) 48%, rgba(20,101,91,.80)),
    url('images/hero.jpg') center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 18ch; margin: 0 auto 20px; }
.hero p { font-size: 1.25rem; max-width: 58ch; margin: 0 auto 34px; color: #e4e0d6; }
.hero .btn-row { justify-content: center; }
.hero-stats { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; margin-top: 54px; }
.hero-stat b { display: block; font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--sun); }
.hero-stat span { font-size: 0.95rem; letter-spacing: 0.04em; color: #ded9cf; }

/* ---------- Page banner ---------- */
.page-banner { background: linear-gradient(140deg, var(--forest-dark), var(--forest) 55%, var(--forest-dark)); color: #fff; text-align: center; padding: 74px 24px; }
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner p { color: #cfe0db; max-width: 54ch; margin: 0 auto; font-size: 1.12rem; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { height: 200px; display: grid; place-items: center; font-size: 3.4rem; color: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 26px 26px 30px; }
.card-body h3 { margin-bottom: 6px; }
.card-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); }

/* gradient placeholders — used until real photographs are cleared for use */
.ph-1 { background: linear-gradient(135deg, var(--forest), var(--teal-bright)); }
.ph-2 { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); }
.ph-3 { background: linear-gradient(135deg, var(--forest-dark), var(--forest)); }
.ph-4 { background: linear-gradient(135deg, var(--sun-deep), var(--teal-dark)); }
.ph-5 { background: linear-gradient(135deg, var(--forest-dark), var(--teal)); }
.ph-6 { background: linear-gradient(135deg, var(--teal-bright), var(--forest)); }

/* ---------- Story blocks ---------- */
.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; margin-bottom: 72px; }
.story:last-child { margin-bottom: 0; }
.story:nth-child(even) .story-media { order: 2; }
.story-media { border-radius: var(--radius); min-height: 340px; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-size: 5rem; box-shadow: var(--shadow); }
.story-media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.story h3 { font-size: 1.9rem; margin-bottom: 8px; }
.story .kicker { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }

/* ---------- Quote ---------- */
.quote { background: #fff; border-left: 5px solid var(--teal); border-radius: 14px; padding: 30px 32px; box-shadow: var(--shadow-sm); }
.quote p { font-style: italic; color: var(--muted); margin-bottom: 14px; }
.quote .who { font-weight: 700; color: var(--forest); font-style: normal; }
.quote .who span { display: block; font-weight: 600; font-size: 0.85rem; color: var(--teal); }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-strip .num { font-family: 'Fraunces', serif; font-size: 2.6rem; color: var(--teal); }
.section--forest .stat-strip .num { color: var(--sun); }
.stat-strip .lbl { font-weight: 600; font-size: 0.95rem; }

/* ---------- People ---------- */
.person { background:#fff; border-radius: var(--radius); padding: 28px 24px; text-align:center; box-shadow: var(--shadow-sm); }
.person .avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-family:'Fraunces',serif; font-size: 2rem; color:#fff; }
.person h3 { font-size: 1.15rem; margin-bottom: 2px; }
.person .role { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 10px; }
.person p { font-size: 0.96rem; color: var(--muted); text-align: left; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; border-left: 2px solid var(--bg-deep); padding-left: 30px; display: grid; gap: 30px; }
.timeline li { position: relative; }
.timeline li::before { content:""; position:absolute; left:-38px; top:6px; width:15px; height:15px;
  border-radius:50%; background: var(--teal); box-shadow: 0 0 0 4px var(--bg); }
.timeline .when { font-weight: 700; color: var(--teal); font-size: 0.9rem; letter-spacing: 0.04em; }
.timeline h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.timeline p { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: #fff;
  font-weight: 700; display: grid; place-items: center; font-size: 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--forest), var(--teal) 55%, var(--teal-bright));
  color: #fff; text-align: center; border-radius: 24px; padding: 54px 30px; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 56ch; margin: 0 auto 26px; color: #fdf3e4; font-size: 1.12rem; }

/* ---------- Involvement tiers ---------- */
.tier { background:#fff; border-radius: var(--radius); padding: 30px 26px; text-align:center;
  box-shadow: var(--shadow-sm); border: 2px solid transparent; transition: .2s; display:flex; flex-direction:column; }
.tier:hover { border-color: var(--teal); transform: translateY(-4px); }
.tier.featured { border-color: var(--teal); background: linear-gradient(180deg,#fff,#fdf1e8); }
.tier .amt { font-family:'Fraunces',serif; font-size: 2rem; color: var(--teal); }
.tier .per { font-size: 0.85rem; color: var(--muted); }
.tier ul { list-style: none; text-align:left; margin: 18px 0 24px; }
.tier li { padding: 7px 0 7px 26px; position: relative; }
.tier li::before { content:"→"; position:absolute; left:0; color: var(--teal-bright); font-weight:700; }
.tier .btn { margin-top: auto; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:600; margin-bottom:6px; color: var(--forest); font-size: 0.95rem; }
.field input, .field textarea, .field select { width:100%; padding: 12px 14px; border:1.5px solid #e2d7c6;
  border-radius: 12px; font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--teal); }

/* ---------- Info list ---------- */
.info-list { list-style:none; display:grid; gap: 18px; }
.info-list li { display:flex; gap: 14px; align-items:flex-start; }
.info-ic { font-size:1.5rem; flex:none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery a { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.06); }

/* ---------- Videos ---------- */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); background:#000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-weight: 700; color: var(--forest); margin-top: 12px; font-size: 1rem; }
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }

/* ---------- Notice (editor-facing, remove before launch) ---------- */
.notice { background: #FFF8E6; border: 1.5px dashed var(--sun); border-radius: 14px;
  padding: 18px 22px; color: #7A5B12; font-size: 0.95rem; }
.notice b { color: #5E4409; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dark); color: #c2d6d1; padding: 60px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid a { color: #c2d6d1; display:block; padding: 5px 0; font-weight: 600; }
.footer-grid a:hover { color: var(--sun); }
.socials { display:flex; gap: 12px; margin-top: 16px; }
.social-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display:grid; place-items:center; font-weight:700; color:#fff; font-size:0.8rem; }
.social-btn:hover { background: var(--teal); color:#fff; }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px; text-align:center; font-size: 0.88rem; color:#8fa9a3; }
.footer-legal { font-size: 0.82rem; color: #86a099; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .story:nth-child(even) .story-media { order: 0; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--bg);
    padding: 12px 20px 18px; box-shadow: var(--shadow); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 6px; border-radius: 10px; }
  .nav-links a:hover, .nav-links a.active { background: rgba(27,129,117,0.08); }
  .nav-links .nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
  .section-head { margin-bottom: 34px; }

  .hero { padding: 74px 20px 76px; }
  .hero p { font-size: 1.05rem; margin-bottom: 28px; }
  .hero-stats { gap: 14px; margin-top: 40px; justify-content: space-between; }
  .hero-stat b { font-size: 1.8rem; }
  .hero-stat span { font-size: 0.82rem; }

  .page-banner { padding: 54px 20px; }
  .page-banner p { font-size: 1rem; }
  .lead { font-size: 1.06rem; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; text-align: center; }
  .btn { padding: 14px 22px; }

  .cta-band { padding: 38px 20px; border-radius: 18px; }
  .cta-band p { font-size: 1rem; }

  .card-body { padding: 22px 20px 24px; }
  .quote { padding: 24px 22px; }
  .form-card { padding: 24px 20px; }
  .timeline { padding-left: 24px; }
  .timeline li::before { left: -32px; }
  h3 { font-size: 1.25rem; }

  [id] { scroll-margin-top: 84px; }
}

@media (max-width: 380px) {
  .hero-stat b { font-size: 1.55rem; }
  .hero-stats { gap: 8px; }
}
