/* Public website — "temple heritage": sandalwood paper, kumkum, turmeric, tulsi, temple stone.
   Deliberately light on every device (a devotional site, not an app). Mobile first. */
.site {
  color-scheme: light;
  --bg: #fbf5ea; --surface: #fffdf8; --paper-2: #f4e9d6; --line: #e7d8c1;
  --ink: #2a1d14; --muted: #6b5847; --stone: #2b221c;
  --accent: #8e1b1b; --accent-deep: #5d0f12; --accent-ink: #fff8ee; --accent-soft: #f6e4dc;
  --gold: #d99a1e; --gold-soft: #fbeccb; --tulsi: #2f6b3a;
  --serif: "Noto Serif", "Noto Serif Telugu", "Noto Serif Devanagari", Cambria, Georgia, serif;
  --shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 8px 24px rgba(60, 30, 10, .08);
  --toran: linear-gradient(135deg, var(--gold) 25%, transparent 25%) 0 0 / 16px 16px,
           linear-gradient(225deg, var(--gold) 25%, transparent 25%) 0 0 / 16px 16px;
  background: var(--bg); color: var(--ink); font-size: 16.5px;
}
.site h1, .site h2, .site h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; color: var(--accent-deep); }
.site h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; margin: 0 0 .4em; }
.site h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin: 0 0 .5em; }
:where(.site) a { color: var(--accent); } /* zero specificity: any class rule (.btn, nav, footer) wins */
.local { display: inline-block; font-weight: 500; color: var(--muted); font-size: .9em; }
.eyebrow { display: block; font: 700 .75rem/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--surface); color: var(--accent); border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }
.icon { width: 1.5em; height: 1.5em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* buttons: warmer, with a lit hover */
.site .btn { border-radius: 999px; padding: 10px 20px; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.site .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(142, 27, 27, .25); }
.site .btn:active { transform: none; }
.site .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--stone); }
.site .btn.ghost { background: transparent; border-color: rgba(255, 248, 238, .7); color: var(--accent-ink); }
.site .card { border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow); }

html { scroll-padding-top: 120px; }  /* sticky header height + margin */

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--accent-deep); color: var(--accent-ink); }
.site-header::after { content: ""; display: block; height: 8px; background: var(--toran); background-color: var(--accent-deep); }
.site-top { display: flex; align-items: center; gap: 14px; max-width: 1180px; margin: 0 auto; padding: 10px 16px 4px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--accent-ink); text-decoration: none; line-height: 1.15; margin-right: auto; }
.site-brand .mark { width: 38px; height: 38px; color: var(--gold); }
.site-brand strong { font: 700 1.1rem/1.15 var(--serif); display: block; }
.site-brand .local { color: var(--gold-soft); font-size: .85rem; }
.site-brand img { border-radius: 50%; background: #fff; }
.header-cta { display: none; }
.lang { display: flex; gap: 4px; flex-shrink: 0; }
.lang button { min-height: 34px; min-width: 44px; padding: 4px 10px; border: 1px solid rgba(255, 248, 238, .45); border-radius: 999px; background: transparent; color: var(--accent-ink); font: inherit; font-size: .85rem; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--stone); font-weight: 700; }
.site-nav { max-width: 1180px; margin: 0 auto; padding: 0 8px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav a { display: block; padding: 11px 11px 12px; color: var(--accent-ink); opacity: .88; text-decoration: none; white-space: nowrap; font-size: .95rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { opacity: 1; border-bottom-color: rgba(217, 154, 30, .5); }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--gold); font-weight: 700; }
.site-header :focus-visible { box-shadow: 0 0 0 3px var(--gold); border-radius: 4px; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

/* page banner (inner pages): photo or pattern, content panel overlaps it */
.page-banner { height: 150px; background: var(--accent) center / cover no-repeat;
  background-image: radial-gradient(circle at 18px 18px, rgba(217, 154, 30, .22) 2px, transparent 3px), linear-gradient(135deg, var(--accent-deep), var(--accent));
  background-size: 36px 36px, cover; position: relative; }
.page-banner.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 10, 5, .15), rgba(40, 10, 5, .55)); }
.banner-sevas { background-image: url("../img/site/marigold.22fb02890f08.jpg"); background-position: center 40%; }
.banner-darshan, .banner-donate { background-image: url("../img/site/temple-lamps.820c156fa8de.jpg"); background-position: center 60%; }
.banner-events { background-image: url("../img/site/festival-night.8b8fcbe3e0fc.jpg"); background-position: center 35%; }
.page-banner.photo { background-size: cover; }
.site main { max-width: 1180px; padding: 24px 16px 48px; }
.site main:focus { outline: none; }
.site main.full { max-width: none; padding: 0; }            /* home: sections set their own width */
.page-banner + main { position: relative; margin-top: -64px; }
.page-banner + main > :first-child { background: var(--surface); border-radius: 14px 14px 0 0; padding: 18px 20px 6px; margin: 0 -4px 12px; box-shadow: 0 -6px 18px rgba(60, 30, 10, .08); }
@media (min-width: 800px) { .page-banner { height: 210px; } .page-banner + main { margin-top: -80px; } .page-banner + main > :first-child { padding: 24px 28px 8px; } }

