body{opacity:0;transition:opacity .25s ease}
body.page-ready{opacity:1}
body.page-leave{opacity:0}

/* ----- Full-screen hero slider (100vh minus navbar + ticker) ----- */
.hero{
  position:relative;
  width:100%;
  height:calc(100vh - var(--header-h, 64px) - var(--ticker-h-desktop, 40px));
  min-height:calc(100vh - var(--header-h, 64px) - var(--ticker-h-desktop, 40px));
  max-height:calc(100vh - var(--header-h, 64px) - var(--ticker-h-desktop, 40px));
  overflow:hidden;
  padding:0;
  display:block;
}
.hero-slider{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  touch-action:pan-y pinch-zoom;
}
.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  transition:opacity 0.6s ease;
  pointer-events:none;
  z-index:0;
}
.hero-slide.active{
  opacity:1;
  z-index:1;
  pointer-events:auto;
}
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  vertical-align:middle;
}
.hero::before,
.hero::after{
  display:none;
}
/* Legacy hero-bg (other pages) */
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 25%;
  filter:saturate(1.05);
  transform:scale(1.08);
  display:block;
}
.hero-inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  align-items:center;
}
.hero-card{
  padding:28px;
  border-radius:24px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(10px);
  color:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
}
.hero-card .p{color:rgba(255,255,255,.86)}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

.hero-side{
  border-radius:24px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  padding:22px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:14px;
}
.stat{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(128,0,0,.10);
  background:linear-gradient(180deg,#fff,rgba(255,153,51,.08));
}
.stat strong{display:block;color:var(--maroon);font-size:18px}
.stat span{display:block;color:rgba(28,28,28,.72);font-weight:600;font-size:12px;margin-top:6px}

/* ----- Premium card tokens (temple theme) ----- */
:root{
  --card-primary:#5a1c12;
  --card-gold:#c4813f;
  --card-cream:#fff7e6;
  --card-border:rgba(196,129,63,0.25);
}

/* ----- Featured Pujas grid: 4 / 2 / 1 ----- */
.puja-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  margin-top:22px;
  align-items:stretch;
}

/* ----- Highlights grid: 3 / 2 / 1 ----- */
.highlight-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
  align-items:stretch;
}

/* ----- Premium puja card (shared by Featured + Highlights) ----- */
.puja-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:20px;
  border-radius:20px;
  background:#fffaf3;
  border:1px solid var(--card-border);
  box-shadow:0 10px 28px rgba(90,28,18,.06), 0 0 0 0 var(--card-gold);
  transition:transform .3s ease, box-shadow .35s ease, border-color .25s ease;
  cursor:pointer;
  text-decoration:none;
  color:inherit;
  overflow:hidden;
}
.puja-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg, var(--card-gold), rgba(196,129,63,.5));
  opacity:.9;
  transition:opacity .25s ease, box-shadow .25s ease;
}
.puja-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 44px rgba(90,28,18,.12), 0 0 0 1px rgba(196,129,63,.2), 0 8px 24px rgba(196,129,63,.08);
  border-color:rgba(196,129,63,.35);
}
.puja-card:hover::before{
  opacity:1;
  box-shadow:0 2px 12px rgba(196,129,63,.25);
}
.puja-card:active{
  transform:translateY(-2px);
}
.puja-card:focus-visible{
  outline:2px solid var(--card-gold);
  outline-offset:2px;
}
/* Highlights section: cards are divs, not links */
div.puja-card{cursor:default}
div.puja-card:focus-visible{outline:none}

/* Icon badge: rounded square, cream bg, gold border; centered above title */
.puja-card__badge{
  width:52px;
  height:52px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--card-cream);
  border:1px solid var(--card-gold);
  color:var(--card-primary);
  font-size:24px;
  line-height:1;
  margin-bottom:14px;
}

/* Title: serif, deep brown, 22–26px desktop; center-aligned */
.puja-card__title{
  font-family:"Playfair Display", Georgia, serif;
  font-size:clamp(18px, 2.2vw, 24px);
  font-weight:700;
  line-height:1.25;
  color:var(--card-primary);
  margin:0 0 10px;
  position:relative;
  display:inline-block;
  text-align:center;
}
.puja-card:hover .puja-card__title::after{
  transform:scaleX(1);
}
.puja-card__title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:2px;
  background:linear-gradient(90deg, var(--card-gold), transparent);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .3s ease;
}

