/* =========================================================
   VANAPRASTHA ASHRAM — shared styles
   Used by vanaprastha.html and festivals.html
   Primary: Saffron. Secondary: Sage. Tertiary: Rose.
   ========================================================= */
:root {
  /* ---- Palette (tonal, derived from saffron #C2410C) ---- */
  --saffron-10:  #2E0F00;
  --saffron-20:  #4F1A00;
  --saffron-30:  #7A2A00;
  --saffron-40:  #A23510;   /* white text on this: 6.9:1 */
  --saffron-50:  #C2410C;   /* primary — white text on this: 5.2:1 */
  --saffron-60:  #E25E1F;   /* decorative only — fails with white text */
  --saffron-70:  #F97316;   /* decorative only — fails with white text */
  --saffron-80:  #FFB58A;
  --saffron-90:  #FFDBC4;
  --saffron-95:  #FFEDDF;
  --saffron-99:  #FFF8F2;

  --sage-30:  #3E5536;      /* white text on this: 7.9:1 */
  --sage-40:  #557049;
  --sage-50:  #6E8A60;      /* icons/decorative only */
  --sage-80:  #BCD4AE;
  --sage-90:  #D9EBCE;
  --sage-95:  #ECF6E5;

  --rose-30:  #6E2B47;      /* white text on this: 9:1 */
  --rose-40:  #8E4264;
  --rose-50:  #B0597F;
  --rose-80:  #F2B6CF;
  --rose-90:  #FAD9E6;
  --rose-95:  #FDECF3;

  --indigo-40: #3B4CA8;
  --indigo-80: #B9C2F4;

  /* ---- Semantic surfaces ---- */
  --primary:            var(--saffron-50);
  --primary-hover:      var(--saffron-40);
  --on-primary:         #FFFFFF;
  --primary-container:  var(--saffron-90);
  --on-primary-container: var(--saffron-10);

  --secondary:          var(--sage-40);
  --on-secondary:       #FFFFFF;
  --secondary-container: var(--sage-90);
  --on-secondary-container: #102315;

  --tertiary:           var(--rose-40);
  --on-tertiary:        #FFFFFF;
  --tertiary-container: var(--rose-90);
  --on-tertiary-container: #2A0E1B;

  --bg:                 #FFFAF3;
  --surface:            #FFFAF3;
  --surface-low:        #FAF1E4;
  --surface-container:  #F4E8D6;
  --surface-high:       #EDDFC8;
  --surface-inverse:    #221C14;

  --on-surface:         #1F1A12;
  --on-surface-variant: #5A4F3C;
  --outline:            #9B8D75;
  --outline-variant:    #DDCDB1;

  /* ---- Type ---- */
  --font-display: "Roboto Serif", "Georgia", serif;
  --font-body:    "Roboto Flex", "Inter", system-ui, sans-serif;

  /* ---- Shape scale ---- */
  --shape-xs:  8px;
  --shape-sm:  14px;
  --shape-md:  20px;
  --shape-lg:  28px;
  --shape-xl:  36px;
  --shape-2xl: 48px;
  --shape-pill: 999px;
  --shape-cookie: 36% 64% 56% 44% / 50% 42% 58% 50%;
  --shape-blob:   58% 42% 33% 67% / 40% 56% 44% 60%;

  /* ---- Elevation ---- */
  --elev-1: 0 1px 2px rgba(64, 33, 0, 0.06), 0 1px 3px rgba(64, 33, 0, 0.05);
  --elev-2: 0 2px 6px rgba(64, 33, 0, 0.08), 0 8px 24px rgba(64, 33, 0, 0.06);
  --elev-3: 0 6px 16px rgba(64, 33, 0, 0.10), 0 18px 40px rgba(64, 33, 0, 0.10);

  --appbar-h: 72px;
  --max: 1240px;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--appbar-h) + 16px); /* jump links land below the sticky header */
  -webkit-text-size-adjust: 100%;
  font-size: 106.25%; /* 17px base — easier reading for older eyes; every rem scales with it */
}
body {
  font-family: var(--font-body);
  font-variation-settings: "opsz" 16;
  background: var(--bg);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--saffron-90); color: var(--saffron-10); }

:focus-visible {
  outline: 3px solid var(--saffron-40);
  outline-offset: 3px;
  border-radius: 6px;
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  user-select: none;
  /* Fixed 1em box: if the icon font is slow or blocked, long names like
     "local_laundry_service" can't push the layout sideways */
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link — first thing keyboard users reach */
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 2000;
  background: var(--surface-inverse);
  color: white;
  padding: 12px 20px;
  border-radius: var(--shape-pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.display-m {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}
.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.body  { font-size: 1rem; color: var(--on-surface-variant); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron-40);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--saffron-50);
  border-radius: 2px;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
section.compact { padding: 64px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } .container { padding: 0 16px; } }

/* =========================================================
   TOP APP BAR
   ========================================================= */
