/* ============================================
   Nrityaam — School of Bharatanatyam
   Palette: matches nrityaam-premium-redesign.html exactly — emerald
   (950/900/800/700/600/500), cream (100/200/300), gold (300/500/600/700).
   Dark emerald sections: nav, hero, "Is This Class Right For You",
   final CTA, footer. Light cream sections: testimonials, mentor, FAQ.
   ============================================ */

:root {
  --emerald-950: #071F17;
  --emerald-900: #0B2F23;
  --emerald-800: #123F2F;
  --emerald-700: #1B5240;
  --emerald-600: #256A54;
  --emerald-500: #347F67;
  --cream-100: #FBF4DE;
  --cream-200: #F5E9C4;
  --cream-300: #EEDCA1;
  --gold-300: #E7CD86;
  --gold-500: #C79A3D;
  --gold-600: #A87B22;
  --gold-700: #8A6318;
  --ink: #1C2A22;
  --paper: #FBF4DE;
  --ink-muted: #4A5A50;
  --success: var(--emerald-600);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Poppins', 'Helvetica Neue', sans-serif;
  --font-numeral: 'Tinos', 'Times New Roman', 'Georgia', serif;

  --max-width: 1200px;
  --radius: 14px;
  --shadow-soft: 0 12px 34px rgba(7, 31, 23, 0.2);

  /* Vertical-rhythm scale — every section's own top/bottom padding, the
     gap between a heading and the content block under it, and the gutter
     between grid/flex items should all resolve to one of these three
     values, so no section reads as squeezed or overspaced next to its
     neighbors. */
  --space-sm: 24px;
  --space-md: 48px;
  --space-lg: 110px;
  --space-lg-mobile: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.no-scroll { overflow: hidden; }

/* ===== Nataraja watermark — persistent classical page-marker =====
   Public-domain Chola bronze photo (Met Museum Open Access, no attribution
   required), duotoned to the site palette. Faded via CSS mask so it blends
   into the page instead of reading as a pasted cutout, and repeated at low
   opacity behind every major section as the "temple relief" backdrop. */
.nataraja-mark {
  position: absolute;
  top: 0;
  width: 480px;
  max-width: 55vw;
  aspect-ratio: 1377/1901;
  background-image: url("../assets/images/nataraja-duotone-web.jpg");
  background-size: cover;
  background-position: center top;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 40%, transparent 78%);
  filter: saturate(1.15);
}

.nataraja-mark.right { right: -6%; }
.nataraja-mark.left { left: -6%; transform: scaleX(-1); }
.nataraja-mark.center { left: 50%; transform: translateX(-50%); opacity: 0.08; }

.on-dark .nataraja-mark { opacity: 0.16; }

@media (max-width: 760px) {
  .nataraja-mark { width: 320px; max-width: 75vw; opacity: 0.08; }
}

/* subtle natural film-grain texture over the whole page for warmth/tactility */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

#page-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  z-index: 1200;
  pointer-events: none;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--emerald-900);
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.66rem, 1.15vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 620px;
}

.section-heading.center,
.section-sub.center,
.eyebrow.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* thin gold divider under the main section headings, matching the
   reference design's ".rule" under every section-head */
#results .section-heading.center::after,
.fit-check .section-heading.center::after,
#faq .section-heading.center::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  background: var(--gold-500);
  margin: 16px auto 0;
}

section { padding: var(--space-lg) 0; position: relative; overflow: hidden; }

@media (max-width: 600px) {
  section { padding: var(--space-lg-mobile) 0; }
}
section > .container { position: relative; z-index: 2; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.83rem, 1.45vw, 0.95rem);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--emerald-950);
  box-shadow: 0 6px 16px rgba(167, 123, 34, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 35%;
  height: 200%;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(20deg);
  filter: blur(6px);
  pointer-events: none;
}

/* This shine is sized as a % of the button's own width — fine on a
   normal-width button, but on a full-width .btn-block button (like the
   booking form's "Next") that same percentage becomes a huge blurred
   white patch that washes out the label underneath it. Full-width
   buttons don't need the decorative shine at all. */
.btn-block.btn-primary::after {
  display: none;
}

