/* ==========================================================================
   Kashi Temple Tours — styles
   Mobile-first. Palette: saffron, deep orange, maroon, cream, gold.
   ========================================================================== */

:root {
  --saffron: #f28c28;
  --deep-orange: #b8470f;   /* text-safe orange on cream (≈5:1) */
  --maroon: #7a1f2b;
  --maroon-dark: #4a1119;
  --cream: #fdf6e9;
  --cream-deep: #f6e8cf;
  --gold: #d4a437;
  --gold-light: #f1d48a;
  --ink: #2b1a14;
  --ink-soft: #5a4238;
  --white: #fff;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(74, 17, 25, 0.12);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-orange); }
a:hover { color: var(--maroon); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--maroon);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--maroon); color: var(--white); padding: .6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 72px 0; }
.section-cream { background: var(--cream-deep); }
.section-maroon { background: var(--maroon-dark); color: var(--cream); }
.section-maroon h2 { color: var(--gold-light); }
.section-maroon .eyebrow { color: var(--gold); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--deep-orange);
  margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: var(--maroon-dark); }
.btn-primary:hover { background: var(--gold-light); color: var(--maroon-dark); }
.btn-outline { border-color: var(--cream); color: var(--cream); background: rgba(0,0,0,.2); }
.btn-outline:hover { background: var(--cream); color: var(--maroon-dark); }
.btn-gold { background: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--maroon-dark); }
.btn-whatsapp { background: #1f7a4a; color: var(--white); }
.btn-whatsapp:hover { background: #17603a; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row-center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(74, 17, 25, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(212, 164, 55, .35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); }
.brand:hover { color: var(--gold-light); }
.brand-mark { font-size: 1.6rem; color: var(--gold); line-height: 1; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; }

.nav-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--cream);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; width: 24px; height: 2px; background: currentColor;
  position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--maroon-dark);
  border-bottom: 1px solid rgba(212, 164, 55, .35);
  display: none;
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 16px 1rem; }
.site-nav a {
  display: block; padding: .8rem 0; color: var(--cream); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid rgba(253, 246, 233, .1);
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-light); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 1.75rem; padding: 0; }
  .site-nav a { padding: .4rem 0; border: 0; border-bottom: 2px solid transparent; }
  .site-nav a.active { border-bottom-color: var(--gold); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; overflow: hidden;
  color: var(--cream); text-align: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(43,10,15,.35) 0%, rgba(43,10,15,.7) 70%),
    linear-gradient(180deg, rgba(43,10,15,.2) 0%, rgba(43,10,15,.85) 100%);
}
.hero-content {
  position: relative; padding-top: 56px; padding-bottom: 64px;
  display: flex; flex-direction: column; align-items: center;
}

.hero-diya { color: var(--gold); margin-bottom: .75rem; filter: drop-shadow(0 0 12px rgba(242,140,40,.7)); }

