/* ============================================================
   Emma & James — Luxury Wedding Invitation
   A timeless, candlelit, gold-foil aesthetic.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --bg:          #FBF7F2;
  --ivory:       #FFFDFB;
  --champagne:   #F5EBDD;
  --gold:        #D4AF37;
  --gold-soft:   #E4CE8E;
  --rose-gold:   #C89B8A;
  --dusty-rose:  #D8B4A6;
  --charcoal:    #2B2B2B;
  --gray:        #777777;
  --white:       #FFFFFF;

  /* Typography */
  --f-head:  "Cormorant Garamond", Georgia, serif;
  --f-sub:   "Playfair Display", Georgia, serif;
  --f-body:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-script:"Great Vibes", cursive;

  /* Spacing & shape */
  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px -24px rgba(43, 43, 43, 0.28);
  --shadow-card: 0 24px 60px -30px rgba(120, 90, 50, 0.40);
  --shadow-gold: 0 18px 48px -16px rgba(212, 175, 55, 0.45);

  --gold-gradient: linear-gradient(135deg, #b8902e 0%, #e6c86a 28%, #f3e3ad 50%, #d4af37 74%, #b8902e 100%);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.012em;
  color: var(--charcoal);
  background-color: var(--bg);
  /* Subtle invitation paper texture */
  background-image:
    radial-gradient(circle at 18% 20%, rgba(212, 175, 55, 0.05), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(200, 155, 138, 0.06), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--ivory);
  padding: 10px 22px;
  border-radius: 0 0 12px 12px;
  z-index: 2000;
  transition: top 0.3s var(--ease);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 140px);
  overflow: hidden;
}
.section--alt {
  background:
    linear-gradient(180deg, rgba(245, 235, 221, 0.55), rgba(245, 235, 221, 0.25)),
    var(--bg);
}

/* ---------- Typography helpers ---------- */
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--left { text-align: left; margin-bottom: 28px; }

.section-head__eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 13px;
  font-weight: 500;
  color: var(--rose-gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
.section-head__sub {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--gray);
  font-size: 17px;
}
.section-head--left .section-head__sub { margin-inline: 0; }

.section-head__flourish {
  display: block;
  width: 64px;
  height: 18px;
  margin: 0 auto 20px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.3'%3E%3Cpath d='M2 12h40'/%3E%3Cpath d='M118 12H78'/%3E%3Cpath d='M60 4c-5 0-8 3-8 8 0 3 3 5 8 8 5-3 8-5 8-8 0-5-3-8-8-8z'/%3E%3Ccircle cx='60' cy='12' r='2' fill='%23D4AF37'/%3E%3C/g%3E%3C/svg%3E");
}
.section-head--left .section-head__flourish { margin-inline: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --b-pad-y: 16px;
  --b-pad-x: 38px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--b-pad-y) var(--b-pad-x);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              background-color 0.5s var(--ease), color 0.5s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.btn--sm { --b-pad-y: 12px; --b-pad-x: 28px; font-size: 12px; }

.btn--gold {
  background: var(--gold-gradient);
  background-size: 200% 200%;
  color: #4a380e;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -18px rgba(212, 175, 55, 0.6);
}
.btn--outline {
  background: rgba(255, 255, 255, 0.35);
  border-color: var(--gold);
  color: var(--charcoal);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--ivory);
  box-shadow: var(--shadow-gold);
}

