/* ============================================================
   BOTANICAL GARDEN — WEDDING INVITATION THEME
   Sage green · cream paper · rustic greenery
   Same structure & JS hooks as the base template.
============================================================ */

/* ---------- 01. Design tokens ---------- */
:root {
  --cream:      #f7f4ea;
  --paper:      #fffdf6;
  --kraft:      #e7dcc3;
  --sage:       #7d9070;
  --sage-deep:  #4c5f43;
  --sage-line:  rgba(125, 144, 112, 0.4);
  --moss:       #33402c;
  --stone:      #77796b;

  --font-script: "Caveat", cursive;
  --font-serif:  "Lora", Georgia, serif;
  --font-sans:   "Karla", "Helvetica Neue", Arial, sans-serif;

  --fs-hero:    clamp(3rem, 8.5vw, 6rem);
  --fs-h2:      clamp(1.9rem, 4.5vw, 3rem);
  --fs-script:  clamp(1.8rem, 3.8vw, 2.8rem);
  --fs-body:    clamp(0.98rem, 1.1vw, 1.08rem);

  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 14px;
  --shadow-soft:  0 10px 34px rgba(51, 64, 44, 0.10);
  --shadow-hover: 0 16px 44px rgba(51, 64, 44, 0.16);
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 02. Base ---------- */
*, *::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.75;
  color: var(--moss);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(125,144,112,0.08), transparent 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.9s ease;
}
body.is-ready { opacity: 1; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.25; }
a { color: inherit; }
::selection { background: var(--sage); color: var(--paper); }

/* ---------- 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; }
.section--tinted {
  background:
    linear-gradient(180deg, rgba(125,144,112,0.10) 0%, rgba(231,220,195,0.28) 100%);
}

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head__script {
  font-family: var(--font-script);
  font-size: var(--fs-script);
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 0.3rem;
}
.section-head__script--light { color: var(--kraft); }
.section-head__title {
  font-size: var(--fs-h2);
  letter-spacing: 0.05em;
  color: var(--sage-deep);
}
/* twin leaves under each title */
.section-head__title::after {
  content: "";
  display: block;
  width: 15px; height: 15px;
  margin: 1.1rem auto 0;
  background: var(--sage);
  border-radius: 0 100% 0 100%;
  transform: rotate(45deg);
  box-shadow: -22px 6px 0 -3px var(--sage-line), 22px 6px 0 -3px var(--sage-line);
}
.section-head__sub { margin-top: 1.1rem; color: var(--stone); font-style: italic; font-family: var(--font-serif); }

/* Buttons — soft pills */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.45s var(--ease-luxe);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

.btn--gold {
  background: var(--sage-deep);
  color: var(--paper);
  box-shadow: 0 10px 26px rgba(76, 95, 67, 0.3);
}
.btn--gold:hover { background: var(--moss); box-shadow: 0 14px 34px rgba(51, 64, 44, 0.35); }

.btn--outline-light {
  border-color: rgba(255,255,255,0.75);
  color: var(--paper);
  background: rgba(51, 64, 44, 0.25);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.2); border-color: var(--paper); }

/* Scroll reveal */
.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(--cream);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__monogram {
  font-family: var(--font-script);
  font-size: 2.6rem; letter-spacing: 0.2em; text-align: center;
  color: var(--sage-deep);
}
.preloader__bar { width: 160px; height: 2px; background: var(--kraft); overflow: hidden; border-radius: 2px; }
.preloader__bar span {
  display: block; height: 100%; width: 40%;
  background: var(--sage);
  animation: loadbar 1.2s var(--ease-luxe) infinite;
}
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

/* ---------- 05. Opening invitation ---------- */
.invitation-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(247, 244, 234, 0.72), rgba(125, 144, 112, 0.45)),
    url("https://picsum.photos/seed/bgar-hero/1920/1280") center/cover no-repeat;
  backdrop-filter: blur(12px);
  transition: opacity 1.1s var(--ease-luxe), visibility 1.1s var(--ease-luxe);
}
@supports not (backdrop-filter: blur(1px)) {
  .invitation-overlay { background-color: var(--kraft); background-image: none; }
}
.invitation-overlay.is-open { opacity: 0; visibility: hidden; }

