/* ================================================================
   WINE BOOK LANDING — styles.css
   Premium RTL Hebrew, mobile-first
   ================================================================ */

/* ── Typography roles ───────────────────────────────────────────── */
/* Assistant: all typography — headings, body, UI, captions, buttons */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --font-main:    'Assistant', Arial, sans-serif;
  --font-heading: 'Assistant', Arial, sans-serif;
  --wine:        #5b171c;
  --wine-deep:   #26090c;
  --wine-mid:    #7a252b;
  --gold:        #a36f34;
  --gold-light:  #c9a055;
  --gold-pale:   #e8c37d;
  --bg:          #f7f0df;
  --paper:       #fffaf0;
  --card:        #fffdf7;
  --ink:         #1e130b;
  --muted:       #5b4a3a;
  --line:        #ddcba9;
  --soft:        #efe0c0;

  --shadow-sm:   0 4px 14px rgba(58,35,18,.08);
  --shadow-md:   0 12px 36px rgba(58,35,18,.13);
  --shadow-lg:   0 24px 56px rgba(58,35,18,.18);
  --shadow-wine: 0 12px 40px rgba(91,23,28,.32);

  --radius-sm:  14px;
  --radius-md:  22px;
  --radius-lg:  28px;
  --radius-pill:999px;

  --max-w: 560px;
  --gap:   72px;
  --ease:  cubic-bezier(.22,.61,.36,1);

  /* Z-index hierarchy */
  --z-sticky-cta: 200;
  --z-whatsapp:   900;
  --z-a11y-btn:   910;
  --z-a11y-menu:  920;
  --z-age-modal:  9000;

  /* Floating button positioning */
  --floating-gap:    16px;
  --sticky-cta-h:    76px;
  --floating-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px) + var(--floating-gap));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); /* room for sticky CTA + iPhone home bar */
}

/* Grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .048;
  background-image: radial-gradient(#6f4a25 .55px, transparent .55px);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

a       { color: inherit; text-decoration: none; }
img     { display: block; max-width: 100%; height: auto; }
ul      { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,p { margin-top: 0; }

h1 {
  font-family: var(--font-heading);
  font-size: clamp(44px, 13vw, 70px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 16px 0 20px;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h3 {
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
}

p { font-size: 18px; color: var(--muted); margin-bottom: 16px; }
strong { color: var(--ink); font-weight: 800; }
.small { font-size: 14px; color: #725e49; }

/* ── Layout ─────────────────────────────────────────────────────── */
.wrap {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
}

.section { padding: var(--gap) 0; }

.section-alt {
  background: #fdf5e0;
  border-top: 1px solid #e8d5af;
  border-bottom: 1px solid #e8d5af;
}

/* ── Kicker ─────────────────────────────────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: #f0e1c4;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--wine);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 56px;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 800;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: none;
  transition:
    transform .2s var(--ease),
    box-shadow .2s var(--ease),
    background .2s,
    border-color .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91,23,28,.28);
}
.btn-primary:hover {
  background: var(--wine-mid);
  box-shadow: var(--shadow-wine);
}

.btn-secondary {
  background: #fff8e8;
  color: var(--wine);
  border-color: #d7bd8d;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #fff3d6;
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.btn-ghost-light {
    background: rgba(255,244,215,.22);
    color: rgba(108,33,26,.96);
    border-color: rgba(174,112,45,.72);
    border-width: 1.5px;
}
.btn-ghost-light:hover {
    background: rgba(255,244,215,.34);
    border-color: rgba(174,112,45,.95);
    color: rgba(84,22,20,1);
}

.age-notice-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  background: linear-gradient(90deg, #5b1018, #7a1822, #5b1018);
  color: #fff4d7;
  border-bottom: 1px solid rgba(210, 168, 92, .55);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(50, 12, 16, .18);
}

.age-notice-separator {
  color: #d2a85c;
}

@media (max-width: 520px) {
  .age-notice-bar {
    flex-wrap: wrap;
    gap: .25rem .45rem;
    padding: .5rem .75rem;
    font-size: .78rem;
    line-height: 1.35;
  }
}

.age-notice-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 244, 215, .12),
    transparent
  );
  transform: translateX(100%);
  animation: ageNoticeSheen 5s ease-in-out infinite;
}

@keyframes ageNoticeSheen {
  0%, 70% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-notice-bar::after {
    animation: none;
  }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(175deg,
    var(--wine-deep) 0%,
    #3d0e12       45%,
    var(--wine)   65%,
    var(--bg)     65%
  );
  padding: 36px 0 24px;
  position: relative;
  overflow: hidden;
}

/* WebGL fluid canvas — sits behind everything in the hero */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* When WebGL is active: canvas handles colour; CSS gradient removed */
.hero.has-webgl {
  background: var(--bg);
}