.appbar {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255, 250, 243, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.appbar.scrolled {
  border-color: var(--outline-variant);
  background: rgba(255, 250, 243, 0.96);
}
.appbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--appbar-h);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--on-surface);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: var(--shape-md);
  background: radial-gradient(circle at 30% 30%, var(--saffron-70) 0%, var(--saffron-50) 50%, var(--saffron-40) 100%);
  display: grid; place-items: center;
  color: white;
  box-shadow: var(--elev-1);
  flex-shrink: 0;
  transition: border-radius .6s cubic-bezier(.5,0,.2,1);
}
.brand:hover .brand-mark { border-radius: var(--shape-cookie); }
.brand-mark .om {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-top: 4px;
}
.nav-pill {
  margin: 0 auto;
  display: flex; align-items: center;
  background: var(--surface-container);
  padding: 6px;
  border-radius: var(--shape-pill);
  gap: 2px;
}
.nav-pill a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--shape-pill);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-pill a:hover { color: var(--on-surface); background: var(--surface-high); }
.nav-pill a.active,
.nav-pill a[aria-current="page"] {
  background: var(--primary);
  color: var(--on-primary);
}
.appbar-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---- Mobile menu (replaces the pill nav on smaller screens) ---- */
.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-container);
  display: grid; place-items: center;
  cursor: pointer;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--primary); color: var(--on-primary); }
.mobile-nav nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  box-shadow: var(--elev-3);
  padding: 12px 16px 20px;
  display: grid;
  gap: 2px;
  max-height: calc(100vh - var(--appbar-h));
  overflow-y: auto;
}
.mobile-nav nav a {
  padding: 14px 16px;
  border-radius: var(--shape-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}
.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current="page"] { background: var(--surface-container); }
.mobile-nav nav .btn { justify-content: center; margin-top: 10px; }

@media (max-width: 1200px) {
  .nav-pill { display: none; }
  .mobile-nav { display: block; }
}
@media (max-width: 520px) {
  .appbar-inner { padding: 12px 16px; }
  .appbar-actions { display: none; }      /* "Book a visit" lives inside the menu on phones */
  .mobile-nav { margin-left: auto; }
  .brand-tag { display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: var(--shape-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .material-symbols-rounded { font-size: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.btn-filled    { background: var(--primary); color: var(--on-primary); box-shadow: var(--elev-1); }
.btn-filled:hover  { background: var(--primary-hover); box-shadow: var(--elev-2); }

.btn-tonal     { background: var(--primary-container); color: var(--on-primary-container); }
.btn-tonal:hover  { background: var(--saffron-80); }

.btn-outline   { background: transparent; color: var(--on-surface); box-shadow: inset 0 0 0 1.5px var(--outline); }
.btn-outline:hover { background: var(--surface-low); box-shadow: inset 0 0 0 1.5px var(--on-surface-variant); }

.btn-text      { color: var(--saffron-40); padding: 10px 14px; }
.btn-text:hover { background: var(--saffron-95); }

.btn-sm { padding: 10px 18px; font-size: 0.94rem; min-height: 44px; }
.btn-lg { padding: 18px 32px; font-size: 1.06rem; }
@media (max-width: 520px) { .btn { white-space: normal; } }  /* long labels wrap on phones */

/* =========================================================
   ICON CONTAINERS
   ========================================================= */
.icon-tile {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--shape-md);
  flex-shrink: 0;
  transition: border-radius .5s cubic-bezier(.5,0,.2,1), transform .3s;
}
.icon-tile .material-symbols-rounded { font-size: 28px; }
.tile-primary   { background: var(--primary-container);   color: var(--on-primary-container); }
.tile-secondary { background: var(--secondary-container); color: var(--on-secondary-container); }
.tile-tertiary  { background: var(--tertiary-container);  color: var(--on-tertiary-container); }
.tile-saffron   { background: var(--saffron-50);          color: white; }
.tile-sage      { background: var(--sage-40);             color: white; }
.tile-rose      { background: var(--rose-40);             color: white; }

.shape-a { border-radius: 28px 12px 28px 12px; }
.shape-b { border-radius: 12px 28px 12px 28px; }
.shape-c { border-radius: 50% 28% 50% 28% / 28% 50% 28% 50%; }
.shape-d { border-radius: var(--shape-pill); }
.shape-e { border-radius: var(--shape-cookie); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 56px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 50% auto -10%;
  height: 60%;
  background: radial-gradient(60% 80% at 30% 40%, var(--saffron-95) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-left { position: relative; z-index: 1; }
.location-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface-container);
  padding: 8px 16px 8px 12px;
  border-radius: var(--shape-pill);
  margin-bottom: 24px;
  color: var(--on-surface);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .2s;
}
a.location-chip:hover { background: var(--surface-high); }
.location-chip .material-symbols-rounded { font-size: 18px; color: var(--saffron-50); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--on-surface);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--saffron-50);
  font-style: italic;
  font-weight: 600;
}
.hero h1 .underline {
  background: linear-gradient(transparent 75%, var(--saffron-90) 75%);
  padding: 0 4px;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 540px;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  display: flex; gap: 36px; flex-wrap: wrap;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}
.hero-meta-item .lbl {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.hero-collage {
  position: relative;
  height: 560px;
  width: 100%;
}
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-tile {
  position: absolute;
  overflow: hidden;
  background: var(--surface-container);
  box-shadow: var(--elev-2);
  transition: transform .5s cubic-bezier(.5,0,.2,1);
}
.collage-tile:hover { transform: translateY(-4px) rotate(-1deg); }
.tile-1 { width: 60%; height: 60%; top: 0; left: 0; border-radius: 48px 48px 16px 48px; }
.tile-2 { width: 50%; height: 50%; bottom: 0; right: 0; border-radius: 16px 48px 48px 48px; }
.tile-3 {
  width: 32%; aspect-ratio: 1;
  top: 5%; right: 5%;
  border-radius: 50%;
  border: 6px solid var(--bg);
}
.hero-collage::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  border-radius: var(--shape-blob);
  background: var(--saffron-70);
  bottom: 8%; left: 4%;
  z-index: 2;
  opacity: 0.92;
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: var(--shape-blob); }
  50% { border-radius: var(--shape-cookie); transform: rotate(20deg); }
}

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-collage { height: 420px; }
}
@media (max-width: 520px) {
  .hero-collage { height: 320px; }
  .hero-ctas .btn-lg { width: 100%; justify-content: center; }
}

