/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  --gold: #C8A96E;
  --gold-light: #E2C99A;
  --gold-dark: #A8844A;
  --cream: #FAF8F4;
  --cream-dark: #F2EEE6;
  --champagne: #F5ECD7;
  --ink: #1A1714;
  --ink-soft: #3D3530;
  --ink-muted: #6B5F56;
  --white: #FFFFFF;
  --dark-bg: #0E0C0A;
  --dark-surface: #181410;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, sans-serif;

  --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-silk: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);

  --section-pad: clamp(5rem, 10vw, 9rem);
  --container-lg: 1140px;
  --container-sm: 680px;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════
   PETAL CANVAS — global, behind everything
═══════════════════════════════════════════════════ */
#petal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* petals sit above background but below all UI content */
}

/* ═══════════════════════════════════════════════════
   AUDIO FAB
═══════════════════════════════════════════════════ */
#audio-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 8000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 110, 0.5);
  background: rgba(14, 12, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-premium);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

#audio-fab:hover {
  border-color: var(--gold);
  transform: scale(1.1);
}

#audio-fab svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

#audio-fab.playing {
  border-color: var(--gold);
}

/* Ripple on click */
.fab-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.35) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

#audio-fab:active .fab-ripple {
  transform: scale(2.5);
  opacity: 1;
}

/* Spinning music note animation when playing */
#audio-fab.playing #audio-icon-pause {
  animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

/* ═══════════════════════════════════════════════════
   INTRO OVERLAY
═══════════════════════════════════════════════════ */
/* Container & 3D Stage */
/* Restored original light background */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: #FAF8F4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#envelope-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#env3d-stage {
  perspective: 1400px;
  perspective-origin: 50% 50%;
  width: clamp(260px, 45vw, 380px);
  margin-bottom: 2rem;
}

#env3d-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 66%;
  /* Adjusts aspect ratio */
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* =========================================
   THE FIX: STRICT Z-AXIS LAYERING 
   ========================================= */

/* 1. Back of envelope goes backward */
.env-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #FDF9F1 0%, #F5ECDD 50%, #EBDDC3 100%);
  border-radius: 6px 6px 4px 4px;
  transform: translateZ(-5px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* 2. The card sits at 0 (sandwiched inside) */
#env-card {
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  transform: translateZ(0px);
}

/* 3. Front flaps go forward */
.env-side-left,
.env-side-right,
.env-bottom-flap {
  position: absolute;
  transform: translateZ(5px);
}

/* ========================================= */

.env-side {
  top: 0;
  bottom: 0;
  width: 52%;
}

.env-side-left {
  left: 0;
  background: linear-gradient(to right, #F5ECDD, #EBDDC3);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.env-side-right {
  right: 0;
  background: linear-gradient(to left, #F5ECDD, #EBDDC3);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.env-bottom-flap {
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, #EBDDC3 0%, #F5ECDD 100%);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  border-radius: 0 0 4px 4px;
}

/* Top Flap */
#env-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: translateZ(6px);
  /* Highest point when closed */
}

.flap-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #FDF9F1 0%, #EBDDC3 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  backface-visibility: hidden;
}

#wax-seal {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
}

/* The Card Styling */
.card-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #FFFDF9 0%, #F8F1E4 100%);
  border: 1px solid rgba(200, 169, 110, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 4px;
  padding: 1rem;
}

.card-monogram {
  font-family: serif;
  font-size: 2rem;
  color: #333;
}

.card-rule {
  width: 40%;
  height: 1px;
  background: #C8A96E;
}

.card-date {
  font-family: sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #C8A96E;
}

.card-venue {
  font-family: serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #555;
}

/* UI */
#intro-tagline {
  font-family: serif;
  font-size: 1.2rem;
  color: #555;
  opacity: 0;
}

#open-invite-btn {
  margin-top: 20px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid #C8A96E;
  color: #333;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
  opacity: 0;
  pointer-events: auto; /* GSAP will overwrite opacity, but we can safely leave pointer-events auto if it's invisible to the eye it's fine, but better to prevent clicking during envelope float */
}

