/* ====== RESET & BASE ====== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c9a84c;
  --gold-light: #d4b96a;
  --gold-dark: #b08d3a;
  --cream: #faf6ef;
  --cream-dark: #f3ece0;
  --text: #4a4a4a;
  --text-light: #7a7a7a;
  --white: #ffffff;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-sans: 'Josefin Sans', sans-serif;

  /* ---- envelope tokens ----------------------------------------------
     Every colour of the opening scene. Themes override these; nothing
     about the envelope is hardcoded below this block.
     The *-rgb tokens are bare triplets so they can feed rgba().        */
  --env-scene-1: #ede2c4;   /* backdrop, centre  */
  --env-scene-2: #dac8a0;   /* backdrop, mid     */
  --env-scene-3: #b89e68;   /* backdrop, edge    */
  --env-reveal:  #fffdf6;   /* flash as it opens */

  --env-paper-1: #fdfaf0;   /* envelope face, lit  */
  --env-paper-2: #f7ecd2;
  --env-paper-3: #eddfb8;   /* envelope face, shade */

  --env-card-1:  #fffdf6;   /* the card inside */
  --env-card-2:  #faf3df;
  --env-card-3:  #f0e4c0;

  --env-flap-1:  #dcc38a;   /* flap underside */
  --env-flap-2:  #c9ab65;
  --env-flap-3:  #ab8b40;

  --env-shadow-rgb: 90,60,20;
  --env-seam-rgb:   140,100,40;
  --env-pocket-rgb: 70,45,10;
  --env-glow-rgb:   180,140,70;
  --env-hint:       #8a6d3a;

  /* ---- surfaces that must flip for dark themes ---- */
  --field-border: #ddd;
  --chip-bg: rgba(255,255,255,0.9);
  --chip-bg-solid: #ffffff;
  --chip-menu-bg: rgba(255,255,255,0.96);
  --env-card-label: #b89a60;
  --env-card-date: #6a5028;

  --env-texture-opacity: .35;
  --env-motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23d4c09a' stroke-width='0.5' opacity='0.35'><path d='M20 20 Q30 25 35 35 Q32 40 28 38'/><ellipse cx='25' cy='28' rx='2.5' ry='1.3' transform='rotate(35 25 28)'/><ellipse cx='32' cy='24' rx='2' ry='1' transform='rotate(-20 32 24)'/><circle cx='28' cy='32' r='1'/><path d='M85 55 Q95 60 98 70 Q95 75 90 72'/><ellipse cx='90' cy='62' rx='2.5' ry='1.3' transform='rotate(40 90 62)'/><circle cx='93' cy='67' r='1'/><path d='M45 88 Q55 92 58 100'/><ellipse cx='50' cy='94' rx='2' ry='1' transform='rotate(30 50 94)'/><circle cx='55' cy='98' r='0.8'/></g></svg>");
  --env-motif-size: 140px 140px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ====== MUSIC TOGGLE ====== */
.music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--chip-bg);
  backdrop-filter: blur(10px);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.music-toggle:hover {
  background: var(--gold);
  color: var(--white);
}

.music-icon {
  width: 20px;
  height: 20px;
}

