/* ═══════════════════════════════════════════════════════════════════════════
   grand-opening-flyer-big-reveal — "The Big Reveal" (Grand Opening · Flyer)
   Night-marquee billboard poster · ink navy + gold + cream + coral.

   Layout contract:
     · .app-shell locks to the viewport (100dvh) only when <html> has "js".
     · Only the ACTIVE panel scrolls internally; inactive panels are hidden.
     · Without JS the page degrades to a normal stacked, scrolling document.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink:         #0e1424;
  --ink-2:       #17203a;
  --ink-3:       #1f2a4a;
  --gold:        #f5b83d;
  --gold-deep:   #d99a1f;
  --gold-soft:   rgba(245, 184, 61, .18);
  --cream:       #fbf2df;
  --cream-soft:  #fffaf0;
  --coral:       #ff5c4d;
  --mint:        #2fd3a3;
  --danger:      #d64541;
  --line:        rgba(251, 242, 223, .14);
  --line-dark:   rgba(14, 20, 36, .14);
  --radius:      18px;
  --font-display: "Anton", "Arial Narrow", Impact, "Arial Black", sans-serif;
  --font-body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 16px/1.65 var(--font-body);
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { vertical-align: middle; }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.mini-ico { display: inline-flex; margin-right: 8px; transform: translateY(2px); }

.kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker-star { color: var(--coral); margin: 0 6px; }
.kicker-dark { color: var(--coral); }

/* ── Shell: single viewport, only the active panel scrolls ─────────────── */
.app-shell { position: relative; width: 100%; }

.js .app-shell {
  height: 100vh;                /* fallback */
  height: 100dvh;
  overflow: hidden;
}

.panel { position: relative; }

.js .panel { height: 100%; display: none; }
.js .panel.is-active { display: block; }

/* Only the active panel scrolls internally. */
.js .panel.is-active {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.panel-inner {
  max-width: 640px;
  margin: 0 auto;
  /* Bottom padding clears the fixed powered-by strip + the nav bar, so the
     last lines of any panel scroll above both (see .powered-by / .panel-nav). */
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(150px + env(safe-area-inset-bottom));
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Panel themes (alternating for poster rhythm) ──────────────────────── */
.cover-panel  { background: var(--ink); }
.offers-panel { background: var(--cream); color: var(--ink); }
.detail-panel { background: var(--ink-2); }
.moments-panel { background: var(--cream); color: var(--ink); }
.rsvp-panel   { background: var(--cream); color: var(--ink); }
.guest-panel  { background: var(--ink); }
.free-panel   { background: var(--ink-2); }

/* ── Cover: the billboard ──────────────────────────────────────────────── */
.cover {
  position: relative;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
  padding-top: calc(22px + env(safe-area-inset-top));
}

/* Night-sky speckles behind the cover content (above the optional photo) */
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(251, 242, 223, .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 74% 14%, rgba(251, 242, 223, .4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 38%, rgba(251, 242, 223, .35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 34% 46%, rgba(251, 242, 223, .4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 30%, rgba(251, 242, 223, .5) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 62%, rgba(251, 242, 223, .4) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 58%, rgba(251, 242, 223, .4) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 8%, rgba(251, 242, 223, .35) 50%, transparent 51%);
}

.cover > :not(.cover-photo):not(.cover-photo-open) { position: relative; z-index: 2; }

/* Optional background photo behind the cover billboard. Delete the
   .cover-photo block in index.html to go back to the plain night sky. */
.cover-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Dark overlay keeps the billboard text readable on any photo */
.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 36, .88) 0%, rgba(14, 20, 36, .5) 45%, rgba(14, 20, 36, .9) 100%);
}
.cover-photo img { cursor: zoom-in; }

/* "View photo" chip — opens the cover photo full-size in the lightbox.
   Sits above the billboard content (z-index 3) so it never steals taps
   from the CTAs below it; hidden by main.js when the photo block is gone. */
.cover-photo-open {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 242, 223, .28);
  border-radius: 999px;
  background: rgba(14, 20, 36, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  font: 700 12px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: zoom-in;
  transition: background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cover-photo-open:hover { background: rgba(14, 20, 36, .9); transform: translateY(-1px); }
.cover-photo-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.cover-photo-open[hidden] { display: none; }
.cover-photo-open-text { white-space: nowrap; }

/* Marquee bulbs */
.marquee {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 2px;
}
.marquee i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 1px rgba(245, 184, 61, .8);
  animation: bulb 1.6s ease-in-out infinite;
}
.marquee i:nth-child(odd) { animation-delay: .8s; }

@keyframes bulb {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}

.guest-greeting {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--mint);
  letter-spacing: .04em;
}