#open-invite-btn:hover {
  background: #C8A96E;
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Instant fallback background so white text is legible while the heavy image loads */
  background-color: #1A1714;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 8, 6, 0.32) 0%,
      rgba(10, 8, 6, 0.52) 55%,
      rgba(10, 8, 6, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-light);
}

h1.hero-names {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.ampersand {
  font-style: italic;
  font-size: 0.6em;
  color: var(--gold-light);
  line-height: 1;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 180px;
  margin: 0.5rem 0;
}

.hero-divider span:not(.diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.hero-divider .diamond {
  color: var(--gold);
  font-size: 0.5rem;
}

.hero-location {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

a.hero-cta {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.9rem 2.8rem;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

a.hero-cta span,
button.btn-primary span {
  position: relative;
  z-index: 2;
}

a.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-premium);
}

a.hero-cta:hover,
a.hero-cta.clicked {
  color: var(--white);
}

a.hero-cta:hover::after,
a.hero-cta.clicked::after {
  transform: scaleX(1);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(200, 169, 110, 0.8), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.2s var(--ease-silk) infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ═══════════════════════════════════════════════════
   FLORAL DIVIDER
═══════════════════════════════════════════════════ */
.floral-divider-wrap {
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
  position: relative;
  z-index: 2;
}

.floral-img {
  width: min(700px, 95vw);
  height: auto;
  opacity: 0.88;
  filter: saturate(0.8);
}

.floral-flip .floral-img {
  transform: scaleX(-1);
}

/* ═══════════════════════════════════════════════════
   DECORATIVE ANIMATED ICONS
═══════════════════════════════════════════════════ */
.animated-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.anim-heart {
  animation: heartbeat 2.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 12px rgba(200, 169, 110, 0.45));
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  10% {
    transform: scale(1.15);
  }

  20% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.15);
  }

  40% {
    transform: scale(1);
  }
}

.anim-flower {
  animation: spinSlow 14s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(200, 169, 110, 0.25));
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.container.narrow {
  max-width: var(--container-sm);
}

.section-padded {
  padding-block: var(--section-pad);
  position: relative;
  z-index: 2;
}

.bg-cream {
  background: var(--cream-dark);
}

.bg-dark {
  background: var(--champagne);
}

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.2rem;
}

.section-label.light {
  color: var(--gold-light);
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  margin-bottom: 2rem;
}

.section-heading.light {
  color: var(--white);
}

.section-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 1.2rem;
}

.section-body.light {
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════════════════
   DETAILS RIBBON
═══════════════════════════════════════════════════ */
.details-ribbon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--champagne);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.detail-card {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.3s var(--ease-premium);
}

.detail-card:hover {
  transform: translateY(-4px);
}

.detail-card h3 {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  margin-top: 1rem;
}

.detail-card p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.detail-primary {
  font-size: 1.3rem !important;
  color: var(--ink) !important;
  font-weight: 500 !important;
}

.detail-icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.detail-icon svg {
  width: 100%;
  height: 100%;
}

.detail-divider {
  width: 1px;
  background: rgba(200, 169, 110, 0.18);
  margin-block: 1rem;
  align-self: stretch;
  flex-shrink: 0;
}

@media (max-width:700px) {
  .detail-divider {
    display: none;
  }

  .details-ribbon {
    flex-direction: column;
  }

  .detail-card {
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  }
}

/* ═══════════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════════ */
.timeline {
  position: relative;
  margin-top: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.timeline-time {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--cream-dark);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s var(--ease-premium);
}

.timeline-item:hover .timeline-dot {
  background: var(--gold);
  transform: scale(1.5);
}

.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

@media (max-width:600px) {
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 20px 1fr;
  }

  .timeline-time {
    display: none;
  }

  .timeline-content {
    padding-left: 0.5rem;
  }

  .timeline-dot {
    width: 8px;
    height: 8px;
  }
}

/* ═══════════════════════════════════════════════════
   MAP — GLASSMORPHISM
═══════════════════════════════════════════════════ */
#location {
  z-index: 2;
}

