/* ============================================================
   ELENA & MARKO — LUXURY WEDDING INVITATION
   ------------------------------------------------------------
   Contents
   01. Design tokens
   02. Base & typography
   03. Utilities (container, section, buttons, reveal)
   04. Preloader
   05. Opening invitation overlay
   06. Navigation
   07. Hero
   08. Welcome
   09. Details cards
   10. Countdown
   11. Timeline
   12. RSVP form
   13. Location
   14. FAQ accordion
   15. Gallery & lightbox
   16. Footer
   17. Floating controls
   18. Motion preferences
============================================================ */

/* ---------- 01. Design tokens ---------- */
:root {
  /* Palette */
  --ivory:      #fafaf9;
  --white:      #ffffff;
  --champagne:  #eaeae8;
  --beige:      #dcdcdb;
  --gold:       #111111;
  --gold-soft:  #555555;
  --gold-line:  rgba(17, 17, 17, 0.15);
  --charcoal:   #1a1a1a;
  --ink-soft:   #767675;

  /* Typography */
  --font-script: "Playfair Display", Georgia, serif;
  --font-serif:  "Playfair Display", Georgia, serif;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-hero:    clamp(3rem, 8.5vw, 6rem);
  --fs-h2:      clamp(1.9rem, 4.2vw, 2.8rem);
  --fs-script:  clamp(1.5rem, 3.2vw, 2.2rem);
  --fs-body:    clamp(0.94rem, 1.05vw, 1.02rem);

  /* Rhythm */
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 0px;
  --shadow-soft: 0 4px 20px rgba(17, 17, 17, 0.02);
  --shadow-hover: 0 8px 30px rgba(17, 17, 17, 0.06);
  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 02. Base & typography ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  opacity: 0;                                /* page fade-in (JS removes) */
  transition: opacity 0.9s ease;
}
body.is-ready { opacity: 1; }
body.is-locked { overflow: hidden; }         /* while invitation is closed */

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; }

a { color: inherit; }

::selection { background: var(--champagne); color: var(--charcoal); }

/* ---------- 03. Utilities ---------- */
.container {
  width: min(1140px, 90%);
  margin-inline: auto;
}
.container--narrow { width: min(760px, 90%); }

.section { padding-block: var(--space-section); scroll-margin-top: 60px; } /* anchor offset under fixed nav */
.section--tinted { background: linear-gradient(180deg, var(--white) 0%, var(--champagne) 140%); }

/* Section headers */
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head__script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-script);
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-head__script--light { color: var(--gold-soft); }
.section-head__title {
  font-size: var(--fs-h2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head__sub { margin-top: 0.8rem; color: var(--ink-soft); font-style: italic; font-family: var(--font-serif); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease-luxe), border-color 0.45s var(--ease-luxe),
              background-color 0.45s var(--ease-luxe), transform 0.45s var(--ease-luxe),
              box-shadow 0.45s var(--ease-luxe);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Gold sweep hover */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-luxe);
}
.btn:hover::after { transform: translateX(120%); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(185, 146, 86, 0.35);
}
.btn--gold:hover { background: #a98247; box-shadow: 0 12px 30px rgba(185, 146, 86, 0.45); }

.btn--outline-light {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.16); border-color: var(--white); }

/* Scroll-reveal (Intersection Observer adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe);
}
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------- 04. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; gap: 1.4rem;
  background: var(--ivory);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__monogram {
  font-family: var(--font-serif);
  font-size: 2rem; letter-spacing: 0.4em; text-align: center;
  color: var(--gold);
}
.preloader__bar {
  width: 160px; height: 1px; background: var(--beige); overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 40%;
  background: var(--gold);
  animation: loadbar 1.2s var(--ease-luxe) infinite;
}
@keyframes loadbar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ---------- 05. Opening invitation overlay ---------- */
.invitation-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(250, 247, 242, 0.55), rgba(243, 233, 220, 0.65)),
    url("https://picsum.photos/seed/wedding-hero/1920/1280") center/cover no-repeat;
  backdrop-filter: blur(14px);
  transition: opacity 1.1s var(--ease-luxe), visibility 1.1s var(--ease-luxe);
}
/* Blur the photo itself for browsers without backdrop support */
@supports not (backdrop-filter: blur(1px)) {
  .invitation-overlay { background-color: var(--champagne); background-image: none; }
}
.invitation-overlay.is-open { opacity: 0; visibility: hidden; }