/* Cover title — huge stacked billboard type */
.cover-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.cover-line {
  display: block;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(245, 184, 61, .4);
  font-size: clamp(46px, 15vw, 118px);
}
.cover-line-big {
  color: var(--cream);
  text-shadow: 0 4px 0 var(--coral), 0 0 30px rgba(255, 92, 77, .35);
  font-size: clamp(68px, 22vw, 172px);
}

.store-name {
  display: inline-block;
  margin: 14px auto 0;
  padding: 7px 20px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: clamp(13px, 3.6vw, 18px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
}
.tagline {
  margin: 8px 0 0;
  font-size: clamp(13px, 3.4vw, 16px);
  color: rgba(251, 242, 223, .72);
  letter-spacing: .06em;
}

/* Sunburst promo badge */
.starburst {
  position: relative;
  width: 158px;
  height: 158px;
  margin: 18px auto 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 7px var(--ink),
    0 0 0 8px var(--gold),
    0 22px 34px rgba(0, 0, 0, .5);
}
.starburst::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--gold) 0deg 12deg, var(--gold-deep) 12deg 24deg);
  animation: spin 26s linear infinite;
}
.starburst::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

.starburst-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
  line-height: 1.1;
}
.promo-burst-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: .02em;
}
.promo-burst-sub {
  margin-top: 4px;
  max-width: 110px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Ticket-style date/place block */
.cover-meta {
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  text-align: left;
}
.cover-meta p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
}
.cover-meta p + p { margin-top: 6px; }
.cover-meta .mini-ico { color: var(--gold); }

.cover-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Awning at the base */
.awn {
  position: relative;
  height: 26px;
  margin-top: 26px;
  border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(90deg, var(--coral) 0 36px, var(--cream) 36px 72px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .45);
}
.awn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  background: radial-gradient(circle at 18px 0, var(--ink) 0 10px, transparent 11px);
  background-size: 36px 12px;
  background-repeat: repeat-x;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(245, 184, 61, .35);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(245, 184, 61, .5); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.btn-ghost:hover { background: rgba(245, 184, 61, .12); }

.btn-dark { background: var(--ink); color: var(--cream); box-shadow: 0 10px 22px rgba(14, 20, 36, .28); }
.btn-dark:hover { box-shadow: 0 14px 28px rgba(14, 20, 36, .4); }

.btn-block { width: 100%; }

/* ── Panel heads (light panels) ────────────────────────────────────────── */
.panel-head { text-align: center; margin-bottom: 20px; }

.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  font-size: clamp(36px, 9vw, 60px);
  color: var(--ink);
  letter-spacing: .02em;
}
.detail-panel .panel-title, .guest-panel .panel-title, .cover-panel .panel-title, .free-panel .panel-title {
  color: var(--cream);
}

.panel-lead {
  margin: 12px auto 0;
  max-width: 34em;
  font-size: 16px;
  color: rgba(14, 20, 36, .72);
}
.detail-panel .panel-lead, .guest-panel .panel-lead, .free-panel .panel-lead { color: rgba(251, 242, 223, .72); }

/* ── Offers: promo cards ───────────────────────────────────────────────── */
.promo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
}