.map-glass-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: clamp(360px, 56vw, 540px);
  box-shadow:
    0 0 0 1px rgba(200, 169, 110, 0.25),
    0 24px 80px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Corner accent decorations */
.map-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  z-index: 4;
  pointer-events: none;
}

.map-corner-tl {
  top: 12px;
  left: 12px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
  border-radius: 2px 0 0 0;
}

.map-corner-tr {
  top: 12px;
  right: 12px;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
  border-radius: 0 2px 0 0;
}

.map-corner-bl {
  bottom: 12px;
  left: 12px;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
  border-radius: 0 0 0 2px;
}

.map-corner-br {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
  border-radius: 0 0 2px 0;
}

.map-glass-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.map-glass-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Grayscale palette matching the site + slight vignette via contrast */
  filter: grayscale(1) contrast(0.92) brightness(0.95) sepia(0.08);
  transition: filter 0.6s var(--ease-premium);
  display: block;
}

.map-glass-inner:hover iframe {
  filter: grayscale(0.5) contrast(1) brightness(1) sepia(0.04);
}

/* Glassmorphism overlay card */
.map-glass-card {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 3;
  /* Core glassmorphism */
  background: rgba(250, 248, 244, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-radius: 10px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  min-width: 210px;
  /* Fade-in when map is in view */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.map-glass-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold accent bar at top of glass card */
.map-glass-card::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
}

.map-glass-card-body {
  padding: 1.2rem 1.6rem 1.4rem;
}

.map-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.map-glass-card p {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.65;
}

a.map-directions-btn {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(200, 169, 110, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.map-directions-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width:480px) {
  .map-glass-card {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    min-width: unset;
  }
}

/* ═══════════════════════════════════════════════════
   RSVP FORM
═══════════════════════════════════════════════════ */
.rsvp-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

@media (max-width:580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(200, 169, 110, 0.4);
  padding: 0.85rem 1.1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8A96E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--white);
  color: var(--ink);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-dark);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(26, 23, 20, 0.4);
}

button.btn-primary {
  align-self: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 1.1rem 3.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  margin-top: 0.5rem;
}

button.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-premium);
}

button.btn-primary:hover,
button.btn-primary.clicked {
  color: var(--white);
}

button.btn-primary:hover::after,
button.btn-primary.clicked::after {
  transform: scaleX(1);
}

.rsvp-success {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 1rem;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
#footer {
  background: var(--cream-dark);
  padding: clamp(4rem, 8vw, 7rem) 2rem;
  text-align: center;
  border-top: 1px solid rgba(200, 169, 110, 0.2);
  position: relative;
  z-index: 2;
}

.footer-monogram {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 3rem;
  opacity: 0.82;
}

/* Countdown */
.countdown-wrap {
  margin-bottom: 3.5rem;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.countdown-unit span {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.countdown-unit.tick span {
  animation: tickFlip 0.35s var(--ease-dramatic);
}

@keyframes tickFlip {
  0% {
    transform: translateY(-8px);
    opacity: 0.3;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.countdown-unit label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Footer nav */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold-dark);
}

.footer-nav span {
  color: rgba(200, 169, 110, 0.5);
  font-size: 0.5rem;
}

.footer-copy {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.footer-made {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════ */
.reveal-fade,
.reveal-up,
.reveal-scale,
.reveal-left {
  opacity: 0;
  transition: opacity 0.9s var(--ease-dramatic), transform 0.9s var(--ease-dramatic);
}

.reveal-fade {
  opacity: 0;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-scale {
  transform: scaleX(0.1);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scaleX(1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-150 {
  transition-delay: 0.15s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-450 {
  transition-delay: 0.45s;
}

.delay-500 {
  transition-delay: 0.5s;
}

.delay-600 {
  transition-delay: 0.6s;
}

.delay-700 {
  transition-delay: 0.7s;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width:480px) {
  #hero {
    background-attachment: scroll;
  }

  .hero-content {
    gap: 0.7rem;
  }

  h1.hero-names {
    line-height: 1;
  }
}

/* ═══════════════════════════════════════════════════
   SELECTION COLOR
═══════════════════════════════════════════════════ */
::selection {
  background: var(--gold);
  color: var(--ink);
}