/* =========================================================
   PHILOSOPHY — Bento
   ========================================================= */
.philosophy-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento {
  background: var(--surface-container);
  border-radius: var(--shape-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bento:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
.bento h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
.bento p { color: var(--on-surface-variant); }
.bento .icon-tile { margin-bottom: 8px; }
.bento .bento-link { padding-left: 0; margin-top: auto; align-self: flex-start; }

.bento-1 { grid-row: span 2; background: var(--saffron-90); }
.bento-1 h3 { color: var(--saffron-10); }
.bento-1 p { color: var(--saffron-20); }
.bento-1 .bento-link { color: var(--saffron-30); }
.bento-2 { background: var(--sage-90); }
.bento-2 h3 { color: #102315; }
.bento-3 { background: var(--rose-90); }
.bento-3 h3 { color: #2A0E1B; }
.bento-4 {
  grid-column: span 2;
  background: var(--surface-high);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
.bento-4 .bento-link { margin-top: 6px; }
.bento-img {
  aspect-ratio: 1;
  border-radius: var(--shape-xl);
  overflow: hidden;
  background: var(--surface-container);
}
.bento-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .bento-1, .bento-4 { grid-column: span 1; grid-row: auto; }
  .bento-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head .title-block { max-width: 640px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 12px 0 12px;
  color: var(--on-surface);
  text-wrap: balance;
}
.section-head .lead { color: var(--on-surface-variant); font-size: 1.1rem; max-width: 560px; }

/* =========================================================
   ROOMS
   ========================================================= */
.rooms-section { background: var(--surface-low); border-radius: 56px; margin: 32px 16px; padding: 80px 0; }
@media (max-width: 720px) { .rooms-section { margin: 24px 0; border-radius: 32px; padding: 56px 0; } }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.room-card {
  background: var(--surface);
  border-radius: var(--shape-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--elev-1);
  transition: transform .3s, box-shadow .3s;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--elev-3); }
.room-img {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--surface-container);
}
.room-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-img .badge-pill {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,250,243,0.95);
  color: var(--saffron-40);
  padding: 6px 14px;
  border-radius: var(--shape-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.room-img .availability {
  position: absolute; top: 16px; right: 16px;
  background: var(--sage-30);
  color: white;
  padding: 6px 12px;
  border-radius: var(--shape-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.room-img .availability.few { background: var(--rose-30); }
.room-img .availability::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: white;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.room-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.room-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
.room-body .body { font-size: 0.97rem; }
.room-features { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 0.94rem; color: var(--on-surface-variant); }
.room-features span { display: inline-flex; align-items: center; gap: 6px; }
.room-features .material-symbols-rounded { font-size: 18px; color: var(--saffron-50); }
.room-price {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--outline-variant);
}
.room-price .amount {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700;
  color: var(--saffron-40);
  letter-spacing: -0.02em;
}
.room-price .per { font-size: 0.94rem; color: var(--on-surface-variant); }

@media (max-width: 900px) { .rooms-grid { grid-template-columns: 1fr; } }

.amenities {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  list-style: none;
}
.amenity {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-md);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-surface);
}
.amenity .material-symbols-rounded { color: var(--saffron-50); font-size: 26px; }
@media (max-width: 900px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .amenities { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  background: var(--surface-inverse);
  color: white;
  border-radius: var(--shape-xl);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  overflow: hidden;
  list-style: none;
}
.stats::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: var(--shape-cookie);
  background: var(--saffron-70);
  opacity: 0.18;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--saffron-80);
  line-height: 1;
}
.stat .lbl { color: rgba(255,255,255,0.78); margin-top: 8px; font-size: 0.97rem; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px 28px; }
}

/* =========================================================
   ACTIVITIES
   ========================================================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.activity {
  position: relative;
  padding: 24px;
  border-radius: var(--shape-lg);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.activity:hover { transform: translateY(-4px); box-shadow: var(--elev-2); }
.activity h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.activity p  { font-size: 0.97rem; line-height: 1.55; }
.activity .when {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.act-vedic   { background: var(--saffron-95); color: var(--saffron-10); grid-column: span 2; min-height: 240px; }
.act-yoga    { background: var(--sage-90);    color: #102315; }
.act-kirtan  { background: var(--rose-90);    color: #2A0E1B; }
.act-library { background: var(--surface-container); color: var(--on-surface); grid-column: span 2; }
.act-meals   { background: var(--saffron-40); color: white; }   /* was saffron-70: white text failed contrast */
.act-garden  { background: var(--sage-30);    color: white; }   /* was sage-50: white text failed contrast */

.activity .icon-tile { background: rgba(0,0,0,0.06); color: currentColor; }
.activity .icon-tile.translucent { background: rgba(255,255,255,0.18); }

@media (max-width: 900px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .act-vedic, .act-library { grid-column: span 2; }
}
@media (max-width: 520px) {
  .activities-grid { grid-template-columns: 1fr; }
  .act-vedic, .act-library { grid-column: span 1; }
}

/* =========================================================
   EVENTS / REGULAR GATHERINGS
   ========================================================= */
.events-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.event-row {
  display: grid;
  grid-template-columns: 96px 1.6fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: var(--shape-lg);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  transition: background .2s, border-color .2s, transform .2s;
}
.event-row:hover { background: var(--saffron-95); border-color: var(--saffron-80); }
.event-date {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--shape-md);
  padding: 14px 8px;
  text-align: center;
  font-weight: 700;
  line-height: 1;
  transition: border-radius .5s;
}
.event-row:hover .event-date { border-radius: var(--shape-cookie); }
.event-date .day { font-family: var(--font-display); font-size: 1.9rem; }
.event-date .mon { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; display: block; }
.event-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.event-row .body { font-size: 0.97rem; margin-top: 4px; }
.event-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.94rem; color: var(--on-surface-variant); }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta .material-symbols-rounded { font-size: 18px; color: var(--saffron-50); }
.events-note {
  margin-top: 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--on-surface-variant);
}
@media (max-width: 720px) {
  .event-row { grid-template-columns: 72px 1fr; gap: 16px; }
  .event-meta { grid-column: 1 / -1; }
  .event-row > .btn { grid-column: 1 / -1; justify-self: start; }
}

