/* =========================================================
   Surya Mandir Borsad — stylesheet
   Palette: saffron, maroon, gold, ivory
   ========================================================= */

:root {
  --saffron: #FF9933;
  --saffron-dark: #E27B0E;
  --maroon: #7A0C0C;
  --maroon-dark: #500606;
  --gold: #D4AF37;
  --gold-light: #F1D48A;
  --ivory: #FFF8E7;
  --ivory-dark: #FCEFD1;
  --ink: #3A1706;
  --ink-soft: #6B4A2E;
  --white: #FFFFFF;

  --font-display: 'Yatra One', cursive;
  --font-body: 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-soft: 0 8px 24px rgba(122, 12, 12, 0.12);
  --shadow-strong: 0 14px 40px rgba(58, 23, 6, 0.28);
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--maroon);
  margin: 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--maroon);
  color: var(--gold-light);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-dark) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(122, 12, 12, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-om {
  font-size: 2rem;
  color: var(--saffron-dark);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--maroon);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--maroon);
  position: relative;
  padding: 6px 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--maroon);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--maroon-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,10,10,0.12) 0%, rgba(58,10,10,0.08) 45%, rgba(40,8,8,0.38) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(212,175,55,0.35) 0%, transparent 32%),
    radial-gradient(circle at 94% 82%, rgba(212,175,55,0.3) 0%, transparent 30%),
    radial-gradient(circle, rgba(212,175,55,0.5) 1.4px, transparent 1.4px);
  background-size: auto, auto, 30px 30px;
  background-position: 0 0, 0 0, 0 0;
}

.mandala-ring {
  position: absolute;
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 44px 40px;
  max-width: 720px;
  background: rgba(40,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 32px;
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 20px 60px rgba(20,4,4,0.35);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.hero-content.is-dismissed {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  visibility: hidden;
}

.hero-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(0,0,0,0.15);
  color: var(--gold-light);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-close:hover {
  background: rgba(0,0,0,0.3);
  transform: scale(1.08);
}

.hero-reveal {
  position: absolute;
  top: 118px;
  right: 24px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(40,8,8,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.hero-reveal.is-visible { display: flex; }
.hero-reveal:hover { background: rgba(40,8,8,0.72); }

@media (max-width: 640px) {
  .hero-reveal { top: 100px; right: 16px; font-size: 0.78rem; padding: 8px 14px; }
}

@media (max-width: 640px) {
  .hero-content { padding: 32px 22px; border-radius: 24px; }
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.22);
  pointer-events: none;
  z-index: -1;
}

.hero-content::before { width: 460px; height: 460px; }
.hero-content::after { width: 620px; height: 620px; border-color: rgba(212,175,55,0.14); }

@media (max-width: 640px) {
  .hero-content::before { width: 300px; height: 300px; }
  .hero-content::after { width: 400px; height: 400px; }
}

.hero-om {
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--gold-light);
  margin: 0 0 4px;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 20px;
  letter-spacing: 0.03em;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(241,212,138,0.6);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--white);
  backdrop-filter: blur(2px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rating-badge:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }

.rating-stars { color: var(--gold); letter-spacing: 1px; }

.rating-badge-dark {
  background: var(--ivory);
  border-color: var(--gold);
  color: var(--maroon);
}
.rating-badge-dark:hover { background: var(--ivory-dark); }
.rating-badge-dark .rating-stars { color: var(--saffron-dark); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(226,123,14,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(226,123,14,0.5); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold-light);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--ivory);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 92% 100%, 84% 40%, 76% 100%, 68% 40%, 60% 100%, 52% 40%, 44% 100%, 36% 40%, 28% 100%, 20% 40%, 12% 100%, 4% 40%, 0 100%);
}

/* ---------- Sections ---------- */
.section {
  padding: 78px 0;
}

.section-alt {
  background: var(--ivory-dark);
  background-image:
    linear-gradient(var(--ivory-dark), var(--ivory-dark)),
    repeating-linear-gradient(45deg, rgba(212,175,55,0.05) 0, rgba(212,175,55,0.05) 2px, transparent 2px, transparent 14px);
}

