/* ==========================================================================
   Buddha Vihar — Design Tokens
   ========================================================================== */
:root {
  /* Colour */
  --bg:            #F5F1E4;
  --bg-alt:        #ECE4CC;
  --ink:           #211D16;
  --ink-soft:      #4B4536;
  --green:         #1F4A3C;
  --green-dark:    #123128;
  --green-mid:     #2C6350;
  --gold:          #C99A3B;
  --gold-soft:     #E8C878;
  --maroon:        #8C2F2F;
  --line:          #D9CDA9;
  --white:         #FFFDF8;

  /* Type */
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  /* Radius */
  --radius-sm: 0.4rem;
  --radius-md: 0.9rem;
  --radius-arch: 8rem 8rem 0.6rem 0.6rem;

  /* Shadow */
  --shadow-soft: 0 0.6rem 2rem rgba(18, 49, 40, 0.14);
  --shadow-card: 0 0.4rem 1.2rem rgba(33, 29, 22, 0.10);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-dark);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
p { margin: 0 0 1rem; }
.container {
  width: min(75rem, 92%);
  margin-inline: auto;
}

/* Grid items default to min-width:auto, which lets an oversized child
   (image, iframe, long unbroken text) stretch its track past the
   viewport and force the whole page to scroll horizontally on mobile.
   Reset that on every direct grid child used across the site. */
.hero-grid > *,
.about-grid > *,
.order-grid > *,
.offer-grid > *,
.visit-details > *,
.footer-grid > *,
.cta-band-inner > *,
.header-inner > * {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 0.15rem solid var(--gold);
  outline-offset: 0.2rem;
}

/* ==========================================================================
   Type helpers
   ========================================================================== */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: 0.02em;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.eyebrow-light { color: var(--gold-soft); }
.eyebrow.center { text-align: center; }
.section-title {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  max-width: 40rem;
}
.section-title.center { margin-inline: auto; text-align: center; }
.section-sub {
  max-width: 36rem;
  color: var(--ink-soft);
}
.section-sub.center { margin: 0 auto 2.5rem; text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

/* Menu button — deliberately distinct: outlined gold pill, separate from order buttons */
.btn-menu {
  background: transparent;
  border: 0.1rem solid var(--gold);
  color: var(--green-dark);
  border-radius: 3rem;
  position: relative;
}
.btn-menu:hover { background: var(--gold); color: var(--white); transform: translateY(-0.1rem); }

.btn-order {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.btn-order:hover { background: var(--green-dark); box-shadow: var(--shadow-soft); }

.btn-ghost {
  border: 0.1rem solid rgba(255,253,248,0.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,253,248,0.15); }

.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-soft); }