/* =========================================================
   VOLUNTEER
   ========================================================= */
.volunteer-section { background: linear-gradient(180deg, var(--saffron-95) 0%, var(--bg) 100%); }
.vol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.vol-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
}
.vol-role {
  background: var(--surface);
  border-radius: var(--shape-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--outline-variant);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.vol-role:hover { border-color: var(--saffron-50); transform: translateY(-3px); box-shadow: var(--elev-2); }
.vol-role h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.vol-role p { font-size: 0.94rem; color: var(--on-surface-variant); }
.vol-role .chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip {
  display: inline-block;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  padding: 4px 12px;
  border-radius: var(--shape-pill);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Forms */
.form-card {
  background: var(--surface);
  border-radius: var(--shape-xl);
  padding: 32px;
  box-shadow: var(--elev-2);
  display: flex; flex-direction: column; gap: 20px;
}
.form-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.form-card p { color: var(--on-surface-variant); font-size: 0.97rem; }
.form-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface-low);
  border-radius: var(--shape-sm);
  padding: 12px 14px;
  font-size: 0.92rem !important;
}
.form-note .material-symbols-rounded { color: var(--saffron-50); font-size: 20px; margin-top: 2px; }
.field { position: relative; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
}
.field .optional { font-weight: 400; color: var(--on-surface-variant); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  min-height: 50px;
  background: var(--surface-low);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--shape-sm);
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--saffron-90);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .vol-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) { .vol-roles { grid-template-columns: 1fr; } }

/* =========================================================
   COMMUNITY VOICES
   ========================================================= */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.voice-card {
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.voice-card:hover { transform: translateY(-4px); box-shadow: var(--elev-2); border-color: var(--saffron-80); }
.voice-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--saffron-80);
  position: absolute;
  top: 24px; right: 24px;
  font-weight: 700;
}
.voice-card blockquote {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--on-surface);
  font-weight: 400;
  text-wrap: pretty;
  padding-right: 32px;
}
.voice-author { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--elev-1);
}
.avatar-saffron { background: var(--saffron-40); }
.avatar-sage    { background: var(--sage-30); }
.avatar-rose    { background: var(--rose-40); }
.voice-author .name { font-weight: 600; font-size: 0.97rem; color: var(--on-surface); }
.voice-author .role { font-size: 0.875rem; color: var(--on-surface-variant); }

.voice-1 { background: var(--saffron-95); }
.voice-2 { background: var(--sage-95); }
.voice-3 { background: var(--rose-95); }

@media (max-width: 900px) { .voices-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FILTER CHIPS (home gallery + festivals)
   ========================================================= */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.filter {
  position: relative; /* keeps the screen-reader month names inside the chip */
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--shape-pill);
  background: var(--surface-container);
  color: var(--on-surface-variant);
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.filter:hover { background: var(--surface-high); color: var(--on-surface); }
.filter[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.filter:disabled { opacity: .45; cursor: not-allowed; background: var(--surface-low); }
.filter .count { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* =========================================================
   HOME GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-item {
  border-radius: var(--shape-lg);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--surface-container);
  padding: 0;
  text-align: left;
}
.gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.5,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(31,26,18,0.75));
  color: white;
  font-weight: 600;
  font-size: 0.92rem;
}
.gallery-more { margin-top: 28px; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 480px) {
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
}

/* Simple lightbox (home gallery) */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(31, 26, 18, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  z-index: 1000;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 80vh;
  border-radius: var(--shape-lg);
  box-shadow: var(--elev-3);
}
.lightbox-cap { color: white; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--on-surface);
  display: grid; place-items: center;
}