.section-title {
  text-align: center;
  margin-bottom: 6px;
}

.section-title span {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  position: relative;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 36px;
  color: var(--gold);
}

.divider::before,
.divider::after {
  content: "";
  height: 2px;
  width: 90px;
  max-width: 22vw;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

.divider span { font-size: 1.1rem; color: var(--saffron-dark); }

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- History ---------- */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

.history-text p {
  margin: 0 0 18px;
  font-size: 1.02rem;
  color: var(--ink);
}

.history-text strong { color: var(--maroon); }

.motif-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, var(--white), var(--ivory-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 120px;
}

.motif-circle span {
  font-size: 5rem;
  color: var(--saffron-dark);
}

.motif-circle.motif-photo {
  overflow: hidden;
  padding: 0;
}

.motif-circle.motif-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- Timings ---------- */
.timings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.timing-card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.timing-icon,
.seva-card .seva-icon,
.contact-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(226,123,14,0.35), 0 0 0 5px var(--ivory-dark);
}

.seva-card .seva-icon { margin: 0 0 16px; }

.timing-card h3 {
  font-size: 1.05rem;
  color: var(--maroon);
  margin-bottom: 6px;
}

.timing-time {
  font-weight: 700;
  color: var(--saffron-dark);
  font-size: 1.15rem;
  margin: 0;
}

.timing-note {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border: 0;
  padding: 0;
  background: var(--ivory-dark);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  position: relative;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover { transform: scale(1.03); border-color: var(--gold); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item img::before {
  content: "";
}

/* Fallback shown via JS onerror class swap */
.gallery-item.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.is-empty img { display: none; }

.gallery-item.is-empty::after {
  content: "\0950\A Photo coming soon";
  white-space: pre;
  text-align: center;
  color: var(--saffron-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
}

.photo-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

.photo-credit a { color: var(--saffron-dark); }
.photo-credit code {
  background: var(--ivory-dark);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- Testimonials ---------- */
.testimonials .section-inner { text-align: center; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 32px;
  text-align: left;
}

.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--saffron);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 0;
  box-shadow: var(--shadow-soft);
}

.testimonial-card p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-info h3 {
  font-size: 1.1rem;
  color: var(--maroon);
  margin: 20px 0 8px;
}
.location-info h3:first-child { margin-top: 0; }

.location-info p { margin: 0; color: var(--ink); }

.distance-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}
.distance-list li { margin-bottom: 4px; }

.location-info .btn { margin-top: 24px; }

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 3px solid var(--white);
  outline: 1px solid var(--gold-light);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gold);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--maroon);
}

.contact-card p { margin: 0; color: var(--ink); }

.contact-card a {
  color: var(--saffron-dark);
  text-decoration: none;
  font-weight: 600;
}
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon);
  color: var(--gold-light);
  padding: 56px 20px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(241,212,138,0.2);
}

.footer-om {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin: 0 0 14px;
}

.footer-about p {
  font-size: 0.88rem;
  color: rgba(255,248,231,0.75);
  margin: 0;
  max-width: 32ch;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li {
  font-size: 0.88rem;
  color: rgba(255,248,231,0.75);
}

.footer-col a {
  color: rgba(255,248,231,0.85);
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold-light); text-decoration: underline; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 22px 0 26px;
}

.site-footer .footer-bottom p {
  margin: 4px 0;
  font-size: 0.85rem;
}

.footer-note {
  color: rgba(241,212,138,0.75);
  font-size: 0.82rem;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  padding: 64px 20px 54px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(40,8,8,0.15) 0%, rgba(40,8,8,0.28) 100%),
    radial-gradient(circle, rgba(212,175,55,0.9) 1.5px, transparent 1.5px);
  background-size: auto, 26px 26px;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 640px;
  padding: 30px 42px;
  background: rgba(40,8,8,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 16px 44px rgba(20,4,4,0.3);
}

