/* ===========================================================
   శ్రీ సిద్ధి లింగేశ్వర స్వామి ఆలయం — Traditional saffron & gold
   =========================================================== */

:root {
  --saffron:      #FF8C00;
  --saffron-deep: #E65100;
  --gold:         #D4AF37;
  --gold-soft:    #E9C766;
  --maroon:       #6B0F1A;
  --maroon-deep:  #4a0a12;
  --cream:        #FFF8EF;
  --cream-2:      #FFF1DD;
  --text:         #3a2a1a;
  --text-soft:    #6b5742;
  --white:        #ffffff;

  --shadow-sm: 0 2px 8px rgba(107, 15, 26, .08);
  --shadow-md: 0 8px 24px rgba(107, 15, 26, .12);
  --shadow-lg: 0 16px 48px rgba(107, 15, 26, .18);

  --radius: 16px;
  --maxw: 1080px;

  --font-head: "Noto Serif Telugu", "Nirmala UI", "Gautami", serif;
  --font-body: "Noto Sans Telugu", "Nirmala UI", "Gautami", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Section rhythm ---------- */
section { padding: 64px 0; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: var(--maroon);
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 1.02rem;
}

/* ---------- Decorative divider ---------- */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 18px;
}
.divider::before, .divider::after {
  content: ""; height: 2px; width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider span {
  font-family: var(--font-head);
  color: var(--gold); font-size: 1.5rem; font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.05);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: none;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: var(--white); box-shadow: var(--shadow-md);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: var(--shadow-lg); }

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none; font-weight: 700;
}
.brand-icon { font-size: 1.5rem; line-height: 1; }
.brand-text {
  font-family: var(--font-head);
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  line-height: 1.2;
}
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--white); text-decoration: none; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background .15s ease;
  font-size: .98rem;
}
.nav a:hover { background: rgba(255,255,255,.18); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--white); border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 80px 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/temple-1.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(230,81,0,.35), transparent 60%),
    linear-gradient(180deg, rgba(74,10,18,.55), rgba(107,15,26,.78));
}
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero-mantra {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.3rem, 5vw, 2rem);
  color: var(--gold-soft); text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 3.4rem); line-height: 1.25;
  text-shadow: 0 3px 18px rgba(0,0,0,.5);
}
.hero-location {
  margin-top: 16px; font-size: clamp(1rem, 2.6vw, 1.25rem);
  color: #ffe9c7;
}
.hero-event-line {
  margin: 22px auto 0; max-width: 720px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 12px 18px; border-radius: 14px; backdrop-filter: blur(3px);
  font-weight: 500; font-size: clamp(.95rem, 2.4vw, 1.1rem);
}
.hero-buttons {
  margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.scroll-cue {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.85); font-size: 2.2rem; text-decoration: none;
  line-height: 1; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ===========================================================
   COUNTDOWN
   =========================================================== */
.countdown-section { background: var(--cream-2); }
.countdown {
  margin: 28px auto 0; max-width: 720px;
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.cd-unit {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 10px; min-width: 92px;
  display: flex; flex-direction: column; align-items: center;
}
.cd-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem); color: var(--saffron-deep);
  line-height: 1;
}
.cd-label { margin-top: 8px; color: var(--text-soft); font-weight: 500; font-size: .95rem; }
.cd-sep {
  display: flex; align-items: center; font-size: 2rem; color: var(--gold);
  font-weight: 700;
}
.countdown-done {
  text-align: center; margin-top: 20px;
  font-family: var(--font-head); font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: var(--maroon); font-weight: 600;
}

/* ===========================================================
   EVENT / INVITATION
   =========================================================== */
.event-chips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 30px 0 26px;
}
.chip {
  background: var(--white); border-left: 5px solid var(--saffron);
  border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.chip-label { color: var(--saffron-deep); font-weight: 700; font-size: .9rem; }
.chip-value { color: var(--text); font-weight: 500; }

.invite-card {
  position: relative; background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 20px; box-shadow: var(--shadow-md);
  padding: clamp(24px, 5vw, 44px);
  max-width: 820px; margin: 0 auto;
}
.invite-card::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid var(--gold-soft); border-radius: 14px; pointer-events: none;
}
.invite-mantra {
  text-align: center; font-family: var(--font-head); font-weight: 600;
  color: var(--saffron-deep); font-size: clamp(1.3rem, 4vw, 1.8rem); margin-bottom: 18px;
}
.invite-body { font-size: clamp(1.02rem, 2.6vw, 1.15rem); text-align: justify; color: var(--text); }
.invite-sign {
  margin-top: 24px; text-align: right; color: var(--maroon);
  font-family: var(--font-head); line-height: 1.7;
}

/* ===========================================================
   GALLERY
   =========================================================== */
.gallery-grid {
  display: grid; gap: 16px; margin-top: 30px;
  grid-template-columns: 1fr;
}
.gallery-item {
  border: 3px solid var(--gold); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; padding: 0; background: var(--white);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  aspect-ratio: 4 / 3;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================
   LOCATION
   =========================================================== */
.location-section { background: var(--cream-2); }
.map-wrap {
  margin-top: 28px; border: 3px solid var(--gold); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); line-height: 0;
}
.map-wrap iframe { display: block; width: 100%; }
.map-btn-wrap { text-align: center; margin-top: 22px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: #ffe9c7; text-align: center; border-top: 3px solid var(--gold);
}
.footer-inner { padding: 40px 20px; }
.footer-mantra { font-family: var(--font-head); color: var(--gold-soft); font-size: 1.4rem; }
.footer-name { margin-top: 12px; font-family: var(--font-head); font-size: 1.1rem; color: #fff; }
.footer-loc { margin-top: 6px; color: #f0d2ac; }
.footer-copy { margin-top: 14px; font-size: .9rem; color: #d9b48c; }

/* ===========================================================
   LIGHTBOX
   =========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,5,8,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-img {
  max-width: 90vw; max-height: 82vh; border-radius: 10px;
  border: 3px solid var(--gold); box-shadow: var(--shadow-lg);
}
.lb-close {
  position: absolute; top: 18px; right: 24px;
  background: transparent; border: none; color: #fff; font-size: 2.6rem;
  cursor: pointer; line-height: 1;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 1.8rem; width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--saffron-deep);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    border-bottom: 3px solid var(--gold);
  }
  .nav.open { max-height: 360px; }
  .nav a { padding: 14px 20px; border-radius: 0; border-top: 1px solid rgba(255,255,255,.12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}