/* =========================================================
   FAQ (native <details>)
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover, .faq-item[open] { border-color: var(--saffron-80); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--on-surface);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--shape-lg); }
.faq-item .arrow {
  margin-left: auto;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-container);
  color: var(--saffron-50);
  display: grid; place-items: center;
  transition: transform .3s, background .2s, border-radius .3s;
}
.faq-item[open] .arrow { transform: rotate(180deg); background: var(--primary); color: var(--on-primary); border-radius: var(--shape-md); }
.faq-a { padding: 0 24px 22px; color: var(--on-surface-variant); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section { background: var(--surface-inverse); color: white; padding: 96px 0; }
.contact-section h2 { color: white !important; }
.contact-section .lead { color: rgba(255,255,255,0.78) !important; }
.contact-section .eyebrow { color: var(--saffron-80); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 12px; font-style: normal; }
.contact-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--shape-lg);
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-row .icon-tile { background: var(--saffron-50); color: white; }
.contact-row .lbl { font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.contact-row .val { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-top: 4px; }
.contact-row a { color: var(--saffron-80); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.contact-row a:focus-visible { outline-color: var(--saffron-80); }

.contact-form { background: var(--surface); color: var(--on-surface); border-radius: var(--shape-xl); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.contact-form > p { color: var(--on-surface-variant); font-size: 0.97rem; margin-bottom: 6px; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--surface-inverse);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand .name { color: white; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-about { font-size: 0.94rem; line-height: 1.6; max-width: 340px; }
.footer-title { color: white; font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  padding: 5px 0;
  font-size: 0.94rem;
  transition: color .2s;
}
footer a:hover { color: var(--saffron-80); }
footer a:focus-visible { outline-color: var(--saffron-80); }
.footer-bottom a { display: inline; padding: 0; font-size: inherit; color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   UTILITIES
   ========================================================= */
/* Only hide fade-in content when JS is running, so the page never goes blank */
.js .fade-in { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.js .fade-in.visible { opacity: 1; transform: translateY(0); }

.float-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--shape-pill);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--elev-3);
  transition: transform .3s, border-radius .5s, background .2s;
}
.float-cta:hover { transform: translateY(-3px); border-radius: var(--shape-md); background: var(--primary-hover); }
@media (max-width: 720px) { .float-cta { display: none; } }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(160%);
  background: var(--surface-inverse);
  color: white;
  padding: 14px 22px;
  border-radius: var(--shape-pill);
  box-shadow: var(--elev-3);
  font-size: 0.97rem;
  z-index: 200;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px);
  transition: transform .35s cubic-bezier(.5,0,.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .material-symbols-rounded { color: var(--saffron-80); }

/* =========================================================
   FESTIVALS PAGE
   ========================================================= */
.page-hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 120%;
  background: radial-gradient(60% 60% at 30% 40%, var(--saffron-95) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin: 14px 0 16px; max-width: 760px; text-wrap: balance; }
.page-hero h1 .accent { color: var(--saffron-50); font-style: italic; font-weight: 600; }
.page-hero .lead { font-size: 1.15rem; color: var(--on-surface-variant); max-width: 620px; text-wrap: pretty; }
.page-hero .hero-ctas { margin-top: 28px; }

.filter-bar {
  position: sticky;
  top: var(--appbar-h);
  z-index: 40;
  background: rgba(255, 250, 243, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--outline-variant);
  padding: 14px 0;
}
.filter-row { display: flex; align-items: center; gap: 12px; }
.filter-row + .filter-row { margin-top: 10px; }
.filter-label { width: 64px; flex-shrink: 0; color: var(--on-surface-variant); }
.chip-scroll {
  display: flex; gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
  margin: -3px;
  -webkit-overflow-scrolling: touch;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.filter-bar .filter { padding: 8px 16px; min-height: 42px; }
.filter-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--on-surface-variant);
}
.filter-meta .btn-text { padding: 6px 12px; min-height: 36px; font-size: 0.94rem; }

@media (max-width: 720px) {
  .filter-bar { position: static; }       /* three rows of chips would eat a phone screen if sticky */
  .filter-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .filter-label { width: auto; }
}

.fest-results { padding: 24px 0 96px; }
.fest-group { padding-top: 40px; }
.fest-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline-variant);
}
.fest-group-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}
.fest-group-head .festivals { color: var(--saffron-40); font-weight: 600; margin-left: 4px; }
.fest-group-head .n { color: var(--on-surface-variant); font-size: 0.94rem; }

.fest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 14px;
}
.fest-item {
  position: relative;
  border-radius: var(--shape-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--saffron-90), var(--rose-90));
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}
.fest-item.feature { grid-column: span 2; grid-row: span 2; }
.fest-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.5,0,.2,1);
}
.fest-item:hover img { transform: scale(1.04); }
.fest-item.broken img { display: none; }
.fest-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(31,26,18,0.8));
  color: white;
  display: flex; flex-direction: column; gap: 2px;
}
.fest-cap .f { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: .9; }
.fest-cap .c { font-weight: 600; font-size: 0.94rem; line-height: 1.35; }
.play-badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(31,26,18,0.75);
  color: white;
  padding: 6px 12px 6px 8px;
  border-radius: var(--shape-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}
.play-badge .material-symbols-rounded { font-size: 20px; }

@media (max-width: 560px) {
  .fest-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .fest-cap { padding: 32px 12px 10px; }
  .fest-cap .c { font-size: 0.875rem; }
}

.fest-empty {
  margin: 56px auto 0;
  max-width: 460px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--on-surface-variant);
}
.fest-empty .icon-tile { margin-bottom: 4px; }
.fest-empty h2 { font-family: var(--font-display); color: var(--on-surface); font-size: 1.5rem; }