.invitation-card {
  width: min(460px, 100%);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(46, 43, 40, 0.25);
  padding: 0.9rem;
  border-radius: var(--radius);
  animation: cardEnter 1.2s var(--ease-luxe) both 0.2s;
  transition: transform 1s var(--ease-luxe), opacity 1s var(--ease-luxe);
}
.invitation-overlay.is-open .invitation-card {
  transform: translateY(-60px) scale(1.05);
  opacity: 0;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(50px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.invitation-card__border {
  position: relative;
  border: 1px solid var(--gold-line);
  padding: clamp(2.4rem, 7vw, 3.6rem) clamp(1.6rem, 5vw, 2.8rem);
  text-align: center;
}
.invitation-card__corner {
  position: absolute; width: 26px; height: 26px;
  border-color: var(--gold); border-style: solid;
}
.invitation-card__corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.invitation-card__corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.invitation-card__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-soft);
}
.invitation-card__divider { width: 120px; margin: 1.3rem auto; color: var(--gold); }
.invitation-card__names {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  color: var(--charcoal);
}
.invitation-card__names span { color: var(--gold); font-size: 0.6em; }
.invitation-card__date {
  margin-top: 0.9rem;
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-soft);
}
.invitation-card__open { margin-top: 2rem; }

/* ---------- 06. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}
.nav__inner {
  width: min(1240px, 92%);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.4rem;
  transition: padding 0.5s ease;
}
.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem; letter-spacing: 0.28em;
  text-decoration: none; color: var(--white);
  transition: color 0.5s ease;
}
.nav__brand span { color: var(--gold-soft); }

.nav__menu { display: flex; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.nav__link {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,0.85);
  padding-block: 0.3rem; position: relative;
  transition: color 0.4s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-luxe);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover, .nav__link.is-active { color: var(--white); }

/* Scrolled state — glassmorphism */
.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(46, 43, 40, 0.08);
}
.nav.is-scrolled .nav__inner { padding-block: 0.85rem; }
.nav.is-scrolled .nav__brand { color: var(--charcoal); }
.nav.is-scrolled .nav__link { color: var(--ink-soft); }
.nav.is-scrolled .nav__link:hover,
.nav.is-scrolled .nav__link.is-active { color: var(--charcoal); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column; gap: 7px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav__toggle span {
  width: 26px; height: 1.5px; background: var(--white);
  transition: transform 0.4s var(--ease-luxe), background 0.4s ease, opacity 0.3s;
}
.nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--charcoal); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem;
    background: rgba(250, 247, 242, 0.96);
    backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open .nav__brand { color: var(--charcoal); position: relative; z-index: 2; }
  .nav__menu .nav__link { color: var(--charcoal); font-size: 1rem; }
}

/* ---------- 07. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}
/* Static background — no parallax on the hero */
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,26,22,0.45) 0%, rgba(30,26,22,0.25) 45%, rgba(30,26,22,0.55) 100%);
}
.hero__content { padding: 6rem 1.5rem 4rem; }
.hero__subtitle {
  font-size: 0.8rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.hero__names {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-hero);
  margin: 1rem 0 1.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero__names span { color: var(--gold-soft); font-size: 0.55em; vertical-align: middle; }
.hero__meta {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.06em;
  margin-bottom: 2.6rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  text-decoration: none; color: rgba(255,255,255,0.8);
}
.hero__scroll-text { font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase; }
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(var(--gold-soft), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--white);
  animation: scrollHint 2.2s var(--ease-luxe) infinite;
}
@keyframes scrollHint {
  0% { top: -50%; } 60%, 100% { top: 110%; }
}

/* ---------- 08. Welcome ---------- */
.welcome { text-align: center; }
.welcome__flourish { width: min(220px, 50%); margin: 0 auto 1.6rem; color: var(--gold); }
.welcome__flourish--flip { margin: 2.4rem auto 0; transform: scaleY(-1); }
.welcome__script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-script);
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.welcome__text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.55;
  color: var(--charcoal);
}
.welcome__note {
  max-width: 54ch; margin: 1.8rem auto 0;
  color: var(--ink-soft);
}

