/* ============================================
   INSPIRATION — Design tokens (v2)
   International-NGO-style: photography-led,
   confident type, credible/official tone.
   Assam identity kept as a restrained accent
   (gamosa-red rule), not the whole palette.
   ============================================ */

:root {
  --navy: #0e3a4c;
  --navy-deep: #092530;
  --teal: #146b79;
  --coral: #e4602f;
  --coral-deep: #c14d22;
  --gold: #f0a73c;
  --paper: #fbfaf7;
  --paper-deep: #f1efe8;
  --ink: #16232a;
  --grey: #5d6b72;
  --line: rgba(22, 35, 42, 0.12);
  --line-soft: rgba(22, 35, 42, 0.07);

  --display: "Sora", "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- utility bar ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: #cfe0e5;
  font-family: var(--mono);
  font-size: 12.5px;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility-bar a { text-decoration: none; color: #cfe0e5; }
.utility-bar a:hover { color: #fff; }
.utility-bar .u-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--coral); border-color: var(--coral); }
.nav-links .btn { padding: 9px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  width: 40px;
  height: 36px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-links .btn { margin: 12px 24px; display: inline-block; }
  .nav-toggle { display: block; }
  .utility-bar .wrap { flex-direction: column; }
}

/* ---------- gamosa rule (restrained Assam accent) ---------- */
.rule {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 22px, transparent 22px 30px);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg-layer.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,37,48,0.35) 0%, rgba(9,37,48,0.55) 55%, rgba(9,37,48,0.92) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.loading-note { font-family: var(--mono); font-size: 12px; color: var(--grey); padding: 40px 24px; text-align: center; }
.hero-inner { padding: 72px 0 44px; width: 100%; }
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 16px;
}
.hero-slogan {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: #f0d9b8;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 17ch;
}
.hero p.lede {
  font-size: 18px;
  max-width: 58ch;
  color: #e4ecee;
  margin: 0 0 30px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 4px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color .15s ease;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- stat strip ---------- */
.stat-strip { background: var(--navy); color: #fff; }
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px 24px;
}
@media (max-width: 780px) { .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: left; border-left: 3px solid var(--coral); padding-left: 14px; }
.stat .n { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.stat .l { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #b9cdd3; margin-top: 6px; }

/* ---------- section scaffolding ---------- */
section { padding: 76px 0; }
.bg-deep { background: var(--paper-deep); }
.bg-navy { background: var(--navy); color: #fff; }

.section-head { margin-bottom: 42px; max-width: 68ch; }
.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin: 0 0 10px;
  display: block;
}
.bg-navy .section-head .eyebrow { color: var(--gold); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  line-height: 1.2;
  color: var(--navy);
}
.bg-navy .section-head h2 { color: #fff; }
.section-head p { color: var(--grey); margin: 0; font-size: 16px; }
.bg-navy .section-head p { color: #cfe0e5; }

/* ---------- credibility badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.badge {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.mv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 6px;
  padding: 24px 26px;
  margin-bottom: 18px;
}
.mv-card h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin: 0 0 10px;
}
.mv-card p { margin: 0; font-size: 16px; color: var(--ink); }

.obj-list { margin: 0; padding: 0; list-style: none; }
.obj-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  gap: 12px;
}
.obj-list li:first-child { border-top: none; }
.obj-list li .idx { font-family: var(--mono); color: var(--teal); flex-shrink: 0; }

.about-photo { border-radius: 8px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- program cards ---------- */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.program-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.program-card .thumb { height: 170px; overflow: hidden; background: var(--paper-deep); }
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.program-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.program-card .tag { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin: 0 0 10px; }
.program-card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 10px; color: var(--navy); }
.program-card p { color: var(--grey); font-size: 14.5px; margin: 0 0 14px; }
.program-card .examples { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink); }
.program-card .examples span { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin-bottom: 6px; }

/* ---------- activity timeline (tabs) ---------- */
.tab-row { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.tab-btn.active, .tab-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.timeline-panel { display: none; }
.timeline-panel.active { display: block; }

.activity-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; }
.activity-item { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.activity-item .date { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--coral); margin: 0 0 8px; }
.activity-item h4 { font-family: var(--display); font-size: 16px; margin: 0 0 6px; color: var(--navy); }
.activity-item p { font-size: 13.5px; color: var(--grey); margin: 0; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.gallery-grid a { display: block; height: 100%; overflow: hidden; border-radius: 6px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .wide { grid-column: span 2; }
}

/* ---------- partners ---------- */
.partner-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.partner-chip { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); padding: 10px 18px; border-radius: 6px; color: var(--ink); background: #fff; }

/* ---------- approach ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; }
.approach-item {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 26px 24px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.approach-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.075); border-color: rgba(240,167,60,0.4); }
.approach-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.approach-icon svg { width: 22px; height: 22px; color: #fff; }
.approach-item .tag {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin: 0 0 8px; display: block;
}
.approach-item h4 { font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; margin: 0 0 10px; }
.approach-item p { font-size: 14.5px; color: #c3d5da; margin: 0; line-height: 1.55; }

/* ---------- donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; } }
.qr-card { background: #fff; border-radius: 10px; padding: 26px; text-align: center; max-width: 320px; border: 1px solid var(--line); }
.qr-card img { border-radius: 6px; margin-bottom: 14px; }
.qr-card .upi-id { font-family: var(--mono); font-size: 13px; color: var(--navy); background: var(--paper-deep); padding: 8px 12px; border-radius: 4px; display: inline-block; }
.donate-note-list { margin: 22px 0 0; padding: 0; list-style: none; }
.donate-note-list li { display: flex; gap: 10px; font-size: 15px; padding: 8px 0; color: #e4ecee; }
.donate-note-list li::before { content: "→"; color: var(--gold); flex-shrink: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-top: 22px; }
.contact-info dd { margin: 4px 0 0; font-size: 16px; }
.contact-info dt:first-child { margin-top: 0; }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); }
.contact-form input, .contact-form textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.contact-form textarea { resize: vertical; min-height: 110px; }

/* ---------- footer ---------- */
footer.site-footer { background: var(--navy-deep); color: #cfe0e5; padding: 46px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; font-size: 13.5px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 12px; }
.footer-grid p, .footer-grid a { color: #cfe0e5; margin: 0 0 8px; text-decoration: none; display: block; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 34px;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #93aab1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