/* Festival lightbox — photos + videos, prev/next */
.flb {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(20, 16, 10, 0.96);
  color: white;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.flb.open { opacity: 1; visibility: visible; }
.flb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.flb-counter { font-size: 0.94rem; color: rgba(255,255,255,0.8); font-variant-numeric: tabular-nums; }
.flb-close {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--on-surface);
  display: grid; place-items: center;
}
.flb-stage {
  position: relative;
  display: grid; place-items: center;
  padding: 0 80px;
  min-height: 0;
}
.flb-stage img,
.flb-stage video {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: var(--shape-md);
  box-shadow: var(--elev-3);
  background: #000;
}
.flb-stage iframe {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--shape-md);
  background: #000;
}
.flb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: white;
  display: grid; place-items: center;
  transition: background .2s;
}
.flb-nav:hover { background: rgba(255,255,255,0.26); }
.flb-nav .material-symbols-rounded { font-size: 30px; }
.flb-prev { left: 14px; }
.flb-next { right: 14px; }
.flb button:focus-visible { outline-color: var(--saffron-80); }
.flb-caption { padding: 18px 24px 28px; text-align: center; max-width: 760px; margin: 0 auto; }
.flb-caption .f { color: var(--saffron-80); }
.flb-caption .c { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
@media (max-width: 720px) {
  .flb-stage { padding: 0 8px; }
  .flb-nav { top: auto; bottom: -64px; transform: none; width: 48px; height: 48px; }
  .flb-prev { left: 16px; }
  .flb-next { right: 16px; }
  .flb-caption { padding: 16px 76px 24px; }
  .flb-caption .c { font-size: 1rem; }
}

/* =========================================================
   REDUCED MOTION — respect the user's system setting
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js .fade-in { opacity: 1; transform: none; }
  .btn:hover, .bento:hover, .room-card:hover, .activity:hover, .vol-role:hover,
  .voice-card:hover, .collage-tile:hover, .float-cta:hover { transform: none; }
  .gallery-item:hover img, .fest-item:hover img { transform: none; }
}

/* =========================================================
   ROOM INSPECTION FORM (apply.html) — stepper
   ========================================================= */
.apply-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.apply-intro { margin-bottom: 20px; }
.apply-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 10px 0 8px;
}
.apply-intro p { color: var(--on-surface-variant); }
.optional { font-weight: 400; color: var(--on-surface-variant); font-size: 0.9em; font-family: var(--font-body); }

/* Progress */
.stepper { margin-bottom: 16px; scroll-margin-top: calc(var(--appbar-h) + 12px); }
.stepper-count { font-size: 0.97rem; color: var(--on-surface-variant); margin-bottom: 8px; }
.stepper-count strong { color: var(--on-surface); }
.stepper-bar { height: 6px; background: var(--surface-container); border-radius: 99px; overflow: hidden; }
.stepper-bar span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .35s ease; }
.stepper-dots {
  list-style: none;
  display: flex; gap: 4px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stepper-dots::-webkit-scrollbar { display: none; }
.stepper-dots li { flex: 1; min-width: max-content; }
.stepper-dots li > * {
  display: block; width: 100%;
  font-size: 0.8125rem;
  padding: 6px 10px;
  border-radius: var(--shape-pill);
  text-align: center;
  white-space: nowrap;
  color: var(--on-surface-variant);
}
.stepper-dots li.current > * { background: var(--primary-container); color: var(--on-primary-container); font-weight: 600; }
.stepper-dots li.done button { color: var(--saffron-40); text-decoration: underline; text-underline-offset: 3px; }
.stepper-dots li.done button:hover { background: var(--surface-container); }
.stepper-dots li.todo > * { color: var(--on-surface-variant); }
@media (max-width: 720px) { .stepper-dots { display: none; } }  /* phones: count + bar is enough */

/* Step card */
.form-section {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--shape-xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-title:focus { outline: none; }
.section-intro { color: var(--on-surface-variant); margin-top: -8px; }
.group-label { font-weight: 600; font-size: 0.97rem; margin-bottom: -10px; }
.field-half { max-width: 320px; }

.form-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-group > legend { font-size: 0.97rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.legend-note { font-weight: 400; color: var(--on-surface-variant); }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--rose-40); background: var(--rose-95); }
.field input:read-only:not([type="radio"]):not([type="checkbox"]),
.field textarea:read-only { background: var(--surface-container); color: var(--on-surface-variant); }

.field-money { max-width: 280px; }
.input-prefix { position: relative; }
.input-prefix > span {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--on-surface-variant); font-weight: 600; pointer-events: none;
}
.input-prefix input { padding-left: 32px; }

