/* Public website — Shree Krishan Gaushala */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --cream: #fbf6ee;
  --sand: #f3e8d6;
  --ink: #26190f;
  --muted: #6f5f4f;
  --maroon: #7c2d12;
  --maroon-d: #5a1f0b;
  --saffron: #e8741c;
  --saffron-l: #fde3c8;
  --green: #1a9e51;
  --radius: 18px;
  --head: "Baloo Paaji 2", "Mukta", "Noto Sans Gurmukhi", system-ui, sans-serif;
  --body: "Mukta", "Noto Sans Gurmukhi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--maroon); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pre { white-space: pre-line; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; min-height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem/1.2 var(--body); text-decoration: none; transition: transform .1s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.big { padding: 15px 28px; font-size: 1.1rem; }
.btn.block { display: flex; width: 100%; }
.btn-donate { background: var(--saffron); color: #fff; box-shadow: 0 6px 18px -8px rgba(232,116,28,.8); }
.btn-donate:hover { background: #d4640f; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost-dark { background: #fff; color: var(--ink); border: 2px solid var(--sand); }
.btn-wa { background: var(--green); color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,246,238,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--sand); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); font-family: var(--head); font-weight: 800; font-size: 1.15rem; min-width: 0; }
.logo > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--maroon); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.links a:hover { background: var(--sand); }
.nav-donate { padding: 9px 18px; min-height: 0; }
@media (max-width: 900px) { .links { display: none; } .nav-donate { margin-left: auto; } }
@media (max-width: 560px) { .nav-donate { display: none; } .logo { font-size: 1rem; } }

/* ---------- hero */
.hero {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  min-height: min(78vh, 640px); display: grid; place-items: center; padding: 64px 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(253,227,200,.25) 0 2px, transparent 3px) 0 0 / 28px 28px,
    radial-gradient(ellipse at 50% 120%, #e8741c 0%, transparent 60%),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-d) 100%);
}
.hero.has-photo { background: linear-gradient(180deg, rgba(40,15,5,.55) 0%, rgba(40,15,5,.35) 40%, rgba(40,15,5,.75) 100%), var(--hero) center / cover no-repeat; }
.hero-in { max-width: 820px; }
.jai { font-family: var(--head); letter-spacing: .08em; color: var(--saffron-l); margin: 0 0 8px; font-size: 1.05rem; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 4.2rem); margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.pa-name { font-family: var(--head); font-size: clamp(1.2rem, 3.2vw, 1.6rem); margin: 0 0 2px; color: var(--saffron-l); }
.tagline { font-family: var(--head); font-size: clamp(1.2rem, 3.4vw, 1.7rem); margin: 18px 0 28px; color: var(--saffron-l); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.strip { display: flex; justify-content: center; gap: clamp(20px, 6vw, 80px); flex-wrap: wrap; background: var(--saffron); color: #fff; padding: 18px 16px; text-align: center; }
.strip b { display: block; font-family: var(--head); font-size: 1.9rem; line-height: 1.1; }
.strip span { font-size: .95rem; opacity: .95; }

/* ---------- sections */
.sec { padding: clamp(56px, 9vw, 96px) 0; }
.sec.alt { background: var(--sand); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--saffron); margin: 0 0 8px; }
.eyebrow.light { color: var(--saffron-l); }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.lead { font-size: 1.12rem; color: #3b2a1c; margin: 0; }
.about-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(60,20,5,.6); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.hcard { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 10px 30px -22px rgba(60,20,5,.5); }
.hic { width: 56px; height: 56px; border-radius: 16px; background: var(--saffron-l); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 14px; }
.hcard p { margin: 0; color: var(--muted); }

/* ---------- donate */
.donate { background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-d) 100%); color: #fff; }
.donate h2 { color: #fff; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 28px; }
.dcard { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dcard h3 { margin: 0; color: var(--maroon); }
.dcard p { margin: 0; }
.qr { align-self: center; padding: 10px; background: #fff; border: 2px solid var(--sand); border-radius: 12px; min-width: 224px; min-height: 224px; }
.qr img, .qr canvas { width: 200px; height: 200px; }
.copyrow { display: flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 12px; padding: 8px 10px; }
.copyrow code { flex: 1; font-size: 1rem; word-break: break-all; }
.copy { border: 1.5px solid var(--sand); background: #fff; border-radius: 999px; padding: 4px 12px; font: 600 .85rem var(--body); cursor: pointer; color: var(--maroon); }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.mobile-only { display: none; }
@media (hover: none) and (pointer: coarse) { .mobile-only { display: flex; } }

/* ---------- gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 20px; }
.gitem { display: block; border-radius: 14px; overflow: hidden; }
.gitem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gitem:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,10,5,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; }

/* ---------- contact & footer */
.contact { max-width: 720px; margin: 20px auto 0; text-align: center; font-size: 1.1rem; }
.addr { font-weight: 600; }
.cbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.foot { background: var(--ink); color: #e9dccb; text-align: center; padding: 36px 0 90px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--saffron-l); }
.foot .jai { color: var(--saffron); }

.float-donate {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  background: var(--saffron); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
@media (max-width: 560px) { .float-donate { display: inline-flex; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .gitem img { transition: none; } }

/* ---------- v2 additions */
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.addr-line { margin-top: 16px; font-weight: 600; color: var(--maroon); }
.totals { margin: 28px auto 0; max-width: 720px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 20px 24px; text-align: center; }
.totals h3 { color: #fff; margin: 0 0 12px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tgrid div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 12px; }
.tgrid span { display: block; font-size: .9rem; color: var(--saffron-l); }
.tgrid b { font-family: var(--head); font-size: 1.6rem; }
.totals .small { color: var(--saffron-l); margin: 12px 0 0; }

.hero-logo { display: block; width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.85); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); }
@media (max-width: 560px) { .hero-logo { width: 116px; height: 116px; } }

.verify { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.verify b { color: #166534; }
.verify p { margin: 4px 0 0; color: #1f2937; }
.verify strong { display: inline-block; background: #fff; border: 1px solid #86efac; border-radius: 6px; padding: 0 6px; letter-spacing: .02em; }