/* Shimmer sweep */
.btn--shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--shimmer:hover::after { transform: translateX(120%); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease), padding 0.5s var(--ease);
  padding-block: 10px;
}
.site-header.is-scrolled {
  background: rgba(251, 247, 242, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 30px -18px rgba(43, 43, 43, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.monogram {
  font-family: var(--f-head);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  line-height: 1;
}
.monogram__amp {
  font-family: var(--f-script);
  font-size: 0.72em;
  color: var(--gold);
  margin-inline: 1px;
  vertical-align: -0.04em;
}
.is-scrolled .monogram { color: var(--charcoal); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav__link {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-block: 6px;
  transition: color 0.4s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover { color: var(--gold); }

.nav__link--cta {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 9px 22px;
  background: var(--gold);
  color: var(--charcoal);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--gold-soft); color: var(--charcoal); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 26px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), background-color 0.4s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -8% 0 0 0;
  height: 116%;
  background: center/cover no-repeat url("../images/wedding-hero.webp");
  z-index: -3;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 253, 251, 0.50), transparent 60%),
    linear-gradient(105deg, rgba(251, 247, 242, 0.95) 0%, rgba(251, 247, 242, 0.75) 38%, rgba(245, 235, 221, 0.50) 70%, rgba(43, 43, 43, 0.25) 100%);
}
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 120px 80px;
}
.hero__eyebrow {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--rose-gold);
  margin-bottom: 22px;
}
.hero__names {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 90px);
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 14px;
  text-shadow: 0 2px 30px rgba(255, 253, 251, 0.6);
}
.hero__amp { color: var(--gold); }
.hero__invite {
  font-family: var(--f-head);
  font-size: clamp(24px, 3.5vw, 36px);
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 30px;
}
.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
  font-family: var(--f-sub);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.hero__divider {
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero__scroll-dot {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* Floating particles & petals (created by JS) */
.particle {
  position: absolute;
  top: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6d8, var(--gold));
  box-shadow: 0 0 8px 1px rgba(212, 175, 55, 0.55);
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translateY(-46vh) translateX(18px) scale(1.15); opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-94vh) translateX(-10px) scale(0.9); opacity: 0; }
}
.petal {
  position: absolute;
  width: 16px; height: 16px;
  background: radial-gradient(circle at 35% 30%, var(--dusty-rose), var(--rose-gold));
  border-radius: 80% 0 80% 0;
  opacity: 0;
  animation: petalFall linear infinite;
  filter: drop-shadow(0 2px 4px rgba(200, 155, 138, 0.4));
}
@keyframes petalFall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.5vw, 30px);
  max-width: 860px;
  margin-inline: auto;
}
.count-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 40px) 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.count-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.count-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.count-card__num {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.count-card__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

/* ============================================================
   OUR STORY
   ============================================================ */
.story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.framed-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.framed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.framed-image:hover img { transform: scale(1.04); }
.framed-image__corner {
  position: absolute;
  width: 54px; height: 54px;
  border: 1px solid var(--gold);
  z-index: 2;
  pointer-events: none;
}
.framed-image__corner--tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.framed-image__corner--br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.story__lead {
  font-family: var(--f-head);
  font-size: clamp(20px, 2.6vw, 24px);
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 36px;
}

.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(212,175,55,0.2));
}
.timeline__item {
  position: relative;
  padding-bottom: 34px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -36px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}
.timeline__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline__year {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-gold);
}
.timeline__title {
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 600;
  margin: 2px 0 6px;
}
.timeline__body p { color: var(--gray); font-size: 16.5px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: clamp(14px, 1.8vw, 24px);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.gallery__item--tall { grid-row: auto; }
.gallery__item--wide { grid-column: auto; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__glow {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 0 rgba(212, 175, 55, 0);
  transition: box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
  pointer-events: none;
}
.gallery__item:hover .gallery__glow {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.28), 0 0 30px rgba(212, 175, 55, 0.25);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(33, 28, 22, 0.86);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  border: 1px solid rgba(212, 175, 55, 0.4);
  transform: scale(0.94);
  transition: transform 0.5s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 253, 251, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--ivory);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--charcoal); transform: scale(1.08); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.08); }

/* ============================================================
   DETAILS CARDS
   ============================================================ */
