/* ===== Mandir public website ===== */
@font-face {
  font-family: 'KD010';
  src: local('Kruti Dev 010'), local('KrutiDev010'), url('fonts/KrutiDev010.ttf') format('truetype');
  font-display: block;
}
.kruti { font-family: 'KD010', 'Kruti Dev 010', sans-serif !important; }

:root {
  --maroon: #5B1414; --maroon-d: #3D0B0B; --saffron: #D9550B; --gold: #C8902A; --gold-l: #F2C66B;
  --cream: #FFF8EE; --cream-2: #FBEFDD; --ink: #2A1A12; --muted: #6E5A4E; --line: #EADBC4;
  --green: #1E6B34; --red: #B42318;
  --display: 'Tiro Devanagari Hindi', 'Nirmala UI', serif;
  --body: 'Hind', 'Nirmala UI', 'Noto Sans Devanagari', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; margin: 0 0 .4em; }
h2 { font-size: clamp(28px, 4vw, 40px); color: var(--maroon); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--saffron); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.eyebrow.light { color: var(--gold-l); }
.center { text-align: center; }
.tiny { font-size: 13.5px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold-l); color: var(--maroon-d); }
.btn.gold:hover { background: #F7D488; }
.btn.ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn.small { min-height: 38px; padding: 6px 16px; font-size: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--maroon-d); color: #fff; border-bottom: 3px solid var(--gold); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.logo .om { width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; font-size: 26px; flex: none; box-shadow: 0 0 0 2px var(--gold-l); }
.logo b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--gold-l); }
.logo small { display: block; font-size: 12.5px; color: #F3DCC8; line-height: 1.2; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { color: #FBEBDD; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 16px; white-space: nowrap; }
.menu a:hover, .menu a.on { background: rgba(255,255,255,.1); color: #fff; }
.menu a.cta { background: var(--gold-l); color: var(--maroon-d); font-weight: 700; margin-left: 6px; padding: 8px 18px; border-radius: 999px; }
.burger { display: none; width: 48px; height: 48px; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* hero */
.hero { position: relative; color: #fff; background: radial-gradient(ellipse at 50% 120%, #8A2414 0%, var(--maroon) 45%, var(--maroon-d) 100%); overflow: hidden; }
.hero.has-img { background: var(--maroon-d); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(61,11,11,.35), rgba(61,11,11,.85)); }
.toran { position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 2;
  background: radial-gradient(circle at 50% 0, var(--gold-l) 0 9px, transparent 10px) 0 0/34px 26px repeat-x,
              radial-gradient(circle at 50% 0, #2F7A3A 0 14px, transparent 15px) 17px 0/34px 26px repeat-x; }
.hero-in { position: relative; z-index: 3; padding: clamp(80px, 12vw, 140px) 20px clamp(64px, 9vw, 110px); text-align: center; }
.kicker { color: var(--gold-l); font-size: 18px; letter-spacing: .04em; margin: 0 0 10px; }
.hero h1 { font-size: clamp(36px, 7vw, 72px); color: #fff; margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-addr { font-size: 19px; color: #F6E3D2; margin: 0; }
.aarti { display: inline-block; margin: 18px 0 0; padding: 8px 18px; border: 1px solid rgba(242,198,107,.6); border-radius: 999px; color: var(--gold-l); font-size: 15.5px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* sections */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec.alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about p { margin: 0 0 1em; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 10px 30px -18px rgba(91,20,20,.35); }
.about-card h3 { font-size: 18px; color: var(--saffron); margin: 0 0 2px; }
.about-card p { margin: 0 0 16px; }
.about-card p:last-child { margin: 0; }

/* events timeline */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.day { display: grid; grid-template-columns: 96px 1fr; gap: 20px; }
.day-date { background: var(--maroon); color: #fff; border-radius: 14px; text-align: center; padding: 14px 6px; align-self: start; position: relative; }
.day-date .d { display: block; font-family: var(--display); font-size: 38px; line-height: 1; color: var(--gold-l); }
.day-date .m { font-size: 14px; }
.today-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--saffron); font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.day-full { margin: 0 0 8px; font-weight: 600; color: var(--muted); }
.day-items { display: grid; gap: 10px; }
.ev { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.ev.hl { border-color: var(--gold); background: linear-gradient(#FFFDF8, #FFF6E6); box-shadow: 0 6px 20px -14px rgba(200,144,42,.9); }
.ev h3 { font-size: 21px; margin: 0; color: var(--ink); }
.ev p { margin: 4px 0 0; color: var(--muted); }
.ev-time { display: inline-block; font-size: 14px; font-weight: 600; color: var(--saffron); }
.day.past { opacity: .55; }

/* gallery */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 20px; }
.chip { font: 500 15px var(--body); min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.g-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--cream-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-item:hover img { transform: scale(1.05); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 8px; color: #fff; font-size: 14.5px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.g-item[hidden] { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,6,6,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 92vw; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #fff; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; cursor: pointer; line-height: 1; }
.lb-x { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 24px 0; }
.video { margin: 0; }
.yt, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #E62117; border-radius: 12px; }
.play::after { content: ''; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.yt:hover .play { background: #ff0000; }
.video figcaption { margin-top: 8px; font-weight: 600; }

/* members */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 24px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px; text-align: center; }
.member img, .m-ph { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--gold-l); }
.m-ph { display: grid; place-items: center; background: var(--cream-2); color: var(--maroon); font-family: var(--display); font-size: 44px; }
.member h3 { font-size: 20px; margin: 0; }
.member .post { color: var(--saffron); font-weight: 600; margin: 0 0 4px; }
.member a { font-size: 15px; }

/* donate */
.donate { background: var(--maroon); color: #FBEBDD; position: relative; }
.donate h2 { color: #fff; }
.donate-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.upi-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(0,0,0,.2); border: 1px solid rgba(242,198,107,.4); border-radius: 12px; padding: 12px 16px; margin: 20px 0 14px; }
.upi-row span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-l); }
.upi-row b { font-size: 20px; color: #fff; word-break: break-all; flex: 1; }
.pay-app { width: 100%; max-width: 360px; }
.donate .tiny { color: #E9CDB8; }
.bank { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.bank h3 { font-size: 20px; color: var(--gold-l); }
.bank p { margin: 0; }
.qr-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; text-align: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); max-width: 360px; justify-self: center; width: 100%; border: 4px solid var(--gold-l); }
.qr-card img, #qr svg { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.qr-card p { margin: 12px 0 0; font-weight: 600; }
.qr-card small { color: var(--muted); }
.qr-empty { aspect-ratio: 1; display: grid; place-items: center; background: var(--cream-2); border-radius: 12px; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact dl { margin: 18px 0 0; }
.contact dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--saffron); font-weight: 600; }
.contact dd { margin: 0 0 16px; font-size: 18px; }
.map iframe, .map-ph { width: 100%; height: 360px; border: 0; border-radius: 16px; display: grid; place-items: center; background: var(--cream-2); border: 1px solid var(--line); font-weight: 600; }

/* donation list page */
.page-top { padding-top: 48px; }
.page-h { font-size: clamp(30px, 5vw, 46px); color: var(--maroon); }
.lock-card { max-width: 420px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; text-align: center; display: flex; flex-direction: column; gap: 10px; color: var(--maroon); }
.lock-card svg { margin: 0 auto; }
.lock-card h2 { font-size: 24px; margin: 0; }
.lock-card p { margin: 0; color: var(--muted); }
.lock-card label { text-align: left; font-weight: 600; color: var(--ink); margin-top: 8px; }
.lock-card .err { color: var(--red); font-weight: 600; }
input, select { font: 16px var(--body); min-height: 48px; padding: 10px 14px; border: 1px solid #D8C6AE; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input.kruti { font-size: 22px; }
input:focus, select:focus { outline: 3px solid var(--gold-l); border-color: var(--gold); }
.list-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.list-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.list-stats span { display: block; font-size: 14px; color: var(--muted); }
.list-stats b { font-size: 26px; }
.green { color: var(--green); } .red { color: var(--red); }
.list-filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.list-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; flex: 1; min-width: 150px; }
.dlist { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dl-row { display: grid; grid-template-columns: 110px 110px 1.3fr 1.4fr 120px 150px; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #F3E8D8; align-items: center; }
.dl-row.no-addr { grid-template-columns: 110px 110px 2fr 120px 150px; }
.dl-row.no-due { grid-template-columns: 110px 110px 1.3fr 1.4fr 120px; }
.dl-row.no-addr.no-due { grid-template-columns: 110px 110px 2fr 120px; }
.dl-head { background: var(--cream-2); font-weight: 700; font-size: 14px; color: var(--muted); }
.dl-no { font-weight: 700; color: var(--saffron); }
.dl-name { font-size: 22px; line-height: 1.2; }
.dl-addr { font-size: 19px; color: var(--muted); line-height: 1.2; }
.dl-amt { font-weight: 700; }
.r { text-align: right; }
.tag { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag.paid { background: #E3F4E8; color: var(--green); }
.tag.due { background: #FFF1D6; color: #8A4B00; }
.empty { text-align: center; padding: 30px; color: var(--muted); margin: 0; }

/* footer */
.foot { background: var(--maroon-d); color: #E9CDB8; padding: 40px 0 20px; border-top: 3px solid var(--gold); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--gold-l); }
.foot p { margin: 4px 0; }
.foot a { color: #FBEBDD; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

/* responsive */
@media (max-width: 1080px) {
  .burger { display: flex; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--maroon-d); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 3px solid var(--gold); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 12px; font-size: 17px; }
  .menu a.cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .about, .donate-in, .contact { grid-template-columns: 1fr; gap: 28px; }
  .day { grid-template-columns: 72px 1fr; gap: 12px; }
  .day-date .d { font-size: 30px; }
  .videos { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .members { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member img, .m-ph { width: 92px; height: 92px; }
  .map iframe, .map-ph { height: 280px; }
  .logo b { font-size: 17px; }
  .logo small { display: none; }
  .dl-head { display: none; }
  .dl-row, .dl-row.no-addr, .dl-row.no-due, .dl-row.no-addr.no-due { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; }
  .dl-no { grid-column: 1; } .dl-date { grid-column: 2; text-align: right; font-size: 14px; color: var(--muted); }
  .dl-name { grid-column: 1 / -1; } .dl-addr { grid-column: 1 / -1; }
  .dl-row .r { text-align: left; }
}
@media (max-width: 420px) { .gallery, .members { grid-template-columns: 1fr 1fr; } .wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
