/* Shubh Ashish Welfare Society: site styles
   Direction: the ground work leads. Field photos carry the colour; the interface stays
   white, indigo (the society's banner ink) and one red (the logo and the volunteers' scarves).
   Type: Anek Devanagari throughout. Condensed and heavy for headings, normal width for reading. */

:root {
  --white: #ffffff;
  --concrete: #eeedf1;     /* alternate sections: the grey of the street */
  --line: #d9d7e0;
  --ink: #1d1a33;          /* body text */
  --muted: #55526a;
  --indigo: #241a6b;       /* banner ink: headings, footer, dark bands */
  --indigo-soft: #3a2f8a;
  --red: #e21e26;          /* logo red: the hero tile and main actions only */
  --red-deep: #b42424;
  --haldi: #f4b12e;        /* the painted ground circle: focus on dark backgrounds */

  --font: "Anek Devanagari", "Noto Sans Devanagari", system-ui, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.i18n-pending body { opacity: 0; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  transition: opacity 0.15s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

h1, h2, h3 {
  font-stretch: 75%;
  font-weight: 750;
  line-height: 1.08;
  color: var(--indigo);
  margin: 0 0 0.45em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.75rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(2.125rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.22; }
p { margin: 0 0 1em; }
.measure { max-width: 62ch; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--indigo); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 12px 20px;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--indigo);
  margin-right: auto;
}
.brand img { height: 35px; width: auto; }
.brand-name {
  font-stretch: 75%; font-weight: 750;
  font-size: 1.3rem; line-height: 1;
}
.brand-name small {
  display: block; font-stretch: 100%;
  font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-top: 3px;
}

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2px;
}
.main-nav a {
  display: block; padding: 8px 11px;
  text-decoration: none; color: var(--ink); font-weight: 500;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--indigo); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { color: var(--indigo); font-weight: 650; border-bottom-color: var(--red); }

.lang-toggle {
  border: 1px solid var(--line); background: var(--white); color: var(--indigo);
  font: 600 0.95rem var(--font);
  padding: 6px 12px; border-radius: var(--radius); cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--indigo); }