.invitation-card {
  width: min(470px, 100%);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(51, 64, 44, 0.3);
  padding: 1rem;
  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: 1.5px dashed var(--sage-line);
  border-radius: calc(var(--radius) - 5px);
  padding: clamp(2.4rem, 7vw, 3.6rem) clamp(1.6rem, 5vw, 2.8rem);
  text-align: center;
}
/* leaves instead of hard corners */
.invitation-card__corner {
  position: absolute; width: 20px; height: 20px;
  border: 0 !important;
  background: var(--sage);
  border-radius: 0 100% 0 100%;
}
.invitation-card__corner--tl { top: -10px; left: -10px; transform: rotate(-45deg); }
.invitation-card__corner--br { bottom: -10px; right: -10px; transform: rotate(135deg); }
.invitation-card__eyebrow {
  font-size: 0.76rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone);
}
.invitation-card__divider { width: 120px; margin: 1.3rem auto; color: var(--sage); }
.invitation-card__names {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 4rem);
  color: var(--sage-deep);
}
.invitation-card__names span { color: var(--sage); font-size: 0.6em; }
.invitation-card__date {
  margin-top: 0.9rem;
  font-family: var(--font-serif); font-style: italic;
  color: var(--stone);
}
.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;
}
.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-script);
  font-weight: 600;
  font-size: 1.7rem; letter-spacing: 0.08em;
  text-decoration: none; color: var(--paper);
  transition: color 0.5s ease;
}
.nav__brand span { color: var(--kraft); }
.nav__menu { display: flex; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.nav__link {
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  text-decoration: none; color: rgba(255,255,255,0.88);
  padding-block: 0.3rem; position: relative;
  transition: color 0.4s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--kraft);
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s var(--ease-luxe);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: translateX(-50%) scale(1); }
.nav__link:hover, .nav__link.is-active { color: #fff; }

.nav.is-scrolled {
  background: rgba(247, 244, 234, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(51, 64, 44, 0.12);
}
.nav.is-scrolled .nav__inner { padding-block: 0.8rem; }
.nav.is-scrolled .nav__brand { color: var(--sage-deep); }
.nav.is-scrolled .nav__brand span { color: var(--sage); }
.nav.is-scrolled .nav__link { color: var(--stone); }
.nav.is-scrolled .nav__link::after { background: var(--sage); }
.nav.is-scrolled .nav__link:hover,
.nav.is-scrolled .nav__link.is-active { color: var(--sage-deep); }

.nav__toggle {
  display: none;
  flex-direction: column; gap: 7px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav__toggle span {
  width: 26px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.4s var(--ease-luxe), background 0.4s ease;
}
.nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--sage-deep); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child  { transform: translateY(-4.5px) 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(247, 244, 234, 0.97);
    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(--sage-deep); position: relative; z-index: 2; }
  .nav__menu .nav__link { color: var(--moss); font-size: 1rem; }
}

/* ---------- 07. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--paper);
}
.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(51,64,44,0.5) 0%, rgba(51,64,44,0.28) 45%, rgba(51,64,44,0.6) 100%);
}
.hero__content { padding: 6rem 1.5rem 4rem; }
.hero__subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  text-transform: none; letter-spacing: 0.04em;
  color: var(--kraft);
}
.hero__names {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-hero);
  letter-spacing: 0.02em;
  margin: 0.8rem 0 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero__names span {
  font-family: var(--font-script);
  color: var(--kraft); font-size: 0.6em; 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;
}
.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.85);
}
.hero__scroll-text { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(var(--kraft), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: #fff;
  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(--sage); }
.welcome__flourish--flip { margin: 2.4rem auto 0; transform: scaleY(-1); }
.welcome__script {
  font-family: var(--font-script);
  font-size: var(--fs-script);
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 1.4rem;
}
.welcome__text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.55;
  color: var(--sage-deep);
}
.welcome__note { max-width: 54ch; margin: 1.8rem auto 0; color: var(--stone); }

/* ---------- 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 {
  position: relative;
  background: var(--paper);
  border: 1.5px dashed var(--sage-line);
  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) rotate(-0.4deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage);
}
.card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  background: rgba(125, 144, 112, 0.12);
  border: 1px solid var(--sage-line);
  border-radius: 50% 50% 50% 6px;
  color: var(--sage-deep);
  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(--sage-deep); color: var(--paper); transform: rotate(-8deg) scale(1.06); }
.card__title {
  font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.7rem; color: var(--sage-deep);
}
.card__text { color: var(--stone); font-size: 0.95rem; }

/* ---------- 10. Countdown ---------- */
.countdown { position: relative; overflow: hidden; text-align: center; color: var(--paper); }
.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(51, 64, 44, 0.72); }
.countdown__content { position: relative; z-index: 2; }
.countdown__title { font-size: var(--fs-h2); margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.countdown__grid {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.9rem, 4vw, 2.4rem);
  flex-wrap: wrap;
}
.countdown__unit {
  min-width: clamp(72px, 14vw, 120px);
  padding: 1.2rem 0.6rem 1rem;
  background: rgba(247, 244, 234, 0.1);
  border: 1px solid rgba(247, 244, 234, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.countdown__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--kraft);
}
.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: 0;
  border-left: 1.5px dashed var(--sage-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; }
/* leaf-shaped markers */
.timeline__dot {
  position: absolute; top: 4px; right: -8px;
  width: 16px; height: 16px;
  background: var(--sage);
  border: 0; border-radius: 0 100% 0 100%;
  transform: rotate(45deg);
  box-shadow: 0 0 0 6px var(--cream);
  z-index: 1;
}
.timeline__item:nth-child(even) .timeline__dot { right: auto; left: -8px; }
.timeline__card {
  text-align: right;
  background: var(--paper);
  border: 1px solid rgba(125,144,112,0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem;
}
.timeline__item:nth-child(even) .timeline__card { text-align: left; }
.timeline__time {
  font-family: var(--font-script);
  font-size: 1.3rem; font-weight: 600;
  color: var(--sage);
}
.timeline__title { font-size: 1.35rem; margin: 0.25rem 0 0.4rem; color: var(--sage-deep); }
.timeline__text { color: var(--stone); 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: 1px; right: auto; }
  .timeline__card,
  .timeline__item:nth-child(even) .timeline__card { text-align: left; }
}