/* Conditional blocks */
.cond {
  border: 0; margin: 0;
  padding: 20px;
  background: var(--surface-low);
  border-left: 4px solid var(--saffron-80);
  border-radius: var(--shape-md);
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.cond-title { float: left; width: 100%; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; padding: 0; margin-bottom: 4px; }
.cond-title + * { clear: both; }

/* Choice cards */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  min-height: 52px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--shape-md);
  background: var(--surface-low);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.choice:hover { border-color: var(--outline); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice .mark {
  width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0;
  border: 2px solid var(--outline); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  transition: background .15s, border-color .15s;
}
.choice-check .mark { border-radius: 6px; }
.choice .t { display: block; font-weight: 600; }
.choice .t-normal { display: block; }
.choice .d { display: block; font-size: 0.9rem; color: var(--on-surface-variant); margin-top: 2px; }
.choice .pts {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--saffron-40); background: var(--saffron-95);
  padding: 3px 10px; border-radius: var(--shape-pill);
  white-space: nowrap;
}
.choice:has(input:checked) { border-color: var(--primary); background: var(--saffron-95); }
.choice:has(input:checked) .pts { background: var(--surface); }
.choice:has(input:checked) .mark { border-color: var(--primary); background: var(--primary); }
.choice:has(input[type="radio"]:checked) .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: white; }
.choice:has(input[type="checkbox"]:checked) .mark::after {
  content: ""; width: 6px; height: 11px;
  border: solid white; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.choice:has(input:focus-visible) { outline: 3px solid var(--saffron-40); outline-offset: 2px; }
.declare { background: var(--surface); }

.inline-check { display: inline-flex; align-items: center; gap: 10px; font-size: 0.97rem; cursor: pointer; min-height: 44px; }
.inline-check input { width: 22px; height: 22px; accent-color: var(--primary); flex-shrink: 0; }

/* Yes / No rows — two columns on wider screens to cut scrolling */
.yn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  column-gap: 32px;
}
.yn-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--outline-variant);
}
.yn-row > span:first-child { font-weight: 500; }
.segmented {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface-container);
  border-radius: var(--shape-pill);
  flex-shrink: 0;
}
.segmented label {
  position: relative;
  min-width: 64px; min-height: 40px; padding: 0 16px;
  display: grid; place-items: center;
  border-radius: var(--shape-pill);
  font-weight: 600;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented label:hover { color: var(--on-surface); }
.segmented label:has(input:checked) { background: var(--primary); color: var(--on-primary); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--saffron-40); outline-offset: 2px; }

/* Chip checkboxes (interests) */
.chip-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-choice {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--shape-pill);
  border: 1.5px solid var(--outline-variant);
  background: var(--surface-low);
  font-weight: 500;
  cursor: pointer;
}
.chip-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-choice:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip-choice:has(input:checked)::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.chip-choice:has(input:focus-visible) { outline: 3px solid var(--saffron-40); outline-offset: 2px; }

/* Rent */
.rent-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 14px 16px;
  background: var(--saffron-95);
  border-radius: var(--shape-md);
}
.rent-line .material-symbols-rounded { color: var(--saffron-50); }
.rent-line strong { color: var(--saffron-40); font-family: var(--font-display); font-size: 1.15rem; }
.rent-note { flex-basis: 100%; font-size: 0.9rem; color: var(--on-surface-variant); }

/* House rules */
.rules-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rule {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--sage-95);
  border: 1.5px solid var(--sage-80);
  border-radius: var(--shape-md);
}
.rule-check {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 6px; background: var(--sage-30);
  display: grid; place-items: center;
}
.rule-check::after {
  content: ""; width: 6px; height: 11px;
  border: solid white; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.rule-text { flex: 1; }
.rule-lock { color: var(--sage-30); }
.rule-lock .material-symbols-rounded { font-size: 18px; }

/* ID step */
.id-rules {
  background: var(--surface-low);
  border-radius: var(--shape-md);
  padding: 4px 16px;
}
.id-rules summary {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
  color: var(--saffron-40);
}
.id-rules summary .material-symbols-rounded { font-size: 20px; }
.id-rules ul { padding: 0 0 12px 22px; display: grid; gap: 6px; font-size: 0.95rem; color: var(--on-surface-variant); }
.id-rules strong { color: var(--on-surface); }

.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc { display: flex; flex-direction: column; }
.doc .choice { padding: 12px 14px; }
.doc-upload {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  margin: -6px 0 0 0;
  padding: 14px 14px 10px 48px;
  background: var(--saffron-95);
  border: 1.5px solid var(--primary);
  border-top: 0;
  border-radius: 0 0 var(--shape-md) var(--shape-md);
}
.doc:has(.doc-upload:not([hidden])) .choice { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.upload-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--shape-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--outline);
  font-weight: 600; font-size: 0.94rem;
  cursor: pointer;
}
.upload-btn:hover { box-shadow: inset 0 0 0 1.5px var(--on-surface-variant); }
.upload-btn:has(input:focus-visible) { outline: 3px solid var(--saffron-40); outline-offset: 2px; }
.upload-btn .material-symbols-rounded { font-size: 20px; color: var(--saffron-50); }
.has-file .upload-btn { box-shadow: none; background: transparent; padding: 0 8px; color: var(--saffron-40); }
.upload-status { font-size: 0.9rem; color: var(--on-surface-variant); word-break: break-word; }
.has-file .upload-status { color: var(--sage-30); font-weight: 600; order: -1; flex-basis: 100%; }
.upload-remove {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--on-surface-variant);
}
.upload-remove:hover { background: var(--surface-container); }
.upload-remove .material-symbols-rounded { font-size: 20px; }
.upload-note { display: flex; gap: 10px; font-size: 0.92rem; color: var(--on-surface-variant); }
.upload-note .material-symbols-rounded { color: var(--saffron-50); font-size: 20px; margin-top: 2px; }

.step-error {
  background: var(--rose-95);
  color: var(--rose-30);
  border-radius: var(--shape-md);
  padding: 12px 14px;
  font-weight: 600;
}

/* Review */
.review { display: flex; flex-direction: column; gap: 12px; }
.review-group { border: 1px solid var(--outline-variant); border-radius: var(--shape-md); padding: 12px 16px 6px; }
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review-head h3 { font-size: 1rem; font-weight: 700; }
.review-head .btn { padding: 6px 12px; min-height: 36px; }
.review dl { margin-top: 4px; }
.review-row { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--surface-container); font-size: 0.95rem; }
.review-row dt { color: var(--on-surface-variant); }
.review-row dd { font-weight: 500; word-break: break-word; }