/* ---------- 09. Details cards ---------- */
.details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.card {
  background: var(--white);
  border: 1px solid rgba(185, 146, 86, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(2rem, 4vw, 2.8rem) 1.8rem;
  text-align: center;
  transition: transform 0.5s var(--ease-luxe), box-shadow 0.5s var(--ease-luxe), border-color 0.5s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-line);
}
.card__icon {
  width: 54px; height: 54px;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.5s ease, color 0.5s ease, transform 0.5s var(--ease-luxe);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--gold); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.card__title {
  font-size: 1.25rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.card__text { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 10. Countdown ---------- */
.countdown { position: relative; overflow: hidden; text-align: center; color: var(--white); }
.countdown__bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.countdown__bg img { width: 100%; height: 100%; object-fit: cover; }
.countdown__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(30, 26, 22, 0.62); }
.countdown__content { position: relative; z-index: 2; }
.countdown__title {
  font-size: var(--fs-h2);
  letter-spacing: 0.04em;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}
.countdown__grid {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.9rem, 4vw, 2.8rem);
  flex-wrap: wrap;
}
.countdown__unit { min-width: clamp(64px, 12vw, 110px); }
.countdown__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-soft);
}
.countdown__sep { width: 1px; height: 54px; background: rgba(255,255,255,0.25); }
@media (max-width: 520px) { .countdown__sep { display: none; } }

/* ---------- 11. Timeline ---------- */
.timeline__list { list-style: none; position: relative; }
.timeline__list::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--gold-line);
}
.timeline__item { position: relative; width: 50%; padding: 0 3rem 3.4rem 0; }
.timeline__item:nth-child(even) { left: 50%; padding: 0 0 3.4rem 3rem; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute; top: 6px; right: -6.5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px var(--ivory);
  z-index: 1;
}
.timeline__item:nth-child(even) .timeline__dot { right: auto; left: -6.5px; }

.timeline__card { text-align: right; }
.timeline__item:nth-child(even) .timeline__card { text-align: left; }
.timeline__time {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
}
.timeline__title {
  font-size: 1.5rem; margin: 0.35rem 0 0.45rem;
}
.timeline__text { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 700px) {
  .timeline__list::before { left: 8px; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    width: 100%; left: 0;
    padding: 0 0 2.8rem 2.4rem;
  }
  .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot { left: 2px; right: auto; }
  .timeline__card,
  .timeline__item:nth-child(even) .timeline__card { text-align: left; }
}

/* ---------- 12. RSVP form ---------- */
.rsvp__form {
  background: var(--white);
  border: 1px solid rgba(185, 146, 86, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid; gap: 1.9rem;
}

/* Personal invitation code banner */
.rsvp__code-info {
  text-align: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(185, 146, 86, 0.05);
}
.rsvp__code-info--error { color: #a05252; border-color: rgba(160, 82, 82, 0.35); background: rgba(160, 82, 82, 0.05); }

/* Floating labels */
.field { position: relative; }
.field__input {
  width: 100%;
  font: inherit; color: var(--charcoal);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--beige);
  padding: 1.1rem 0 0.55rem;
  transition: border-color 0.4s ease;
}
.field__input:focus { outline: none; border-bottom-color: var(--gold); }
.field__input--area { resize: vertical; min-height: 96px; }
.field__label {
  position: absolute; left: 0; top: 1.05rem;
  color: var(--ink-soft);
  pointer-events: none;
  transition: transform 0.35s var(--ease-luxe), font-size 0.35s var(--ease-luxe), color 0.35s ease;
  transform-origin: left top;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-1.05rem);
  font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}

/* Attendance pills */
.rsvp__attendance { border: 0; }
.rsvp__legend {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.rsvp__choices { display: flex; gap: 1rem; flex-wrap: wrap; }
.choice input { position: absolute; opacity: 0; }
.choice__pill {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  border: 1px solid var(--beige);
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxe);
}
.choice__pill:hover { border-color: var(--gold-soft); }
.choice input:checked + .choice__pill {
  background: var(--gold); border-color: var(--gold); color: var(--white);
  box-shadow: 0 8px 22px rgba(185, 146, 86, 0.35);
}
.choice input:focus-visible + .choice__pill { outline: 2px solid var(--gold); outline-offset: 3px; }

.rsvp__submit { justify-self: center; margin-top: 0.4rem; }
.rsvp__success {
  text-align: center;
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold);
}