/* ---------- 12. RSVP ---------- */
.rsvp__form {
  background: var(--paper);
  border: 1.5px dashed var(--sage-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid; gap: 1.9rem;
}
.rsvp__code-info {
  text-align: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem;
  color: var(--sage-deep);
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  background: rgba(125, 144, 112, 0.08);
}
.rsvp__code-info--error { color: #9c5a4a; border-color: rgba(156, 90, 74, 0.35); background: rgba(156, 90, 74, 0.06); }

.field { position: relative; }
.field__input {
  width: 100%;
  font: inherit; color: var(--moss);
  background: rgba(247, 244, 234, 0.6);
  border: 1px solid rgba(125, 144, 112, 0.3);
  border-radius: 10px;
  padding: 1.35rem 1rem 0.55rem;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.field__input:focus { outline: none; border-color: var(--sage-deep); background: var(--paper); }
.field__input--area { resize: vertical; min-height: 110px; }
.field__label {
  position: absolute; left: 1rem; top: 0.95rem;
  color: var(--stone);
  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(-0.62rem);
  font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage);
}

.rsvp__attendance { border: 0; }
.rsvp__legend {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  color: var(--sage-deep); 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: 1.5px solid rgba(125, 144, 112, 0.35);
  border-radius: 100px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxe);
}
.choice__pill:hover { border-color: var(--sage); }
.choice input:checked + .choice__pill {
  background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper);
  box-shadow: 0 8px 22px rgba(76, 95, 67, 0.3);
}
.choice input:focus-visible + .choice__pill { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

.rsvp__submit { justify-self: center; margin-top: 0.4rem; }
.rsvp__success {
  text-align: center;
  font-family: var(--font-script); font-size: 1.4rem;
  color: var(--sage-deep);
}

/* ---------- 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(--paper);
  border: 1px solid rgba(125, 144, 112, 0.25);
}
.location__map { min-height: 420px; }
.location__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: sepia(0.15) hue-rotate(45deg) saturate(0.8);
}
.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; color: var(--sage-deep); }
.location__address { color: var(--stone); }
.location__divider {
  width: 15px; height: 15px; margin-inline: auto;
  background: var(--sage);
  border-radius: 0 100% 0 100%;
  transform: rotate(45deg);
}
.location__hint { font-size: 0.9rem; color: var(--stone); 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 ---------- */
.faq__item {
  background: var(--paper);
  border: 1px solid rgba(125, 144, 112, 0.25);
  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(--sage); }
.faq__question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 500;
  text-align: left;
  color: var(--sage-deep);
  background: none; border: 0; cursor: pointer;
  padding: 1.3rem 1.6rem;
}
.faq__question:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: -2px; }
.faq__icon { position: relative; flex: 0 0 14px; height: 14px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--sage);
  border-radius: 2px;
  transition: transform 0.45s var(--ease-luxe);
}
.faq__icon::before { top: 50%; left: 0; width: 14px; height: 2px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; width: 2px; height: 14px; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }
.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(--stone);
  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;
  border: 6px solid var(--paper);
  box-shadow: 0 8px 26px rgba(51, 64, 44, 0.14);
  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) saturate(1.05); }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 800;
  display: grid; place-items: center;
  background: rgba(51, 64, 44, 0.93);
  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(247, 244, 234, 0.9);
  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: #fff; 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(--kraft); }

/* ---------- 16. Footer ---------- */
.footer {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  background: var(--moss);
  color: var(--cream);
}
.footer__names { font-family: var(--font-script); font-weight: 600; font-size: 2.6rem; }
.footer__names span { color: var(--kraft); font-size: 0.65em; }
.footer__date {
  margin-top: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(247, 244, 234, 0.65);
}
.footer__divider { width: 120px; margin: 1.6rem auto; color: var(--kraft); }
.footer__love { font-family: var(--font-serif); font-style: italic; color: rgba(247, 244, 234, 0.8); }

/* ---------- 17. Floating controls ---------- */
.fab {
  position: fixed; right: 1.4rem; z-index: 600;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50% 50% 50% 8px;
  border: 1px solid var(--sage-line);
  background: rgba(255, 253, 246, 0.9);
  backdrop-filter: blur(10px);
  color: var(--sage-deep);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-luxe), background 0.4s ease, color 0.4s ease;
}
.fab svg { width: 20px; height: 20px; }
.fab:hover { background: var(--sage-deep); color: var(--paper); transform: translateY(-3px); }
.fab--music { bottom: 1.4rem; }
.fab--top   { bottom: 4.9rem; }
.fab--top[hidden] { display: none; }
.fab--music.is-playing {
  color: var(--paper); background: var(--sage-deep);
  animation: musicPulse 2.4s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 95, 67, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(76, 95, 67, 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; }
}