.btn-primary:hover {
  box-shadow: 0 10px 22px rgba(167, 123, 34, 0.4), 0 0 0 2px rgba(231, 205, 134, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--cream-100);
  color: var(--cream-100);
}

.btn-outline:hover { background: rgba(251, 244, 222, 0.08); }

/* the booking modal's "Back" button sits on a light cream card, not a
   dark emerald section, so it needs the inverse treatment */
.modal-box .btn-outline {
  border-color: var(--emerald-700);
  color: var(--emerald-800);
}

.modal-box .btn-outline:hover { background: rgba(18, 63, 47, 0.06); }

.btn-light {
  background: var(--cream-100);
  color: var(--emerald-900);
}

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 31, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(199, 154, 61, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-icon {
  display: inline-block;
  height: 40px;
  width: 34px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  -webkit-mask-image: url("../assets/images/nrityaam-icon.png");
  mask-image: url("../assets/images/nrityaam-icon.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}

.logo-line1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: var(--cream-100);
  -webkit-text-stroke: 0.6px var(--cream-100);
}

.logo-line2 {
  font-family: var(--font-body);
  font-size: clamp(0.63rem, 1.1vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 500px) {
  .logo-icon { height: 30px; width: 26px; }
  .logo-line1 { font-size: 1.25rem; }
  .logo-line2 { font-size: 0.5rem; letter-spacing: 0.07em; }
  .nav { padding: 14px 12px; }
  .nav-right { gap: 10px; }
  .nav .book-call-trigger { padding: 10px 14px; font-size: 0.78rem; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  font-weight: 500;
  color: var(--cream-300);
  position: relative;
}

.nav-links a:hover { color: var(--gold-300); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--cream-100);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--emerald-900);
    border-bottom: 1px solid rgba(199, 154, 61, 0.25);
    padding: 4px 24px 12px;
    box-shadow: 0 14px 24px rgba(7, 31, 23, 0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(199, 154, 61, 0.15);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 50% -10%, var(--emerald-700) 0%, var(--emerald-900) 55%, var(--emerald-950) 100%);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.hero-headline {
  font-size: clamp(2.375rem, 6vw, 4.5rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--cream-100);
}

.highlight {
  color: var(--gold-300);
  font-style: italic;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-tiles {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, var(--cream-100), var(--cream-200));
  border: 1px solid var(--gold-300);
  border-radius: 18px;
  padding: 20px 26px;
  min-width: 110px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.25s ease;
}

.hero-tile:hover { transform: translateY(-4px); }

.hero-tile b {
  font-family: var(--font-numeral);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--emerald-800);
}

.hero-tile span:last-child {
  font-size: clamp(0.69rem, 1.2vw, 0.78rem);
  letter-spacing: 1.5px;
  color: var(--gold-700);
  text-align: center;
}

/* ===== Credibility / VSL section (Meet Your Mentor) ===== */
.mentor { background: var(--cream-100); }

.mentor .eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: normal;
  text-transform: none;
  color: var(--gold-700);
}

/* Two-column layout: a fixed-position photo slot on the left, bio panel on
   the right. The photo itself never moves — only which image is visible
   changes, via a plain crossfade cycling on a timer (initMentorSlideshow()
   in main.js), so "static position" and "moves by itself" both hold at
   once: the frame is still, the picture inside it isn't. */
.mentor-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: var(--space-md);
  align-items: center;
  max-width: 980px;
  margin: var(--space-md) auto 0;
}

@media (max-width: 860px) {
  .mentor-grid { grid-template-columns: 1fr; max-width: 560px; }
}

.mentor-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold-300);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
  will-change: transform;
}

.mentor-photo-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mentor-photo-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(251, 244, 222, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mentor-photo-dot.active {
  background: var(--gold-300);
  transform: scale(1.3);
}

.mentor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.mentor-photo img.active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mentor-photo img { transition: none; }
}

