/* ═══════════════════════════════════════════════════════════════════
   style.css — Wedding Invitation Website
   Palette: Gold (#d4af37), Beige, Off-White, Soft Black
   Fonts:   Playfair Display · Cormorant Garamond · Jost
   ═══════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   Edit these to retheme the entire site
─────────────────────────────────────────────── */
:root {
  /* Colors */
  --gold: #d4af37;
  --gold-light: #e8d08a;
  --gold-dark: #a8861f;
  --gold-muted: rgba(212, 175, 55, 0.25);
  --black: #141210;
  --soft-black: #1e1b17;
  --charcoal: #2d2a25;
  --beige: #f5efe6;
  --beige-dark: #ede3d4;
  --off-white: #faf7f2;
  --white: #ffffff;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Jost", sans-serif;

  /* Spacing */
  --section-py: clamp(5rem, 10vw, 9rem);
  --container: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.25);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-circ: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 0.25s;
  --t-med: 0.5s;
  --t-slow: 0.9s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ───────────────────────────────────────────────
   SITE-WIDE BACKGROUND PHOTO
   Sits fixed behind the entire page (not just hero).
   Uses position:fixed (not background-attachment:fixed)
   because the latter is unreliable on mobile Safari.
─────────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-bg.jpg") center 18% / cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(20, 18, 14, 0.55) 0%,
    rgba(20, 18, 14, 0.72) 40%,
    rgba(20, 18, 14, 0.85) 100%
  );
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
select,
input,
textarea {
  font: inherit;
  color: inherit;
  outline: none;
}

/* ───────────────────────────────────────────────
   3. UTILITY
─────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section-pad {
  padding-block: var(--section-py);
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.eyebrow.light {
  color: var(--gold-light);
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  line-height: 1.15;
}
.section-title.light {
  color: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-body {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: rgba(45, 42, 37, 0.6);
  margin-top: 0.75rem;
}

/* Gold ornament divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
  max-width: 280px;
}
.gold-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--gold));
}
.gold-divider span:last-child {
  --dir: left;
}
.gold-divider i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* hidden helper */
.hidden {
  display: none !important;
}

/* ───────────────────────────────────────────────
   4. SCROLL REVEAL ANIMATIONS
─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ───────────────────────────────────────────────
   5. WELCOME SCREEN (tap to open)
─────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--soft-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
  cursor: pointer;
}
#loader.out {
  opacity: 0;
  visibility: hidden;
}
.loader-monogram {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--gold);
  letter-spacing: 0.4em;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 0.8s 0.2s ease forwards;
}
.loader-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.18em;
  color: rgba(232, 208, 138, 0.75);
  opacity: 0;
  animation: fadeIn 0.8s 0.35s ease forwards;
}
.loader-track {
  width: min(280px, 65vw);
  height: 1px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  animation: loadFill 2.2s ease forwards;
}
.open-invite {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1rem 2.6rem 1rem 3rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--r-pill);
  background: rgba(212, 175, 55, 0.06);
  opacity: 0;
  animation:
    fadeIn 0.9s 0.9s ease forwards,
    invitePulse 2.6s 1.8s ease-in-out infinite;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast);
}
.open-invite:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}
@keyframes invitePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(212, 175, 55, 0);
  }
}
.loader-hint {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.5);
  opacity: 0;
  animation: fadeIn 0.8s 1.2s ease forwards;
}
@keyframes loadFill {
  to {
    width: 100%;
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ───────────────────────────────────────────────
   6. GOLD DUST CANVAS
─────────────────────────────────────────────── */
#dust {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ───────────────────────────────────────────────
   7. MAIN CONTENT
─────────────────────────────────────────────── */
#main-content {
  position: relative;
  z-index: 1;
}

/* ───────────────────────────────────────────────
   8. MUSIC PLAYER (fixed bottom-left)
─────────────────────────────────────────────── */
#music-player {
  position: fixed;
  bottom: 1.8rem;
  left: 1.8rem;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(20, 18, 14, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-pill);
  padding: 0.6rem 1.4rem 0.6rem 0.7rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  animation: musicPlayerIn 0.6s ease 2.6s forwards;
}
@keyframes musicPlayerIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.music-toggle {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--black);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast);
}
.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}
.music-toggle svg {
  width: 15px;
  height: 15px;
}