.header-cta { padding: 9px 16px; font-size: 0.98rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--indigo);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; order: 4; }
  .lang-toggle { order: 2; }
  .header-cta { order: 3; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 4px var(--gutter) 16px; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--concrete); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--concrete); color: var(--red-deep); }
}
@media (max-width: 560px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 1.1rem; }
  .btn.header-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font: 600 1.05rem/1.2 var(--font); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-light { background: #fff; color: var(--red-deep); }
.btn-light:hover { background: var(--indigo); color: #fff; }
.btn-outline { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--indigo); }

.link-strong {
  font-weight: 650; color: inherit;
  text-decoration: underline; text-decoration-thickness: 2px;
}

/* ---------- Home: the ground (hero mosaic) ---------- */
.ground {
  display: grid; gap: 4px;
  grid-template-columns: 1.25fr 0.85fr 1fr 1fr;
  grid-template-rows: repeat(3, minmax(170px, 1fr));
  grid-template-areas:
    "call call t1 t2"
    "call call t1 t3"
    "t4   t5   t6 t3";
  min-height: clamp(620px, calc(100vh - 69px), 880px);
  background: var(--white);
  padding: 4px;
}
.ground-call {
  grid-area: call;
  background: var(--red); color: #fff;
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ground-call h1 { color: #fff; margin-bottom: 0.35em; }
.slogan {
  display: block;
  font-size: clamp(3.5rem, min(7.4vw, 10.5vh), 8rem);
  line-height: 1.12; font-weight: 800; font-stretch: 75%;
  letter-spacing: -0.01em;
}
.slogan-sub {
  display: block; margin-top: 0.35em;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem); font-weight: 650; line-height: 1.15;
}
.ground-call .lead { font-size: 1.2rem; max-width: 44ch; margin-bottom: 1.4em; }
.ground-call .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ground-call .link-strong:hover { color: #fff; text-decoration-thickness: 3px; }
.ground-call :focus-visible { outline-color: var(--haldi); }

.tile { margin: 0; position: relative; overflow: hidden; background: var(--concrete); min-height: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--white); color: var(--ink);
  font-size: 0.86rem; font-weight: 500; line-height: 1.3;
  padding: 5px 10px 4px; max-width: calc(100% - 12px);
}
.t1 { grid-area: t1; } .t2 { grid-area: t2; } .t3 { grid-area: t3; }
.t4 { grid-area: t4; } .t5 { grid-area: t5; } .t6 { grid-area: t6; }
.t1 img { object-position: 38% 50%; }
.t3 img { object-position: 50% 50%; }

@media (prefers-reduced-motion: no-preference) {
  .ground > * { animation: lay-down 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .ground > .t1 { animation-delay: 0.08s; }
  .ground > .t2 { animation-delay: 0.16s; }
  .ground > .t3 { animation-delay: 0.24s; }
  .ground > .t6 { animation-delay: 0.32s; }
  .ground > .t5 { animation-delay: 0.40s; }
  .ground > .t4 { animation-delay: 0.48s; }
  @keyframes lay-down {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
}

@media (max-width: 900px) {
  .ground {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "call call"
      "t1 t2"
      "t3 t4";
  }
  .ground .t5, .ground .t6 { display: none; }
  .tile { aspect-ratio: 4 / 3; }
  .tile figcaption { font-size: 0.78rem; padding: 4px 8px 3px; }
  .ground-call { padding-top: 48px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--concrete); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.2rem; }

/* Home: field work. One feature (street plays, the core) and three supporting entries. */
.field-feature {
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 1.5fr 1fr; align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.field-feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.field-feature h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.field-list {
  display: grid; gap: clamp(28px, 3vw, 40px);
  grid-template-columns: repeat(3, 1fr);
}
.field-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.facts {
  margin: 0 0 1em; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  border-top: 1px solid var(--line); padding-top: 12px; font-size: 1rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; }
@media (max-width: 900px) {
  .field-feature { grid-template-columns: 1fr; }
  .field-list { grid-template-columns: 1fr; }
  .field-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 20px; align-items: start; }
  .field-item img { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .field-item { display: block; }
  .field-item img { margin-bottom: 14px; }
}

/* Home: the problems we take on. Big words, plain answers. */
.issues { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--indigo); }
.issues li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px clamp(24px, 4vw, 48px); align-items: baseline;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.issue-name {
  font-stretch: 75%; font-weight: 750; color: var(--indigo);
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1;
}
.issue-answer { margin: 0; max-width: 44ch; font-size: 1.2rem; }
@media (max-width: 700px) { .issues li { grid-template-columns: 1fr; } }

/* Home: ways to join. Three columns divided by rules, not boxes. */
.join {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--indigo);
}
.join-way {
  padding: 28px clamp(20px, 3vw, 36px) 8px 0;
  display: flex; flex-direction: column;
}
.join-way + .join-way { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 36px); }
.join-way h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.join-way p { flex: 1; }
.join-way .btn { align-self: flex-start; }
.join-direct {
  margin-top: clamp(40px, 5vw, 56px); font-size: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline;
}
.join-direct a { font-weight: 650; }
@media (max-width: 860px) {
  .join { grid-template-columns: 1fr; }
  .join-way { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .join-way + .join-way { border-left: 0; padding-left: 0; }
}

/* Roots: who we are + registration */
.roots {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 1fr 1fr; align-items: start;
}
.roots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .roots { grid-template-columns: 1fr; } }

.reg-list {
  margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px;
  font-size: 1rem; border-top: 1px solid var(--line); padding-top: 16px;
}
.reg-list dt { color: var(--muted); }
.reg-list dd { margin: 0; font-weight: 550; }
@media (max-width: 520px) {
  .reg-list { grid-template-columns: 1fr; gap: 0; }
  .reg-list dd { margin-bottom: 10px; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }
.page-head p { font-size: 1.25rem; color: var(--muted); max-width: 52ch; margin: 0; }
.page-band { height: clamp(220px, 34vw, 440px); overflow: hidden; background: var(--concrete); }
.page-band img { width: 100%; height: 100%; object-fit: cover; }

.statement {
  font-stretch: 87.5%; font-weight: 550;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.35; color: var(--indigo);
  max-width: 34em; margin: 0;
}
:lang(hi) .statement { line-height: 1.5; }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* A ruled entry: a top rule instead of a box */
.entry { border-top: 2px solid var(--indigo); padding-top: 16px; }
.entry h3 { margin-bottom: 0.35em; }
.entry p:last-child { margin-bottom: 0; }

.split {
  display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.check-list li {
  position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red);
}

.objectives {
  list-style: none; padding: 0; margin: 0;
  columns: 2 340px; column-gap: clamp(32px, 5vw, 72px);
}
.objectives li {
  break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--line);
}

/* ---------- Registration ---------- */
.reg-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; border-top: 2px solid var(--indigo); padding-top: 20px; }
.reg-card dt { color: var(--muted); }
.reg-card dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) {
  .reg-card dl { grid-template-columns: 1fr; gap: 0; }
  .reg-card dd { margin-bottom: 12px; }
}