.details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
}
.detail-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.detail-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: var(--shadow-card), 0 0 40px -10px rgba(212, 175, 55, 0.4);
}
.detail-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 50% 40%, rgba(212,175,55,0.14), rgba(245,235,221,0.5));
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.detail-card__title {
  font-family: var(--f-head);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
}
.detail-card__time {
  font-family: var(--f-sub);
  font-style: italic;
  color: var(--rose-gold);
  font-size: 18px;
  margin-bottom: 14px;
}
.detail-card__addr {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.detail-card__desc { font-size: 15.5px; color: var(--gray); }

/* ============================================================
   SCHEDULE TIMELINE
   ============================================================ */
.schedule__timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}
.schedule__timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  transform: translateX(-50%);
}
.schedule__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.schedule__item:last-child { margin-bottom: 0; }
.schedule__time {
  font-family: var(--f-sub);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  text-align: right;
}
.schedule__dot {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12);
  z-index: 1;
}
.schedule__card {
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.schedule__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.schedule__card h3 { font-family: var(--f-head); font-size: 23px; font-weight: 600; }
.schedule__card p { font-size: 15px; color: var(--gray); }

/* Alternate sides */
.schedule__item:nth-child(even) .schedule__time { order: 3; text-align: left; }
.schedule__item:nth-child(even) .schedule__dot { order: 2; }
.schedule__item:nth-child(even) .schedule__card { order: 1; text-align: right; }

/* ============================================================
   LOVE NOTE
   ============================================================ */
.lovenote { text-align: center; }
.lovenote__inner {
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}
.lovenote__mark {
  display: block;
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 18px;
}
.lovenote__quote {
  font-family: var(--f-head);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.4;
  color: var(--charcoal);
}
.lovenote__quote::before { content: "\201C"; }
.lovenote__quote::after { content: "\201D"; }
.lovenote__cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp__card {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 60px);
  box-shadow: var(--shadow-card);
}
.rsvp__card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.rsvp__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label, .field__legend {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-gold);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(120, 120, 120, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}
.field input.is-invalid,
.field select.is-invalid { border-color: #c0654f; box-shadow: 0 0 0 4px rgba(192, 101, 79, 0.12); }
.field__error {
  font-size: 12.5px;
  color: #b65741;
  letter-spacing: 0.03em;
  min-height: 1px;
}

.choice { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.choice__opt {
  position: relative;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(120, 120, 120, 0.25);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--charcoal);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rose-gold);
  flex: none;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.choice__opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.choice__opt:has(input:checked)::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--white);
}

.rsvp__submit-wrap { justify-self: center; margin-top: 8px; }
.rsvp__submit { min-width: 280px; }