.proof-panel {
  background: var(--paper);
  border-left: 4px solid var(--gold-500);
  border-radius: 4px 16px 16px 4px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.proof-panel h4 {
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  margin-bottom: 10px;
  color: var(--emerald-800);
  font-family: var(--font-body);
  font-weight: 700;
}

.proof-panel p, .proof-panel li {
  color: #3B4A41;
  font-size: clamp(0.83rem, 1.45vw, 0.95rem);
  margin-bottom: 8px;
}

.proof-panel .qual-list { margin: 10px 0 24px 4px; }
.proof-panel .qual-list li::before { content: '✦ '; color: var(--gold-500); }

.proof-panel .block { margin-bottom: 24px; }
.proof-panel .block:last-child { margin-bottom: 0; }

/* ===== Is This Class Right For You — NOT/IS comparison ===== */
.fit-check {
  background: var(--emerald-950);
  color: var(--cream-200);
}
.fit-check .section-heading,
.fit-check .eyebrow { color: var(--cream-100); }

.fit-check.on-dark::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(245,233,196,0) 0%, var(--emerald-950) 100%);
  pointer-events: none;
}

.fit-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (max-width: 860px) {
  .fit-check-grid { grid-template-columns: 1fr; }
}

.fit-card {
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.fit-card.not-for {
  background: rgba(251, 244, 222, 0.04);
  border: 1.5px solid rgba(251, 244, 222, 0.14);
}

.fit-card.is-for {
  background: linear-gradient(180deg, rgba(199, 154, 61, 0.14), rgba(199, 154, 61, 0.05));
  border: 1.5px solid var(--gold-600);
}

.fit-card h3 {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.75vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cream-100);
}

.fit-card.not-for h3 { color: #D98C7A; }
.fit-card.is-for h3 { color: var(--gold-300); }

.fit-card ul { display: flex; flex-direction: column; margin-top: 14px; }

.fit-card li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(251, 244, 222, 0.08);
  color: var(--cream-200);
  font-size: clamp(0.83rem, 1.45vw, 0.95rem);
  line-height: 1.5;
}

.fit-card li:last-child { border-bottom: none; }

.check-item p { font-weight: 500; color: var(--cream-100); }

/* ===== Results / social proof ===== */
#results { background: var(--cream-100); }

.testimonial-carousel-wrap {
  margin-top: var(--space-md);
}

.testimonial-track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 6px; }

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-300);
  background: var(--cream-100);
  color: var(--emerald-800);
  cursor: pointer;
  font-size: clamp(0.85rem, 1.52vw, 1rem);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--emerald-900);
}

.testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(165deg, var(--emerald-800), var(--emerald-900));
  border: 2px solid var(--gold-500);
  aspect-ratio: 4/5;
  position: relative;
  color: var(--cream-100);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 560px) {
  .testimonial-card { flex-basis: 84vw; }
}

.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.testimonial-card.has-video::after { display: none; }

.testimonial-card.has-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.tc-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(251, 244, 222, 0.16);
  border: 1.5px solid var(--gold-300);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tc-play-btn:hover { background: rgba(251, 244, 222, 0.28); transform: translate(-50%, -50%) scale(1.06); }

.tc-play-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--gold-300);
}

.testimonial-card.playing .tc-play-btn { display: none; }

.testimonial-card .tc-overlay {
  position: relative;
  z-index: 2;
  padding: 18px;
  width: 100%;
  text-align: center;
  background: linear-gradient(to top, rgba(7,31,23,0.75), transparent);
}

.testimonial-card .tc-name {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(0.86rem, 1.55vw, 1rem);
  color: var(--cream-100);
  padding: 6px 14px;
  background: rgba(7, 31, 23, 0.55);
  border: 1.5px solid var(--gold-300);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.testimonial-card .tc-loc { font-size: clamp(0.69rem, 1.2vw, 0.78rem); color: var(--gold-300); opacity: 0.9; }

/* ===== FAQ ===== */
#faq {
  background: var(--cream-200);
  color: var(--emerald-900);
}
#faq .section-heading,
#faq .eyebrow { color: var(--emerald-900); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

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

.faq-item {
  background: var(--paper);
  border: 1px solid var(--gold-300);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 6px 22px rgba(7,31,23,0.1), 0 1px 3px rgba(7,31,23,0.06);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(7,31,23,0.16);
}

.faq-item .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 0.98rem);
  color: var(--emerald-900);
}

