/* ============================================================
   FTS India — Design System  (Phase 1)
   Mobile-first · no frameworks · modern CSS (2026 baseline)
   Tokens first: change brand values here, whole site follows.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root{
  color-scheme: light dark;

  /* Brand — from the FTS logo teal (#00a0c0 family) */
  --brand:        light-dark(#0295b7, #45c1de); /* identity teal — large text, accents */
  --brand-deep:   light-dark(#017995, #45c1de); /* interactive: links, buttons (AA on white) */
  --brand-dark:   light-dark(#02576b, #8fd8ea);
  --brand-tint:   light-dark(#e3f4f8, #10333d);

  /* Donate — warm saffron counterpoint; always dark text on it */
  --sun:      #f2a41c;
  --sun-deep: #e08e00;
  --sun-ink:  #1a1502;

  /* Neutrals — teal-biased, never pure grey */
  --ink:    light-dark(#14262b, #e8f1f3);
  --muted:  light-dark(#51686f, #9db6bd);
  --line:   light-dark(#d9e5e8, #24444d);
  --bg:     light-dark(#ffffff, #0e1b1f);
  --bg-alt: light-dark(#f2f8f9, #15272c);
  --bg-ink: #0e1b1f;              /* photo-overlay panels, same both themes */
  --ink-on-dark: #e8f1f3;

  /* Type */
  --font-head: 'Anek Latin', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-hero: clamp(2.1rem, 6.5vw, 3.6rem);
  --fs-h1:   clamp(1.9rem, 5vw, 3rem);
  --fs-h2:   clamp(1.5rem, 3.4vw, 2.15rem);
  --fs-h3:   clamp(1.15rem, 2.2vw, 1.35rem);
  --fs-body: 1.05rem;
  --fs-small: .9rem;
  --lh: 1.65;

  /* Space · shape · elevation · motion */
  --sp-section: clamp(3.25rem, 9vw, 6.5rem);
  --maxw: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --r-sm: .45rem; --r-md: .9rem; --r-lg: 1.4rem;
  --sh-sm: 0 1px 3px rgb(2 60 75 / .10);
  --sh-md: 0 6px 22px rgb(2 60 75 / .12);
  --t: .18s ease;
}

@font-face{
  font-family:'Anek Latin';
  src: url('../fonts/anek-latin-var.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

/* ---------- 2. Reset & base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:var(--lh);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  /* room for the sticky mobile donate bar */
  padding-bottom: var(--mobile-bar-h, 0px);
}
img,svg,video{ max-width:100%; height:auto; display:block; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  line-height:1.15;
  margin:0 0 .6em;
  text-wrap:balance;
  font-weight:700;
}
h1{ font-size:var(--fs-h1); } h2{ font-size:var(--fs-h2); } h3{ font-size:var(--fs-h3); }
p{ margin:0 0 1em; max-width:65ch; }
a{ color:var(--brand-deep); text-underline-offset:.15em; }
a:hover{ color:var(--brand-dark); }
:focus-visible{ outline:3px solid var(--brand); outline-offset:2px; border-radius:2px; }
ul,ol{ padding-inline-start:1.2em; }
strong{ font-weight:650; }

.skip-link{
  position:absolute; inset-inline-start:1rem; top:-3rem;
  background:var(--bg-ink); color:var(--ink-on-dark);
  padding:.6rem 1rem; border-radius:var(--r-sm); z-index:100;
  transition:top var(--t);
}
.skip-link:focus{ top:1rem; }

.container{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:var(--sp-section); }
.section--alt{ background:var(--bg-alt); }
.section--ink{ background:var(--bg-ink); color:var(--ink-on-dark); }
.section--ink :is(h2,h3){ color:inherit; }
.section--ink a:not(.btn){ color:#8fd8ea; }

/* Section headings: eyebrow + heading + lede */
.eyebrow{
  font-family:var(--font-head);
  font-size:.82rem; font-weight:650;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand-deep); margin:0 0 .5rem;
}
.section--ink .eyebrow, .eyebrow--sun{ color:var(--sun); }
.cta-row{ display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.cta-row--start{ justify-content:flex-start; }
.h3{ font-size:var(--fs-h3); }
.lede{ font-size:1.15rem; color:var(--muted); }
.section--ink .lede{ color:#b9cdd3; }

/* ---------- 3. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5ch;
  font-family:var(--font-head); font-weight:650; font-size:1rem;
  padding:.85rem 1.6rem; min-height:44px;
  border-radius:999px; border:2px solid transparent;
  text-decoration:none; cursor:pointer;
  transition:background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:active{ transform:scale(.97); }
.btn--donate{ background:var(--sun); color:var(--sun-ink); }
.btn--donate:hover{ background:var(--sun-deep); color:var(--sun-ink); }
.btn--primary{ background:var(--brand-deep); color:#fff; }
.btn--primary:hover{ background:var(--brand-dark); color:#fff; }
.btn--ghost{ border-color:currentColor; color:var(--brand-deep); background:transparent; }
.btn--ghost:hover{ background:var(--brand-tint); }
.section--ink .btn--ghost{ color:var(--ink-on-dark); }
.section--ink .btn--ghost:hover{ background:rgb(255 255 255 / .12); }
.btn--lg{ font-size:1.1rem; padding:1rem 2rem; }

/* ---------- 4. Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.site-header__inner{
  display:flex; align-items:center; gap:1rem;
  min-height:4rem; padding-block:.4rem;
}
.site-header .logo{ margin-inline-end:auto; flex-shrink:0; }
.site-header .logo img{ width:auto; height:44px; }
.logo-img{ height:44px; width:auto; }
.logo-img--footer{ height:52px; }
.site-header .btn--donate{ padding:.6rem 1.25rem; }

.nav-toggle{
  display:grid; place-items:center;
  width:44px; height:44px;
  background:none; border:0; cursor:pointer; color:var(--ink);
}
.nav-toggle svg{ width:26px; height:26px; }

.site-nav{ display:none; }
.site-nav a{
  font-family:var(--font-head); font-weight:600; font-size:.98rem;
  color:var(--ink); text-decoration:none;
  padding:.5rem .75rem; border-radius:var(--r-sm);
}
.site-nav a:hover{ color:var(--brand-deep); background:var(--brand-tint); }
.site-nav a[aria-current="page"]{ color:var(--brand-deep); }

/* Mobile drawer */
.site-nav[data-open]{
  display:block;
  position:fixed; inset:4.3rem 0 0 0; z-index:49;
  background:var(--bg);
  padding:1rem var(--gutter) 2rem;
  overflow-y:auto;
  border-top:1px solid var(--line);
}
.site-nav[data-open] ul{ list-style:none; padding:0; margin:0; display:grid; gap:.25rem; }
.site-nav[data-open] a{ display:block; font-size:1.15rem; padding:.8rem .75rem; }

@media (min-width: 56rem){
  .nav-toggle{ display:none; }
  .site-nav{ display:block; }
  .site-nav ul{ list-style:none; display:flex; gap:.25rem; margin:0; padding:0; }
}

/* ---------- 5. Hero ---------- */
.hero{ position:relative; background:var(--bg-ink); color:var(--ink-on-dark); overflow:hidden; }
.hero__media{ position:absolute; inset:0; }
.hero__media img{ width:100%; height:100%; object-fit:cover; opacity:.42; }
.hero__inner{
  position:relative;
  display:grid; gap:1.25rem;
  padding-block:clamp(4rem, 12vw, 8rem);
  max-width:44rem;
}
.hero h1{ font-size:var(--fs-hero); font-weight:800; color:inherit; margin:0; }
.hero .lede{ color:#cfdfe4; font-size:clamp(1.05rem, 2.4vw, 1.25rem); }
.hero__ctas{ display:flex; flex-wrap:wrap; gap:.75rem; margin-top:.5rem; }
.hero__proof{
  display:flex; flex-wrap:wrap; gap:.4rem 1.4rem;
  font-size:var(--fs-small); color:#b9cdd3;
  margin:0; padding:0; list-style:none;
}
.hero__proof strong{ color:var(--ink-on-dark); }

/* Page hero (inner pages) */
.page-hero{ background:var(--brand-tint); padding-block:clamp(2.5rem,7vw,4.5rem); }
.page-hero h1{ margin-bottom:.3em; }
.breadcrumbs{ font-size:var(--fs-small); color:var(--muted); margin:0 0 1rem; }
.breadcrumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:.35rem; margin:0; padding:0; }
.breadcrumbs li:not(:last-child)::after{ content:"›"; margin-inline-start:.35rem; }
.breadcrumbs a{ color:inherit; }

/* ---------- 6. Stats ---------- */
.stats{
  display:grid; gap:1.5rem;
  grid-template-columns:repeat(2, 1fr);
  text-align:center;
}
@media (min-width:48rem){ .stats{ grid-template-columns:repeat(4,1fr); } }
.stat b{
  display:block;
  font-family:var(--font-head); font-weight:800;
  font-size:clamp(1.9rem, 5vw, 2.8rem);
  color:var(--brand);
  font-variant-numeric:tabular-nums;
  line-height:1.1;
}
.section--ink .stat b{ color:var(--sun); }
.stat span{ color:var(--muted); font-size:var(--fs-small); }
.section--ink .stat span{ color:#b9cdd3; }

/* ---------- 7. Cards & grids ---------- */
.grid{ display:grid; gap:1.5rem; }
@media (min-width:40rem){ .grid--2{ grid-template-columns:repeat(2,1fr);} }
@media (min-width:56rem){ .grid--3{ grid-template-columns:repeat(3,1fr);} .grid--4{ grid-template-columns:repeat(4,1fr);} }
@media (min-width:40rem) and (max-width:55.99rem){ .grid--3,.grid--4{ grid-template-columns:repeat(2,1fr);} }

.card{
  background:var(--bg); border:1px solid var(--line); border-radius:var(--r-md);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:box-shadow var(--t), translate var(--t);
}
.card:hover{ box-shadow:var(--sh-md); translate:0 -2px; }
.card__media{ aspect-ratio:16/9; background:var(--brand-tint); }
.card__media img{ width:100%; height:100%; object-fit:cover; }
.card__body{ padding:1.25rem; display:grid; gap:.25rem; align-content:start; }
.card__body h3 a{ color:inherit; text-decoration:none; }
.card__body h3 a:hover{ color:var(--brand-deep); }
.card__body p{ color:var(--muted); font-size:var(--fs-small); margin:0; }
.card__link{ font-family:var(--font-head); font-weight:650; font-size:var(--fs-small); text-decoration:none; margin-top:.5rem; }
a.card--link{ text-decoration:none; color:inherit; }
a.card--link:hover h3{ color:var(--brand-deep); }

/* Split (image + text) */
.split{ display:grid; gap:2rem; align-items:center; }
@media (min-width:56rem){ .split{ grid-template-columns:1fr 1fr; gap:4rem; } }
.split__media{ border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-md); }
.split__media img{ width:100%; height:100%; object-fit:cover; }

/* ---------- 8. Donation tiers ---------- */
.tiers{ display:grid; gap:.9rem; grid-template-columns:repeat(2,1fr); }
@media (min-width:48rem){ .tiers{ grid-template-columns:repeat(4,1fr);} }
.tier{
  position:relative;
  border:2px solid var(--line); border-radius:var(--r-md);
  background:var(--bg);
  padding:1.1rem .9rem;
  display:grid; gap:.15rem; align-content:start;
  text-align:center; cursor:pointer;
  transition:border-color var(--t), background var(--t);
}
.tier b{
  font-family:var(--font-head); font-weight:800;
  font-size:clamp(1.25rem,3vw,1.6rem);
  font-variant-numeric:tabular-nums;
}
.tier span{ font-size:.85rem; color:var(--muted); }
.tier input{ position:absolute; opacity:0; inset:0; cursor:pointer; }
.tier:has(input:checked){ border-color:var(--brand-deep); background:var(--brand-tint); }
.tier:has(input:focus-visible){ outline:3px solid var(--brand); outline-offset:2px; }
.tier--popular::after{
  content:"Most chosen";
  position:absolute; top:-0.7rem; left:50%; translate:-50% 0;
  background:var(--sun); color:var(--sun-ink);
  font-family:var(--font-head); font-size:.7rem; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase;
  padding:.15rem .6rem; border-radius:999px; white-space:nowrap;
}

/* Frequency toggle (one-time / monthly) */
.freq{
  display:inline-flex; border:2px solid var(--brand-deep); border-radius:999px; overflow:hidden;
}
.freq label{ position:relative; }
.freq input{ position:absolute; opacity:0; inset:0; cursor:pointer; }
.freq span{
  display:inline-block; padding:.55rem 1.3rem;
  font-family:var(--font-head); font-weight:650; font-size:.95rem;
  color:var(--brand-deep); cursor:pointer;
}
.freq label:has(input:checked) span{ background:var(--brand-deep); color:#fff; }
.freq label:has(input:focus-visible){ outline:3px solid var(--brand); outline-offset:2px; }

/* ---------- 9. Forms ---------- */
.field{ display:grid; gap:.3rem; margin-bottom:1rem; }
.field label{ font-family:var(--font-head); font-weight:600; font-size:var(--fs-small); }
.field input, .field select, .field textarea{
  font:inherit; color:inherit;
  background:var(--bg);
  border:1.5px solid var(--line); border-radius:var(--r-sm);
  padding:.7rem .85rem; min-height:44px; width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:3px solid var(--brand); outline-offset:1px; border-color:var(--brand-deep);
}
.field .hint{ font-size:.82rem; color:var(--muted); margin:0; }
.field:has(:user-invalid) input{ border-color:#c0392b; }
.field .err{ color:light-dark(#c0392b,#ff9c8a); font-size:.82rem; margin:0; }

.container--form{ max-width:52rem; }
.fieldset{ border:0; padding:0; margin:0 0 2rem; }
.fieldset legend{ padding:0; margin-bottom:.75rem; }
.btn--block{ width:100%; }
.hint{ font-size:.85rem; color:var(--muted); margin:0; }

/* ---------- 10. Badges, transparency, quotes ---------- */
.badges{ display:flex; flex-wrap:wrap; gap:.6rem; padding:0; margin:0; list-style:none; }
.badge{
  display:inline-flex; align-items:center; gap:.45ch;
  font-family:var(--font-head); font-size:.82rem; font-weight:650;
  border:1.5px solid var(--line); border-radius:999px;
  padding:.35rem .85rem; color:var(--muted); background:var(--bg);
}
.badge--prize{ border-color:var(--sun); color:light-dark(#8a5a00,var(--sun)); }

.quote{
  border:1px solid var(--line); border-radius:var(--r-md);
  background:var(--bg); padding:1.5rem;
  display:grid; gap:1rem; align-content:start;
}
.quote blockquote{ margin:0; font-size:1rem; }
.quote blockquote p{ margin:0; }
.quote figcaption{ display:flex; align-items:center; gap:.8rem; }
.quote figcaption img{ width:48px; height:48px; border-radius:50%; object-fit:cover; }
.quote figcaption b{ font-family:var(--font-head); display:block; line-height:1.25; }
.quote figcaption span{ font-size:.82rem; color:var(--muted); }

/* ---------- 11. FAQ (native details) ---------- */
.faq{ display:grid; gap:.6rem; }
.faq details{
  border:1px solid var(--line); border-radius:var(--r-sm);
  background:var(--bg); padding:0;
}
.faq summary{
  font-family:var(--font-head); font-weight:650;
  padding:1rem 1.1rem; cursor:pointer; list-style:none;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-size:1.3rem; color:var(--brand-deep); flex-shrink:0; }
.faq details[open] summary::after{ content:"–"; }
.faq details > div{ padding:0 1.1rem 1rem; color:var(--muted); }

/* ---------- 12. Event & chapter bits ---------- */
.meta-list{ list-style:none; margin:0; padding:0; display:grid; gap:.6rem; }
.meta-list li{ display:flex; gap:.6rem; align-items:baseline; }
.meta-list b{ font-family:var(--font-head); min-width:6.5rem; font-weight:650; }
.chip{
  display:inline-block; font-family:var(--font-head); font-size:.78rem; font-weight:650;
  background:var(--brand-tint); color:var(--brand-dark);
  border-radius:999px; padding:.2rem .7rem;
}
.chip--past{ background:var(--bg-alt); color:var(--muted); }

.nap-card{
  border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:var(--r-md);
  background:var(--bg); padding:1.5rem;
}
.nap-card address{ font-style:normal; }

/* ---------- 13. Footer ---------- */
.site-footer{ background:var(--bg-ink); color:#b9cdd3; font-size:var(--fs-small); }
.site-footer a{ color:#cfdfe4; text-decoration:none; }
.site-footer a:hover{ color:#fff; text-decoration:underline; }
.site-footer__grid{
  display:grid; gap:2rem;
  padding-block:3rem 2rem;
}
@media (min-width:40rem){ .site-footer__grid{ grid-template-columns:repeat(2,1fr);} }
@media (min-width:64rem){ .site-footer__grid{ grid-template-columns:2fr 1fr 1fr 1.5fr;} }
.site-footer h4{ color:#fff; font-size:.95rem; letter-spacing:.05em; text-transform:uppercase; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:.45rem; }
.site-footer ul.badges{ display:flex; }
.site-footer address{ font-style:normal; line-height:1.7; }
.site-footer__legal{
  border-top:1px solid #24444d;
  padding-block:1.2rem; display:flex; flex-wrap:wrap; gap:.5rem 1.5rem;
  justify-content:space-between;
}

/* ---------- 14. Sticky mobile donate bar ---------- */
.mobile-bar{
  position:fixed; inset-inline:0; bottom:0; z-index:48;
  display:grid; grid-template-columns:1fr 1fr; gap:1px;
  background:var(--line);
  border-top:1px solid var(--line);
}
.mobile-bar a{
  display:grid; place-items:center; min-height:52px;
  font-family:var(--font-head); font-weight:700; text-decoration:none;
}
.mobile-bar .m-donate{ background:var(--sun); color:var(--sun-ink); }
.mobile-bar .m-call{ background:var(--bg); color:var(--brand-deep); }
@media (min-width:56rem){ .mobile-bar{ display:none; } }
@media (max-width:55.99rem){ body{ --mobile-bar-h: 60px; } }

/* ---------- 15. Utilities & motion ---------- */
.center{ text-align:center; }
.center p{ margin-inline:auto; }
.mt-1{ margin-top:1rem; } .mt-2{ margin-top:2rem; }
.visually-hidden{
  position:absolute; width:1px; height:1px; margin:-1px;
  clip-path:inset(50%); overflow:hidden; white-space:nowrap;
}
.scroll-x{ overflow-x:auto; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