/* Success */
.rsvp__success {
  text-align: center;
  padding: clamp(20px, 4vw, 40px) 10px;
  animation: fadeUp 0.8s var(--ease) both;
}
.check { display: inline-block; color: var(--gold); margin-bottom: 18px; }
.check__circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: drawCircle 0.9s var(--ease) forwards;
}
.check__mark {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.5s var(--ease) 0.7s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.rsvp__success-title {
  font-family: var(--f-head);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  margin-bottom: 12px;
}
.rsvp__success-text { color: var(--gray); max-width: 460px; margin-inline: auto; }

/* ============================================================
   HOTELS
   ============================================================ */
.hotels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
}
.hotel-card {
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.hotel-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card), 0 0 36px -12px rgba(212, 175, 55, 0.35);
}
.hotel-card__media { overflow: hidden; aspect-ratio: 3 / 2; }
.hotel-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.hotel-card:hover .hotel-card__media img { transform: scale(1.07); }
.hotel-card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.hotel-card__name { font-family: var(--f-head); font-size: 27px; font-weight: 600; margin-bottom: 6px; }
.hotel-card__addr { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-gold); margin-bottom: 14px; }
.hotel-card__desc { font-size: 15px; color: var(--gray); margin-bottom: 22px; }
.hotel-card__body .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion__item {
  background: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.accordion__item.is-open {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--shadow-soft);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
}
.accordion__icon {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.accordion__icon::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.accordion__icon::after { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.accordion__item.is-open .accordion__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.accordion__inner {
  padding: 0 26px 24px;
  color: var(--gray);
  font-size: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.10), transparent 60%),
    var(--charcoal);
  color: #e9e4dc;
  text-align: center;
  padding-block: clamp(56px, 8vw, 90px);
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__monogram { font-size: 48px; color: var(--gold-soft); margin-bottom: 8px; }
.footer__monogram .monogram__amp { color: var(--gold); }
.footer__names {
  font-family: var(--f-script);
  font-size: 38px;
  color: var(--ivory);
  margin-bottom: 14px;
}
.footer__rule { width: 60px; height: 1px; background: var(--gold); margin-bottom: 14px; }
.footer__meta {
  font-family: var(--f-sub);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
  color: #c9c3b9;
  margin-bottom: 26px;
}
.footer__social { display: flex; gap: 16px; margin-bottom: 30px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  color: var(--gold-soft);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.footer__social a:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-4px); }
.footer__message {
  font-family: var(--f-head);
  font-style: italic;
  font-size: clamp(22px, 4vw, 30px);
  color: var(--ivory);
  margin-bottom: 12px;
}
.footer__credit { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #8d877d; }

/* ============================================================
   DECORATIVE ELEMENTS
   ============================================================ */
.corner-ornament {
  position: absolute;
  width: clamp(60px, 9vw, 120px);
  height: clamp(60px, 9vw, 120px);
  z-index: 3;
  pointer-events: none;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.2' opacity='0.85'%3E%3Cpath d='M4 4v34'/%3E%3Cpath d='M4 4h34'/%3E%3Cpath d='M4 22c14 0 22-8 22-18'/%3E%3Cpath d='M22 4c0 9-5 14-12 16'/%3E%3Ccircle cx='30' cy='30' r='2.4' fill='%23D4AF37'/%3E%3Cpath d='M30 16c4 2 7 6 7 12'/%3E%3Cpath d='M16 30c2-4 6-7 12-7'/%3E%3C/g%3E%3C/svg%3E");
}
.corner-ornament--dark {
  filter: none;
  opacity: 0.7;
}
.corner-ornament--tl { top: 18px; left: 18px; }
.corner-ornament--tr { top: 18px; right: 18px; transform: scaleX(-1); }
.corner-ornament--bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.corner-ornament--br { bottom: 18px; right: 18px; transform: scale(-1, -1); }

/* Monogram watermark */
.watermark {
  position: absolute;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(180px, 34vw, 440px);
  line-height: 1;
  color: rgba(212, 175, 55, 0.05);
  top: 50%; left: 0;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.watermark--center { left: 50%; transform: translate(-50%, -50%); }
.story__layout, .story__content, .lovenote__inner { position: relative; z-index: 1; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gallery__grid { grid-auto-rows: 240px; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  /* Nav → mobile drawer */
  .nav__toggle { display: flex; z-index: 1100; }
  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 80px 40px;
    background: rgba(251, 247, 242, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: -20px 0 60px -30px rgba(43, 43, 43, 0.5);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
    z-index: 1050;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { font-size: 18px; }
  .nav__link--cta { align-self: flex-start; }

  body.nav-open { overflow: hidden; }

  .story__layout { grid-template-columns: 1fr; }
  .story__media { max-width: 480px; margin-inline: auto; }
  .details__grid,
  .hotels__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  /* Schedule → single side rail */
  .schedule__timeline::before { left: 8px; transform: none; }
  .schedule__item,
  .schedule__item:nth-child(even) {
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 8px 20px;
    text-align: left;
  }
  .schedule__dot,
  .schedule__item:nth-child(even) .schedule__dot {
    order: 1;
    grid-column: 1;
    grid-row: 1;
    margin-top: 8px;
  }
  .schedule__time,
  .schedule__item:nth-child(even) .schedule__time {
    order: 2;
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    display: block;
  }
  .schedule__card,
  .schedule__item:nth-child(even) .schedule__card {
    order: 3;
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .countdown__grid { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .rsvp__form { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .rsvp__submit { min-width: 0; width: 100%; }
}

@media (max-width: 380px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  :root { --gutter: 18px; }
}