.promo-card {
  position: relative;
  padding: 26px 20px 20px;
  background: var(--cream-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
}
/* color-coded top bar per card */
.promo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gold);
}
.promo-card:nth-child(3n+2)::before { background: var(--coral); }
.promo-card:nth-child(3n+3)::before { background: var(--mint); }

.promo-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
}
.promo-card:nth-child(3n+2) .promo-card-icon { background: var(--coral); color: var(--cream); }
.promo-card:nth-child(3n+3) .promo-card-icon { background: var(--mint); color: var(--ink); }

.promo-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.promo-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(14, 20, 36, .68);
}

.fine-print {
  margin: 16px auto 0;
  max-width: 34em;
  text-align: center;
  font-size: 12.5px;
  color: rgba(14, 20, 36, .55);
}

/* ── Moments: photo gallery (bright cream panel) ──────────────────────── */

.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-card { margin: 0; }

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-soft);
  border: 1px solid var(--line-dark);
  box-shadow: 0 14px 28px rgba(14, 20, 36, .18);
}

/* Each photo is a real button: tap to open the ORIGINAL image full-size
   in the lightbox (with zoom). The 🔍 chip hints at zoom on desktop;
   touch devices keep it visible since hover doesn't exist there. */
.photo-open {
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.photo-open:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.photo-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.photo-card:hover .photo-frame img { transform: scale(1.04); }
.photo-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  background: rgba(251, 242, 223, .94);
  color: var(--ink);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(245, 184, 61, .5);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.photo-card:hover .photo-zoom, .photo-card:focus-within .photo-zoom { opacity: 1; transform: translateY(0); }
@media (hover: none) { .photo-zoom { opacity: 1; transform: none; } }
/* Thin gold edge so the frames read as marquee "lit" tiles */
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(245, 184, 61, .35);
  pointer-events: none;
  z-index: 3;
}

.photo-caption {
  margin: 8px 2px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  color: rgba(14, 20, 36, .72);
}

@media (min-width: 560px) {
  .photo-grid { gap: 20px; }
}

/* ── Optional official flyer / banner (Details panel) ────────────────────
   A wide framed slot for hosts who already have a designed flyer or
   poster — guests can confirm they're in the right place with the right
   link. Clicking it opens the same full-screen lightbox as the photos. */
.flyer-banner { margin: 30px 0 0; }
.flyer-banner[hidden] { display: none; }
.flyer-banner__card { position: relative; }
.flyer-banner__open {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(251, 242, 223, .28);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  cursor: zoom-in;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .6);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.flyer-banner__open:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7); }
.flyer-banner__open:active { transform: translateY(0); }
.flyer-banner__open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.flyer-banner__open img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* banner-shaped: wide flyers and covers fit neatly */
  object-fit: cover;
  background: var(--ink-3);
}
.flyer-banner__chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(251, 242, 223, .94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 6px 12px;
  pointer-events: none;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(245, 184, 61, .5);
}
.flyer-banner__label {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Optional video (Moments panel) — click to play, loads only then ───── */
.film-card { margin: 34px 0 0; text-align: center; }
.film-card[hidden] { display: none; }
.film-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(20px, 5vw, 26px);
  color: var(--ink);
}
.film-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 14px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink); /* mat behind the poster / while loading */
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 34px -18px rgba(14, 20, 36, .5);
}
.film-open {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.film-open img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.film-open:hover img { transform: scale(1.04); }
.film-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 12vmin, 72px); height: clamp(56px, 12vmin, 72px);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5), 0 0 0 6px rgba(245, 184, 61, .35);
  animation: play-pulse 2.2s ease-in-out infinite;
}
.film-play svg { width: 30px; height: 30px; margin-left: 3px; }
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5), 0 0 0 0 rgba(245, 184, 61, .45); }
  50% { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5), 0 0 0 12px rgba(245, 184, 61, 0); }
}
.film-hint {
  position: absolute; left: 50%; bottom: 12px;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(14, 20, 36, .72);
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.film-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}
.film-external {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 154, 31, .4);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.film-external:hover { color: var(--ink); border-color: var(--ink); }
.film-external[hidden] { display: none; }
.film-note {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  margin: 0; padding: 20px;
  text-align: center;
  font-size: 14px; font-style: italic;
  color: rgba(251, 242, 223, .6);
}