.music-toggle.playing {
  animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

/* ====== ENVELOPE SCREEN (FULL-SCREEN MOBILE) ====== */
.envelope-scene {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, var(--env-scene-1) 0%, var(--env-scene-2) 60%, var(--env-scene-3) 100%);
  padding: 0;
  cursor: pointer;
  transition: opacity 0.8s ease, transform 0.8s ease;
  perspective: 1600px;
  overflow: hidden;
  /* remove 300ms tap delay on mobile */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Soft cinematic vignette on the edges */
.envelope-scene > .envelope::before,
.envelope-scene::after {
  /* noop reserved */
}

.envelope-scene {
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.envelope-scene.closing {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Revealing state: envelope fades to near-white, card takes focus */
.envelope-scene.revealing {
  background: var(--env-reveal);
  transition: background 0.5s ease;
}

.envelope-scene.revealing .envelope,
.envelope-scene.revealing .emboss,
.envelope-scene.revealing .seam {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Hide the "Tap to open" hint entirely during reveal */
.envelope-scene.revealing .envelope-hint {
  opacity: 0 !important;
}

.envelope-scene.closed {
  display: none;
}

/* Full-screen envelope: the envelope fills the entire viewport */
.envelope {
  position: relative;
  width: 100%;
  height: 100dvh;
  transform-style: preserve-3d;
  z-index: 2;
}

/* Inner invitation card — the LETTER that slides up from inside the envelope
   pocket. Sits BEHIND the flap (z-index 7) so you see it emerge.
   Initial: tucked down inside the body, slightly scaled, invisible.
   Flap-open: slides upward behind the lifted flap, emerges to center. */
.inner-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 340px);
  height: 62vh;
  max-height: 520px;
  /* Start: fully tucked inside the pocket (just below seam line) */
  transform: translate(-50%, 5%) scale(0.92);
  background:
    linear-gradient(170deg, var(--env-card-1) 0%, var(--env-card-2) 60%, var(--env-card-3) 100%);
  border-radius: 6px;
  box-shadow:
    0 40px 100px rgba(var(--env-shadow-rgb),0.45),
    0 20px 50px rgba(var(--env-shadow-rgb),0.3),
    0 6px 16px rgba(var(--env-shadow-rgb),0.2),
    inset 0 0 80px rgba(180,140,70,0.08);
  z-index: 7;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  pointer-events: none;
  transition:
    transform 1.8s cubic-bezier(.25,.75,.3,1) 0.6s,
    opacity 0.6s ease 0.8s,
    z-index 0s 2s;
}

.inner-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 3px;
  pointer-events: none;
}

.inner-card::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px;
  pointer-events: none;
}

/* Stage 2: flap-open → letter slides UP from inside the pocket behind the flap */
.envelope-scene.flap-open .inner-card {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Stage 3: revealing → card rises to sit above everything, envelope fades behind */
.envelope-scene.revealing .inner-card {
  z-index: 18;
  transform: translate(-50%, -52%) scale(1.02);
  transition:
    transform 0.8s cubic-bezier(.3,.8,.3,1),
    opacity 0.5s ease,
    z-index 0s 0s;
}

/* Stage 4: exiting → card fades to main invitation */
.envelope-scene.exiting .inner-card {
  opacity: 0;
  transform: translate(-50%, -54%) scale(1.06);
  transition: transform 0.8s ease, opacity 0.7s ease;
}

.inner-card-content {
  text-align: center;
  position: relative;
}

.inner-ornament {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 18px;
}

.inner-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--env-card-label);
  margin-bottom: 22px;
}

.inner-names {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 18px;
}

.inner-names .amp {
  font-style: italic;
  font-weight: 300;
}

.inner-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 14px auto;
  opacity: 0.7;
}

.inner-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--env-card-date);
  margin-top: 14px;
}

.envelope-body {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, var(--env-paper-1) 0%, var(--env-paper-2) 45%, var(--env-paper-3) 100%);
  border-radius: 0;
  border: none;
  box-shadow:
    inset 0 0 200px rgba(var(--env-glow-rgb),0.18);
  overflow: hidden;
}

/* Heavy paper texture with embossed floral pattern */
.paper-texture {
  position: absolute;
  inset: 0;
  opacity: var(--env-texture-opacity);
  background-image:
    radial-gradient(ellipse at 15% 25%, rgba(212,192,154,0.35) 0%, transparent 18%),
    radial-gradient(ellipse at 85% 30%, rgba(212,192,154,0.28) 0%, transparent 20%),
    radial-gradient(ellipse at 25% 75%, rgba(212,192,154,0.22) 0%, transparent 18%),
    radial-gradient(ellipse at 75% 80%, rgba(212,192,154,0.22) 0%, transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 40%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.paper-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--env-motif);
  background-size: var(--env-motif-size);
  background-repeat: repeat;
}

