/* =========================================================
   Samyaprash Education & Charitable Trust
   Layout: full-width photo hero, centred section titles with a
   lotus divider, photo cards, and a warm white page between
   rani (brand) and kesar (logo saffron) accents.
   ========================================================= */
:root {
  /* colour */
  --bg: #fffaf3;
  --surface: #ffffff;
  --sand: #fbf0e1;
  --line: #efdcc3;
  --rani: #a10e4e;
  --rani-dark: #5c0a2e;
  --rani-deep: #3d061e;
  --kesar: #e8731a;
  --kesar-ink: #b4510c;
  --gold: #d9a33a;
  --ink: #2a1a14;
  --muted: #6b5549;

  /* type */
  --font-head: "Baloo Bhai 2", "Noto Sans Gujarati", system-ui, sans-serif;
  --font-body: "Noto Sans Gujarati", "Baloo Bhai 2", system-ui, sans-serif;
  --font-skt: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --fs-body: 1.0625rem;                                   /* 17px */
  --fs-small: .9375rem;                                   /* 15px */
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h1: clamp(2.125rem, 1.45rem + 2.9vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem);

  /* space */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --gutter: clamp(1.25rem, .9rem + 1.5vw, 2rem);
  --max: 1200px;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(61, 6, 30, .22);
  --shadow-lg: 0 24px 60px -24px rgba(61, 6, 30, .35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rani); }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0; font-family: var(--font-head); color: var(--rani-dark);
  text-wrap: balance; letter-spacing: 0;
}
h1 { font-size: var(--fs-h1); line-height: 1.2; font-weight: 800; }
h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.35; font-weight: 700; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--kesar); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--tight { padding-top: 0; }

