/* Jai Triveni Jai Prayag Seva Samiti — triveniprayag.in */
:root {
  --saffron: #E8590C;
  --saffron-dark: #C2410C;
  --gold: #F59F00;
  --deep: #1E3A5F;
  --deep-dark: #14263F;
  --cream: #FFF8F0;
  --ink: #2B2B2B;
  --muted: #6B6B6B;
  --whatsapp: #25D366;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
  color: var(--ink); background: var(--cream); line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--saffron-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { background: var(--deep-dark); color: #fff; font-size: 0.85rem; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--gold); text-decoration: none; }

/* Mobile: hide Call/WhatsApp/email in the announcement bar, keep only the location/timing text on one line */
@media (max-width: 780px) {
  .topbar-contacts { display: none; }
  .topbar .container { flex-wrap: nowrap; }
  .topbar .container > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
}

/* Header / nav */
header.site { background: #fff; border-bottom: 3px solid var(--saffron); position: sticky; top: 0; z-index: 50; }
header.site .container { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold), var(--saffron)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; font-weight: 700; }
.brand img.mark { object-fit: cover; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.brand .name { font-weight: 700; line-height: 1.2; }
.brand .name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
nav.main a:hover, nav.main a.active { color: var(--saffron); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--deep); }

/* Language toggle */
.lang-toggle { display: flex; align-items: center; gap: 6px; background: var(--cream); border: 2px solid var(--saffron); border-radius: 50px; padding: 4px 6px; cursor: pointer; font-size: 0.78rem; font-weight: 600; user-select: none; white-space: nowrap; }
.lang-toggle .lang-opt { padding: 4px 10px; border-radius: 50px; transition: background 0.2s, color 0.2s; color: var(--muted); }
.lang-toggle .lang-opt.active { background: var(--saffron); color: #fff; }
header.site .container { gap: 12px; }

/* Hero */
.hero { color: #fff; padding: 72px 0; position: relative; overflow: hidden; background: var(--deep-dark); min-height: 560px; display: flex; align-items: center; }
.hero > .container { position: relative; z-index: 3; width: 100%; }
@media (max-width: 780px) { .hero { min-height: 460px; } }
.hero::after { content: "ॐ"; position: absolute; right: -30px; top: -40px; font-size: 20rem; opacity: 0.06; color: var(--gold); z-index: 4; pointer-events: none; }

/* Hero image slider */
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity 1.2s ease-in-out, transform 6s ease-out; will-change: opacity, transform; }
.hero-slide::after { display: none; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 2px solid rgba(255,255,255,0.6); cursor: pointer; transition: background 0.3s, transform 0.3s; padding: 0; }
.hero-dots .dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.25; max-width: 720px; }
.hero h1 .hi { display: block; color: var(--gold); font-size: 0.65em; margin-top: 10px; font-weight: 500; }
.hero p.sub { margin: 18px 0 28px; max-width: 620px; color: #D8E1EC; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.btn-saffron { background: linear-gradient(135deg, var(--gold), var(--saffron)); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); }
.btn-deep { background: var(--deep); color: #fff; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid #eee; padding: 18px 0; }
.trust .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px; text-align: center; }
.trust .item { font-size: 0.9rem; color: var(--muted); }
.trust .item strong { display: block; color: var(--saffron-dark); font-size: 1.15rem; }

/* Sections */
section.block { padding: 56px 0; }
section.alt { background: #fff; }
.block h2 { font-size: 1.8rem; color: var(--deep); margin-bottom: 8px; }
.block h2 + .lede { color: var(--muted); margin-bottom: 32px; max-width: 700px; }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: var(--saffron); font-weight: 700; }

/* Cards grid */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid #f0e6da; border-radius: var(--radius); padding: 0; box-shadow: 0 2px 8px rgba(30,58,95,0.06); display: flex; flex-direction: column; overflow: hidden; }
.card.no-img { padding: 24px; }
section.alt .card { background: var(--cream); }
.card .card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card .card-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card .icon { font-size: 1.9rem; margin-bottom: 10px; }
.card h3 { color: var(--deep); font-size: 1.08rem; margin-bottom: 4px; }
.card .hi { color: var(--saffron-dark); font-size: 0.9rem; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.card .card-cta { margin-top: 14px; font-weight: 600; font-size: 0.88rem; text-decoration: none; color: var(--saffron-dark); }

/* Aarti panel */
.aarti-panel { background: linear-gradient(135deg, rgba(194,65,12,0.88), rgba(232,89,12,0.88)), url('../assets/images/aarti-panel-bg.webp') center/cover no-repeat; border-radius: var(--radius); color: #fff; padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.aarti-panel h3 { font-size: 1.5rem; margin-bottom: 6px; }
.aarti-times { display: flex; gap: 28px; flex-wrap: wrap; }
.aarti-times .t { background: rgba(255,255,255,0.15); border-radius: 10px; padding: 14px 22px; text-align: center; }
.aarti-times .t strong { display: block; font-size: 1.3rem; }

/* Steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--gold); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--deep); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.step h4 { color: var(--deep); font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: 0.85rem; color: var(--muted); }

/* Ritual page specifics */
.ritual-hero { background: var(--deep); color: #fff; padding: 56px 0; background-size: cover; background-position: center; }
.ritual-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.ritual-hero .hi { color: var(--gold); font-size: 1.15rem; margin-top: 6px; }

/* Glassmorphism text panel — frosted overlay so hero text stays readable over any photo.
   Sized to the text content only (shrink-to-fit), not the full hero width. */
.hero-text-glass {
  display: inline-block;
  max-width: 100%;
  background: rgba(20, 38, 63, 0.45);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 28px 36px;
}
.hero-text-glass .breadcrumb { color: #EAF0F8; margin-bottom: 14px; }
.hero-text-glass .breadcrumb a { color: var(--gold); }
.hero-text-glass h1 { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.hero-text-glass .hi { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }

@media (max-width: 780px) {
  .hero-text-glass { padding: 18px 20px; border-radius: 14px; }
  .hero-text-glass .breadcrumb { font-size: 0.75rem; margin-bottom: 10px; }
}
.breadcrumb { font-size: 0.8rem; margin-bottom: 18px; color: #B9C6D6; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.two-col { display: grid; gap: 36px; grid-template-columns: 1.6fr 1fr; align-items: start; }
.info-box { background: #fff; border: 1px solid #f0e6da; border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.info-box h3 { color: var(--deep); margin-bottom: 12px; font-size: 1.05rem; }
.info-box ul { list-style: none; }
.info-box li { padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 10px; }
.info-box li span:last-child { font-weight: 600; color: var(--deep); text-align: right; }
.info-box .btn { width: 100%; justify-content: center; margin-top: 16px; }
.prose h2 { color: var(--deep); font-size: 1.35rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.badge { display: inline-block; background: var(--gold); color: var(--deep-dark); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; }

/* Sidebar photo (ritual pages) */
.info-box .sidebar-photo { width: 100%; border-radius: 8px; margin-bottom: 14px; object-fit: cover; max-height: 260px; }

/* Prose inline photo */
.prose .inline-photo { width: 100%; border-radius: var(--radius); margin: 18px 0; box-shadow: 0 2px 10px rgba(30,58,95,0.08); }

/* About page photo grid: Maharaj Ji portrait (top-left) with Dignitaries photo directly beneath it (bottom-left); Team photo spans full height on the right */
.about-photos { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin: 24px 0; }
.about-photos img { width: 100%; border-radius: var(--radius); object-fit: cover; height: 260px; }
.about-photos .team-tall { grid-column: 2; grid-row: 1 / 3; height: 100%; }
@media (max-width: 600px) { .about-photos { grid-template-columns: 1fr; } .about-photos .team-tall { height: 320px; } }

/* Step images */
.step .step-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

/* Contact location photo */
.location-photo { width: 100%; border-radius: var(--radius); margin-bottom: 24px; max-height: 300px; object-fit: cover; }

/* FAQ */
details.faq { background: #fff; border: 1px solid #f0e6da; border-radius: 10px; margin-bottom: 10px; padding: 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--deep); padding: 16px 20px; list-style: none; }
details.faq summary::after { content: "+"; float: right; color: var(--saffron); font-size: 1.2rem; }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 20px 16px; color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

/* Footer */
footer.site { background: var(--deep-dark); color: #C7D2DE; padding: 48px 0 24px; margin-top: 40px; }
footer.site h4 { color: var(--gold); margin-bottom: 12px; font-size: 1rem; }
footer.site .cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 30px; }
footer.site a { color: #C7D2DE; text-decoration: none; font-size: 0.9rem; }
footer.site a:hover { color: var(--gold); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 0.8rem; text-align: center; color: #8FA1B5; }

/* Floating WhatsApp */
.float-cluster { position: fixed; right: 18px; bottom: 18px; z-index: 99; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.social-float { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.3); transition: transform 0.2s ease; }
.social-float:hover { transform: scale(1.08); }
.social-float svg { display: block; }
.wa-float { background: var(--whatsapp); }
.ig-float { background: #fff; padding: 0; }
.ig-float svg { width: 32px; height: 32px; }
@media (max-width: 600px) {
  .float-cluster { right: 14px; bottom: 14px; gap: 10px; }
  .social-float { width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
  .ig-float svg { width: 28px; height: 28px; }
}

@media (max-width: 780px) {
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px; gap: 14px; border-bottom: 3px solid var(--saffron); }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
  .lang-toggle { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .info-box { position: static; }
}

/* Lucide icons */
[data-lucide], .lucide { width: 1em; height: 1em; vertical-align: -0.15em; stroke-width: 2; }
.nav-toggle [data-lucide] { width: 24px; height: 24px; vertical-align: middle; }

/* Fallback glyph: shows only if Lucide's SVG hasn't replaced this element yet
   (slow/blocked CDN) so the button is never invisible. Lucide replaces the
   <i> tag itself with an <svg>, so once that happens this rule no longer applies. */
.nav-toggle i[data-lucide]::before { content: "\2630"; font-size: 1.6rem; line-height: 1; }
.ig-header-btn svg { display: block; }

/* Header Instagram button */
.ig-header-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid #f0d9c8; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; flex-shrink: 0; }
.ig-header-btn:hover { transform: scale(1.08); border-color: #C837AB; }
@media (max-width: 780px) { .ig-header-btn { width: 34px; height: 34px; } .ig-header-btn svg { width: 19px; height: 19px; } }


/* Homepage hero — Pitru Paksha promo card */
.pp-promo { max-width: 560px; background: rgba(20,38,63,0.55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid rgba(245,159,0,0.55); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,0.4); padding: 26px 30px; }
.pp-kicker { display: inline-block; background: var(--saffron); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.pp-title { color: #fff; font-size: 1.9rem; line-height: 1.2; margin: 0 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.pp-sub { color: #EAF0F8; font-size: 0.95rem; margin: 0 0 16px; max-width: 480px; }
.pp-prices { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pp-prices span { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 8px 16px; font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.pp-cta { display: inline-block; background: var(--saffron); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: 10px; text-decoration: none; font-size: 1.02rem; transition: background 0.2s, transform 0.2s; }
.pp-cta:hover { background: var(--saffron-dark); transform: translateY(-2px); color: #fff; }
@media (max-width: 780px) { .pp-promo { padding: 20px 22px; } .pp-title { font-size: 1.45rem; } .pp-sub { font-size: 0.88rem; } .pp-prices span { font-size: 1rem; padding: 6px 12px; } }


/* Homepage 'As featured in' press strip */
.featured-strip { background: var(--cream); border-bottom: 1px solid #f0e6da; }
.featured-strip .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; font-size: 0.9rem; }
.featured-strip > .container > span { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.76rem; }
.featured-strip a { color: var(--deep); font-weight: 700; text-decoration: none; }
.featured-strip a:hover { color: var(--saffron); }
.featured-strip a.all { color: var(--saffron); }


/* Pitru Paksha promo — brand, contact & actions */
.pp-brand { color: var(--gold); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em; margin-bottom: 8px; }
.pp-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; font-size: 0.9rem; }
.pp-contact a, .pp-contact span { color: #EAF0F8; text-decoration: none; font-weight: 600; }
.pp-contact a:hover { color: var(--gold); text-decoration: underline; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px) { .pp-brand { font-size: 0.82rem; } .pp-contact { font-size: 0.82rem; } }