/* ---------- 13. Location ---------- */
.location__wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
  border: 1px solid rgba(185, 146, 86, 0.15);
}
.location__map { min-height: 420px; }
.location__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: sepia(0.22) saturate(0.85);
}
.location__info {
  padding: clamp(2.2rem, 4vw, 3.2rem);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  gap: 1.1rem;
}
.location__venue { font-size: 1.7rem; letter-spacing: 0.05em; }
.location__address { color: var(--ink-soft); }
.location__divider { width: 44px; height: 1px; background: var(--gold); margin-inline: auto; }
.location__hint { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; font-family: var(--font-serif); }
.location__info .btn { align-self: center; margin-top: 0.5rem; }

@media (max-width: 860px) {
  .location__wrap { grid-template-columns: 1fr; }
  .location__map { min-height: 300px; }
}

/* ---------- 14. FAQ accordion ---------- */
.faq__item {
  background: var(--white);
  border: 1px solid rgba(185, 146, 86, 0.15);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.faq__item.is-open { box-shadow: var(--shadow-soft); border-color: var(--gold-line); }

.faq__question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.12rem; font-weight: 500;
  text-align: left;
  color: var(--charcoal);
  background: none; border: 0; cursor: pointer;
  padding: 1.3rem 1.6rem;
}
.faq__question:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* plus/minus icon */
.faq__icon { position: relative; flex: 0 0 14px; height: 14px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--gold);
  transition: transform 0.45s var(--ease-luxe);
}
.faq__icon::before { top: 50%; left: 0; width: 14px; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; width: 1.5px; height: 14px; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }

/* animated height via grid-template-rows */
.faq__answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-luxe);
}
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner {
  overflow: hidden;
  padding: 0 1.6rem;
  color: var(--ink-soft);
  transition: padding 0.5s var(--ease-luxe);
}
.faq__item.is-open .faq__answer-inner { padding: 0 1.6rem 1.4rem; }

/* ---------- 15. Gallery & lightbox ---------- */
.gallery__masonry {
  columns: 3;
  column-gap: 1.2rem;
}
@media (max-width: 900px) { .gallery__masonry { columns: 2; } }
@media (max-width: 540px) { .gallery__masonry { columns: 1; } }

.gallery__item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(46, 43, 40, 0.10);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  transition: transform 0.8s var(--ease-luxe), filter 0.8s ease;
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.04); }

.lightbox[hidden] { display: none; }  /* keep it out of the way when closed */
.lightbox {
  position: fixed; inset: 0; z-index: 800;
  display: grid; place-items: center;
  background: rgba(30, 26, 22, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: min(90vw, 1100px); max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}
.lightbox__close, .lightbox__arrow {
  position: absolute;
  background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s, transform 0.3s var(--ease-luxe);
}
.lightbox__close { top: 1rem; right: 1.4rem; font-size: 2.6rem; line-height: 1; }
.lightbox__close:hover { color: var(--white); transform: rotate(90deg); }
.lightbox__arrow {
  top: 50%; transform: translateY(-50%);
  font-size: 3.4rem; line-height: 1; padding: 1rem;
}
.lightbox__arrow--prev { left: 0.6rem; }
.lightbox__arrow--next { right: 0.6rem; }
.lightbox__arrow:hover { color: var(--gold-soft); }

/* ---------- 16. Footer ---------- */
.footer {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  background: var(--charcoal);
  color: var(--champagne);
}
.footer__names { font-family: var(--font-script); font-style: italic; font-weight: 400; font-size: 2.2rem; }
.footer__names span { color: var(--gold-soft); font-size: 0.65em; }
.footer__date {
  margin-top: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(243, 233, 220, 0.6);
}
.footer__divider { width: 120px; margin: 1.6rem auto; color: var(--gold-soft); }
.footer__love {
  font-family: var(--font-serif); font-style: italic;
  color: rgba(243, 233, 220, 0.75);
}

/* ---------- 17. Floating controls ---------- */
.fab {
  position: fixed; right: 1.4rem; z-index: 600;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-luxe), background 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}
.fab svg { width: 20px; height: 20px; }
.fab:hover { background: var(--gold); color: var(--white); transform: translateY(-3px); }

.fab--music { bottom: 1.4rem; }
.fab--top   { bottom: 4.9rem; }
.fab--top[hidden] { display: none; }

/* Music playing indicator — gentle pulse */
.fab--music.is-playing {
  color: var(--white); background: var(--gold);
  animation: musicPulse 2.4s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 146, 86, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(185, 146, 86, 0); }
}

/* ---------- 18. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