/* Radial gold glow behind book — above canvas, below content */
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(163,111,52,.18) 0%, transparent 68%);
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

.hero .wrap { position: relative; z-index: 2; }

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 20px;
}

.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: rgba(244,223,183,.95);
  letter-spacing: .02em;
}

.badge {
  border: 1px solid rgba(240,224,189,.35);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  background: rgba(255,255,255,.06);
  color: rgba(244,223,183,.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Hero copy */
.hero-copy {
  text-align: center;
  padding: 10px 0 32px;
}

/* Short emotional tagline below the h1 */
.hero-tagline {
  color: rgba(244, 215, 165, 0.70);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  margin: -8px auto 22px;
  max-width: 360px;
  line-height: 1.6;
}

.hero-copy .kicker {
  background: rgba(255,255,255,.08);
  color: #f4dfb7;
  border-color: rgba(244,223,183,.30);
}
.hero-copy .kicker::before { background: #f4dfb7; }

.hero-copy h1 { color: #fff; }

.hero-copy > p {
  color: #f7ead1;
  font-size: 19px;
  max-width: 440px;
  margin: 0 auto 22px;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-tags span {
  font-size: 13px;
  font-weight: 700;
  color: #fcebd0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(240,224,189,.20);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
}

/* Book image frame */
.book-frame {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow:
    0 28px 72px rgba(30,19,11,.28),
    0 0 0 1px rgba(163,111,52,.28),
    inset 0 1px 0 rgba(255,255,255,.35);
  margin-top: 22px;
  position: relative;
}

.book-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg,
    rgba(232,195,125,.45) 0%,
    transparent 50%,
    rgba(232,195,125,.15) 100%
  );
  pointer-events: none;
}

.book-frame img {
  border-radius: 18px;
  width: 100%;
  object-fit: contain;
  background: #ede2cb;
  display: block;
}

/* Hero CTA row */
.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.hero-cta .btn { min-height: 52px; font-size: 17px; }

/* Trust stats — collapsible wrapper */
.trust-stats-wrap {
  display: grid;
  grid-template-rows: 0fr; /* collapsed by default */
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
  transition:
    grid-template-rows .46s cubic-bezier(.22,.61,.36,1),
    opacity .38s cubic-bezier(.22,.61,.36,1),
    margin-top .46s cubic-bezier(.22,.61,.36,1);
}
.trust-stats-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 22px;
  pointer-events: auto;
}

/* Reduced-motion: instant reveal */
@media (prefers-reduced-motion: reduce) {
  .trust-stats-wrap { transition: none; }
}

/* Trust strip */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow: hidden; /* required for grid-template-rows collapse */
  margin: 0;
  /* Override hero entrance animation — wrapper controls the reveal */
  animation: none;
  opacity: 1;
  transform: none;
}

.trust-item {
  background: rgba(255,250,240,.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(40,25,12,.06);
}

.trust-item b {
  display: block;
  font-size: 24px;
  color: var(--wine);
  line-height: 1;
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 12px;
  color: #6d5844;
  font-weight: 700;
}

/* ── Lead / Quote card ──────────────────────────────────────────── */
.lead-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.lead-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top right, rgba(163,111,52,.08), transparent 70%);
  pointer-events: none;
}

.quote {
  font-family: var(--font-heading);
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1.55;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.quote::before {
  content: '״';
  display: block;
  font-size: 52px;
  line-height: 1;
  color: var(--wine);
  margin-bottom: 12px;
  font-weight: 400;
}

/* ── Visual card ────────────────────────────────────────────────── */
.visual-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.visual-card img {
  width: 100%;
  object-fit: contain;
  background: #f1e6ce;
  display: block;
}

.visual-card .cap {
  padding: 14px 18px;
  color: #6b5540;
  font-size: 15px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

/* ── Chapter list ───────────────────────────────────────────────── */
.chapter-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.chapter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.chapter:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.chapter::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to left, var(--wine), var(--gold));
  opacity: 0;
  transition: opacity .3s;
}

.chapter:hover::after { opacity: 1; }