/* Diamond seam lines — the four diagonal creases of a closed envelope */
.seam {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(var(--env-seam-rgb),0) 0%,
    rgba(var(--env-seam-rgb),0.42) 15%,
    rgba(var(--env-seam-rgb),0.42) 85%,
    rgba(var(--env-seam-rgb),0) 100%);
  box-shadow: 0 1.5px 0 rgba(255,255,255,0.5);
  transform-origin: left center;
}

/* Top flap V — diagonal creases from top corners converging at screen middle */
.seam-tl {
  top: 0;
  left: 0;
  width: 65vh;
  transform: rotate(45deg);
  transform-origin: 0 0;
}

.seam-tr {
  top: 0;
  right: 0;
  width: 65vh;
  transform: rotate(-45deg);
  transform-origin: 100% 0;
}

/* Bottom V — lines from center down to bottom corners */
.seam-bl {
  bottom: 0;
  left: 0;
  width: 65vh;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.seam-br {
  bottom: 0;
  right: 0;
  width: 65vh;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

/* Embossed floral accents in top corners of the flap area */
.emboss {
  position: absolute;
  width: 130px;
  height: 130px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.7)) drop-shadow(0 -1px 0 rgba(140,100,50,0.25));
}

.emboss-tl { top: 20px; left: 20px; }
.emboss-tr { top: 20px; right: 20px; }
.emboss-bl { bottom: 20px; left: 20px; }
.emboss-br { bottom: 20px; right: 20px; }

/* "Touchez pour ouvrir" — handwritten cursive, below the seal */
.envelope-hint {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Dancing Script', 'Pinyon Script', cursive;
  font-weight: 500;
  font-size: 36px;
  letter-spacing: 0.5px;
  color: var(--env-hint);
  opacity: 0.75;
  animation: hintBreath 2.4s ease-in-out infinite;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  z-index: 5;
}

@keyframes hintBreath {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

.envelope-hint {
  transition: opacity 0.6s ease;
}

.envelope-scene.sealed-broken .envelope-hint {
  opacity: 0;
}

.emboss {
  transition: opacity 0.8s ease;
}

.envelope-scene.flap-open .emboss-tl,
.envelope-scene.flap-open .emboss-tr {
  opacity: 0;
}

/* Wax seal — OVAL, centered */
/* Wax seal — the "click me" focal point, full size, illuminated */
.wax-seal {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(240px, 60vw);
  height: min(288px, 72vw);
  transform: translate(-50%, -50%);
  z-index: 15;
  filter:
    drop-shadow(0 12px 18px rgba(var(--env-shadow-rgb),0.5))
    drop-shadow(0 4px 6px rgba(var(--env-shadow-rgb),0.35));
  animation: sealPulse 2.6s ease-in-out infinite;
  cursor: pointer;
}

.seal-svg {
  width: 100%;
  height: 100%;
}

/* Pulsing illumination halo behind the seal — draws the eye */
.wax-seal::before {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255, 238, 180, 0.55) 0%,
    rgba(255, 228, 150, 0.32) 25%,
    rgba(255, 220, 130, 0.12) 50%,
    transparent 70%);
  animation: sealGlow 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Outer ring that ripples outward to signal "tap me" */
.wax-seal::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.55);
  transform: translate(-50%, -50%) scale(1);
  animation: sealRipple 2.6s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes sealGlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes sealRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

.envelope-scene.sealed-broken .wax-seal {
  animation: none;
  /* seal lifts forward, tilts, and flies up/away — visible detachment */
  transform: translate(-50%, -140%) scale(1.35) rotate(-10deg);
  opacity: 0;
  transition:
    transform 1.2s cubic-bezier(.35,.08,.25,1),
    opacity 1s ease 0.15s;
}

.envelope-scene.sealed-broken .wax-seal::before,
.envelope-scene.sealed-broken .wax-seal::after {
  animation: none;
  opacity: 0;
}

/* Flap opens — the whole top half of the envelope tilts back */
.envelope-scene.flap-open .envelope-body {
  animation: none;
}