.faq-item .faq-toggle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gold-600);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-item .faq-a {
  max-height: 0;
  overflow: hidden;
  color: #4A5A50;
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  transition: max-height 0.3s ease, padding-top 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 12px;
}

/* ===== Final CTA ===== */
.final-cta {
  background: radial-gradient(100% 140% at 50% 120%, var(--emerald-700) 0%, var(--emerald-950) 60%);
  color: var(--cream-100);
  text-align: center;
}

.final-cta.on-dark::before {
  content: '';
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(245,233,196,0) 0%, var(--emerald-950) 100%);
  pointer-events: none;
}

.final-cta-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.cta-line-small {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.52vw, 1rem);
  font-weight: 500;
  color: var(--gold-300);
  letter-spacing: 0.02em;
}

.cta-line-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  color: var(--cream-100);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--emerald-950);
  color: rgba(251, 244, 222, 0.5);
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(199, 154, 61, 0.18);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(251, 244, 222, 0.25);
  border-radius: 50%;
  color: var(--cream-100);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-instagram:hover {
  border-color: var(--gold-300);
  background: rgba(251, 244, 222, 0.05);
}

.footer-bottom {
  font-size: clamp(0.69rem, 1.2vw, 0.78rem);
}

/* ===== Persistent widgets ===== */

/* themed page scrollbar — native browser scroll mechanics, just re-skinned,
   replaces an earlier custom drag-slider that was unreliable across browsers */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) var(--cream-200);
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream-200); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  border-radius: 999px;
  border: 2px solid var(--cream-200);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-600) 100%);
}

/* exit-intent instagram modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 31, 23, 0.6);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.visible { display: flex; }

.ig-modal {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px rgba(7,31,23,0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  cursor: pointer;
  color: var(--ink-muted);
  background: none;
  border: none;
}

.ig-modal-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(7, 31, 23, 0.25);
}

.ig-modal h3 { color: var(--emerald-900); margin-bottom: 8px; }
.ig-modal p { color: var(--ink-muted); margin-bottom: 22px; }

/* booking / application modal */
.booking-modal .modal-box {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  position: relative;
  overflow-y: auto;
  padding: 36px 32px;
  box-shadow: 0 30px 60px rgba(7,31,23,0.35);
}

.form-progress-track {
  width: 100%;
  height: 5px;
  background: var(--cream-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.form-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.booking-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  margin: 0 0 24px;
}

#application-form { display: flex; flex-direction: column; gap: 16px; }

.form-step { display: flex; flex-direction: column; gap: 16px; }

.form-error {
  font-size: clamp(0.74rem, 1.3vw, 0.85rem);
  color: #a3401f;
  background: rgba(163, 64, 31, 0.08);
  border: 1px solid rgba(163, 64, 31, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
}

.form-step-actions {
  display: flex;
  gap: 12px;
}

.form-step-actions .btn { flex: 1; text-align: center; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: clamp(0.72rem, 1.25vw, 0.82rem);
  font-weight: 600;
  color: var(--emerald-900);
}

.optional-tag {
  font-weight: 400;
  color: var(--ink-muted);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  padding: 11px 14px;
  border: 1.5px solid var(--cream-300);
  border-radius: 10px;
  background: var(--cream-100);
  color: var(--emerald-900);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald-700);
}

.form-group textarea { resize: vertical; }

.radio-group { display: flex; gap: 24px; }

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  font-weight: 500;
  color: var(--emerald-900);
  cursor: pointer;
}

.radio-option input { accent-color: var(--emerald-700); width: 17px; height: 17px; }

.conditional-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-left: 3px solid var(--gold-500);
  background: var(--cream-200);
  border-radius: 0 10px 10px 0;
}

.btn-block { width: 100%; text-align: center; }

.hidden { display: none !important; }

#booking-success-view {
  text-align: center;
  padding: 20px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 6px;
}

#booking-success-view h3 { margin: 0; color: var(--emerald-900); }
#booking-success-view p { color: var(--ink-muted); margin-bottom: 12px; }

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .booking-modal .modal-box { padding: 28px 20px; }
}

/* ===== Scroll-reveal fade/rise-in (see initScrollReveal in main.js) ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
