/* ============================================================
   TERRACOTTA BOHO — WEDDING INVITATION THEME
   Warm Mediterranean · terracotta & sand · arches and sun
   Same structure & JS hooks as the base template.
============================================================ */

/* ---------- 01. Design tokens ---------- */
:root {
  --sand:       #f6eee1;
  --cream:      #fdf9f0;
  --clay:       #e3c9ad;
  --terra:      #c05f33;
  --terra-deep: #96431f;
  --terra-line: rgba(192, 95, 51, 0.35);
  --cocoa:      #4a3327;
  --taupe:      #8f7a67;

  --font-script: "Ephesis", cursive;
  --font-serif:  "Fraunces", Georgia, serif;
  --font-sans:   "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-hero:    clamp(3.2rem, 8.5vw, 6.2rem);
  --fs-h2:      clamp(1.9rem, 4.5vw, 3rem);
  --fs-script:  clamp(1.9rem, 4vw, 3rem);
  --fs-body:    clamp(0.98rem, 1.1vw, 1.08rem);

  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 18px;
  --arch: 220px 220px 18px 18px;
  --shadow-soft:  0 12px 38px rgba(74, 51, 39, 0.12);
  --shadow-hover: 0 18px 48px rgba(74, 51, 39, 0.18);
  --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(--cocoa);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(227, 201, 173, 0.4), transparent 60%),
    radial-gradient(700px 500px at 0% 45%, rgba(192, 95, 51, 0.07), transparent 55%),
    var(--sand);
  -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(--terra); color: var(--cream); }

/* ---------- 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, var(--cream) 0%, var(--clay) 180%);
}

.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);
  color: var(--terra);
  margin-bottom: 0.3rem;
}
.section-head__script--light { color: var(--clay); }
.section-head__title {
  font-size: var(--fs-h2);
  letter-spacing: 0.04em;
  color: var(--cocoa);
}
/* boho sun under each title */
.section-head__title::after {
  content: "";
  display: block;
  width: 14px; height: 14px;
  margin: 1.2rem auto 0;
  border-radius: 50%;
  background: var(--terra);
  box-shadow:
    0 0 0 4px var(--sand), 0 0 0 5px var(--terra-line),
    -26px 0 0 -4px var(--clay), 26px 0 0 -4px var(--clay);
}
.section-head__sub { margin-top: 1.2rem; color: var(--taupe); font-style: italic; font-family: var(--font-serif); }

/* Buttons — warm rounded */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.7rem;
  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(--terra-deep); outline-offset: 3px; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-luxe);
}
.btn:hover::after { transform: translateX(120%); }

.btn--gold {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-deep) 100%);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(150, 67, 31, 0.35);
}
.btn--gold:hover { box-shadow: 0 14px 36px rgba(150, 67, 31, 0.45); }

.btn--outline-light {
  border-color: rgba(253, 249, 240, 0.8);
  color: var(--cream);
  background: rgba(74, 51, 39, 0.22);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { background: rgba(253, 249, 240, 0.2); border-color: var(--cream); }

/* 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(--sand);
  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.8rem; letter-spacing: 0.15em; text-align: center;
  color: var(--terra);
}
.preloader__bar { width: 160px; height: 2px; background: var(--clay); overflow: hidden; border-radius: 2px; }
.preloader__bar span {
  display: block; height: 100%; width: 40%;
  background: var(--terra);
  animation: loadbar 1.2s var(--ease-luxe) infinite;
}
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

/* ---------- 05. Opening invitation — arch card ---------- */
.invitation-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(246, 238, 225, 0.7), rgba(192, 95, 51, 0.4)),
    url("https://picsum.photos/seed/tboho-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(--clay); background-image: none; }
}
.invitation-overlay.is-open { opacity: 0; visibility: hidden; }

.invitation-card {
  width: min(440px, 100%);
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(74, 51, 39, 0.35);
  padding: 1rem;
  border-radius: var(--arch);
  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(--terra-line);
  border-radius: 210px 210px 10px 10px;
  padding: clamp(3rem, 8vw, 4.2rem) clamp(1.6rem, 5vw, 2.8rem) clamp(2.2rem, 6vw, 3.2rem);
  text-align: center;
}
/* suns instead of hard corners */
.invitation-card__corner {
  position: absolute; width: 14px; height: 14px;
  border: 0 !important;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--terra-line);
}
.invitation-card__corner--tl { top: 18%; left: -7px; }
.invitation-card__corner--br { bottom: -7px; right: 14%; }
.invitation-card__eyebrow {
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600;
  color: var(--taupe);
}
.invitation-card__divider { width: 120px; margin: 1.3rem auto; color: var(--terra); }
.invitation-card__names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.9rem, 8vw, 4.1rem);
  color: var(--terra-deep);
}
.invitation-card__names span { color: var(--terra); font-size: 0.6em; }
.invitation-card__date {
  margin-top: 0.9rem;
  font-family: var(--font-serif); font-style: italic;
  color: var(--taupe);
}
.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-size: 1.9rem;
  text-decoration: none; color: var(--cream);
  transition: color 0.5s ease;
}
.nav__brand span { color: var(--clay); }
.nav__menu { display: flex; gap: clamp(1rem, 2vw, 1.8rem); }
.nav__link {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  text-decoration: none; color: rgba(253, 249, 240, 0.88);
  padding: 0.35rem 0.95rem; position: relative;
  border-radius: 100px 100px 100px 100px;
  transition: color 0.4s ease, background 0.4s ease;
}
.nav__link::after { display: none; }
.nav__link:hover, .nav__link.is-active { color: var(--cream); background: rgba(253, 249, 240, 0.16); }