.envelope-scene.flap-open .seam-tl,
.envelope-scene.flap-open .seam-tr {
  opacity: 0;
  transition: opacity 0.4s;
}

/* ===== 3D FLAP (real div with front + back faces) ===== */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  transform-origin: top center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateX(0deg);
  transition: transform 1.8s cubic-bezier(.45,.05,.2,1);
  z-index: 11;
  pointer-events: none;
  will-change: transform;
}

.envelope-scene.flap-open .envelope-flap {
  transform: rotateX(-176deg);
}

.flap-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* FRONT face — matches the envelope body so the closed envelope looks sealed */
.flap-front {
  background:
    linear-gradient(180deg, var(--env-paper-1) 0%, var(--env-paper-2) 45%, var(--env-paper-3) 100%);
  z-index: 2;
}

/* BACK face — distinctly darker cream so you SEE it flip over mid-rotation */
.flap-back {
  background:
    linear-gradient(180deg, var(--env-flap-1) 0%, var(--env-flap-2) 55%, var(--env-flap-3) 100%);
  transform: rotateX(180deg);
  box-shadow: inset 0 -20px 60px rgba(var(--env-pocket-rgb),0.45);
  z-index: 1;
}

/* Subtle paper grain on the back so it's not a flat gradient */
.flap-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(var(--env-pocket-rgb),0.05) 0 2px,
      transparent 2px 14px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ===== POCKET INTERIOR — darker area revealed when flap lifts ===== */
.pocket-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    radial-gradient(ellipse at center top,
      rgba(var(--env-pocket-rgb),0.6) 0%,
      rgba(var(--env-pocket-rgb),0.3) 50%,
      rgba(var(--env-pocket-rgb),0.08) 90%,
      transparent 100%);
  opacity: 0;
  transition: opacity 1.4s ease 0.4s;
  z-index: 4;
  pointer-events: none;
}

.envelope-scene.flap-open .pocket-dark {
  opacity: 1;
}

/* ===== CAST SHADOW — the crease/shadow line where the flap meets body ===== */
.flap-shadow {
  position: absolute;
  top: 48%;
  left: 15%;
  right: 15%;
  height: 40px;
  background: radial-gradient(ellipse at center top,
    rgba(var(--env-pocket-rgb),0.35) 0%,
    rgba(var(--env-pocket-rgb),0.12) 40%,
    transparent 80%);
  opacity: 0;
  transform: scaleX(0.7);
  transform-origin: center top;
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
  z-index: 5;
  pointer-events: none;
  filter: blur(6px);
}

.envelope-scene.flap-open .flap-shadow {
  opacity: 1;
  transform: scaleX(1);
}

/* Hide splash until envelope opens */
.splash.splash-hidden {
  opacity: 0;
  pointer-events: none;
}

.splash.splash-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.8s ease 0.3s;
}

/* ====== SPLASH SCREEN ====== */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1564501049412-61c2a3083791?w=800&h=1400&fit=crop') center/cover no-repeat;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.5) 100%
  );
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 20px;
  margin-top: -15vh;
}

.splash-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s 0.3s forwards;
  margin-bottom: 4px;
}

.splash-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s 0.6s forwards;
  margin-bottom: 40px;
}

.splash-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s 0.9s forwards;
  transition: all 0.3s;
}

.splash-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
}