/* ── Details ───────────────────────────────────────────────────────────── */
.detail-list {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}
.detail-row dt {
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.detail-row dt svg { color: var(--gold); flex: 0 0 auto; }
.detail-row dd {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--cream);
}
.detail-row .dd-sub {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(251, 242, 223, .6);
}

.hosted-by {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(251, 242, 223, .66);
}
.hosted-by .host-name { color: var(--gold); font-weight: 700; }

.panel-foot { text-align: center; margin-top: 26px; }
.foot-hint { margin: 12px 0 0; font-size: 13.5px; color: rgba(251, 242, 223, .62); }
.foot-hint strong { color: var(--gold); }
.offers-panel .foot-hint { color: rgba(14, 20, 36, .6); }

/* ── RSVP form (light panel) ───────────────────────────────────────────── */
.rsvp-wrap { margin-top: 4px; }

.rsvp-form-display {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(14, 20, 36, .78);
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid rgba(14, 20, 36, .18);
  border-radius: 12px;
  background: var(--cream-soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: rgba(14, 20, 36, .38); }
.form-control:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230e1424' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

textarea.form-control { resize: vertical; min-height: 74px; }

.error {
  display: block;
  min-height: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.field-hint { font-size: 12.5px; color: rgba(14, 20, 36, .52); }

/* When the guest says they can't attend, de-emphasise the party-size field */
.rsvp-form-display .form-group--guests { transition: opacity .2s ease; }
#rsvp-form.is-not-attending .form-group--guests { opacity: .45; }

.rsvp-note {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(47, 211, 163, .14);
  border: 1px solid rgba(47, 211, 163, .45);
  font-size: 14px;
  color: rgba(14, 20, 36, .75);
}

.form-actions { margin-top: 18px; }

.loading {
  display: none;
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-deep);
}
.loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(217, 154, 31, .35);
  border-top-color: var(--gold-deep);
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .8s linear infinite;
}

/* Platform thank-you / closed states inside #rsvp-form */
.thank-you-message { text-align: center; }
.thank-you-message h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 10px;
  color: var(--ink);
}
.thank-you-message p { margin: 4px 0; color: rgba(14, 20, 36, .7); }

/* ── Countdown (light panel) ───────────────────────────────────────────── */
.rsvp-countdown {
  margin: 18px auto 4px;
  max-width: 420px;
  text-align: center;
}
.countdown-label {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(14, 20, 36, .6);
}
.countdown-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.count-box {
  padding: 12px 4px 10px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.count-box span {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
}
.count-box small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(251, 242, 223, .6);
}

/* ── Optional free page (bonus panel) — repeatable title + text blocks
       with an optional photo each. The whole panel drops out (nav tab too)
       when every block is empty or the host hides/deletes the <section>. */
.free-blocks { display: grid; gap: 18px; }

.free-block {
  position: relative;
  padding: 24px 22px 20px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
}
/* gold top bar per block, like the promo cards — coral on alternating ones */
.free-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--gold);
}
.free-block:nth-child(even)::before { background: var(--coral); }

.free-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--cream);
}
.free-content {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(251, 242, 223, .78);
  white-space: pre-line;
}
.free-content p { margin: 0 0 10px; }

.free-figure { margin: 18px 0 0; }
.free-figure[hidden] { display: none; }

/* The optional block photo is a real button: tap to open it full-size in
   the lightbox, like every other photo on the flyer. */
.free-open {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.free-open:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 0, 0, .45); }
.free-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.free-open img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink-3);
}

.free-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(251, 242, 223, .94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(245, 184, 61, .5);
  pointer-events: none;
}

.free-cap {
  margin: 8px 2px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 242, 223, .55);
}