.chapter .num {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e3c1, #e8c37d);
  color: var(--wine);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.chapter h3 { font-size: 22px; }
.chapter p  { font-size: 16px; margin: 0; color: #554536; }

/* ── Sample excerpts ────────────────────────────────────────────── */
.samples-list { margin-top: 20px; display: grid; gap: 14px; }

.sample {
  background: #fdf7ee;
  border: 1px solid #dfca9f;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 8px 28px rgba(76,43,20,.07);
}

.sample h3 { color: var(--wine); font-size: 20px; }
.sample p  { font-size: 17px; margin: 0; }

/* ── Gallery ────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.gallery-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: contain;
  background: #f4ead4;
  display: block;
}

.gallery-card .cap {
  padding: 13px 18px;
  font-size: 15px;
  color: #4f3e2f;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

/* ── Gallery: mobile horizontal scroll ─────────────────────────────
   Break out of .wrap to use full viewport width.
   scroll-snap lets users swipe one card at a time.
─────────────────────────────────────────────────────────────────── */
/* Clip the negative-margin gallery without creating a scroll container (clip vs hidden) */
.gallery-section {
  overflow-x: clip;
}

@media (max-width: 679px) {
  .gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-inline: 28px;
    /* Break out of wrap's 16px side margins to reach full viewport width */
    margin-inline: -16px;
    /* Align snapping with the physical padding so each card centers */
    scroll-padding-inline: 28px;
    /* Allow both axes so vertical page scroll still works while swiping carousel */
    touch-action: pan-x pan-y;
    /* Prevent swipe momentum from bleeding to the page at carousel boundaries */
    overscroll-behavior-x: contain;
  }
  .gallery::-webkit-scrollbar { display: none; }

  .gallery-card {
    flex: 0 0 calc(100vw - 56px); /* 28px padding each side */
    max-width: 400px;
    /* center — not start — so RTL doesn't lock the card to the right edge */
    scroll-snap-align: center;
  }
}

/* ── Carousel pagination dots — gallery + packages, mobile only ─────
   .gallery-dots and .packages-dots share identical styling.
   Only visible in mobile carousel mode (≤ 679px).
─────────────────────────────────────────────────────────────────── */
.gallery-dots,
.packages-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}

@media (max-width: 679px) {
  .gallery-dots,
  .packages-dots {
    display: flex;
  }
}

.gallery-dot,
.packages-dot,
.festival-gallery-dot {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120, 72, 28, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: width .3s ease, border-radius .3s ease, background-color .3s ease;
}

.gallery-dot.is-active,
.packages-dot.is-active,
.festival-gallery-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background-color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-dot,
  .packages-dot,
  .festival-gallery-dot { transition: none; }
}

/* ── Festival gallery dot overrides ────────────────────────────── */
.festival-gallery-dot {
  width: 10px;
  height: 10px;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  text-decoration: none;
}
.festival-gallery-dot.is-active {
  width: 28px;
  height: 10px;
}
.festival-gallery-dots::before,
.festival-gallery-dots::after {
  display: none;
  content: none;
}

/* ── limited edition ──────────────────────────────────────────────── */
.limited-edition-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem auto 2rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(174, 112, 45, 0.55);
    border-radius: 999px;
    background: rgba(255, 244, 215, 0.34);
    color: rgba(108, 33, 26, 0.98);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 28px rgba(80, 18, 24, 0.06);
}

@media (max-width: 520px) {
    .limited-edition-note {
        display: flex;
        width: fit-content;
        max-width: calc(100% - 2rem);
        margin: 0.65rem auto 1.5rem;
        padding: 0.5rem 0.85rem;
        font-size: 0.86rem;
    }
}

/* ── Pricing cards ──────────────────────────────────────────────── */

/* Clip the negative-margin carousel without creating a scroll container (clip vs hidden) */
#packages {
  overflow-x: clip;
}

.pricing-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

/* ── Pricing grid: mobile horizontal carousel ──────────────────────
   Same pattern as the gallery carousel. Cards snap to center,
   28px padding on each side (card = 100vw - 56px → exactly centered).
─────────────────────────────────────────────────────────────────── */
@media (max-width: 679px) {
  .pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-inline: 28px;
    margin-inline: -16px;
    align-items: stretch;
    /* Align snapping with the physical padding so each card centers */
    scroll-padding-inline: 28px;
    /* Allow both axes so vertical page scroll still works while swiping carousel */
    touch-action: pan-x pan-y;
    /* Prevent swipe momentum from bleeding to the page at carousel boundaries */
    overscroll-behavior-x: contain;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }

  .price-card {
    flex: 0 0 calc(100vw - 56px);
    max-width: 400px;
    /* center — not start — so RTL doesn't lock the card to the right edge */
    scroll-snap-align: center;
  }

  /* Single-package: no horizontal scroll — restore vertical page scroll */
  .pricing-grid--single {
    display: grid;
    overflow-x: visible;
    scroll-snap-type: none;
    touch-action: pan-y;
    overscroll-behavior: auto;
    padding-inline: 0;
    margin-inline: 0;
  }
  .pricing-grid--single .price-card {
    flex: none;
    max-width: none;
    scroll-snap-align: none;
  }
}