.music-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.music-title {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 300;
}
/* Animated equalizer bars */
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.music-bars span {
  display: block;
  width: 2.5px;
  height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: bar 1s ease-in-out infinite;
  transform-origin: bottom;
}
.music-bars span:nth-child(2) {
  animation-delay: 0.12s;
}
.music-bars span:nth-child(3) {
  animation-delay: 0.24s;
}
.music-bars span:nth-child(4) {
  animation-delay: 0.36s;
}
.music-bars span:nth-child(5) {
  animation-delay: 0.48s;
}
.music-bars.paused span {
  animation-play-state: paused;
}
@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

/* ───────────────────────────────────────────────
   9. SECTION DOT NAV (fixed right edge)
─────────────────────────────────────────────── */
#dot-nav {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  opacity: 0;
  animation: fadeIn 0.8s 2.8s ease forwards;
}
#dot-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}
#dot-nav .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.9);
  background: transparent;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
  transition:
    background var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
}
#dot-nav .dot-label {
  font-family: var(--font-ui);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(20, 18, 14, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition:
    opacity var(--t-fast),
    transform var(--t-fast);
}
#dot-nav a:hover .dot-label {
  opacity: 1;
  transform: none;
}
#dot-nav a:hover .dot {
  transform: scale(1.35);
}
#dot-nav a.active .dot {
  background: var(--gold);
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}
@media (max-width: 768px) {
  #dot-nav {
    right: 0.7rem;
    gap: 0.95rem;
  }
  #dot-nav .dot {
    width: 8px;
    height: 8px;
  }
  #dot-nav .dot-label {
    display: none;
  }
}

/* ───────────────────────────────────────────────
   10. HERO SECTION
─────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background photo — the couple */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-bg.jpg") center 22% / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 22s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* Deep cinematic vignette — darker edges for drama */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 50%,
      transparent 20%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.05) 35%,
      rgba(0, 0, 0, 0.05) 60%,
      rgba(0, 0, 0, 0.65) 100%
    );
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(0.6rem, 1.3vw, 0.74rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 400;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(212, 175, 55, 0.55);
}
/* Keep the eyebrow (and its stars) on ONE line on phones:
   smaller type + tighter tracking so it always fits */
@media (max-width: 600px) {
  .hero-eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.28em;
  }
}
@media (max-width: 360px) {
  .hero-eyebrow {
    font-size: 0.5rem;
    letter-spacing: 0.22em;
  }
}

/* Decorative "&" divider between names */
.hero-name-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 0.4rem auto;
  max-width: 420px;
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.hero-name-divider.in-view {
  opacity: 1;
  transform: none;
}

.hnd-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--dir, right),
    transparent,
    rgba(212, 175, 55, 0.7) 40%,
    rgba(212, 175, 55, 0.7)
  );
}
.hnd-line:last-child {
  --dir: left;
}

.hnd-amp {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold);
  font-style: italic;
  line-height: 1;
  text-shadow:
    0 0 30px rgba(212, 175, 55, 0.7),
    0 2px 20px rgba(0, 0, 0, 0.5);
  padding: 0 0.3em;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1;
  /* Soft text glow */
  text-shadow:
    0 2px 40px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(212, 175, 55, 0.08);
  letter-spacing: 0.02em;
}
.hero-amp {
  font-family: var(--font-display);
  font-size: 0.38em;
  color: var(--gold);
  font-style: italic;
  display: block;
  letter-spacing: 0.05em;
  margin: 0.15em 0;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.hero-invite {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(250, 247, 242, 0.88);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-top: 1.1rem;
}

.hero-date {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: var(--gold-light);
  font-style: italic;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
}
.scroll-cue span {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.8), transparent);
  animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }
}

/* ───────────────────────────────────────────────
   11. DETAILS SECTION
   Backdrop: Marriott palace lobby photo behind a
   translucent off-white wash so cards stay readable
─────────────────────────────────────────────── */
#details {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(250, 247, 242, 0.86) 0%,
      rgba(250, 247, 242, 0.68) 50%,
      rgba(250, 247, 242, 0.86) 100%
    ),
    url("assets/details-bg.jpg") center 65% / cover no-repeat;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

.detail-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
/* Corner gold accent */
.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle at top left,
    rgba(212, 175, 55, 0.15),
    transparent 70%
  );
  border-radius: 0 0 var(--r-xl) 0;
}
.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-dark), var(--shadow-gold);
}

.card-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}
.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-label {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.card-value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--charcoal);
  line-height: 1.3;
}
.card-value strong {
  font-size: 1.4em;
  display: block;
  font-weight: 500;
}
.card-sub {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(45, 42, 37, 0.5);
  margin-top: 0.5rem;
}