.hero-brand { margin: 0; line-height: 1; color: var(--gold-light); text-shadow: none; }
.hero-brand-main, .hero-brand-sub { display: block; }
.hero-brand-main {
  font-size: clamp(4.5rem, 19vw, 9.5rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: .9;
  background: linear-gradient(180deg, #fff3cf 0%, #f1d48a 40%, #d4a437 70%, #b8860b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.45));
}
.hero-brand-sub {
  margin-top: .6rem;
  font-family: var(--font-sans);
  font-size: clamp(.95rem, 3.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: .42em;
  margin-right: -.42em; /* balance trailing letter-spacing so it centres */
  text-transform: uppercase;
  color: var(--cream);
}

.hero-divider {
  display: flex; align-items: center; gap: .9rem;
  width: min(320px, 70%); margin: 1.4rem 0 1.1rem;
  color: var(--gold);
}
.hero-divider::before, .hero-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

.hero-tagline {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.5rem, 4.6vw, 2.3rem); line-height: 1.2;
  color: var(--cream); margin-bottom: .9rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-sub { font-size: 1.1rem; max-width: 38rem; margin-bottom: 1.9rem; color: #f8ecd8; }

/* ---------- Facts ---------- */
.facts {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
}
.facts li {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem 1rem; text-align: center; display: flex; flex-direction: column; gap: .15rem;
  border-top: 4px solid var(--saffron);
}
.fact-icon { font-size: 1.6rem; }
.facts strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--maroon); line-height: 1.2; }
.facts span:last-child { font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 3px;
  background: linear-gradient(var(--saffron), var(--gold), var(--maroon));
  border-radius: 3px;
}
.stop { position: relative; padding-left: 64px; margin-bottom: 2rem; }
.stop:last-child { margin-bottom: 0; }
.stop-num {
  position: absolute; left: 0; top: 0;
  width: 45px; height: 45px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1.35rem/1 var(--font-serif);
  background: var(--maroon); color: var(--gold-light);
  border: 3px solid var(--gold); box-shadow: 0 0 0 5px var(--cream-deep);
}
.stop-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stop-card picture { display: block; }
.stop-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--cream); }
.stop-body { padding: 1.25rem 1.25rem 1.1rem; }
.stop-body h3 { margin-top: .6rem; }
.stop-body p { color: var(--ink-soft); margin: 0; }
.badge {
  display: inline-block; padding: .25rem .75rem; border-radius: 999px;
  background: #fde7cf; color: var(--deep-orange);
  font-size: .82rem; font-weight: 600;
}
@media (min-width: 760px) {
  .timeline::before { left: 27px; }
  .stop { padding-left: 88px; }
  .stop-num { width: 57px; height: 57px; font-size: 1.6rem; }
  .stop-card { display: grid; grid-template-columns: 2fr 3fr; }
  .stop-card picture { height: 100%; }
  .stop-card img { height: 100%; aspect-ratio: auto; min-height: 240px; }
  .stop-body { padding: 1.75rem; align-self: center; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; align-items: center; }
.about picture { display: block; }
.about-photo {
  width: 100%; max-width: 420px; margin: 0 auto; border-radius: var(--radius);
  box-shadow: 0 0 0 6px var(--cream), 0 0 0 8px var(--gold), var(--shadow);
}
.about-stats { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
.about-stats div { border-left: 3px solid var(--saffron); padding-left: .9rem; }
.about-stats dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--deep-orange); font-weight: 600; }
.about-stats dd { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--maroon); }
@media (min-width: 860px) {
  .about { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 20px; margin: 2.5rem 0; }
.review {
  margin: 0; padding: 1.75rem 1.5rem;
  background: rgba(253, 246, 233, .06);
  border: 1px solid rgba(212, 164, 55, .4);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 1rem; flex: 1; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.4; }.review figcaption { font-weight: 600; color: var(--gold-light); }
.review figcaption span { font-weight: 400; color: #e8d9c2; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; }
.faq details {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.1rem 3.25rem 1.1rem 1.25rem;
  font-weight: 600; font-size: 1.05rem; color: var(--maroon);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--deep-orange); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--cream-deep); }