.nav.is-scrolled {
  background: rgba(246, 238, 225, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 26px rgba(74, 51, 39, 0.14);
}
.nav.is-scrolled .nav__inner { padding-block: 0.8rem; }
.nav.is-scrolled .nav__brand { color: var(--terra-deep); }
.nav.is-scrolled .nav__brand span { color: var(--terra); }
.nav.is-scrolled .nav__link { color: var(--taupe); }
.nav.is-scrolled .nav__link:hover,
.nav.is-scrolled .nav__link.is-active { color: var(--terra-deep); background: rgba(192, 95, 51, 0.14); }

.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: var(--cream);
  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(--terra-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: 1.6rem;
    background: rgba(246, 238, 225, 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(--terra-deep); position: relative; z-index: 2; }
  .nav__menu .nav__link { color: var(--cocoa); font-size: 1rem; }
}

/* ---------- 07. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--cream);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.25) saturate(1.15) hue-rotate(-8deg);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(74,51,39,0.5) 0%, rgba(150,67,31,0.25) 45%, rgba(74,51,39,0.62) 100%);
}
.hero__content { padding: 6rem 1.5rem 4rem; }
.hero__subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-transform: none;
  color: var(--clay);
}
.hero__names {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-hero);
  letter-spacing: 0.01em;
  margin: 0.8rem 0 1.2rem;
  text-shadow: 0 4px 30px rgba(74, 51, 39, 0.5);
}
.hero__names span {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--clay); font-size: 0.62em; 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(253, 249, 240, 0.85);
}
.hero__scroll-text { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; }
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(var(--clay), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--cream);
  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(--terra); }
.welcome__flourish--flip { margin: 2.4rem auto 0; transform: scaleY(-1); }
.welcome__script {
  font-family: var(--font-script);
  font-size: var(--fs-script);
  color: var(--terra);
  margin-bottom: 1.4rem;
}
.welcome__text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.55;
  color: var(--cocoa);
}
.welcome__note { max-width: 54ch; margin: 1.8rem auto 0; color: var(--taupe); }

/* ---------- 09. Details cards — arched ---------- */
.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(--cream);
  border: 1px solid rgba(192, 95, 51, 0.2);
  border-radius: var(--arch);
  box-shadow: var(--shadow-soft);
  padding: clamp(2.4rem, 5vw, 3.2rem) 1.8rem clamp(2rem, 4vw, 2.6rem);
  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(--terra-line);
}
.card__icon {
  width: 58px; height: 66px;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(227, 201, 173, 0.45), rgba(192, 95, 51, 0.12));
  border: 1px solid var(--terra-line);
  border-radius: 100px 100px 10px 10px;   /* little arch */
  color: var(--terra-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: linear-gradient(180deg, var(--terra), var(--terra-deep));
  color: var(--cream);
  transform: scale(1.06);
}
.card__title {
  font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.7rem; color: var(--terra-deep);
}
.card__text { color: var(--taupe); font-size: 0.95rem; }