.price-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Tier accent bars */
.price-card.silver       { border-top: 4px solid #b0b0b0; }
.price-card.gold         { border-top: 4px solid var(--gold); }
.price-card.adama-bundle { border-top: 4px solid var(--wine-mid); }
.price-card.adama-bundle .pkg-tier { color: var(--wine-mid); }

.price-card.featured {
  background: linear-gradient(155deg, #2a0d10 0%, #370f13 100%);
  border: 1.5px solid #c99b56;
  border-top: 4px solid var(--gold-pale);
  color: #fff;
}

.price-card.featured p,
.price-card.featured li,
.price-card.featured .price-note { color: #f4e5c8; }

/* Best value ribbon */
.ribbon {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--gold-pale), #d4a84b);
  color: #2a0b0d;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(163,111,52,.30);
  z-index: 1;
}

.pkg-tier {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Per-tier label colors */
.price-card.silver .pkg-tier  { color: #8797a8; }   /* refined steel-silver */
.price-card.gold .pkg-tier    { color: var(--gold); } /* warm gold */
.price-card.featured .pkg-tier { color: var(--gold-pale); } /* bright gold on dark card */

.price-card h3 {
  font-size: clamp(26px, 6vw, 32px);
  margin: 0 0 4px;
}

.featured h3 { color: #fff; }

.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 6px;
}

.currency {
  font-size: 22px;
  font-weight: 800;
  color: var(--wine);
  line-height: 1;
}
.featured .currency { color: #f7d596; }

.amount {
  font-size: 54px;
  font-weight: 800;
  color: var(--wine);
  line-height: 1;
  letter-spacing: -.03em;
}
.featured .amount { color: #f7d596; }

.price-note {
  font-size: 14px;
  color: #725e49;
  margin: 0 0 18px;
  font-weight: 600;
}

.feature-list {
  margin: 0 0 22px;
  display: grid;
  gap: 2px;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(221,203,169,.35);
  font-size: 16px;
  color: #514233;
  line-height: 1.4;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✓';
  color: var(--wine);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}

.featured .feature-list li {
  color: #f0dfc4;
  border-bottom-color: rgba(244,229,200,.12);
}
.featured .feature-list li::before { color: var(--gold-pale); }

.price-card .btn { margin-top: auto; width: 100%; }

/* ── Add-ons ────────────────────────────────────────────────────── */
.addons-section {
  background: #f1e0c0;
  border-top: 1px solid #d4ba96;
  border-bottom: 1px solid #d4ba96;
}

.addons-list { margin-top: 20px; display: grid; gap: 12px; }

.addon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.addon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.addon-info h3 { font-size: 21px; margin: 0 0 3px; }
.addon-info p  { font-size: 14px; margin: 0; color: #675240; }

.addon-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.addon-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--wine);
  line-height: 1;
  white-space: nowrap;
}

.addon-right .btn {
  min-height: 42px;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 13px;
  white-space: nowrap;
}

/* ── Timeline ───────────────────────────────────────────────────── */
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--wine), #8b2028);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(91,23,28,.28);
}

.timeline-step h3 { font-size: 20px; margin: 0 0 6px; }
.timeline-step p  { font-size: 16px; margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.faq-item {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 18px;
  color: #25170d;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #fdf5e6; }

.faq-icon {
  width: 28px; height: 28px;
  border: 1.5px solid var(--wine);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--wine);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
  transition: transform .25s var(--ease), background .2s, color .2s;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--wine);
  color: #fff;
}

.faq-answer {
  padding: 0 20px 18px;
  color: #5a4938;
  font-size: 16px;
  line-height: 1.65;
}

/* ── Final CTA ──────────────────────────────────────────────────── */
.section-final {
  background: linear-gradient(155deg, var(--wine-deep) 0%, #3d0e12 100%);
  color: #fff;
  text-align: center;
}

.section-final h2 { color: #fff; }
.section-final > .wrap > p { color: #f4e3c6; }

.final-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: #140608;
  color: rgba(240,224,189,.72);
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.footer-col p {
  font-size: 14px;
  color: rgba(240,224,189,.60);
  margin: 0;
  line-height: 1.7;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(240,224,189,.10);
  margin: 0 0 24px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(240,224,189,.45);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,160,85,.13);
  border: 1px solid rgba(201,160,85,.28);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-pale);
}

/* ── Sticky mobile CTA ──────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  z-index: var(--z-sticky-cta);
  left: 0; right: 0; bottom: 0;
  /* Explicit properties rather than shorthand — avoids calc() parsing issues on older iOS */
  padding-top: 12px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  /* Background extends fully into safe area since the element is at bottom: 0 */
  background: rgba(255,250,240,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 32px rgba(35,20,10,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), opacity .35s;
}

.sticky-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.sticky-inner {
  width: min(100%, var(--max-w));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sticky-cta .btn {
  min-height: 50px;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

/* ── Scroll-reveal animations ───────────────────────────────────── */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero entrance (triggered on load) */
.hero-animate .hero-kicker  { animation: fadeUpIn .6s var(--ease) .08s both; }
.hero-animate h1            { animation: fadeUpIn .7s var(--ease) .18s both; }
.hero-animate .hero-tagline { animation: fadeUpIn .7s var(--ease) .26s both; }
.hero-animate .hero-desc    { animation: fadeUpIn .7s var(--ease) .34s both; }
.hero-animate .hero-tags    { animation: fadeUpIn .6s var(--ease) .48s both; }
.hero-animate .book-frame   { animation: fadeScaleIn .85s var(--ease) .44s both; }
.hero-animate .hero-cta     { animation: fadeUpIn .6s var(--ease) .62s both; }
/* trust-stats-wrap and its inner row are JS-controlled — no hero animation */
.trust-stats-wrap .trust-row { animation: none; opacity: 1; transform: none; }

/* Generic reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.stagger.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.04s; }
.stagger.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.11s; }
.stagger.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.18s; }
.stagger.is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.25s; }
.stagger.is-visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.32s; }
.stagger.is-visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:.39s; }

/* ── Reveal variants — break the uniform-fadeUp reflex ─────────── */

/* Quote / pull-text: sharpens into focus */
.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transition: opacity .95s var(--ease), filter .95s var(--ease);
}
.reveal-blur.is-visible { opacity: 1; filter: blur(0); }

/* Gallery / book frames: scale up with slight spring */
.reveal-scale {
  opacity: 0;
  transform: scale(.88);
  transition: opacity .7s var(--ease),
              transform .75s cubic-bezier(.16, 1, .3, 1);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Supplementary cards: slide in from reading-direction start (right in RTL) */
.reveal-slide {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal-slide.is-visible { opacity: 1; transform: translateX(0); }

/* ── Prefers-reduced-motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-blur, .reveal-scale, .reveal-slide,
  .stagger > * { opacity: 1; transform: none; filter: none; }
}

/* ── Desktop ────────────────────────────────────────────────────── */
@media (min-width: 680px) {
  body { background: #ede0c6; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 20px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 940px) {
  :root { --gap: 96px; --max-w: 860px; }

  body { padding-bottom: 0; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }

  .chapter-list { grid-template-columns: 1fr 1fr; }

  /* 2 large columns — much more readable than 4 tiny ones */
  .gallery { grid-template-columns: 1fr 1fr; gap: 24px; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); }

  /* Hide sticky CTA on desktop — nav links in hero suffice */
  .sticky-cta { display: none; }
}

/* ── Single-package layout ──────────────────────────────────────── */
.pricing-grid--single {
  grid-template-columns: 1fr;
  max-width: clamp(420px, 90vw, 580px);
  margin-inline: auto;
}

@media (min-width: 940px) {
  .pricing-grid--single {
    max-width: clamp(480px, 55%, 640px);
  }
}

/* ── Footer legal links ─────────────────────────────────────────── */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(240,224,189,.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--gold-pale); }

.footer-divider--slim { margin: 0 0 18px; }

/* ── Purchase link disabled state (age-denied) ──────────────────── */
.purchase-link.is-age-blocked {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Body scroll lock when modal is open ────────────────────────── */
body.age-modal-open { overflow: hidden; }

/* ── 18+ Age Verification Modal ────────────────────────────────────
   Full-screen overlay — appears on first visit or when a purchase
   link is clicked without prior confirmation.
─────────────────────────────────────────────────────────────────── */
.age-modal,
.age-denied-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 6, 8, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.age-modal[hidden],
.age-denied-overlay[hidden] { display: none; }

.age-modal-box,
.age-denied-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(163,111,52,.18);
  position: relative;
  overflow: hidden;
}

/* Subtle gold glow at top of modal box */
.age-modal-box::before,
.age-denied-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to left, var(--wine), var(--gold));
}

.age-modal-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.age-modal-box h2,
.age-denied-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 5vw, 28px);
  color: var(--ink);
  margin: 0 0 14px;
}

.age-modal-box p,
.age-denied-box p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.6;
}

.age-modal-buttons {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.age-modal-buttons .btn { width: 100%; }

.age-denied-sub {
  font-size: 14px !important;
  color: #8a7060 !important;
}

@media (max-width: 480px) {
  .age-modal-box,
  .age-denied-box { padding: 32px 22px 28px; }
}

/* ── Screen-reader-only utility ─────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Event visual (image above the event ticket addon card) ─────── */
.event-visual {
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--soft);
  min-height: 160px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.event-visual img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  min-height: 160px;
}
.event-visual figcaption {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ── Package visual (header image inside the featured package card) */
.pkg-visual {
  margin: 8px -24px 20px;  /* bleed to card edges */
  background: rgba(255,255,255,.06);
  min-height: 120px;
  overflow: hidden;
  position: relative;
}
.pkg-visual img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  min-height: 120px;
  opacity: .72;
}

/* ── Missing-image graceful fallback ────────────────────────────────
   onerror adds .img-error to the <figure>; hides the broken img
   and shows the .img-placeholder sibling instead.
─────────────────────────────────────────────────────────────────── */
.img-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  min-height: 120px;
  background: var(--soft);
}
.img-placeholder-icon {
  font-size: 28px;
  opacity: .45;
  line-height: 1;
}
.img-placeholder-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}
figure.img-error img    { display: none; }
figure.img-error .img-placeholder { display: flex; }
/* Prevent broken-image icon in all browsers */
.event-visual img, .pkg-visual img {
  color: transparent; /* hides alt text/icon on load error before onerror fires */
}