/* ── Guestbook (dark panel) ────────────────────────────────────────────── */
.guestbook-section { margin-top: 4px; }

.guestbook-head { text-align: center; margin-bottom: 20px; }

/* The platform injects #guestbookForm, #comments-container, #load-more into
   .guestbook-body (Style A). We style that injected markup here. */
.guestbook-body #guestbookForm {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}
.guestbook-body #guestbookForm .form-control {
  background: transparent;
  border-color: rgba(251, 242, 223, .28);
  color: var(--cream);
}
.guestbook-body #guestbookForm .form-control::placeholder { color: rgba(251, 242, 223, .4); }
.guestbook-body #guestbookForm .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.guestbook-body #guestbookForm label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(251, 242, 223, .72);
}
.guestbook-body #guestbookForm textarea { min-height: 90px; resize: vertical; }
.guestbook-body #guestbookForm .error { margin-top: 4px; }

.guestbook-body #guestbookForm button[type="submit"] {
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.guestbook-body #guestbookForm button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(245, 184, 61, .35); }
.guestbook-body #guestbookForm button[type="submit"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.loading-guestbook {
  display: none;
  text-align: center;
  font-size: 13.5px;
  color: var(--gold);
}

.guestbook-wrap { margin-top: 22px; display: grid; gap: 12px; }

.guestbook-entry {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--ink-3);
}
.guestbook-entry h5 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}
.guestbook-entry p { margin: 0 0 6px; font-size: 14.5px; color: var(--cream); }
.guestbook-entry small { font-size: 12px; color: rgba(251, 242, 223, .5); }

.more-guestbook-wrap { margin-top: 18px; text-align: center; }
#load-more {
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
#load-more:hover { background: rgba(245, 184, 61, .12); transform: translateY(-2px); }
#load-more:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ── Lightbox (photo zoom) — click any photo to view it large ────────────
   One viewer for the Moments gallery (with ‹ › browsing + counter), the
   cover photo chip and the optional official flyer/banner. Shows the
   ORIGINAL image full-size; click / wheel / toolbar buttons to zoom
   (drag or pinch to pan while zoomed); "open original" opens the source
   file in a new tab. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(10, 14, 27, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: lightbox-in .18s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-backdrop {
  position: absolute; inset: 0;
  border: 0; padding: 0;
  background: transparent;
  cursor: zoom-out;
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: min(900px, 94vw);
  max-height: 94vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink-2);
  border: 1px solid rgba(245, 184, 61, .4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px -18px rgba(0, 0, 0, .65);
}
.lightbox-stage {
  position: relative;
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;          /* pans when zoomed */
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
.lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--ink);  /* mat while loading / if missing */
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform .25s ease;
}
.lightbox-img.is-zoomed { cursor: grab; }
.lightbox-img.is-zoomed:active { cursor: grabbing; }
.lightbox-count {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cream);
  background: rgba(14, 20, 36, .72);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.lightbox-cap {
  width: 100%;
  padding: 12px 20px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(251, 242, 223, .8);
  text-align: center;
  overflow-wrap: anywhere;
}
.lightbox-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 14px;
}
.lightbox-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(245, 184, 61, .4);
  background: rgba(14, 20, 36, .7);
  color: var(--cream);
  font: 700 12px/1 var(--font-body);
  letter-spacing: .08em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lightbox-tool:hover { border-color: var(--gold); background: rgba(23, 32, 58, .95); }
.lightbox-tool:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox-zoomval {
  min-width: 46px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(251, 242, 223, .6);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 184, 61, .5);
  cursor: pointer;
  color: var(--cream);
  background: rgba(14, 20, 36, .72);
  font-size: 24px;
  line-height: 1;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .15s ease, transform .15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover:not(:disabled) { background: rgba(23, 32, 58, .95); transform: scale(1.05); }