@media (max-width: 640px) {
  .page-hero-content { padding: 24px 24px; border-radius: 22px; }
}

.page-hero .page-om {
  font-size: 1.9rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  text-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.page-hero p {
  color: var(--gold-light);
  max-width: 560px;
  margin: 10px auto 0;
  font-size: 1.02rem;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  color: rgba(255,248,231,0.7);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 22px;
  background: var(--ivory);
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 90% 100%, 80% 30%, 70% 100%, 60% 30%, 50% 100%, 40% 30%, 30% 100%, 20% 30%, 10% 100%, 0 30%);
}

/* ---------- Timeline (history page) ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 36px;
  border-left: 3px solid var(--gold-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--saffron-dark);
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-item p { margin: 0; color: var(--ink); }

/* ---------- Stat cards (seva / charity) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin: 36px 0 8px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--saffron-dark);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.seva-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.seva-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--saffron);
}

.seva-card .seva-icon { font-size: 1.9rem; margin-bottom: 12px; }

.seva-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.seva-card p { margin: 0; color: var(--ink); font-size: 0.96rem; }

/* ---------- Media / press page ---------- */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.media-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--gold-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.media-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(226,123,14,0.3);
}

.media-card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: var(--maroon);
}

.media-card-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.media-card-body span.media-domain {
  font-size: 0.75rem;
  color: var(--saffron-dark);
  font-weight: 600;
}

.media-disclaimer {
  max-width: 760px;
  margin: 32px auto 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  background: var(--ivory-dark);
  border-radius: 10px;
  padding: 16px 20px;
}

/* ---------- Home page teasers ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Explore section: fixed 3-across so 6 cards always read as two even rows */
.teaser-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .teaser-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .teaser-grid-3 { grid-template-columns: 1fr; }
}

.teaser-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--gold-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teaser-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-strong); }

.teaser-card-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--white);
  padding: 22px;
  text-align: center;
}

/* Icon SVGs inherit currentColor and sit centered wherever an emoji used to be */
.icon-svg {
  width: 26px;
  height: 26px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
}

.teaser-card-icon .icon-svg { width: 34px; height: 34px; }
.contact-icon .icon-svg,
.media-icon .icon-svg { width: 24px; height: 24px; }

.teaser-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

.teaser-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }

.teaser-card-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.92rem; flex: 1; }

.teaser-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--saffron-dark);
}

.text-center { text-align: center; }

.section-cta { text-align: center; margin-top: 36px; }

/* ---------- Video embed ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 3px solid var(--white);
  outline: 1px solid var(--gold-light);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.video-credit a { color: var(--saffron-dark); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 6, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Staggered entrance within grids */
.teaser-grid > .reveal:nth-child(2),
.seva-grid > .reveal:nth-child(2),
.timings-grid > .reveal:nth-child(2),
.contact-grid > .reveal:nth-child(2),
.testimonial-grid > .reveal:nth-child(2),
.stat-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }

.teaser-grid > .reveal:nth-child(3),
.seva-grid > .reveal:nth-child(3),
.timings-grid > .reveal:nth-child(3),
.contact-grid > .reveal:nth-child(3),
.testimonial-grid > .reveal:nth-child(3),
.stat-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }

.teaser-grid > .reveal:nth-child(4),
.seva-grid > .reveal:nth-child(4),
.timings-grid > .reveal:nth-child(4),
.contact-grid > .reveal:nth-child(4),
.stat-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }

.teaser-grid > .reveal:nth-child(5),
.timings-grid > .reveal:nth-child(5) { transition-delay: 0.32s; }

.teaser-grid > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .history-grid { grid-template-columns: 1fr; }
  .motif-circle { display: none; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map iframe { min-height: 300px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    padding: 18px 0;
    gap: 18px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 56px 0; }

  .top-strip { font-size: 0.68rem; }
}

@media (max-width: 420px) {
  .brand-subtitle { display: none; }
}