/* Description: muted brown-gray, 15–16px, line-height 1.6; center-aligned */
.puja-card__desc{
  font-size:clamp(14px, 1.05vw, 16px);
  line-height:1.6;
  color:rgba(90,28,18,.72);
  margin:0;
  margin-top:auto;
  text-align:center;
}

/* Mobile: no hover lift, subtle press only */
@media (hover: none){
  .puja-card:hover{
    transform:none;
    box-shadow:0 10px 28px rgba(90,28,18,.06), 0 0 0 0 var(--card-gold);
    border-color:var(--card-border);
  }
  .puja-card:hover::before{opacity:.9}
  .puja-card:active{
    transform:scale(0.98);
  }
  .puja-card:hover .puja-card__title::after{transform:scaleX(0)}
}

@media (prefers-reduced-motion: reduce){
  .puja-card,
  .puja-card__title::after{
    transition:none;
  }
}

.booking,
.booking-layout{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:24px;
  align-items:start;
}
.booking-card{padding:18px}
.booking-form .field{display:grid;gap:8px}
.booking-form label{font-weight:800;color:rgba(28,28,28,.82)}
.booking-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:12px}
.booking-form input,
.booking-form select,
.booking-form textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(128,0,0,.14);
  padding:12px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
.booking-form textarea{min-height:110px;resize:vertical}

.right-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.note-card,
.locations-card{
  width:100%;
}
.locations-list{
  margin:14px 0 0;
  padding:0;
  list-style:none;
}
.locations-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 0;
  color:rgba(28,28,28,.76);
  font-weight:600;
}
.locations-list li .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--gold);
  margin-top:6px;
  flex-shrink:0;
}

.location{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.location .list{padding:18px}
.location ul{margin:14px 0 0;padding:0;list-style:none}
.location li{display:flex;align-items:flex-start;gap:10px;padding:10px 0;color:rgba(28,28,28,.76);font-weight:600}
.location li .dot{width:10px;height:10px;border-radius:999px;background:var(--gold);margin-top:6px}
.location iframe{width:100%;height:100%;min-height:320px;border:0;border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.10)}

/* ----- Daily Temple Schedule (wide, full, app-like) ----- */
.schedule-section{
  position:relative;
  padding:min(10vh, 80px) 0 min(12vh, 100px);
  min-height:85vh;
  display:flex;
  align-items:center;
  box-sizing:border-box;
  width:100%;
}
.schedule-bg{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%, rgba(255,248,230,.5) 0%, transparent 55%),
    radial-gradient(ellipse 100% 60% at 80% 90%, rgba(212,175,55,.06) 0%, transparent 50%),
    linear-gradient(180deg, #fffef8 0%, #fffaf0 28%, #fff8eb 55%, #fffef9 100%);
  pointer-events:none;
}
.schedule-bg::before{
  content:"ॐ";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  font-size:min(28vw, 320px);
  line-height:1;
  color:var(--card-gold, #c4813f);
  opacity:.035;
  pointer-events:none;
}
.schedule-section .schedule-container{
  position:relative;
  z-index:1;
  width:92%;
  max-width:1280px;
  margin:0 auto;
  padding:0 3%;
  box-sizing:border-box;
}
/* Schedule: refined reveal (fade + slide up, section-wise) */
.schedule-section .reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease-out, transform .7s ease-out;
  will-change:opacity, transform;
}
.schedule-section .reveal.visible{
  opacity:1;
  transform:translateY(0);
}
.schedule-section .schedule-sep.reveal{
  opacity:0;
  transition:opacity .5s ease-out .15s;
}
.schedule-section .schedule-sep.reveal.visible{
  opacity:1;
}
@media (prefers-reduced-motion: reduce){
  .schedule-section .reveal{
    opacity:1;
    transform:none;
    transition:none;
  }
  .schedule-section .schedule-sep.reveal{
    opacity:1;
    transition:none;
  }
}