.lightbox-nav:disabled { opacity: .4; cursor: default; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover:not(:disabled) { transform: translateY(-50%) scale(1.05); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Full-width powered-by brand strip (platform line) ──────────────────
   Pinned under the panels, OUTSIDE them, so it survives RSVP/guestbook/
   free-page being turned off. The editor's "Free Powered By" field can
   override the text (.powered-by-text); the engine swaps the literal
   "Kundangi" token for the app name at render. */
.powered-by {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: 100%;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(251, 242, 223, .62);
  background: rgba(14, 20, 36, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(251, 242, 223, .14);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, .35);
}
.powered-by p { margin: 0; }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { color: var(--gold); }
/* Without JS the page is a normal scrolling document — keep the line in flow. */
html:not(.js) .powered-by { position: static; background: none; border-top: 1px solid var(--line); box-shadow: none; }

/* ── Site foot ─────────────────────────────────────────────────────────── */
.site-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 13px;
  color: rgba(251, 242, 223, .55);
}
.site-foot p { margin: 0; }
.footer-brand { margin: 0; font-weight: 700; }
.foot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 184, 61, .7);
  flex: 0 0 auto;
}

/* ── Section switcher — text tabs, scrollable on phones ───────────────── */
.panel-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  /* Sits above the fixed powered-by strip (see .powered-by). */
  bottom: calc(58px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: min(94vw, 720px);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(14, 20, 36, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 242, 223, .16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
/* Inner scroll strip holds only the labeled tabs — the ‹ › arrows sit
   outside it, pinned at the pill bar's edges on any width. */
.panel-nav-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  /* Scrollable but never visibly scroll-marked — a clean bar on any width. */
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.panel-nav-scroll::-webkit-scrollbar { display: none; }
.panel-nav[hidden] { display: none; }

.panel-nav .nav-tab {
  appearance: none;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(251, 242, 223, .82);
  font: 700 12px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.panel-nav .nav-tab:hover { color: var(--cream); background: rgba(251, 242, 223, .14); }
.panel-nav .nav-tab.is-current {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}
.panel-nav .nav-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Mobile prev/next arrows ─────────────────────────────────────────── */
/* Circular icon buttons flanking the labeled tabs: the full-screen panels
   page through like a carousel (‹ [tabs…] ›). Disabled at the ends by
   main.js; hidden on wide screens where every tab is visible at once. */
.panel-nav .nav-arrow {
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 242, 223, .12);
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.panel-nav .nav-arrow:hover:not(:disabled) { background: rgba(251, 242, 223, .26); color: var(--cream); }
.panel-nav .nav-arrow:active:not(:disabled) { transform: scale(.94); }
.panel-nav .nav-arrow:disabled { opacity: .32; cursor: default; }
.panel-nav .nav-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .panel-nav .nav-arrow { display: inline-flex; }
}

/* Narrowest phones: the strip left-aligns so overflowing tabs stay reachable
   by scrolling (a centered flex would clip the first tab). */
@media (max-width: 480px) {
  .panel-nav-scroll { justify-content: flex-start; }
}

/* ── Responsive: widen panels on larger screens ────────────────────────── */
@media (min-width: 560px) {
  .panel-inner { padding-left: 40px; padding-right: 40px; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee i, .starburst::after, .loading::before, .film-play { animation: none; }
  .photo-card:hover .photo-frame img, .film-open:hover img { transform: none; }
}

/* ── Print: expand every panel so the whole flyer prints ───────────────── */
@media print {
  body { background: #fff; }
  .panel-nav { display: none !important; }
  .lightbox { display: none !important; }
  .powered-by { display: none !important; }
  .js .app-shell { height: auto !important; overflow: visible !important; }
  .js .panel { display: block !important; height: auto !important; overflow: visible !important; }
  .panel-inner {
    max-width: none;
    padding: 24px;
    min-height: 0;
    page-break-after: always;
  }
  .marquee, .starburst, .awn, .foot-dot, .cover-actions, .panel-foot, .cover-photo-open, .photo-zoom, .flyer-banner__chip, .film-hint, .film-play {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a[href]::after { content: ""; }
}