/* ---------- section title: centred, with lotus divider ---------- */
.title {
  text-align: center; max-width: 46rem; margin: 0 auto var(--s7);
  display: grid; justify-items: center; gap: var(--s3);
}
.title .eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
  color: var(--kesar-ink); line-height: 1.4;
}
.title p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.75; max-width: 40rem; }
.title--left { text-align: left; justify-items: start; margin-inline: 0; margin-bottom: var(--s2); }
.lotus { display: flex; align-items: center; gap: var(--s3); color: var(--gold); width: min(220px, 70%); }
.lotus::before, .lotus::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.lotus svg { width: 30px; height: 20px; flex: none; }
.title--left .lotus { width: 180px; }
.on-dark .title h2, .on-dark h2 { color: #fff; }
.on-dark .title p { color: #f1dccc; }
.on-dark .title .eyebrow { color: #ffc56b; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 50px; padding: 0 var(--s5);
  font: 600 1rem/1.2 var(--font-head); letter-spacing: .01em;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--kesar { background: var(--kesar); color: #fff; box-shadow: 0 8px 20px -10px rgba(232, 115, 26, .9); }
.btn--kesar:hover { background: #d4620d; }
.btn--rani { background: var(--rani); color: #fff; }
.btn--rani:hover { background: var(--rani-dark); }
.btn--outline { border-color: var(--rani); color: var(--rani); background: transparent; }
.btn--outline:hover { background: var(--rani); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--rani-dark); }
.btn--white { background: #fff; color: var(--rani-dark); }
.btn--white:hover { background: var(--sand); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.link-arrow { font-family: var(--font-head); font-weight: 600; color: var(--rani); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--rani-deep); color: #f3d6b4; font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .contact { display: flex; gap: var(--s5); }
.topbar .motto { font-family: var(--font-skt); color: #ffd18a; }

.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 80px; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; min-width: 0; }
.brand img { width: 56px; height: 56px; flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--rani-dark); }
.brand-sub { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
  text-decoration: none; padding: var(--s2) var(--s3); border-radius: 999px;
}
.nav a:hover { color: var(--rani); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--rani); background: var(--sand); }
.nav .btn { margin-left: var(--s3); min-height: 44px; color: #fff; }
.nav .btn:hover, .nav .btn[aria-current="page"] { background: var(--rani-dark); color: #fff; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--rani-dark); cursor: pointer; place-items: center; padding: 0;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--rani-deep); overflow: hidden; isolation: isolate; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 2400 / 1078; min-height: 540px; object-fit: cover; object-position: left center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(61, 6, 30, 0) 34%, rgba(61, 6, 30, .55) 62%, rgba(61, 6, 30, .78));
}
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 1; }
.hero-content .container { display: flex; justify-content: flex-end; }
.hero-copy { width: min(560px, 48%); display: grid; gap: var(--s4); color: #fff; }
.hero-name {
  justify-self: start; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: var(--s1) var(--s4); border-radius: 999px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3); color: #ffe2b0;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ffc56b; }
.hero-tagline { font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; color: #ffe7cf; }
.hero-tagline span { color: var(--gold); margin-inline: var(--s2); }
.hero .btn-row { margin-top: var(--s2); }

/* stats band that sits on the hero's lower edge */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats-card {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.stat { padding: var(--s5) var(--s4); text-align: center; display: grid; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); line-height: 1.1; color: var(--rani); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(61, 6, 30, .72), rgba(61, 6, 30, .86)); }
.page-hero .container { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); display: grid; justify-items: center; gap: var(--s3); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #f6dfcc; font-size: var(--fs-lead); max-width: 40rem; }
.crumbs { display: flex; gap: var(--s2); font-size: var(--fs-small); color: #f0c9a8; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- intro / about split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split > * { min-width: 0; }
.split-media img { width: 100%; max-width: 460px; margin-inline: auto; }
.prose-block { display: grid; gap: var(--s4); }
.prose-block p { color: var(--ink); }
.prose-block .lead { font-size: var(--fs-lead); color: var(--muted); }
.parents { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.person { background: var(--sand); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); }
.person small { display: block; font-size: .8125rem; color: var(--muted); }
.person b { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--rani-dark); }

/* quote card */
.quote {
  position: relative; margin: 0; background: var(--sand); border-radius: var(--radius);
  padding: var(--s5) var(--s5) var(--s5) calc(var(--s5) + 2.25rem);
}
.quote::before {
  content: "“"; position: absolute; left: var(--s4); top: -.1em;
  font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--kesar);
}
.quote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.5; color: var(--rani); }
.section--sand .quote { background: var(--surface); box-shadow: var(--shadow); }
.quote cite { display: block; margin-top: var(--s2); font-style: normal; font-size: var(--fs-small); color: var(--muted); }

/* ---------- photo cards (katha types) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: var(--s5); display: grid; gap: var(--s2); align-content: start; flex: 1; }
.card-body small { font-family: var(--font-head); font-weight: 600; color: var(--kesar-ink); font-size: .9375rem; }
.card-body p { font-size: var(--fs-small); line-height: 1.75; color: var(--muted); }
.center { text-align: center; margin-top: var(--s7); }

/* ---------- upcoming katha ---------- */
.events { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.event-list { display: grid; gap: var(--s4); }
.event {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
  box-shadow: var(--shadow);
}
.date-badge {
  width: 96px; text-align: center; border-radius: 12px; overflow: hidden; background: var(--sand);
  border: 1px solid var(--line); font-family: var(--font-head);
}
.date-badge .m { display: block; background: var(--rani); color: #fff; font-weight: 600; font-size: .8125rem; padding: 4px 0; letter-spacing: .06em; }
.date-badge .d { display: block; font-weight: 800; font-size: 1.75rem; line-height: 1.2; color: var(--rani-dark); padding-top: 6px; }
.date-badge .y { display: block; font-size: .8125rem; color: var(--muted); padding-bottom: 6px; }
.event h3 { margin-bottom: var(--s1); }
.event-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-small); color: var(--muted); }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 18px; height: 18px; color: var(--kesar); flex: none; }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8125rem; color: #fff; background: var(--kesar); border-radius: 999px; padding: 1px 12px; margin-left: var(--s2); vertical-align: middle; }
.event-cta { background: var(--rani-dark); color: #fff; border-radius: var(--radius); padding: var(--s5); display: grid; gap: var(--s3); }
.event-cta h3 { color: #fff; }
.event-cta p { color: #f1dccc; font-size: var(--fs-small); }
.poster img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.poster figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: var(--s2); text-align: center; }

/* ---------- vidyapith ---------- */
.vision-art img { width: 100%; }
.vision-copy { display: grid; gap: var(--s4); }
.vision-brand { font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; font-size: .9375rem; color: var(--kesar-ink); }
.vision-quote { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); line-height: 1.45; color: var(--rani); }
.note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5);
}
.note svg { width: 24px; height: 24px; color: var(--kesar); margin-top: 3px; }
.note b { display: block; font-family: var(--font-head); color: var(--rani-dark); }
.note span { font-size: var(--fs-small); color: var(--muted); }

/* ---------- videos ---------- */
.video-feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s5); }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--rani-deep); box-shadow: var(--shadow-lg); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.channel-card { background: var(--rani-dark); color: #fff; border-radius: var(--radius); padding: var(--s6) var(--s5); display: grid; gap: var(--s3); align-content: center; }
.channel-card .yt-logo { width: 54px; height: 38px; }
.channel-card h3 { color: #fff; }
.channel-card p { color: #f1dccc; font-size: var(--fs-small); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s6); }
.video-card { text-decoration: none; color: inherit; display: grid; gap: var(--s3); }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .thumb img { transform: scale(1.05); }
.play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(161, 14, 78, .92); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.video-card b { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--rani-dark); line-height: 1.4; }
.video-card span { font-size: .875rem; color: var(--muted); }
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: var(--rani-deep); }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin: var(--s8) 0 var(--s5); }

