/* =====================================================================
   Shri Sai Mandir, Khanna: styles
   Palette: warm ivory, deep maroon, soft gold
   ===================================================================== */
:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --surface-2: #f3efe4;
  --text: #2a1f1d;
  --muted: #6b5f5a;
  --green: #6e2431;        /* main colour: deep maroon */
  --green-deep: #5a1c27;   /* darker maroon */
  --green-soft: #f6e9ea;   /* light maroon tint */
  --gold: #b8913a;
  --gold-soft: #f4ecd8;
  --line: #e6e0d2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(60, 30, 30, .04), 0 8px 24px rgba(60, 30, 30, .07);
  --serif: "Tiro Devanagari Hindi", Georgia, serif;
  --sans: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--gold-soft); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--green-deep); }
.logo-text small { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; text-decoration: none; color: var(--text);
  font-size: 15.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--green-soft); color: var(--green-deep); }
.nav a.active { color: var(--green-deep); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--green-deep); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid transparent; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green-soft); }

/* ---------- Ornaments ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow { font-family: var(--serif); color: var(--gold); font-size: 18px; letter-spacing: .02em; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 0 120px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(184, 145, 58, .16), transparent 70%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
}
.hero .lotus { width: 92px; margin: 0 auto 18px; color: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 68px); line-height: 1.15; color: var(--green-deep); }
.hero .tagline { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 22px); color: var(--gold); margin-top: 6px; }
.hero p.lead { max-width: 600px; margin: 22px auto 30px; color: var(--muted); font-size: 18.5px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Next aarti strip (overlaps the hero) */
.next-strip {
  position: relative; z-index: 2; margin: -64px auto 0; max-width: 880px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 28px;
}
.next-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold); }
.next-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.next-name { font-family: var(--serif); font-size: 26px; color: var(--green-deep); line-height: 1.3; }
.next-in { font-size: 15px; color: var(--muted); }
.next-time { font-size: 30px; font-weight: 700; color: var(--green); white-space: nowrap; text-align: right; line-height: 1.2; }
.next-time a { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 42px); color: var(--green-deep); line-height: 1.25; margin: 4px 0 12px; }
.section-head p.sub { max-width: 620px; margin: 0 auto; color: var(--muted); }

/* Inner page banner */
.page-hero {
  text-align: center; padding: 64px 0 56px;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(184, 145, 58, .14), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.5vw, 52px); color: var(--green-deep); line-height: 1.2; margin: 6px 0 10px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* ---------- Home: today's aarti ---------- */
.today { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.today a {
  text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px; text-align: center; transition: border-color .15s, transform .15s;
}
.today a:hover { border-color: var(--green); transform: translateY(-2px); }
.today a.is-next { border: 1.5px solid var(--gold); background: #fffdf7; }
.today .tt { font-size: 22px; font-weight: 700; color: var(--green); }
.today .tn { font-family: var(--serif); font-size: 20px; color: var(--green-deep); }
.today .te { font-size: 14px; color: var(--muted); }
.badge { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--gold); background: var(--gold-soft); padding: 2px 10px; border-radius: 999px; }

/* Explore cards */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.explore a {
  text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; transition: box-shadow .2s, transform .2s;
}
.explore a:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.explore .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.explore h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--green-deep); line-height: 1.3; }
.explore p { color: var(--muted); font-size: 16px; margin: 6px 0 14px; }
.explore .more { font-weight: 600; color: var(--green); font-size: 15px; }

/* Quote band */
.quote-band { background: var(--gold-soft); text-align: center; padding: 70px 0; border-top: 1px solid #e8d9b3; }
.quote-band blockquote { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.3; color: var(--green-deep); }
.quote-band p { color: var(--muted); margin-top: 10px; }

/* ---------- About ---------- */
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--green-deep); margin: 0 0 10px; }
.prose h2:not(:first-child) { margin-top: 44px; }
.prose p { margin-bottom: 14px; }
.prose em { font-style: normal; color: var(--gold); font-size: 15px; }
.prose strong { color: var(--green-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ic { color: var(--gold); margin-bottom: 10px; }
.feature h3 { font-size: 17.5px; font-weight: 600; color: var(--green-deep); }
.feature p { font-size: 15px; color: var(--muted); }
.feature p em { font-style: normal; color: var(--gold); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-ph { height: 100%; display: grid; place-content: center; text-align: center; gap: 6px; color: var(--muted); font-size: 14px; }
.g-ph svg { margin: 0 auto; color: var(--gold); opacity: .7; }

/* ---------- 11 Vachan ---------- */
.vachan-list { list-style: none; display: grid; gap: 16px; }
.vachan {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
}
.v-num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; color: var(--green-deep);
  background: var(--gold-soft); border: 1px solid #e8d9b3;
}
.v-hi { font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--green-deep); }
.v-mean { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 16.5px; line-height: 1.75; color: var(--muted); }
.v-tag { display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; }
.v-en { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- Aarti ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.t-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s;
}
.t-item:hover { border-color: var(--green); transform: translateY(-2px); }
.t-item.is-next { border: 1.5px solid var(--gold); background: #fffdf7; }
.t-time { font-size: 21px; font-weight: 700; color: var(--green); }
.t-name { font-family: var(--serif); font-size: 19px; color: var(--green-deep); }
.t-en { font-size: 13.5px; color: var(--muted); }
.t-badge { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--gold); background: var(--gold-soft); padding: 1px 10px; border-radius: 999px; }

.aarti-list { display: grid; gap: 16px; }
.aarti { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.aarti[open] { box-shadow: var(--shadow); }
.aarti summary { list-style: none; cursor: pointer; padding: 20px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.aarti summary::-webkit-details-marker { display: none; }
.a-time { background: var(--green-soft); color: var(--green-deep); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 15.5px; min-width: 100px; text-align: center; }
.a-title { font-family: var(--serif); font-size: 24px; color: var(--green-deep); line-height: 1.3; }
.a-sub { font-size: 14.5px; color: var(--muted); }
.a-chev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--green); transition: transform .2s; }
.aarti[open] .a-chev { transform: rotate(180deg); }
.a-body { padding: 4px 24px 26px; border-top: 1px solid var(--line); }
.a-desc { margin: 18px 0 10px; color: var(--muted); }
.a-order { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 18px; margin-bottom: 8px; }
.a-order li { counter-increment: s; display: flex; gap: 10px; font-size: 15.5px; align-items: baseline; }
.a-order li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.a-part { margin-top: 20px; }
.a-part h4 { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--gold); margin-bottom: 10px; }