/* ---------- 10. Countdown ---------- */
.countdown { position: relative; overflow: hidden; text-align: center; color: var(--cream); }
.countdown__bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.countdown__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.3) saturate(1.1);
}
.countdown__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(74, 51, 39, 0.78), rgba(150, 67, 31, 0.62));
}
.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: flex-end; justify-content: center;
  gap: clamp(0.9rem, 4vw, 2.2rem);
  flex-wrap: wrap;
}
/* arch-shaped units */
.countdown__unit {
  min-width: clamp(78px, 15vw, 130px);
  padding: 2rem 0.8rem 1.2rem;
  background: rgba(253, 249, 240, 0.12);
  border: 1px solid rgba(253, 249, 240, 0.3);
  border-radius: 130px 130px 14px 14px;
  backdrop-filter: blur(6px);
}
.countdown__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
}
.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 dotted var(--terra-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; }
/* sun markers */
.timeline__dot {
  position: absolute; top: 6px; right: -7.5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--terra);
  border: 0;
  box-shadow: 0 0 0 5px var(--sand), 0 0 0 6px var(--terra-line);
  z-index: 1;
}
.timeline__item:nth-child(even) .timeline__dot { right: auto; left: -7.5px; }
.timeline__card {
  text-align: right;
  background: var(--cream);
  border: 1px solid rgba(192, 95, 51, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.7rem;
}
.timeline__item:nth-child(even) .timeline__card { text-align: left; }
.timeline__time {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--terra);
}
.timeline__title { font-size: 1.35rem; margin: 0.2rem 0 0.4rem; color: var(--cocoa); }
.timeline__text { color: var(--taupe); 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(--cream);
  border: 1px solid rgba(192, 95, 51, 0.2);
  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(--terra-deep);
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--terra-line);
  border-radius: var(--radius);
  background: rgba(192, 95, 51, 0.06);
}
.rsvp__code-info--error { color: #93392b; border-color: rgba(147, 57, 43, 0.4); background: rgba(147, 57, 43, 0.06); }

.field { position: relative; }
.field__input {
  width: 100%;
  font: inherit; color: var(--cocoa);
  background: rgba(246, 238, 225, 0.7);
  border: 1px solid rgba(192, 95, 51, 0.25);
  border-radius: 12px;
  padding: 1.35rem 1.1rem 0.55rem;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.field__input:focus {
  outline: none; border-color: var(--terra);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(192, 95, 51, 0.12);
}
.field__input--area { resize: vertical; min-height: 110px; }
.field__label {
  position: absolute; left: 1.1rem; top: 0.95rem;
  color: var(--taupe);
  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;
  font-weight: 600;
  color: var(--terra);
}

.rsvp__attendance { border: 0; }
.rsvp__legend {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  color: var(--terra-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(192, 95, 51, 0.35);
  border-radius: 100px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxe);
}
.choice__pill:hover { border-color: var(--terra); background: rgba(227, 201, 173, 0.25); }
.choice input:checked + .choice__pill {
  background: linear-gradient(135deg, var(--terra), var(--terra-deep));
  border-color: var(--terra); color: var(--cream);
  box-shadow: 0 8px 22px rgba(150, 67, 31, 0.35);
}
.choice input:focus-visible + .choice__pill { outline: 2px solid var(--terra-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.6rem;
  color: var(--terra-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(--cream);
  border: 1px solid rgba(192, 95, 51, 0.2);
}
.location__map { min-height: 420px; }
.location__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: sepia(0.35) saturate(0.95);
}
.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(--terra-deep); }
.location__address { color: var(--taupe); }
.location__divider {
  width: 12px; height: 12px; margin-inline: auto;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--terra-line);
}
.location__hint { font-size: 0.9rem; color: var(--taupe); 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(--cream);
  border: 1px solid rgba(192, 95, 51, 0.18);
  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(--terra-line); }
.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(--cocoa);
  background: none; border: 0; cursor: pointer;
  padding: 1.3rem 1.6rem;
}
.faq__question:focus-visible { outline: 2px solid var(--terra-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(--terra);
  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(--taupe);
  transition: padding 0.5s var(--ease-luxe);
}
.faq__item.is-open .faq__answer-inner { padding: 0 1.6rem 1.4rem; }

/* ---------- 15. Gallery & lightbox — arched photos ---------- */
.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 10px 30px rgba(74, 51, 39, 0.18);
  cursor: zoom-in;
}
/* every third photo gets the arch treatment */
.gallery__item:nth-child(3n + 1) { border-radius: 160px 160px 14px 14px; }
.gallery__item img {
  width: 100%;
  filter: sepia(0.18) saturate(1.05);
  transition: transform 0.8s var(--ease-luxe), filter 0.8s ease;
}
.gallery__item:hover img { transform: scale(1.06); filter: sepia(0) saturate(1.1); }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 800;
  display: grid; place-items: center;
  background: rgba(74, 51, 39, 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(253, 249, 240, 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: var(--cream); 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(--clay); }

/* ---------- 16. Footer ---------- */
.footer {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  background: linear-gradient(160deg, var(--cocoa), #35241b);
  color: var(--sand);
}
.footer__names { font-family: var(--font-script); font-size: 2.7rem; color: var(--cream); }
.footer__names span { color: var(--clay); font-size: 0.65em; }
.footer__date {
  margin-top: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600;
  color: rgba(246, 238, 225, 0.6);
}
.footer__divider { width: 120px; margin: 1.6rem auto; color: var(--clay); }
.footer__love { font-family: var(--font-serif); font-style: italic; color: rgba(246, 238, 225, 0.85); }

/* ---------- 17. Floating controls ---------- */
.fab {
  position: fixed; right: 1.4rem; z-index: 600;
  width: 48px; height: 52px;
  display: grid; place-items: center;
  border-radius: 100px 100px 12px 12px;
  border: 1px solid var(--terra-line);
  background: rgba(253, 249, 240, 0.92);
  backdrop-filter: blur(10px);
  color: var(--terra-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: linear-gradient(180deg, var(--terra), var(--terra-deep));
  color: var(--cream); transform: translateY(-3px);
}
.fab--music { bottom: 1.4rem; }
.fab--top   { bottom: 5.1rem; }
.fab--top[hidden] { display: none; }
.fab--music.is-playing {
  color: var(--cream);
  background: linear-gradient(180deg, var(--terra), var(--terra-deep));
  animation: musicPulse 2.4s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 95, 51, 0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(192, 95, 51, 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; }
}