/* ---------- photo moments (home) ---------- */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.moments .zoom { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.moments img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.moments .zoom:hover img { transform: scale(1.05); }

/* ---------- press ---------- */
.press { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.press figure { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.press figcaption { padding: var(--s4); display: grid; gap: 2px; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.press figcaption b { font-family: var(--font-head); font-size: 1rem; color: var(--rani-dark); }
.zoom { all: unset; display: block; cursor: zoom-in; box-sizing: border-box; }
.zoom:focus-visible { outline: 3px solid var(--kesar); outline-offset: -3px; }
.press .zoom img { width: 100%; height: 240px; object-fit: cover; object-position: top; background: #fff; }

/* ---------- inquiry ---------- */
.inquiry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.inquiry-side { background: var(--rani-dark); color: #fff; padding: clamp(1.75rem, 1rem + 3vw, 3rem); display: grid; gap: var(--s5); align-content: start; position: relative; isolation: isolate; overflow: hidden; }
.inquiry-side::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 240px; height: 240px; z-index: -1;
  background: url("../img/logo.webp") center / contain no-repeat; opacity: .1;
}
.inquiry-side h2 { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
.inquiry-side > p { color: #f1dccc; }
.ways { display: grid; gap: var(--s3); }
.way { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); align-items: center; color: #fff; text-decoration: none; }
.way i { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.way svg { width: 20px; height: 20px; color: #ffc56b; }
.way small { display: block; font-size: .8125rem; color: #e9c4ad; line-height: 1.3; }
.way b { font-weight: 600; overflow-wrap: anywhere; line-height: 1.4; }
a.way:hover b { text-decoration: underline; }
.inquiry-form { padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
.inquiry-form h3 { margin-bottom: var(--s1); }
.inquiry-form > p { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--s5); }

/* form fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s4); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9375rem; color: var(--rani-dark); }
.field label i { font-style: normal; color: var(--rani); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c0a2e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--kesar); background: #fff; box-shadow: 0 0 0 4px rgba(232, 115, 26, .15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c62828; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips button {
  font: 600 .9375rem var(--font-head); color: var(--rani-dark); background: var(--sand);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer;
}
.chips button:hover, .chips button[aria-pressed="true"] { border-color: var(--rani); background: #fff; color: var(--rani); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.form-foot .hint { font-size: .875rem; color: var(--muted); flex: 1 1 220px; }
.form-error { grid-column: 1 / -1; color: #c62828; font-weight: 600; font-size: .9375rem; min-height: 0; }
.form-error:empty { display: none; }
.form-done { display: none; background: #eef8ef; border: 1px solid #b9dfbf; color: #1f5f2a; border-radius: 10px; padding: var(--s3) var(--s4); margin-top: var(--s4); font-size: var(--fs-small); }
.form-done.show { display: block; }

/* ---------- contact info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s8); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); display: grid; gap: var(--s2); align-content: start; box-shadow: var(--shadow); }
.info-card i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); }
.info-card svg { width: 22px; height: 22px; color: var(--rani); }
.info-card h3 { font-size: 1.125rem; }
.info-card p, .info-card a { font-size: var(--fs-small); color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--rani); }

/* ---------- seva ---------- */
.seva-band { background: var(--rani); color: #fff; border-radius: 20px; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.seva-band::after { content: ""; position: absolute; left: -60px; top: -60px; width: 220px; height: 220px; z-index: -1; background: url("../img/logo.webp") center / contain no-repeat; opacity: .08; }
.seva-band h2 { color: #fff; }
.seva-band h2 em { font-style: normal; color: #ffc56b; }
.seva-band p { color: #f6dfe8; margin-top: var(--s3); max-width: 38rem; }
.seva-band .btn-row { margin-top: var(--s5); }
.qr-card { background: #fff; border-radius: var(--radius); padding: var(--s4); text-align: center; box-shadow: var(--shadow-lg); }
.qr-card img { width: 200px; margin-inline: auto; }
.qr-card p { color: var(--muted); font-size: .8125rem; margin-top: var(--s2); }
.bank-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.bank-card > h3 { background: var(--sand); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.bank-card dl { margin: 0; padding: var(--s3) var(--s5) var(--s5); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3) var(--s5); font-size: var(--fs-small); }
.bank-card dt { color: var(--muted); }
.bank-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy { all: unset; cursor: pointer; margin-left: var(--s2); font-family: var(--font-head); font-size: .8125rem; font-weight: 600; color: var(--rani); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; }
.copy:hover { border-color: var(--rani); }
.seva-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
.seva-side { display: grid; gap: var(--s5); }
.seva-side .qr-card { box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: center; text-align: left; }
.seva-side .qr-card img { width: 140px; margin: 0; }
.seva-side .qr-card b { font-family: var(--font-head); color: var(--rani-dark); font-size: 1.125rem; }

/* ---------- about page ---------- */
.reading { max-width: 46rem; margin-inline: auto; display: grid; gap: var(--s4); }
.reading h2 { margin-top: var(--s6); }
.reading h2:first-child { margin-top: 0; }
.reading .quote { margin-block: var(--s3); }
.lineage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-block: var(--s3); }
.lineage figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lineage img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.lineage figcaption { padding: var(--s3); text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--rani-dark); }
.milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-block: var(--s3); }
.milestone { background: var(--sand); border-radius: var(--radius); padding: var(--s5) var(--s4); text-align: center; }
.milestone b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); color: var(--rani); line-height: 1.15; font-variant-numeric: tabular-nums; }
.milestone span { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; display: block; margin-top: 4px; }
.honour { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s5); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); margin-block: var(--s3); }
.honour img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.honour small { font-family: var(--font-head); font-weight: 600; color: var(--kesar-ink); }
.honour h3 { margin-block: 2px var(--s2); }
.honour p { font-size: var(--fs-small); color: var(--muted); }

/* ---------- gallery ---------- */
.tabs { display: flex; justify-content: center; gap: var(--s2); margin-bottom: var(--s7); flex-wrap: wrap; }
.tabs a {
  font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--rani-dark);
  padding: 10px 26px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
}
.tabs a:hover { border-color: var(--rani); }
.tabs a[aria-selected="true"] { background: var(--rani); border-color: var(--rani); color: #fff; }
.tab-panel + .tab-panel { margin-top: var(--s8); }
.js .tab-panel + .tab-panel { margin-top: 0; }
.panel-title { text-align: center; margin-bottom: var(--s5); }
.photo-grid { columns: 3 260px; column-gap: var(--s4); }
.photo-grid .zoom { width: 100%; margin-bottom: var(--s4); break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.photo-grid img { width: 100%; transition: transform .5s ease; }
.photo-grid .zoom:hover img { transform: scale(1.04); }
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.yt-lite { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--rani-deep); box-shadow: var(--shadow); }
.yt-lite img, .yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-lite > a { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.yt-lite button { all: unset; position: absolute; inset: 0; cursor: pointer; }
.yt-lite button:focus-visible .play { outline: 3px solid #ffc56b; outline-offset: 3px; }

/* ---------- prayer + footer ---------- */
.prayer { background: var(--sand); text-align: center; padding-block: var(--s7); border-top: 1px solid var(--line); }
.prayer p { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); line-height: 1.6; color: var(--rani-dark); }
.prayer .lotus { margin: 0 auto var(--s3); }

.footer { background: var(--rani-deep); color: #e8cbbd; font-size: var(--fs-small); padding-top: var(--s8); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: var(--s6); }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: #d8b2a2; }
.footer .brand img { background: #fff; border-radius: 50%; }
.footer h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: #ffc56b; margin-bottom: var(--s4); }
.footer p { line-height: 1.7; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer a { color: #f3dccd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .about-text { margin-top: var(--s4); max-width: 30ch; }
.footer .yt-link { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); font-family: var(--font-head); font-weight: 600; }
.footer .yt-link svg { width: 26px; height: 18px; }
.footer address { font-style: normal; display: grid; gap: var(--s3); }
.footer dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--s3); }
.footer dt { color: #c69e8c; }
.footer dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.footer-bottom { margin-top: var(--s7); border-top: 1px solid rgba(255, 255, 255, .12); padding-block: var(--s4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); font-size: .8125rem; color: #c69e8c; }
.footer-bottom b { color: #ffc56b; font-weight: 600; }

/* floating WhatsApp */
.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1ea952; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(30, 4, 15, .94); display: grid; place-items: center; padding: var(--s5); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; top: 12px; right: 16px; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1100px) {
  .cards, .video-grid, .press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding-inline: 10px; }
}
@media (max-width: 960px) {
  .topbar .motto { display: none; }
  .header .container { min-height: 68px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.3rem; }
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: var(--s2) var(--gutter) var(--s5); max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav a:hover, .nav a[aria-current="page"] { background: none; }
  .nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--kesar); margin-right: 10px; vertical-align: middle; }
  .nav .btn { margin: var(--s4) 0 0; border-bottom: 0; }
  .hero-media img { min-height: 0; aspect-ratio: 4 / 3; object-position: 14% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(61, 6, 30, 0) 55%, rgba(61, 6, 30, .9)); }
  .hero-content { position: static; display: block; background: var(--rani-deep); }
  .hero-content .container { display: block; padding-block: var(--s6) calc(var(--s8) + var(--s4)); }
  .hero-copy { width: 100%; }
  .stats { margin-top: -48px; }
  .stats-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .split--rev, .events, .video-feature, .inquiry, .seva-grid, .seva-band { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split-media { order: -1; }
  .split-media img { max-width: 380px; }
  .seva-band { text-align: center; }
  .seva-band p { margin-inline: auto; }
  .seva-band .btn-row { justify-content: center; }
  .qr-card { justify-self: center; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --fs-body: 1rem; }
  body { line-height: 1.75; }
  .topbar .contact { gap: var(--s4); font-size: .8125rem; }
  .topbar .contact .email { display: none; }
  .title { margin-bottom: var(--s6); }
  .btn { min-height: 48px; }
  .hero .btn-row .btn, .event-cta .btn, .seva-band .btn, .form-foot .btn { width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card-img { aspect-ratio: 16 / 10; }
  .video-grid { gap: var(--s4); }
  .press { gap: var(--s4); }
  .press .zoom img { height: 180px; }
  .press figcaption { padding: var(--s3); font-size: .8125rem; }
  .event { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .date-badge { width: auto; display: flex; align-items: baseline; gap: var(--s2); padding: 6px 12px; justify-self: start; }
  .date-badge .m { order: 2; background: none; color: var(--rani); padding: 0; font-size: .875rem; }
  .date-badge .d { padding: 0; font-size: 1.375rem; }
  .date-badge .y { order: 3; padding: 0; }
  .parents { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .info-cards { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--s7); }
  .info-card { grid-template-columns: 48px minmax(0, 1fr); align-items: center; column-gap: var(--s4); }
  .info-card i { grid-row: span 2; }
  .milestones { grid-template-columns: minmax(0, 1fr); }
  .lineage { gap: var(--s3); }
  .honour { grid-template-columns: minmax(0, 1fr); }
  .honour .zoom { max-width: 220px; }
  .photo-grid { columns: 2; column-gap: var(--s3); }
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .photo-grid .zoom { margin-bottom: var(--s3); }
  .yt-grid { grid-template-columns: minmax(0, 1fr); }
  .reels { gap: var(--s3); }
  .sub-head { margin-top: var(--s7); }
  .seva-side .qr-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .seva-side .qr-card img { margin-inline: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .footer-bottom { flex-direction: column; }
  .wa { width: 50px; height: 50px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa svg { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* seva form card */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
