/* ==========================================================================
   Suchita Seva Samiti — website styles
   Colours and type follow the brand guidelines (maroon #7F3351, warm neutrals,
   Figtree + IBM Plex Mono). Organised: tokens → reset → base → layout →
   components → sections → footer → utilities → responsive.
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --maroon:        #7F3351;
  --maroon-dark:   #512134;
  --maroon-700:    #682A43;
  --maroon-50:     #F5EFF1;
  --maroon-100:    #E9D8DE;
  --coral:         #D8998B;
  --coral-soft:    #F0DAD2;
  --ink:           #2A1A21;
  --paper:         #FAF6F0;
  --white:         #FFFFFF;
  --n-100:         #EDE8E3;
  --n-200:         #D9D2CD;
  --n-300:         #BEB4B2;
  --n-500:         #7A6E70;
  --n-600:         #54464B;
  --n-700:         #3B2E33;
  --success:       #2E7D4F;

  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(42,26,33,.06), 0 2px 8px rgba(42,26,33,.05);
  --shadow-md: 0 6px 24px rgba(42,26,33,.10);
  --shadow-lg: 0 14px 44px rgba(42,26,33,.16);
  --ease: cubic-bezier(.2,0,0,1);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- accessibility ---------- */
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--cream { background: var(--maroon-50); }
.narrow { max-width: 760px; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--maroon);
  display: inline-block; margin-bottom: 14px;
}
.eyebrow--light { color: var(--coral); }
.h-xl { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.h-lg { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--n-600); line-height: 1.6; }
.measure { max-width: 62ch; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { margin-top: 14px; }
.text-center { text-align: center; }
.center-head { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--maroon); --_fg: #fff; --_bd: var(--maroon);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: .98rem;
  line-height: 1; letter-spacing: .01em; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff;
  text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--outline { --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--on-dark { --_bg: #fff; --_fg: var(--maroon); --_bd: #fff; }
.btn--on-dark:hover { background: var(--paper); border-color: var(--paper); color: var(--maroon-dark); }
.btn--ghost-dark { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.6); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(250,246,240,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(42,26,33,.08); border-bottom-color: var(--n-100); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-weight: 800; color: var(--maroon); font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.05; }
.brand__tag { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--n-500); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--maroon);
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav__link:hover { text-decoration: none; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--maroon); font-weight: 600; }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 8px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav__toggle span::before { top: -7px; } .nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(42,26,33,.82) 0%, rgba(42,26,33,.62) 42%, rgba(127,51,81,.52) 100%); }
.hero__inner { padding-block: clamp(72px, 13vw, 150px); max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 5.4vw, 3.5rem); line-height: 1.06; }
.hero p { margin-top: 20px; font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 52ch; }
.hero .btn-row { margin-top: 32px; }
.hero__trust { margin-top: 30px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.8); }
.hero--inner .hero__inner { padding-block: clamp(56px, 9vw, 96px); }
.hero--inner h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.breadcrumb { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.75); } .breadcrumb a:hover { color: #fff; }

/* ---------- stat / trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--n-100); }
.trust-strip__row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center;
  padding-block: 20px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; color: var(--n-600); }
.trust-strip__row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip__row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--maroon); }

/* ---------- programme cards ---------- */
.grid { display: grid; gap: clamp(20px, 2.5vw, 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: var(--white); border: 1px solid var(--n-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 3/2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-family: var(--font-mono); font-size: .76rem; color: var(--maroon); letter-spacing: .08em; margin-bottom: 10px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--n-600); font-size: .98rem; }
.card__link { margin-top: 16px; font-weight: 600; font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 7px; align-items: center; }
.card__link .arrow { transition: transform .2s var(--ease); }
.card:hover .card__link .arrow, .card__link:hover .arrow { transform: translateX(4px); }

/* feature row (image + text alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 92px); }
.feature__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feature__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature--reverse .feature__media { order: 2; }
.feature h2 { margin-bottom: 16px; }
.feature p + p { margin-top: 14px; }
.feature .btn { margin-top: 24px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--maroon); color: #fff; position: relative; overflow: hidden; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 12px; max-width: 46ch; }

/* ---------- two-up story teaser ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid--teaser { grid-template-columns: repeat(4, 1fr); }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1; background: var(--n-100); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(42,26,33,.35)); opacity: 0; transition: opacity .25s; }
.gallery-item:hover::after { opacity: 1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(28,18,23,.94); display: none;
  align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
/* hide the backdrop-filtered sticky header while the lightbox is open */
body.is-lightbox-open .site-header { display: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: var(--maroon); }
.field input, .field textarea, .field select {
  background: var(--white); border: 1.5px solid var(--n-200); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 1rem; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-50);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .86rem; color: var(--n-500); }
.amount-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.amount-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-chips label { display: inline-flex; align-items: center; border: 1.5px solid var(--n-200);
  background: var(--white); border-radius: 30px; padding: 10px 20px; cursor: pointer; font-weight: 600;
  font-size: .96rem; transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease); }
.amount-chips label:hover { border-color: var(--maroon); }
.amount-chips input:checked + label { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.amount-chips input:focus-visible + label { outline: 3px solid var(--maroon); outline-offset: 2px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status--info { background: var(--maroon-50); color: var(--maroon-dark); border: 1px solid var(--maroon-100); }

/* contact cards */
.info-list { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__icon { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--maroon-50);
  color: var(--maroon); display: flex; align-items: center; justify-content: center; }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1rem; margin-bottom: 3px; }
.info-item p, .info-item a { color: var(--n-600); font-size: .98rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--n-200); background: var(--n-100);
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--n-500); padding: 24px; }
.map-embed .eyebrow { color: var(--n-500); }

/* placeholder blocks (team, embeds, reports) */
.placeholder-note { border: 1px dashed var(--maroon); background: var(--maroon-50); color: var(--maroon-dark);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.team-card { text-align: center; }
.team-card__photo { aspect-ratio: 1; border-radius: 14px; background: var(--n-100); border: 1px solid var(--n-200);
  display: flex; align-items: center; justify-content: center; color: var(--n-300); margin-bottom: 14px; overflow: hidden; }
.team-card__photo svg { width: 46px; height: 46px; }
.team-card h3 { font-size: 1.05rem; }
.team-card .role { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); margin-top: 4px; }

/* values / list items */
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item__mark { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--maroon); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .85rem; }
.value-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.value-item p { color: var(--n-600); font-size: .96rem; }

/* prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--n-700); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.footer-brand img { width: 120px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.66); font-size: .94rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: rgba(255,255,255,.72); font-size: .95rem; margin-bottom: 11px; display: flex; gap: 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease); }
.footer-social a:hover { background: var(--maroon); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display: flex; flex-wrap: wrap;
  gap: 10px 24px; justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .btn, .gallery-item img, .card__media img { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--n-100); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--n-100); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav__toggle { display: flex; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--teaser { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero .btn-row .btn { width: auto; flex: 1 1 auto; }
}