.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--on-surface-variant); }
.privacy-note .material-symbols-rounded { color: var(--sage-40); font-size: 20px; margin-top: 2px; }

/* Bottom buttons — stick to the bottom of the screen so they're always in reach */
.step-nav {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, rgba(255,250,243,0));
}
.step-nav .btn { min-width: 120px; justify-content: center; }
.step-nav-mid { flex: 1; text-align: center; }
.nav-points {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--shape-pill);
  background: var(--surface-container);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.nav-points.ok { background: var(--sage-90); color: var(--sage-30); }
.nav-points.ok::before { content: "✓ "; font-weight: 700; }
.apply-page footer { margin-top: 64px; }

/* Thank-you */
.apply-done { padding: 24px 0 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.apply-done:focus { outline: none; }
.apply-done h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.apply-done p { color: var(--on-surface-variant); font-size: 1.05rem; }
.apply-done ul { padding-left: 22px; }

@media (max-width: 520px) {
  .apply-wrap { padding: 20px 12px 0; }
  .apply-intro { margin-bottom: 14px; }
  .apply-intro p { font-size: 0.95rem; }
  .form-section { padding: 20px 16px; border-radius: var(--shape-lg); gap: 16px; }
  .cond { padding: 16px 14px; }
  .field-half, .field-money { max-width: none; }
  .segmented label { min-width: 56px; padding: 0 12px; }
  .doc-upload { padding-left: 14px; }
  .step-nav { flex-wrap: wrap; row-gap: 8px; }
  .step-nav .btn { min-width: 0; flex: 0 0 auto; padding: 12px 18px; }
  .step-nav #btnNext, .step-nav #btnSend { flex: 1; }
  .step-nav-mid { order: -1; flex-basis: 100%; }      /* points meter sits above the buttons */
  .step-nav-mid:empty { display: none; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .stepper-bar span { transition: none; }
}

/* =========================================================
   SIMPLE TEXT PAGES (privacy, 404)
   ========================================================= */
.text-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.text-page h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.1; margin: 12px 0 16px; }
.text-page h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 32px 0 10px; }
.text-page p, .text-page li { color: var(--on-surface-variant); }
.text-page ul { padding-left: 22px; display: grid; gap: 6px; }
.text-page a:not(.btn) { color: var(--saffron-40); }
.text-page .updated { font-size: 0.9rem; }
.text-page .hero-ctas { margin-top: 28px; }


/* =========================================================
   VIDEO TOUR BUTTON — opens WhatsApp chat with Kamol
   ========================================================= */
.btn-whatsapp {
  background: #075E54;            /* WhatsApp dark teal — white text 9.5:1 */
  color: #FFFFFF;
  box-shadow: var(--elev-1);
}
.btn-whatsapp:hover { background: #054C44; box-shadow: var(--elev-2); }
.btn-whatsapp:focus-visible { outline: 3px solid #25D366; outline-offset: 3px; }
.btn-whatsapp .wa-icon { flex-shrink: 0; color: #25D366; }
.contact-row .icon-tile .wa-icon { color: #FFFFFF; }
.contact-row a.btn-whatsapp,
.contact-row a.btn-whatsapp:hover { color: #FFFFFF; text-decoration: none; margin-top: 12px; }
.contact-row a.btn-whatsapp:focus-visible { outline-color: #25D366; }


/* =========================================================
   ROOM PHOTO CAROUSEL — swipe, arrows, dots
   ========================================================= */
.room-carousel .rc-track {
  position: absolute; inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.room-carousel .rc-track::-webkit-scrollbar { display: none; }
.room-carousel .rc-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.rc-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 250, 243, 0.92);
  color: var(--on-surface);
  box-shadow: var(--elev-2);
  transition: opacity .2s, background .2s;
}
.rc-btn:hover { background: #FFFFFF; }
.rc-btn:disabled { opacity: 0; pointer-events: none; }
.rc-prev { left: 12px; }
.rc-next { right: 12px; }
.rc-dots {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 6px;
  padding: 6px 10px;
  border-radius: var(--shape-pill);
  background: rgba(31, 26, 18, 0.45);
}
.rc-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.6); transition: width .2s, background .2s; }
.rc-dots span.on { width: 20px; background: #FFFFFF; }
/* Arrows show on hover/focus on computers; always visible on touch screens */
@media (hover: hover) {
  .rc-btn { opacity: 0; }
  .room-carousel:hover .rc-btn:not(:disabled),
  .room-carousel:focus-within .rc-btn:not(:disabled) { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-btn, .rc-dots span { transition: none; }
}

/* Room photos open full screen */
.room-carousel .rc-track { cursor: zoom-in; }
.rc-expand {
  position: absolute; right: 12px; bottom: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(31, 26, 18, 0.55);
  color: #FFFFFF;
  transition: background .2s;
}
.rc-expand:hover { background: rgba(31, 26, 18, 0.8); }
.room-viewer .flb-close svg, .room-viewer .flb-nav svg { display: block; }
.room-viewer .flb-stage img { width: auto; height: auto; min-width: min(100%, 640px); object-fit: contain; }
.room-viewer { background: rgba(20, 16, 10, 0.97); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