.btn-outline-zomato {
  border: 0.1rem solid #E23744;
  color: #E23744;
}
.btn-outline-zomato:hover { background: #E23744; color: var(--white); }
.btn-outline-swiggy {
  border: 0.1rem solid #FC8019;
  color: #FC8019;
}
.btn-outline-swiggy:hover { background: #FC8019; color: var(--white); }
.btn-outline-whatsapp {
  border: 0.1rem solid #128C7E;
  color: #128C7E;
}
.btn-outline-whatsapp:hover { background: #128C7E; color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 228, 0.92);
  backdrop-filter: blur(0.4rem);
  border-bottom: 0.06rem solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand-logo { height: 3.5rem; width: auto; }

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a { position: relative; padding: 0.3rem 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.15rem;
  height: 0.12rem;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 0.7rem; }

.order-dropdown { position: relative; }
.order-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  background: var(--white);
  border: 0.06rem solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  min-width: 11rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: all 0.2s ease;
}
.order-dropdown.open .order-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.order-link {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
}
.order-link.zomato:hover { background: #FDEBEC; color: #E23744; }
.order-link.swiggy:hover { background: #FFF1E4; color: #FC8019; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.3rem;
}
.nav-toggle span {
  width: 1.5rem; height: 0.13rem;
  background: var(--green-dark);
  border-radius: 1rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero — no background photo, solid brand colour + subtle pattern
   ========================================================================== */
.hero {
  position: relative;
  padding: 5.5rem 0 6rem;
  background: var(--green-dark);
  color: var(--white);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(201, 154, 59, 0.16) 0, transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(201, 154, 59, 0.14) 0, transparent 42%),
    repeating-linear-gradient(135deg, rgba(255,253,248,0.03) 0 0.06rem, transparent 0.06rem 1.6rem);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 34rem; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
}
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero-sub { color: rgba(255,253,248,0.82); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero .btn-menu { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.hero .btn-menu:hover { background: var(--gold-soft); }
.hero-media {
  justify-self: center;
  width: min(20rem, 100%);
  border: 0.25rem solid var(--gold);
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 5.5rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.arch-frame {
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 0.3rem solid var(--white);
  outline: 0.1rem solid var(--line);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  border-top: 0.06rem solid var(--line);
  padding-top: 1.5rem;
}
.about-stats li { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--maroon);
  font-weight: 600;
}
.stat-label { font-size: 0.82rem; color: var(--ink-soft); }

/* ==========================================================================
   Offerings
   ========================================================================== */
.offerings { padding: 5.5rem 0; background: var(--bg-alt); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.offer-card:hover { transform: translateY(-0.3rem); box-shadow: var(--shadow-soft); }
.offer-img { aspect-ratio: 4/3; overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.offer-card:hover .offer-img img { transform: scale(1.06); }
.offer-card h3 { font-size: 1.05rem; padding: 1.2rem 1.2rem 0; }
.offer-card p { font-size: 0.88rem; color: var(--ink-soft); padding: 0 1.2rem 1.4rem; }

/* ==========================================================================
   Celebrations / Gallery strip
   ========================================================================== */
.celebrations { padding: 5.5rem 0 3rem; }
.celeb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem min(4%, 3rem) 1.5rem;
  scroll-snap-type: x proximity;
}
.celeb-item {
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
  position: relative;
}
.celeb-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.celeb-item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(18, 20, 15, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 100;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(50rem, 92vw); max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.8rem;
  color: var(--white); font-size: 2rem; line-height: 1;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--green-dark); color: var(--white); padding: 3.5rem 0; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin: 0; }

/* ==========================================================================
   Order Online
   ========================================================================== */
.order-online { padding: 5.5rem 0; }
.order-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.order-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ==========================================================================
   Visit / Map
   ========================================================================== */
.visit { padding: 5.5rem 0 0; background: var(--bg-alt); }
.map-wrap {
  width: 100%;
  height: 26rem;
  margin-top: 1rem;
  filter: grayscale(0.15) contrast(1.02);
}
.visit-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-block: 3rem;
}
.visit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}
.visit-card h3 { font-size: 1rem; color: var(--maroon); margin-bottom: 0.5rem; }
.visit-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-dark); color: rgba(255,253,248,0.82); padding: 4rem 0 1.5rem; }
.footer-logo { height: 3.5rem; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.06rem solid rgba(255,253,248,0.15);
}
.site-footer h4 { color: var(--gold-soft); font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { padding-top: 1.5rem; font-size: 0.82rem; text-align: center; opacity: 0.7; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 68rem) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 56rem) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-order span,
  .header-cta { gap: 0.5rem; }
  .about-grid, .order-grid, .hero-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .hero-media { order: -1; width: min(14rem, 60%); }
  .hero-content { max-width: 100%; }
  .visit-details { grid-template-columns: 1fr; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 0.06rem solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .main-nav.open ul {
    flex-direction: column;
    padding: 1.2rem min(6%, 2rem);
    gap: 1rem;
  }
}

@media (max-width: 40rem) {
  .offer-grid { grid-template-columns: 1fr; }
  .header-cta .btn-menu span { display: inline; }
  .header-cta { gap: 0.5rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.82rem; }
  .hero { min-height: 34rem; }
  .cta-band-inner { text-align: center; justify-content: center; }
}