/* ── Video section ──────────────────────────────────────────────── */
.video-section { background: var(--paper); }

/* YouTube lite embed — shows placeholder until real ID is set */
.yt-lite {
  position: relative;
  background: var(--wine-deep);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.yt-lite img.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* Play button overlay */
.yt-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.yt-play-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.yt-play-btn svg { width: 68px; height: 48px; }

/* Placeholder shown when no real video ID is present */
.yt-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(155deg, var(--wine-deep), #3d0e12);
  border: 2px dashed rgba(201,160,85,.3);
  border-radius: var(--radius-md);
}
.yt-placeholder-icon { font-size: 36px; opacity: .6; }
.yt-placeholder-text {
  color: var(--gold-pale);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.yt-placeholder-hint {
  color: rgba(201,160,85,.5);
  font-size: 11px;
  font-family: monospace;
  margin: 0;
  direction: ltr;
}

/* Actual iframe once loaded */
.yt-lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Caption below video */
.video-caption {
  font-size: 13px !important;
  color: var(--muted) !important;
  text-align: center;
  margin-top: 10px !important;
}
.video-caption a { color: var(--wine); font-weight: 700; }

/* ── Video two-column layout (festival embed) ───────────────────────
   Mobile-first: column stack — text above (order:-1), video below.
   Desktop (≥940px): RTL flex-row — video RIGHT (first DOM), text LEFT.
   Vertical 9:16 iframe stays inside its aspect-ratio wrapper.
───────────────────────────────────────────────────────────────────── */
.video-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

/* Mobile: display:contents makes children direct flex items of .video-layout */
/* so we can independently order: kicker/heading above video, clarification/btn below */
.video-text { display: contents; }
.video-text-top  { order: -1; }   /* above video on mobile */
.video-frame-wrap { order: 0; }   /* explicit — middle */
.video-text-bottom { order: 1; }  /* below video on mobile */

.video-clarification {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Vertical video wrapper: 9:16 card with gold border accent */
.video-frame-wrap {
  width: min(82vw, 260px);
  flex-shrink: 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--wine-deep);
  box-shadow:
    var(--shadow-md),
    0 0 0 1.5px rgba(163,111,52,.28),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Desktop: RTL flex-row — first DOM child (video) lands on visual RIGHT */
@media (min-width: 940px) {
  .video-layout {
    flex-direction: row;
    align-items: center;
    gap: 52px;
  }

  .video-text {
    display: flex;        /* restore — was display:contents on mobile */
    flex-direction: column;
    flex: 1;
    min-width: 0;
    order: 0;             /* RTL row: video is first DOM → RIGHT, text → LEFT */
  }
  .video-text-top  { order: unset; }
  .video-text-bottom { order: unset; }
  .video-frame-wrap { order: unset; }

  .video-frame-wrap {
    width: clamp(240px, 23vw, 320px);
    flex-shrink: 0;
  }
}

/* ── WhatsApp floating button ───────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  right: var(--floating-gap);
  bottom: var(--floating-bottom);
  z-index: var(--z-whatsapp);
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px;
  min-height: 52px;
  max-height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  box-shadow: 0 4px 16px rgba(37,211,102,.40), 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37,211,102,.55), 0 2px 8px rgba(0,0,0,.22);
}
.whatsapp-float:focus-visible {
  outline: 3px solid #128C7E;
  outline-offset: 3px;
}
.whatsapp-float svg,
.whatsapp-float img {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  flex-shrink: 0;
  pointer-events: none;
}

@media (min-width: 940px) {
  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    min-height: 56px;
    max-height: 56px;
  }
  .whatsapp-float svg,
  .whatsapp-float img {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
  }
}

/* ── Accessibility widget ─────────────────────────────────────────
   Floating circular button (bottom-left, above sticky CTA).
   Menu panel opens upward, fully within viewport.
   No body scroll lock. z-index below age modal.
───────────────────────────────────────────────────────────────── */
.accessibility-widget {
  position: fixed;
  left: var(--floating-gap);
  bottom: var(--floating-bottom);
  z-index: var(--z-a11y-btn);
}

@media (min-width: 940px) {
  .accessibility-widget { bottom: 24px; }
}

.accessibility-toggle {
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px;
  min-height: 52px;
  max-height: 52px;
  border-radius: 50%;
  background: #1a56a0;
  color: #fff;
  border: 2px solid rgba(255,255,255,.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(26,86,160,.38), 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.accessibility-toggle:hover { background: #134688; transform: scale(1.07); }
.accessibility-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.accessibility-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(280px, calc(100vw - 32px));
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-a11y-menu);
  transform-origin: bottom left;
  animation: a11yMenuIn .22s var(--ease) both;
}
.accessibility-menu[hidden] { display: none; }

@keyframes a11yMenuIn {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.accessibility-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  position: sticky;
  top: 0;
  z-index: 1;
}
.accessibility-menu-head span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wine);
}

.accessibility-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  font-family: inherit;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.accessibility-close:hover { background: var(--line); color: var(--ink); }
.accessibility-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.accessibility-options {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  gap: 3px;
}

.accessibility-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  text-align: right;
  direction: rtl;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.accessibility-option:hover { background: var(--soft); border-color: var(--line); }
.accessibility-option:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.accessibility-option[aria-pressed="true"] {
  background: rgba(91,23,28,.08);
  border-color: var(--wine);
  color: var(--wine);
}

.accessibility-option-icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.accessibility-reset {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 12px);
  min-height: 44px;
  margin: 3px 6px 6px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  text-align: right;
  direction: rtl;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.accessibility-reset:hover { color: var(--wine); background: rgba(91,23,28,.04); }
.accessibility-reset:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .accessibility-menu { animation: none; }
}

/* ── A11y effect classes ─────────────────────────────────────────── */
html.a11y-text-lg h1 { font-size: clamp(50px, 14vw, 78px) !important; }
html.a11y-text-lg h2 { font-size: clamp(32px, 8vw, 48px) !important; }
html.a11y-text-lg h3 { font-size: clamp(22px, 5.5vw, 28px) !important; }
html.a11y-text-lg p,
html.a11y-text-lg li,
html.a11y-text-lg .addon-info p,
html.a11y-text-lg .chapter p,
html.a11y-text-lg .faq-answer,
html.a11y-text-lg .footer-col p { font-size: 20px !important; }

html.a11y-text-xl h1 { font-size: clamp(56px, 15vw, 86px) !important; }
html.a11y-text-xl h2 { font-size: clamp(36px, 9vw, 54px) !important; }
html.a11y-text-xl h3 { font-size: clamp(24px, 6vw, 32px) !important; }
html.a11y-text-xl p,
html.a11y-text-xl li,
html.a11y-text-xl .addon-info p,
html.a11y-text-xl .chapter p,
html.a11y-text-xl .faq-answer,
html.a11y-text-xl .footer-col p { font-size: 22px !important; }

html.a11y-text-sm h1 { font-size: clamp(38px, 11vw, 62px) !important; }
html.a11y-text-sm h2 { font-size: clamp(24px, 6vw, 37px) !important; }
html.a11y-text-sm h3 { font-size: clamp(18px, 4.5vw, 22px) !important; }
html.a11y-text-sm p,
html.a11y-text-sm li,
html.a11y-text-sm .addon-info p,
html.a11y-text-sm .chapter p,
html.a11y-text-sm .faq-answer,
html.a11y-text-sm .footer-col p { font-size: 16px !important; }

html.a11y-high-contrast {
  --wine:       #FF3838;
  --wine-deep:  #000000;
  --wine-mid:   #FF5555;
  --gold:       #FFD700;
  --gold-light: #FFE44D;
  --gold-pale:  #FFEF7A;
  --bg:         #000000;
  --paper:      #0A0A0A;
  --card:       #111111;
  --ink:        #FFFFFF;
  --muted:      #DDDDDD;
  --line:       #444444;
  --soft:       #1A1A1A;
}
html.a11y-high-contrast body         { background: #000 !important; color: #fff !important; }
html.a11y-high-contrast .section-alt { background: #0D0D0D !important; border-color: #333 !important; }
html.a11y-high-contrast .hero        { background: #000 !important; }
html.a11y-high-contrast .addons-section { background: #0D0D0D !important; border-color: #333 !important; }
html.a11y-high-contrast .btn-primary { background: #FF3838 !important; color: #fff !important; }
html.a11y-high-contrast .btn-secondary {
  background: #000 !important;
  color: #FFD700 !important;
  border-color: #FFD700 !important;
}
html.a11y-high-contrast .footer { background: #000 !important; }
html.a11y-high-contrast .age-modal-box,
html.a11y-high-contrast .age-denied-box { background: #111 !important; color: #fff !important; }
html.a11y-high-contrast .accessibility-menu { background: #111 !important; border-color: #444 !important; }

html.a11y-highlight-links a:not(.btn):not(.accessibility-toggle):not(.whatsapp-float) {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 2px !important;
}
html.a11y-highlight-links a:not(.accessibility-toggle):not(.whatsapp-float),
html.a11y-highlight-links button:not(.accessibility-toggle):not(.accessibility-option):not(.accessibility-close):not(.accessibility-reset) {
  outline: 2px dashed currentColor !important;
  outline-offset: 2px !important;
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
html.a11y-reduce-motion .reveal,
html.a11y-reduce-motion .reveal-blur,
html.a11y-reduce-motion .reveal-scale,
html.a11y-reduce-motion .reveal-slide,
html.a11y-reduce-motion .stagger > * {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ── Festival media gallery — integrated inside video section ───── */
.festival-media-gallery {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  overflow: hidden; /* prevent horizontal body overflow */
}

.festival-gallery-intro {
  text-align: center;
  margin-bottom: 24px;
}
.festival-gallery-intro h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 4vw, 22px);
  color: var(--ink);
  margin-bottom: 8px;
}
.festival-gallery-intro p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.festival-gallery-dots {
  display: flex;          /* always visible — not mobile-only like book/package dots */
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
}

/* ── Stock badge — package card ──────────────────────────────────── */
.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  color: #1f120d;
  border: none;
  border-radius: 999px;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 800;
  padding: 0.55rem 1rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* ── Festival Gallery section ────────────────────────────────────── */
.festival-gallery-section {
  overflow: hidden; /* prevent horizontal body overflow */
}

.festival-gallery-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.festival-gallery-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 0 16px;
  /* LTR internally prevents RTL scroll-direction quirks on some iOS versions */
  direction: ltr;
  /* Hide scrollbar — scrolling still works */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.festival-gallery-track::-webkit-scrollbar { display: none; }

.festival-gallery-card {
  flex: 0 0 min(90vw, 420px);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  /* 0-blur 1px-spread outer shadow = gold "border" that always follows border-radius */
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(163,111,52,.2);
  transition: box-shadow .2s var(--ease);
  /* Safari: GPU compositing so overflow:hidden actually clips img to rounded corners */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.festival-gallery-card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(163,111,52,.25);
}

/* Scoped to festival cards — does NOT affect WhatsApp or a11y icons */
.festival-gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;   /* images are video frames — show full, don't crop */
  display: block;
  background: var(--soft, #f5ede2);
  border-radius: inherit; /* belt-and-suspenders: ensures corners clip on all browsers */
}

/* Hide broken-image cards gracefully */
.festival-gallery-card.img-error { display: none; }

/* Empty state */
.festival-gallery-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  width: 100%;
  direction: rtl;
}

/* Arrow nav — hidden on mobile, visible on desktop */
.gallery-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--wine);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none; /* mobile: hidden */
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.gallery-nav:not([hidden]) { display: flex; }
.gallery-nav:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.gallery-nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (min-width: 940px) {
  .festival-gallery-card {
    flex: 0 0 420px;
    scroll-snap-align: start; /* two cards visible on desktop — start snap works better */
  }
  /* Arrows revealed via JS (removes hidden attribute) */
}

/* ── Subpages (terms / privacy / returns / contact / payment result) ─
   Minimal additions — all main layout/color tokens reused from above.
─────────────────────────────────────────────────────────────────────── */
.subpage-header {
  background: var(--wine-deep);
  color: #fff;
  padding: 28px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.subpage-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 16px;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-main);
  white-space: nowrap;
  transition: color .2s;
  flex-shrink: 0;
}
.subpage-back:hover { color: #fff; }
.subpage-back svg { flex-shrink: 0; }

.subpage-page-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.legal-article {
  max-width: 720px;
  margin-inline: auto;
}

.legal-article h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--ink);
  margin-bottom: 12px;
  margin-top: 0;
}

.legal-article .legal-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--wine);
  margin-bottom: 10px;
  margin-top: 0;
}

.legal-section ul,
.legal-section ol {
  padding-inline-start: 20px;
  margin-bottom: 0;
  line-height: 1.8;
}

.legal-section li {
  margin-bottom: 4px;
}

.contact-blocks {
  display: grid;
  gap: 20px;
  max-width: 620px;
  margin-inline: auto;
}

.contact-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.contact-block h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--wine);
  margin: 0 0 8px;
}

.contact-block p {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.6;
}

.contact-block p:last-child { margin-bottom: 0; }

.result-page-icon {
  font-size: 56px;
  line-height: 1;
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

.result-page-body {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.result-page-body h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 5vw, 40px);
  color: var(--ink);
  margin-bottom: 16px;
}

.result-page-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.result-page-body .result-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.result-page-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (min-width: 940px) {
  .contact-blocks { grid-template-columns: 1fr 1fr; }
}