.schedule-header{
  text-align:center;
  margin-bottom:36px;
}
.schedule-title{
  font-family:"Playfair Display", Georgia, serif;
  font-size:clamp(28px, 3.5vw, 44px);
  font-weight:800;
  color:var(--card-primary, #5a1c12);
  margin:0;
  letter-spacing:.03em;
  line-height:1.15;
}
.schedule-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:16px auto 0;
  width:85%;
  max-width:800px;
}
.schedule-divider::before,
.schedule-divider::after{
  content:"";
  flex:1;
  height:1.5px;
  min-width:0;
  background:linear-gradient(90deg, transparent, rgba(196,129,63,.45));
}
.schedule-divider::after{
  background:linear-gradient(90deg, rgba(196,129,63,.45), transparent);
}
.schedule-divider-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--card-gold, #c4813f);
  flex-shrink:0;
  opacity:.9;
}
.schedule-body{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
}
.schedule-block{
  margin:0;
  padding:22px 0 0;
}
.schedule-block:first-child{
  padding-top:0;
}
.schedule-sep{
  display:block;
  height:0;
  margin:14px 0;
  padding:0;
  border:0;
  border-top:1px solid transparent;
  position:relative;
  width:100%;
  overflow:visible;
}
.schedule-sep::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(196,129,63,.16) 6%, rgba(212,175,55,.26) 50%, rgba(196,129,63,.16) 94%, transparent 100%);
  transform:translateY(-1px);
}
.schedule-sep::after{
  content:"ॐ";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  font-size:9px;
  line-height:1;
  color:var(--card-gold, #c4813f);
  opacity:.26;
  background:linear-gradient(180deg, #fffef8 0%, #fffaf0 100%);
  padding:0 5px;
  font-family:serif;
}
.schedule-heading{
  font-family:"Playfair Display", Georgia, serif;
  font-size:clamp(19px, 1.75vw, 22px);
  font-weight:700;
  color:var(--card-primary, #5a1c12);
  margin:0 0 12px;
  line-height:1.35;
  display:flex;
  align-items:center;
  gap:10px;
}
.schedule-heading-icon{
  font-size:.85em;
  opacity:.55;
  flex-shrink:0;
}
/* Center only Trikāl, Darshan, Umbara section titles (all breakpoints) */
.schedule-body > .schedule-block:nth-child(3) .schedule-heading,
.schedule-body > .schedule-block:nth-child(5) .schedule-heading,
.schedule-block--umbara .schedule-heading{
  text-align:center;
  justify-content:center;
}
.schedule-opening{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.7;
  color:rgba(90,28,18,.92);
}
.schedule-opening strong{
  color:var(--card-primary, #5a1c12);
}
.schedule-note{
  margin:8px 0 0;
  font-size:15px;
  color:rgba(90,28,18,.6);
  font-style:italic;
  line-height:1.5;
}
.schedule-list{
  margin:0;
  padding:0;
  list-style:none;
}
.schedule-list--two-col li{
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px 48px;
  align-items:baseline;
  padding:10px 0;
  border-bottom:1px solid rgba(196,129,63,.14);
  font-size:17px;
  line-height:1.45;
  color:rgba(90,28,18,.92);
}
.schedule-list--two-col li:last-child{
  border-bottom:none;
}
/* Tighter row spacing for Trikāl Pooja section only */
.schedule-body > .schedule-block:nth-child(3) .schedule-list--two-col li{
  padding:6px 0;
  line-height:1.4;
}
.schedule-name{
  font-weight:600;
  color:var(--card-primary, #5a1c12);
}
.schedule-time{
  font-weight:600;
  color:rgba(90,28,18,.88);
  white-space:nowrap;
  font-size:17px;
}
.schedule-umbara{
  margin:0;
  font-size:16px;
  line-height:1.72;
  color:rgba(90,28,18,.72);
}
.schedule-pakalani{
  margin:0;
  font-size:17px;
  line-height:1.65;
  color:rgba(90,28,18,.9);
}
.schedule-pakalani strong{
  color:var(--card-primary, #5a1c12);
}
@media (max-width: 991px){
  .schedule-section{
    min-height:auto;
    padding:48px 0 56px;
  }
  .schedule-section .schedule-container{
    width:90%;
    padding:0 4%;
  }
  .schedule-header{margin-bottom:32px}
  .schedule-block{padding-top:20px}
  .schedule-sep{margin:14px 0}
}
@media (max-width: 768px){
  .schedule-section{
    padding:36px 0 48px;
    min-height:auto;
  }
  .schedule-section .schedule-container{
    width:100%;
    padding:0 20px;
    box-sizing:border-box;
  }
  .schedule-header{margin-bottom:28px}
  .schedule-title{font-size:clamp(24px, 6vw, 28px)}
  .schedule-divider{margin-top:12px}
  .schedule-body{width:100%}
  .schedule-block{padding-top:16px}
  .schedule-sep{margin:10px 0; width:100%}
  /* Mobile: center-align entire timetable */
  .schedule-body{text-align:center}
  .schedule-heading{
    flex-wrap:wrap;
    justify-content:center;
    text-align:center;
    font-size:18px;
    margin-bottom:10px;
  }
  /* Single-column: name on top, time below; both centered */
  .schedule-list--two-col li{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    padding:8px 0;
    font-size:16px;
    line-height:1.38;
    text-align:center;
  }
  .schedule-list--two-col .schedule-name{
    font-weight:600;
    font-size:16px;
  }
  .schedule-list--two-col .schedule-time{
    font-size:15px;
    font-weight:500;
    color:rgba(90,28,18,.78);
    white-space:normal;
  }
  .schedule-body > .schedule-block:nth-child(3) .schedule-list--two-col li{
    padding:6px 0;
  }
  .schedule-time{white-space:normal}
  .schedule-opening{font-size:17px; margin-bottom:4px; text-align:center}
  .schedule-note{margin-top:6px; text-align:center}
  .schedule-umbara{
    text-align:center;
    font-size:16px;
    line-height:1.55;
  }
  .schedule-pakalani{font-size:16px; text-align:center}
}

/* ===== TABLET: full viewport below header + ticker ===== */
@media (max-width: 991px){
  .hero{
    height:calc(100vh - var(--header-h, 64px) - var(--ticker-h-desktop, 40px));
    min-height:calc(100vh - var(--header-h, 64px) - var(--ticker-h-desktop, 40px));
    max-height:calc(100vh - var(--header-h, 64px) - var(--ticker-h-desktop, 40px));
  }
}

/* ===== MOBILE (≤768px): intentional portrait banner, no over-zoom ===== */
@media (max-width: 768px){
  .hero{
    height:50vh !important;
    min-height:45vh !important;
    max-height:55vh !important;
    width:100%;
    max-width:100vw;
    overflow:hidden !important;
    padding:0 !important;
    box-sizing:border-box;
  }
  .hero-slider{
    touch-action:pan-y;
    position:absolute;
    inset:0;
    overflow:hidden;
  }
  .hero-slide{
    position:absolute;
    inset:0;
    overflow:hidden;
  }
  .hero-slide img{
    object-fit:cover !important;
    object-position:center center !important;
    width:100% !important;
    height:100% !important;
    min-width:100%;
    max-width:100%;
    display:block !important;
  }
}

/* ===== MOBILE legacy hero-bg (other pages) ===== */
@media (max-width: 767px){
  .hero-bg{
    position:absolute;
    inset:0;
  }
  .hero-bg img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    transform:none !important;
    display:block !important;
  }
}

@media (max-width: 991px){
  .booking,
  .booking-layout{grid-template-columns:1fr}
}
@media (max-width: 960px){
  .hero-inner{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .puja-grid{grid-template-columns:repeat(2, 1fr)}
  .highlight-grid{grid-template-columns:repeat(2, 1fr)}
  .location{grid-template-columns:1fr}
  .booking,
  .booking-layout{grid-template-columns:1fr}
  .booking-grid{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .puja-grid,
  .highlight-grid{grid-template-columns:1fr}
  .puja-card{padding:18px}
  .puja-card__badge{width:48px;height:48px;font-size:22px;margin-bottom:12px}
  .puja-card__title{font-size:18px}
  .puja-card__desc{font-size:14px}
}