/* Little-ones note under the cards */
.kids-note {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(45, 42, 37, 0.62);
  margin-top: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
}
.kids-note::before,
.kids-note::after {
  content: "✦";
  color: var(--gold);
  font-style: normal;
  font-size: 0.6em;
  margin: 0 0.9em;
  vertical-align: middle;
}

/* ───────────────────────────────────────────────
   12. COUNTDOWN SECTION
─────────────────────────────────────────────── */
#countdown {
  position: relative;
  overflow: hidden;
  color: var(--off-white);
}
.countdown-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(20, 18, 14, 0.88), rgba(20, 18, 14, 0.88)),
    url("assets/hero-bg.jpg") center 15% / cover no-repeat;
  z-index: 0;
}
#countdown > .container {
  position: relative;
  z-index: 1;
}
#countdown .section-title.light {
  color: var(--off-white);
}
#countdown .section-body.light {
  color: rgba(232, 213, 163, 0.6);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 3rem);
}
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--r-lg);
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  min-width: 110px;
  transition: transform var(--t-fast);
}
.cd-block:hover {
  transform: translateY(-4px);
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--gold);
  line-height: 1;
  transition: transform 0.25s ease;
}
.cd-num.tick {
  transform: scale(1.12);
}
.cd-lbl {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.55);
}
.cd-colon {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: rgba(212, 175, 55, 0.25);
  line-height: 1;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .cd-colon {
    display: none;
  }
}

/* ───────────────────────────────────────────────
   13. LOCATION SECTION
   Backdrop: watercolor arches artwork behind a very
   light wash — the artwork is already soft and pale
─────────────────────────────────────────────── */
#location {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(250, 247, 242, 0.72) 0%,
      rgba(250, 247, 242, 0.45) 55%,
      rgba(250, 247, 242, 0.72) 100%
    ),
    url("assets/venue-bg.jpg") center / cover no-repeat;
}

.map-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  filter: sepia(0.12) saturate(0.9) brightness(0.98);
}
.map-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--charcoal);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-dark);
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast);
}
.map-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.map-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateX(-50%) translateY(-2px);
}

/* ───────────────────────────────────────────────
   14. RSVP SECTION
─────────────────────────────────────────────── */
/* Backdrop: Cairo watercolor collage behind a warm beige wash
   (fades stronger at the edges so the section blends smoothly) */
#rsvp {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(240, 232, 214, 0.88) 0%,
      rgba(240, 232, 214, 0.62) 45%,
      rgba(228, 217, 192, 0.88) 100%
    ),
    url("assets/rsvp-bg.jpg") center 30% / cover no-repeat;
}

.rsvp-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow-card);
}

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.form-field label,
.form-field .form-label-span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.form-field label em,
.form-field .form-label-span em {
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(45, 42, 37, 0.45);
  font-size: 0.95em;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1.1rem;
  background: var(--beige);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

/* Radio pill groups (attendance / +1 / hotel stay) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  position: relative;
  cursor: pointer;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  background: var(--beige);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  /* Undo the uppercase/tracking inherited from the field label */
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.pill:hover span {
  border-color: var(--gold);
}
.pill input:checked + span {
  background: var(--charcoal);
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}
.pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}
.pill-group.field-error .pill span {
  border-color: #c0392b;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 400;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-dark:hover {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}

.btn-telegram {
  background: #d4af37;
  color: var(--white);
}
.btn-telegram svg {
  width: 16px;
  height: 16px;
}
.btn-telegram:hover {
  background: #d4af37;
  box-shadow: 0 6px 24px rgba(41, 169, 235, 0.35);
}

/* RSVP success */
.rsvp-success {
  text-align: center;
  padding: 3.5rem 2rem;
}
.success-ring {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: block;
}
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.rsvp-success p {
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.05rem;
}

/* ───────────────────────────────────────────────
   16. FOOTER
─────────────────────────────────────────────── */
#footer {
  background: rgba(20, 18, 14, 0.9);
  padding: 5rem 2rem;
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-monogram {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.25em;
}
.footer-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(212, 175, 55, 0.45);
}
.footer-date {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.3);
}

/* ───────────────────────────────────────────────
   17. RESPONSIVE OVERRIDES
─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rsvp-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cd-colon {
    display: none;
  }
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.58rem;
  }

  /* Kids note: drop the decorative stars so the line never wraps oddly */
  .kids-note::before,
  .kids-note::after {
    content: none;
  }

  /* Shrink music player so it never overlaps buttons/cards below it */
  #music-player {
    bottom: 1rem;
    left: 1rem;
    padding: 0.45rem 0.45rem;
    gap: 0;
  }
  #music-player .music-info {
    display: none;
  }
}