/* announcements */
.notice-bar { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.notice-bar ul { list-style: none; margin: 14px 0 0; padding: 10px 16px; display: grid; gap: 4px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 10px; color: var(--stone); font-weight: 600; }

/* home — hero: name + actions beside the gopuram in a temple-doorway arch */
.hero { max-width: 1180px; margin: 0 auto; padding: 28px 16px 8px; display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); margin: 0; }
.hero h1 .local { display: block; font-size: .5em; color: var(--accent); margin-top: .35em; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 16px 0 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.arch { position: relative; margin: 0; }
.arch img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 40% 30%;
  border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px; border: 6px solid var(--surface); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.arch figcaption { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-deep); color: var(--gold-soft); font: 600 .8rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; padding-top: 44px; } .arch img { aspect-ratio: 4 / 4.6; } }

/* quick actions */
.quick { max-width: 1180px; margin: 30px auto 0; padding: 0 16px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); list-style: none; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--gold); }
.quick a:focus-visible, .seva-cards a:focus-visible, .event-list a:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.quick .icon { width: 2.4rem; height: 2.4rem; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.quick strong { display: block; font-family: var(--serif); color: var(--accent-deep); }
.quick span span { color: var(--muted); font-size: .85rem; }
@media (min-width: 860px) { .quick { grid-template-columns: repeat(4, 1fr); } }

/* "today" band on the lamps photo */
.today { margin: 44px 0 0; color: #fff4e0; background: #1e140d url("../img/site/temple-lamps.820c156fa8de.jpg") center 58% / cover no-repeat; position: relative; }
.today::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 10, 5, .88) 0%, rgba(20, 10, 5, .55) 55%, rgba(20, 10, 5, .25) 100%); }
.today .inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 44px 16px; display: grid; gap: 20px; }
.today h2 { color: #fff4e0; }
.today .eyebrow { color: var(--gold); }
.today .times { font-size: 1.15rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.today .live { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 700; }
.today .live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #e0564b; box-shadow: 0 0 0 4px rgba(224, 86, 75, .3); }
@media (min-width: 860px) { .today .inner { grid-template-columns: 1fr 1fr; align-items: center; padding: 64px 16px; } }

/* home sections */
.section { max-width: 1180px; margin: 0 auto; padding: 44px 16px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.seva-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.seva-cards a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s; }
.seva-cards a:hover { transform: translateY(-3px); border-color: var(--gold); }
.seva-cards .top { height: 8px; background: var(--toran); background-color: var(--accent); }
.seva-cards .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.seva-cards strong { font: 700 1.1rem/1.25 var(--serif); color: var(--accent-deep); }
.seva-cards .meta { color: var(--muted); font-size: .88rem; margin-top: auto; padding-top: 10px; }
.price { display: block; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 1.15rem; margin: 6px 0 0; }

.split { display: grid; gap: 22px; align-items: stretch; }
.split .photo { min-height: 220px; border-radius: 14px; background: #2a1c10 url("../img/site/festival-night.8b8fcbe3e0fc.jpg") center 40% / cover no-repeat; box-shadow: var(--shadow); }
@media (min-width: 860px) { .split { grid-template-columns: .9fr 1.1fr; } }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.event-list a { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s ease; }
.event-list a:hover { border-color: var(--gold); transform: translateX(3px); }
.event-list time { display: grid; place-items: center; min-width: 64px; padding: 8px 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 700 .8rem/1.15 system-ui, sans-serif; text-align: center; }
.event-list time b { display: block; font: 700 1.5rem/1 var(--serif); }
.event img.wide { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 14px; }

.donate-cta { max-width: 1180px; margin: 48px auto 0; padding: 0 16px; }
.donate-cta .panel { position: relative; overflow: hidden; border-radius: 18px; padding: 34px 26px; color: var(--stone); background: var(--gold-soft); border: 1px solid #efd9a8; }
.donate-cta .panel::after { content: ""; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; border-radius: 50%; background: url("../img/site/marigold.22fb02890f08.jpg") center / cover; opacity: .9; }
.donate-cta .panel > * { position: relative; z-index: 1; max-width: 58ch; }
.donate-cta h2 { margin-top: 0; }
@media (max-width: 700px) { .donate-cta .panel::after { width: 160px; height: 160px; right: -50px; top: -50px; opacity: .6; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.timings { border-top: 4px solid var(--gold); }

/* inner-page components (kept from v1, restyled by the tokens above) */
.plain { list-style: none; padding: 0; margin: 0; }
.tile .local, .seva .local { display: block; }
.seva { display: flex; flex-direction: column; border-top: 4px solid var(--gold); }
.seva h2, .plain h3 { margin-top: 0; font-size: 1.15rem; }
.seva .btn { margin-top: auto; align-self: flex-start; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.form .field { margin-bottom: 4px; }
.form .helptext { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.form .btn.big { margin-top: 16px; }
.site input, .site select, .site textarea { border-radius: 10px; border-color: var(--line); background: #fff; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field.check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--accent); }
.form [role="alert"] .errorlist { background: #fde8e6; color: #b3261e; padding: 10px 14px 10px 28px; border-radius: 10px; }
.search { display: grid; gap: 0 12px; align-items: end; }
@media (min-width: 700px) { .search { grid-template-columns: repeat(3, 1fr) auto; } .search .btn { margin-bottom: 1px; } }
.narrow { max-width: 480px; }
.small { font-size: .85rem; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding-top: 4px; }
.result { max-width: 640px; margin: 20px auto; text-align: center; border-top: 4px solid var(--gold); }
.result .cta, .result p { justify-content: center; }
.credits li { margin-bottom: 10px; }

/* footer */
.site-footer { margin-top: 56px; background: var(--stone); color: #d9c8b4; font-size: .92rem; }
.site-footer::before { content: ""; display: block; height: 8px; background: var(--toran); background-color: var(--stone); transform: scaleY(-1); }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px 20px; display: grid; gap: 22px; }
.site-footer h2 { font-size: 1.05rem; color: var(--gold-soft); margin: 0 0 8px; }
.site-footer p, .site-footer address { margin: 0 0 6px; font-style: normal; }
.site-footer a { color: #f3dfbf; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .12); max-width: 1180px; margin: 0 auto; padding: 14px 16px 22px; font-size: .8rem; color: #b8a58f; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (min-width: 800px) { .site-footer .inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .site * { scroll-behavior: auto !important; transition: none !important; } }