.lyrics {
  font-family: var(--serif); font-size: 20px; line-height: 1.9; white-space: pre-line;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px;
}
.lyrics:has(.l), .lyrics:has(.l-head) { white-space: normal; }
.lyrics .l { display: block; line-height: 1.8; padding-left: 1.2em; text-indent: -1.2em; }
.lyrics .l-gap { display: block; height: .75em; }
.lyrics .l-head + .l-gap, .lyrics .l-gap:has(+ .l-head) { display: none; }
.lyrics .l-head {
  display: block; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: .78em; font-weight: 600; color: var(--green); line-height: 1.6;
}
.lyrics .l-head:first-child { margin-top: 0; }
.lyrics-empty { font-size: 15px; color: var(--muted); background: var(--bg); border: 1px dashed #d9cfb6; padding: 14px 18px; border-radius: 12px; }
.font-tools { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.font-tools button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; cursor: pointer; font-weight: 600; color: var(--green-deep); font-family: var(--sans); }
.font-tools button:hover { background: var(--green-soft); }

/* ---------- Festivals & Seva ---------- */
.festival-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.f-card { display: grid; grid-template-columns: 6px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.f-card::before { content: ""; background: linear-gradient(180deg, var(--gold), var(--green)); }
.f-body { padding: 22px 24px; }
.f-when { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.f-card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; color: var(--green-deep); line-height: 1.3; }
.f-en { font-size: 15px; color: var(--muted); }
.f-card p { margin-top: 8px; color: var(--text); font-size: 16px; }

.seva-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.s-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.s-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 24px; }
.s-card h3 { font-size: 17.5px; font-weight: 600; color: var(--green-deep); }
.s-card p { font-size: 15px; color: var(--muted); }
.note-box { margin-top: 28px; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- Visit / contact ---------- */
.darshan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.d-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.d-card h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.d-time { font-size: 22px; font-weight: 700; color: var(--green); margin: 4px 0; line-height: 1.3; }
.d-card p { font-size: 15px; color: var(--muted); }
.etiquette { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.etiquette span { font-size: 15px; background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--green-deep); margin-bottom: 16px; }
.c-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-bottom: 14px; }
.c-row svg { color: var(--gold); margin-top: 4px; }
.c-row b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-card .btn { margin-top: 8px; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 340px; }
.map-box iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-ph { min-height: 340px; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--muted); padding: 24px; }
.map-ph svg { margin: 0 auto; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.85); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { font-family: var(--serif); font-size: 24px; color: #fff; }
.footer-sub { color: var(--gold-soft); font-family: var(--serif); }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 15.5px; }
.site-footer a:hover { color: #fff; }
.footer-times li { font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; max-width: 240px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.65); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 10px; padding: 12px 14px; }
  .nav a.active::after { left: 14px; right: auto; width: 24px; bottom: 6px; }
  .today, .timeline, .darshan-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .explore, .contact-grid, .festival-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 104px; }
  .section { padding: 60px 0; }
  .next-strip { grid-template-columns: 1fr auto; padding: 18px 20px; gap: 14px; margin-left: 16px; margin-right: 16px; }
  .next-dot { display: none; }
  .next-name { font-size: 22px; }
  .next-time { font-size: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .vachan { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .v-num { width: 42px; height: 42px; font-size: 19px; }
  .v-hi { font-size: 20px; }
  .aarti summary { grid-template-columns: 1fr auto; padding: 18px; }
  .a-time { grid-column: 1 / -1; justify-self: start; min-width: 0; }
  .a-body { padding: 4px 16px 22px; }
  .lyrics { font-size: 18px; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
.page-hero + .section { padding-top: 52px; }