.splash-btn svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.splash.closing {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash.closed {
  display: none;
}

/* ====== MAIN INVITATION ====== */
.invitation {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.invitation.hidden {
  display: none;
}

.invitation.visible {
  display: block;
}

/* ====== SECTIONS ====== */
.section {
  padding: 16px 22px 14px;
  text-align: center;
}

/* ====== REVEAL — all content visible immediately, no scroll-triggered fade ====== */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ====== NAMES SECTION ====== */
.ornament {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
}

.couple-names {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 10px;
}

.amp {
  font-style: italic;
  font-weight: 300;
}

.invite-text {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.wedding-date {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
}

.ornament-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.ornament-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

/* ====== COUNTDOWN ====== */
.section-countdown {
  padding: 24px 20px;
  background: var(--white);
  border-radius: 16px;
  margin: 8px 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.countdown-sublabel {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.countdown-unit {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ====== SECTION TITLES ====== */
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.section-title .icon {
  margin-right: 6px;
}

/* ====== VENUE ====== */
.venue-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.venue-address {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.venue-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: 12px 32px;
  font-size: 13px;
}

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

/* ====== CAROUSEL ====== */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 16px;
  aspect-ratio: 3/2;
}

#venueCarousel {
  aspect-ratio: 3/4;
  max-width: 320px;
  max-height: 60vh;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ====== TIMELINE / PROGRAMME ====== */
.timeline {
  text-align: left;
  padding-left: 8px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  position: relative;
  align-items: flex-start;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold-light);
  opacity: 0.4;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-time {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
  background: var(--cream-dark);
  padding: 4px 10px;
  border-radius: 20px;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.timeline-content {
  padding-left: 12px;
}

.timeline-content strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 13px;
  color: var(--text-light);
}

/* ====== MENU CARDS ====== */
.menu-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  border-left: 3px solid var(--gold);
}

.menu-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 10px;
}

.menu-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

.menu-card-cocktail { border-left-color: #c9a84c; }
.menu-card-entree { border-left-color: #a8c4a0; }
.menu-card-plat { border-left-color: #d4856a; }
.menu-card-dessert { border-left-color: #c48bb0; }

.menu-card-cocktail h4 { color: #c9a84c; }
.menu-card-entree h4 { color: #6a9960; }
.menu-card-plat h4 { color: #c46a4a; }
.menu-card-dessert h4 { color: #b06a90; }

/* ====== DRESS CODE ====== */
.dresscode-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 10px 36px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.dresscode-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 320px;
  margin: 0 auto;
}

/* ====== MENU TEASER ====== */
.menu-teaser {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: center;
  border: 1px dashed rgba(201,168,76,0.45);
  margin: 0 4px;
}

.menu-teaser-icon {
  font-size: 38px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.menu-teaser-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.menu-teaser-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 16px;
}

.menu-teaser-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--cream-dark);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
}

/* ====== GIFT / DONATION ====== */
.section-gift {
  padding: 18px 20px 16px;
}

.gift-title-plain {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 18px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.gift-sub {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-style: normal;
  font-size: 20px;
  color: var(--text-light);
  margin-top: 10px;
  font-weight: 500;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.payment-card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 18px 14px;
  text-align: left;
  border-left: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(var(--env-shadow-rgb),0.06);
}

.payment-card[data-currency="eur"] { border-left-color: #4a6fc4; }
.payment-card[data-currency="usd"] { border-left-color: #3a8d5a; }
.payment-card[data-currency="tnd"] { border-left-color: #c4402a; }
.payment-card[data-currency="usdt"] { border-left-color: #26a17b; }

.payment-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.payment-flag {
  font-size: 32px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

.usdt-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: #26a17b;
  border-radius: 50%;
}

.payment-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.payment-sub {
  font-size: 12px;
  color: var(--text-light);
}

.payment-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 10px;
  margin-top: 8px;
  position: relative;
}

.payment-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--gold-dark);
  text-transform: uppercase;
  padding-right: 38px;
}

.payment-value {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  background: none;
  padding: 0;
  padding-right: 38px;
  word-break: break-all;
  line-height: 1.4;
  user-select: all;
  -webkit-user-select: all;
}

.payment-warning {
  font-size: 11px;
  line-height: 1.5;
  color: #c46a4a;
  background: #fff4e8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  text-align: center;
}

.copy-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.4);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.copy-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.copy-btn.copied {
  background: #3a8d5a;
  border-color: #3a8d5a;
  color: white;
}

.rtl .copy-btn {
  right: auto;
  left: 8px;
}

.rtl .payment-label,
.rtl .payment-value {
  padding-right: 0;
  padding-left: 38px;
}

.payment-card-btn-wrap {
  margin-top: 28px;
  text-align: center;
}

.payment-card-hint {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.btn-card {
  padding: 16px 32px !important;
  font-size: 14px !important;
  border-radius: 14px !important;
}

.payment-footer {
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-dark);
  line-height: 1.6;
}

/* ====== RSVP FORM ====== */
.section-rsvp {
  background: var(--cream-dark);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px 40px;
  margin-top: 16px;
}

.rsvp-ornament {
  font-size: 32px;
  margin-bottom: 12px;
}

.rsvp-form {
  text-align: left;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 10px;
}

.radio-btn {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.radio-btn input {
  position: absolute;
  opacity: 0;
}

.radio-btn span {
  display: block;
  padding: 12px 10px;
  text-align: center;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3px;
  transition: all 0.3s;
  border: 1.5px solid var(--field-border);
  background: var(--white);
}

.radio-yes input:checked + span {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.radio-no input:checked + span {
  background: var(--text-light);
  color: var(--white);
  border-color: var(--text-light);
}

/* Toggle Switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
}

/* Select dropdown */
.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
}

.select-wrap select:focus {
  border-color: var(--gold);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 16px;
  pointer-events: none;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--field-border);
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ====== FOOTER ====== */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  max-width: 480px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--text);
}

.footer-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== CONFIRMATION MODAL ====== */
.confirmation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.confirmation-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  max-width: 340px;
  margin: 0 20px;
  transform: translateY(20px);
  animation: fadeInUp 0.4s 0.1s forwards;
  opacity: 0;
}

.confirmation-card .check {
  font-size: 48px;
  margin-bottom: 16px;
}

.confirmation-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}

.confirmation-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ====== RTL SUPPORT (Arabic) ====== */
.rtl {
  font-family: 'Noto Sans Arabic', var(--font-body);
}

.rtl .splash-subtitle,
.rtl .splash-btn,
.rtl .invite-text,
.rtl .countdown-label,
.rtl .countdown-unit,
.rtl .venue-address,
.rtl .btn,
.rtl .timeline-time,
.rtl .form-group label,
.rtl .radio-btn span,
.rtl .btn-submit,
.rtl .footer-sub,
.rtl .dresscode-desc {
  font-family: 'Noto Sans Arabic', var(--font-sans);
}

.rtl .couple-names,
.rtl .section-title,
.rtl .venue-name,
.rtl .countdown-sublabel,
.rtl .wedding-date,
.rtl .timeline-content strong,
.rtl .menu-card h4,
.rtl .dresscode-badge,
.rtl .splash-title {
  font-family: 'Noto Sans Arabic', var(--font-display);
}

.rtl .timeline {
  text-align: right;
  padding-left: 0;
  padding-right: 8px;
}

.rtl .timeline-item::before {
  left: auto;
  right: 52px;
}

.rtl .timeline-content {
  padding-left: 0;
  padding-right: 12px;
}

.rtl .rsvp-form {
  text-align: right;
}

.rtl .menu-card {
  border-left: none;
  border-right: 3px solid var(--gold);
}

.rtl .menu-card-cocktail { border-right-color: #c9a84c; border-left: none; }
.rtl .menu-card-entree { border-right-color: #a8c4a0; border-left: none; }
.rtl .menu-card-plat { border-right-color: #d4856a; border-left: none; }
.rtl .menu-card-dessert { border-right-color: #c48bb0; border-left: none; }

.rtl .input-icon {
  right: auto;
  left: 12px;
}

.rtl .toggle-slider::before {
  left: auto;
  right: 3px;
}

.rtl .toggle input:checked + .toggle-slider::before {
  transform: translateX(-22px);
}

.rtl .music-toggle {
  right: auto;
  left: 16px;
}

/* ====== RESPONSIVE (stays mobile-first, just caps width) ====== */
@media (min-width: 481px) {
  .splash-content {
    max-width: 480px;
  }
}

/* ============================================================
   BAHJA engine additions
   Structural styles for components the builder adds.
   Colours reference theme tokens so every theme picks them up.
   ============================================================ */

/* ---- language switcher ---- */
.lang-switch {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2000;
}
body.rtl .lang-switch { left: auto; right: 16px; }
body.rtl .music-toggle { right: auto; left: 16px; }

.lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--chip-bg);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.lang-btn:hover { transform: scale(1.06); background: var(--chip-bg-solid); }
.lang-btn svg { width: 20px; height: 20px; }

.lang-menu {
  position: absolute;
  top: 48px;
  left: 0;
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: var(--chip-menu-bg);
  box-shadow: 0 8px 24px rgba(90, 60, 20, 0.16);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
body.rtl .lang-menu { left: auto; right: 0; }
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-align: start;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-option:hover { background: var(--cream-dark); }
.lang-option.active { color: var(--gold-dark); font-weight: 600; }

/* ---- menu: full course list (menu.mode = "list") ---- */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 420px;
  margin: 0 auto;
}
.menu-course {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
}
.menu-course:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-course strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.menu-course p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ---- footer credit ---- */
.footer-credit {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.45;
}
.footer-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.footer-credit a:hover { opacity: 0.8; }

/* ============================================================
   HERO COVER
   Full-bleed photograph with the monogram and names overlaid —
   the "cover" of the invitation. Falls back to a theme gradient
   when the couple hasn't supplied a photo yet, so the section
   never renders as a blank rectangle.
   ============================================================ */
.hero-cover {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* a slow drift keeps a still photo from feeling like a dead screenshot */
  animation: heroDrift 26s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(0, -1.5%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; transform: scale(1.04); }
}

/* Legibility floor: white type must survive a bright photo. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(var(--env-pocket-rgb), 0.42) 0%,
      rgba(var(--env-pocket-rgb), 0.18) 32%,
      rgba(var(--env-pocket-rgb), 0.30) 68%,
      rgba(var(--env-pocket-rgb), 0.62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 26px 72px;
  color: #fff;
  max-width: 620px;
}

.hero-arch {
  width: 92px;
  height: auto;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.hero-initial {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  fill: currentColor;
  stroke: none;
}

.hero-amp {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  fill: currentColor;
  stroke: none;
}

.hero-names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 10vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-names .amp {
  font-family: var(--font-body);
  font-style: italic;
  opacity: 0.85;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.65;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.hero-cue span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  animation: heroCue 2.4s ease-in-out infinite;
}

@keyframes heroCue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

body.rtl .hero-inner { direction: rtl; }

/* ---- accommodation ---- */
.stay-note {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text-light);
  margin-bottom: 22px;
}
.stay-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
}
.stay-item {
  padding: 18px 20px;
  border: 1px solid rgba(var(--env-seam-rgb), 0.22);
  border-radius: 12px;
  background: var(--white);
}
.stay-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-dark);
}
.stay-item p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-light);
  margin-top: 5px;
}
.stay-link {
  display: inline-block;
  margin-top: 11px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---- voice wishes ---- */
.voice-hint {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  margin: -4px 0 12px;
}
.voice-rec { display: flex; align-items: center; gap: 14px; }
.voice-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--gold);
  background: transparent; color: var(--gold-dark);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.voice-btn:hover { background: rgba(var(--env-glow-rgb), 0.10); }
.voice-btn:disabled { opacity: 0.55; cursor: default; }
.voice-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.voice-btn.recording { border-color: #C0433A; color: #C0433A; }
.voice-btn.recording .voice-dot { background: #C0433A; animation: voicePulse 1.1s ease-in-out infinite; }
@keyframes voicePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
.voice-time {
  font-family: var(--font-sans); font-size: 0.85rem;
  letter-spacing: 0.08em; color: var(--text-light);
  font-variant-numeric: tabular-nums;
}
.voice-preview { width: 100%; margin-top: 14px; }
.voice-clear {
  margin-top: 10px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-light); text-decoration: underline; padding: 4px 0;
}