/* ---------- Events ---------- */
.event-row {
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center;
  padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line);
}
.event-row:first-child { border-top: 0; padding-top: 0; }
.event-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.event-row h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
@media (max-width: 820px) { .event-row { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.filter-btn {
  border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink);
  padding: 10px 0 9px; margin-bottom: -1px; cursor: pointer;
  font: 500 1.02rem var(--font);
}
.filter-btn:hover { color: var(--indigo); border-bottom-color: var(--line); }
.filter-btn[aria-pressed="true"] { color: var(--indigo); font-weight: 650; border-bottom-color: var(--red); }
.filter-btn .count { color: var(--muted); margin-left: 4px; font-weight: 400; }

.gallery {
  display: grid; gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.gallery figure { margin: 0; position: relative; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; background: var(--concrete);
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; pointer-events: none;
  background: var(--white); font-size: 0.84rem; padding: 4px 9px 3px; line-height: 1.3;
}
.gallery [hidden] { display: none; }

.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(20, 15, 56, 0.94); }
.lightbox-inner {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 56px 72px 24px;
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox-caption { color: #fff; margin-top: 12px; text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff;
  border: 0; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-btn:focus-visible { outline-color: var(--haldi); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-inner { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--indigo); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--muted); font-weight: 500; font-size: 1rem; }
.contact-list a, .contact-list span { font-size: 1.25rem; font-weight: 600; word-break: break-word; }

.form-panel { background: var(--concrete); padding: clamp(24px, 4vw, 40px); }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid #b9b6c6; background: var(--white);
  font: inherit; color: inherit;
}
form input:focus-visible, form textarea:focus-visible, form select:focus-visible {
  outline: 3px solid var(--indigo); outline-offset: 0; border-color: var(--indigo);
}
form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.95rem; color: var(--muted); margin-top: 12px; }
.form-error { color: var(--red-deep); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map-frame { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Call to act (shared) ---------- */
.act-band { background: var(--red); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.act-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.act-band h2 { color: #fff; max-width: 18ch; margin-bottom: 0.3em; }
.act-band p { margin: 0; font-size: 1.2rem; max-width: 46ch; }
.act-band :focus-visible { outline-color: var(--haldi); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo); color: rgba(255,255,255,0.86);
  padding: 64px 0 28px; font-size: 1rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--haldi); }
.site-footer :focus-visible { outline-color: var(--haldi); }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1.2fr;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.25rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 5px; }
.footer-brand span { font-stretch: 75%; font-weight: 750; font-size: 1.4rem; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 40px; padding-top: 18px; font-size: 0.92rem;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