.faq details p { padding: 1rem 1.25rem 1.25rem; margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2.5rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list li > span:first-child {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--deep-orange);
}
.contact-list a, .contact-list li > span:last-child { font-size: 1.1rem; }
.map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-height: 320px; background: var(--cream) repeating-linear-gradient(45deg, transparent 0 12px, rgba(212,164,55,.12) 12px 24px);
  position: relative;
}
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--ink-soft); font-weight: 500;
}
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; align-items: stretch; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dark); color: #e8d9c2; padding: 56px 0 24px; }
.footer-inner { display: grid; gap: 2rem; }
.site-footer .brand-name { color: var(--gold-light); margin-bottom: .4rem; }
.footer-heading {
  font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.copyright {
  text-align: center; font-size: .85rem; margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 164, 55, .25);
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Hero video ---------- */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-video.is-playing { opacity: 1; }
/* Night footage is darker than the photo, so ease the overlay while it plays */
.hero-overlay { transition: opacity 1.4s ease; }
.hero-video.is-playing + .hero-overlay { opacity: .72; }
.hero-video-toggle {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(43, 10, 15, .55); color: var(--cream);
  border: 1px solid rgba(241, 212, 138, .5); cursor: pointer;
}
.hero-video-toggle:hover { background: rgba(43, 10, 15, .8); }

/* ---------- Motion ----------
   Only applies when script.js adds .motion to <html>, which it skips for
   visitors who have "reduce motion" turned on. Without it, everything is
   simply visible. */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spread {
  from { letter-spacing: .12em; margin-right: -.12em; opacity: 0; }
  to   { letter-spacing: .42em; margin-right: -.42em; opacity: 1; }
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  20%      { transform: scale(.94, 1.06) rotate(-2deg); }
  40%      { transform: scale(1.04, .96) rotate(1.5deg); }
  60%      { transform: scale(.97, 1.04) rotate(-1deg); }
  80%      { transform: scale(1.02, .98) rotate(1deg); }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(242,140,40,.6)); }
  50%      { filter: drop-shadow(0 0 18px rgba(242,140,40,.95)); }
}
@keyframes pop {
  0%   { transform: scale(.6); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Hero entrance, one element after another */
.motion .hero-content > * { opacity: 0; animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.motion .hero-content > :nth-child(1) { animation-delay: .1s; }
.motion .hero-content > :nth-child(2) { animation-delay: .3s; }
.motion .hero-content > :nth-child(3) { animation-delay: .6s; }
.motion .hero-content > :nth-child(4) { animation-delay: .75s; }
.motion .hero-content > :nth-child(5) { animation-delay: .9s; }
.motion .hero-content > :nth-child(6) { animation-delay: 1.05s; }
.motion .hero-brand-sub { animation: spread 1.4s .5s cubic-bezier(.2, .7, .2, 1) both; }

/* Living diya flame */
.motion .hero-diya { animation: rise .9s .1s cubic-bezier(.2, .7, .2, 1) forwards, glow 2.4s 1s ease-in-out infinite; }
.motion .diya-flame {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: flicker 1.8s ease-in-out infinite;
}

/* Scroll reveals (script.js adds .reveal, then .is-visible when on screen) */
.motion .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}
.motion .reveal.is-visible { opacity: 1; transform: none; }

/* Itinerary: the timeline line fills as you scroll; numbers pop when reached */
.motion .timeline::before { transform: scaleY(var(--progress, 0)); transform-origin: top; }
.motion .timeline::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 3px; z-index: -1;
  background: rgba(122, 31, 43, .12); border-radius: 3px;
}
.motion .stop.is-visible .stop-num { animation: pop .6s cubic-bezier(.2, .7, .2, 1) both; }
@media (min-width: 760px) { .motion .timeline::after { left: 27px; } }
.timeline { isolation: isolate; }

/* Gentle photo zoom on hover (desktop) */
.stop-card img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .stop-card:hover img { transform: scale(1.05); }
}

/* ---------- Legal pages ---------- */
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.legal h2 { font-size: 1.7rem; margin-top: 2rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }

/* ---------- iPhone "Add to Home Screen" hint ---------- */
.ios-hint {
  position: fixed; left: 16px; right: 88px; bottom: 16px; z-index: 140;
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1rem; border-radius: var(--radius);
  background: var(--maroon-dark); color: var(--cream);
  border: 1px solid rgba(212, 164, 55, .5);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
  font-size: .92rem; line-height: 1.45;
}
.ios-hint img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.ios-hint p { margin: 0; flex: 1; }
.ios-hint strong { color: var(--gold-light); }
.ios-hint-share { display: inline-block; vertical-align: -3px; }
.ios-hint button {
  flex: none; width: 32px; height: 32px; margin: -4px -6px 0 0;
  background: none; border: 0; color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
@media (min-width: 760px) { .wa-float { right: 24px; bottom: 24px; width: 62px; height: 62px; } }
