/* ============================================================
   EVENTO STORIES — style.css
   Premium White Luxury Theme
   All sections clearly labeled for easy customization.
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Change these to retheme the entire site instantly.
   ============================================================ */
:root {
  /* --- Color Palette ---
     white-pure   : pure white for main backgrounds
     ivory        : warm off-white for section backgrounds
     champagne    : warm beige/cream tone
     gold-soft    : muted warm gold for accents
     gold-light   : lighter gold for subtle borders
     charcoal     : dark text
     muted        : medium-gray body text
     faint        : very light gray for dividers
  */
  --white-pure: #ffffff;
  --ivory: #fdfaf5;
  --champagne: #f7f0e6;
  --gold-soft: #c9a96e;
  --gold-light: #e8d9bf;
  --gold-hover: #b08c4e;
  --charcoal: #1a1714;
  --charcoal-soft: #2e2a24;
  --muted: #6b6560;
  --faint: #ede8e0;
  --faint-alt: #f3ede3;

  /* --- Typography ---
     font-serif  : Cormorant Garamond — for headings, titles, names
     font-sans   : Jost — for body, labels, nav, buttons
  */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* --- Spacing Scale --- */
  --space-xs: 0.5rem;   /* 8px  */
  --space-sm: 1rem;     /* 16px */
  --space-md: 2rem;     /* 32px */
  --space-lg: 4rem;     /* 64px */
  --space-xl: 6rem;     /* 96px */
  --space-2xl: 10rem;   /* 160px */

  /* --- Shadows --- 
     Soft luxury shadows — never harsh drop shadows
  */
  --shadow-sm: 0 2px 12px rgba(180,150,100,0.08);
  --shadow-md: 0 8px 32px rgba(180,150,100,0.12);
  --shadow-lg: 0 20px 60px rgba(180,150,100,0.14);
  --shadow-card: 0 4px 24px rgba(26,23,20,0.07);

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* --- Transitions --- */
  --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 0.25s;
  --duration-mid: 0.5s;
  --duration-slow: 0.8s;

  /* --- Layout --- */
  --container-max: 1120px;
  --section-pad: var(--space-xl);
}


/* ============================================================
   RESET & BASE
   Normalize browser defaults for clean consistent rendering.
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--white-pure);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

/* ============================================================
   LAYOUT UTILITIES
   Reusable container and layout helpers.
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   Section titles, labels, subtitles — consistent across site.
   ============================================================ */

/* Small all-caps label above section titles */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: block;
  text-align: center;
  margin-bottom: var(--space-sm);
}

/* Large elegant serif heading */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

/* Refined body text under headings */
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-weight: 300;
  line-height: 1.8;
}

/* Small decorative diamond ornament */
.ornament {
  font-size: 1.2rem;
  color: var(--gold-soft);
  text-align: center;
  display: block;
  margin-top: var(--space-md);
  letter-spacing: 0.4em;
}


/* ============================================================
   BUTTON STYLES
   Primary CTA and outline variants.
   ============================================================ */

/* Base button */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-luxury);
  cursor: pointer;
}

/* Gold filled primary button */
.btn-primary {
  background: var(--gold-soft);
  color: var(--white-pure);
  border: 1px solid var(--gold-soft);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Large size modifier */
.btn-large {
  padding: 1rem 3rem;
  font-size: 0.8rem;
}


/* ============================================================
   PAGE LOADER
   Full-screen cinematic loader that fades out on page load.
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s var(--ease-luxury), visibility 0.6s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  animation: loaderFadeIn 0.8s var(--ease-luxury) both;
}

.loader-bar {
  width: 160px;
  height: 1px;
  background: var(--faint);
  margin: 0 auto;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gold-soft);
  width: 0%;
  animation: loaderProgress 1.4s var(--ease-luxury) 0.3s forwards;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loaderProgress {
  to { width: 100%; }
}


/* ============================================================
   AMBIENT PARTICLE CANVAS
   Full-page floating shimmer particles — very subtle.
   Canvas is fixed behind all content (pointer-events: none).
   ============================================================ */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}


/* ============================================================
   NAVBAR
   Transparent glass navbar that blurs and solidifies on scroll.
   Hamburger menu animates on mobile.
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--duration-mid) var(--ease-luxury),
              backdrop-filter var(--duration-mid) var(--ease-luxury),
              padding var(--duration-mid) var(--ease-luxury),
              box-shadow var(--duration-mid) var(--ease-luxury);
}

/* Scrolled state: frosted glass effect */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 0.85rem 0;
  box-shadow: 0 1px 24px rgba(180,150,100,0.10);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo / brand text */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  transition: color var(--duration-fast);
}

.nav-logo:hover { color: var(--gold-soft); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  transition: color var(--duration-fast);
}

/* Underline reveal on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: width var(--duration-mid) var(--ease-luxury);
}

.nav-link:hover { color: var(--gold-soft); }
.nav-link:hover::after { width: 100%; }

/* RSVP nav button */
.nav-cta {
  background: var(--gold-soft);
  color: var(--white-pure) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  letter-spacing: 0.15em;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* Hamburger button (mobile only) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all var(--duration-mid) var(--ease-luxury);
  transform-origin: center;
}

/* Hamburger animates to X when menu is open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   HERO SECTION
   Full-viewport cinematic hero with romantic background image.
   Text is left-aligned in editorial style, sitting over a soft
   gradient overlay so it remains crisp and readable.
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;           /* text anchored to left */
  background: linear-gradient(165deg, var(--white-pure) 0%, var(--champagne) 50%, var(--ivory) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
}

/* When a hero image is set (via JS), this class is added */
.hero-section.has-image {
  background-color: var(--charcoal);    /* fallback while image loads */
}

/* Multi-layer overlay when an image is present:
   - left panel: strong white-to-transparent fade for text readability
   - global: very soft warm veil over entire image */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* left-side white gradient panel — keeps text area clean */
    linear-gradient(
      to right,
      rgba(253,250,245,0.97) 0%,
      rgba(253,250,245,0.82) 36%,
      rgba(253,250,245,0.38) 62%,
      transparent 100%
    ),
    /* subtle warm cinematic tint across the whole image */
    linear-gradient(
      160deg,
      rgba(247,240,230,0.25) 0%,
      rgba(201,169,110,0.06) 100%
    );
}

/* Without an image, keep the original soft gradient background */
.hero-section:not(.has-image) .hero-overlay {
  background: radial-gradient(ellipse 80% 60% at 50% 60%, rgba(201,169,110,0.06) 0%, transparent 70%);
}

/* Text content block — left-aligned, padded from the edge */
.hero-content {
  text-align: left;
  padding: var(--space-lg) var(--space-md);
  padding-left: clamp(2rem, 7vw, 6rem);  /* editorial left margin */
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* Without image: fallback to centered layout */
.hero-section:not(.has-image) .hero-content {
  text-align: center;
  padding-left: var(--space-md);
  margin: 0 auto;
}

/* Small category / occasion label */
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-sm);
}

/* Large cinematic serif title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

/* Subtitle / tagline below title */
.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
  max-width: 440px;
}

/* Thin gold horizontal rule ornament — left-aligned */
.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--gold-soft);
  margin: var(--space-sm) 0;              /* left-align: no auto margin */
  opacity: 0.7;
}

/* Without image: center the divider */
.hero-section:not(.has-image) .hero-divider {
  margin: var(--space-sm) auto;
}

/* Event date under divider */
.hero-date {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.hero-cta { margin-top: var(--space-xs); }

/* Scroll hint indicator at bottom-left */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(2rem, 7vw, 6rem);          /* aligns with text block */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  z-index: 2;
  animation: scrollHint 2.5s ease-in-out infinite;
}

/* Without image: center scroll hint */
.hero-section:not(.has-image) .hero-scroll-hint {
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* Without image, override the scroll hint animation to keep centered */
.hero-section:not(.has-image) .hero-scroll-hint {
  animation: scrollHintCentered 2.5s ease-in-out infinite;
}

@keyframes scrollHintCentered {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   HERO — MOBILE adjustments (≤ 640px)
   On mobile the image is the full background.
   Text is centered horizontally and vertically centered
   in the lower 60% of the viewport for a cinematic feel
   where the couple is visible above the text block.
   ============================================================ */
@media (max-width: 640px) {
  /* Switch the flex direction so text sits at vertical center */
  .hero-section {
    align-items: center;
    justify-content: center;
  }

  /* Center all hero text on mobile */
  .hero-content,
  .hero-section.has-image .hero-content,
  .hero-section:not(.has-image) .hero-content {
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
    padding-left: var(--space-sm);
    max-width: 100%;
    align-self: auto;
    margin: 0 auto;
  }

  /* On mobile with image: gradient fades from bottom up strongly
     so text in the lower-center area is always crisp and readable,
     while the top of the image (couple) is clearly visible */
  .hero-section.has-image .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(253,250,245,0.15) 0%,
        rgba(253,250,245,0.45) 30%,
        rgba(253,250,245,0.82) 55%,
        rgba(253,250,245,0.97) 75%,
        rgba(253,250,245,1.0) 100%
      );
  }

  /* Center divider and subtitle on mobile */
  .hero-divider             { margin: var(--space-sm) auto; }
  .hero-subtitle            { max-width: 100%; }

  /* Scroll hint: centered at the bottom.
     Must also override the animation so translateX(-50%) isn't
     lost when the keyframe only animates translateY. */
  .hero-scroll-hint {
    left: 50%;
    align-items: center;
    animation: scrollHintCentered 2.5s ease-in-out infinite;
  }

  /* CRITICAL mobile nav fix:
     backdrop-filter on a parent makes it the containing block for
     position:fixed children (CSS spec). When .navbar.scrolled applies
     backdrop-filter, the nav-links overlay stops being viewport-fixed
     and instead positions itself relative to the navbar — breaking the
     menu when the user has scrolled down.
     Fix: remove backdrop-filter on mobile, use a solid opaque background. */
  .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }
}


/* ============================================================
   COUPLE / EVENT NAMES SECTION
   Big elegant name display centered on ivory background.
   ============================================================ */
.couple-section {
  background: var(--white-pure);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* The main couple/event names — very large serif */
.couple-names {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* The ampersand or separator between names */
.couple-names .separator {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--gold-soft);
  font-style: italic;
  margin: 0.2em 0;
  font-weight: 300;
}

/* Tagline below names */
.couple-tagline {
  margin-top: var(--space-sm);
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-style: italic;
  font-family: var(--font-serif);
}


/* ============================================================
   COUNTDOWN TIMER SECTION
   Champagne background with large number display.
   ============================================================ */
.countdown-section {
  background: linear-gradient(135deg, var(--champagne) 0%, var(--faint-alt) 100%);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  flex-wrap: wrap;
}

.countdown-unit {
  text-align: center;
  min-width: 80px;
}

/* Big countdown numbers — serif for elegance */
.countdown-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease-luxury);
}

/* Small label beneath each number */
.countdown-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Dot separator between units */
.countdown-sep {
  font-size: 2rem;
  color: var(--gold-light);
  font-family: var(--font-serif);
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.5rem;
}


/* ============================================================
   EVENT DETAILS SECTION
   White section with info cards in a responsive grid.
   ============================================================ */
.details-section {
  background: var(--white-pure);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

/* Grid of detail cards: date, time, venue, dress code */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-md);
}

/* Force exactly 2 cards per row on mobile — keeps them compact and readable */
@media (max-width: 640px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .detail-card {
    padding: 1.25rem 0.85rem;
  }

  .detail-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .detail-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  .detail-sub {
    font-size: 0.75rem;
  }
}

/* Individual detail card — frosted glass look */
.detail-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(247,240,230,0.6));
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-luxury),
              box-shadow var(--duration-fast) var(--ease-luxury);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Icon above card title */
.detail-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gold-soft);
  display: block;
}

/* Card heading */
.detail-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
  display: block;
}

/* Card content value */
.detail-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.4;
}

.detail-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
  display: block;
}


/* ============================================================
   STORY TIMELINE SECTION
   Alternating left/right timeline with images and cards.
   Stacks beautifully on mobile.
   ============================================================ */
.story-section {
  background: var(--ivory);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.timeline {
  position: relative;
  padding: var(--space-md) 0;
}

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

/* Each timeline entry — alternates left/right */
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 4rem;
}

/* Even items flip to right side */
.timeline-item:last-child { margin-bottom: 0; }

/* Timeline dot on the center line */
.timeline-dot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem;
}

.timeline-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid var(--white-pure);
  box-shadow: 0 0 0 3px var(--gold-light);
  display: block;
}

/* The card containing text */
.timeline-card {
  background: var(--white-pure);
  border: 1px solid var(--faint);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-luxury),
              box-shadow var(--duration-fast) var(--ease-luxury);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Timeline image */
.timeline-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Placeholder for missing images */
.timeline-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--champagne), var(--faint-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: 2rem;
}

/* Text area inside card */
.timeline-text {
  padding: 1.5rem;
}

.timeline-date {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Left-side card: card | dot | empty */
.timeline-item.left .timeline-card { grid-column: 1; }
.timeline-item.left .timeline-dot  { grid-column: 2; }
.timeline-item.left .timeline-empty{ grid-column: 3; }

/* Right-side card: empty | dot | card */
.timeline-item.right .timeline-empty{ grid-column: 1; }
.timeline-item.right .timeline-dot  { grid-column: 2; }
.timeline-item.right .timeline-card { grid-column: 3; }

.timeline-empty { display: block; }


/* ============================================================
   PHOTO GALLERY SECTION
   Premium masonry-style grid with hover zoom.
   ============================================================ */
.gallery-section {
  background: var(--white-pure);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

/* Masonry-style grid using CSS columns */
.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
  margin-top: var(--space-md);
}

/* Individual gallery item */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

/* Gallery image */
.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-luxury);
}

/* Hover zoom effect */
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* Soft gold overlay on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201,169,110,0.12);
  opacity: 0;
  transition: opacity var(--duration-mid) var(--ease-luxury);
}

.gallery-item:hover::after { opacity: 1; }

/* Gallery caption */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(26,23,20,0.55));
  color: var(--white-pure);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transform: translateY(100%);
  transition: transform var(--duration-mid) var(--ease-luxury);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }


/* ============================================================
   LOCATION SECTION
   Ivory background, venue details + map placeholder side-by-side.
   ============================================================ */
.location-section {
  background: var(--ivory);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

/* Side-by-side layout */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-md);
  align-items: start;
  margin-top: var(--space-md);
}

/* Venue info block */
.location-info {
  padding: var(--space-md) 0;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.venue-address {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.venue-note {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1rem;
}

/* Map placeholder container */
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(135deg, var(--faint-alt) 0%, var(--champagne) 100%);
  border: 1px solid var(--gold-light);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

/* Hover / focus state when the map box is a clickable link */
.location-map[role="link"]:hover,
.location-map[role="link"]:focus-visible {
  box-shadow: 0 8px 32px rgba(180,150,100,0.22);
  transform: translateY(-3px);
  border-color: var(--gold-soft);
  outline: none;
}

/* "Tap to open in Google Maps" caption */
.map-open-hint {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.75;
  margin-top: 0.25rem;
}

/* Inner placeholder content */
.map-placeholder {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.map-pin {
  color: var(--gold-soft);
  opacity: 0.8;
}

.map-placeholder-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
}


/* ============================================================
   RSVP SECTION
   White section with an elegant centered form.
   ============================================================ */
.rsvp-section {
  background: linear-gradient(160deg, var(--white-pure) 0%, var(--champagne) 100%);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

/* Form container */
.rsvp-form {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

/* Two-column form row on desktop */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

/* Field labels */
.form-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}

/* Input / select / textarea base */
.form-input {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  width: 100%;
}

.form-input::placeholder { color: #b8b0a8; }

.form-input:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}

/* Textarea */
.form-textarea {
  height: 110px;
  resize: vertical;
  margin-bottom: 1.25rem;
}

/* Select dropdown */
.form-select {
  appearance: none;
  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='%23c9a96e' 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;
}

/* Radio buttons group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--gold-soft);
  width: 15px;
  height: 15px;
}

/* Submit button row */
.form-submit {
  text-align: center;
  margin-top: 0.5rem;
}

/* Success message after submission */
.rsvp-success {
  text-align: center;
  padding: 2rem;
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}

.success-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--gold-soft);
  margin-bottom: 0.75rem;
  letter-spacing: 0.3em;
}


/* ============================================================
   FOOTER
   Elegant minimal footer on ivory background.
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: var(--space-lg) 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white-pure);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  font-family: var(--font-serif);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}

.footer-link:hover { color: var(--gold-light); }

/* Thin gold divider line */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: var(--space-md);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-credit {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-credit span { color: var(--gold-light); }


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   Elements with .reveal fade-slide in as they enter viewport.
   Class .is-visible is added by the Intersection Observer in JS.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-luxury),
              transform 0.7s var(--ease-luxury);
}

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

/* Stagger delay for children in a group */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }


/* ============================================================
   RESPONSIVE BEHAVIOR — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 4rem; }

  /* Gallery: 2 columns */
  .gallery-grid { column-count: 2; }

  /* Location: stack vertically */
  .location-wrapper { grid-template-columns: 1fr; }

  /* Timeline: single column, no alternating */
  .timeline::before { left: 24px; }

  .timeline-item {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto;
    gap: 0 1rem;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot { grid-column: 1; grid-row: 1; }

  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card { grid-column: 2; grid-row: 1; }

  .timeline-empty { display: none; }
}


/* ============================================================
   RESPONSIVE BEHAVIOR — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Gallery: 1 column */
  .gallery-grid { column-count: 1; }

  /* Nav: hide desktop links, show hamburger.
     Background is fully opaque (#fdfaf5) — no backdrop-filter.
     Backdrop-filter causes a 1-2 frame GPU render delay on mobile
     which makes the overlay flash transparent before it appears.
     A solid colour is instant and looks equally premium. */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fdfaf5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform var(--duration-mid) var(--ease-luxury);
    z-index: 1001;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-link { font-size: 1rem; }

  /* z-index: 1002 — must sit above the nav overlay (1001)
     so the X close icon is always visible and clickable */
  .nav-hamburger { display: flex; z-index: 1002; }

  /* Form rows: single column */
  .form-row { grid-template-columns: 1fr; }

  /* RSVP form padding */
  .rsvp-form { padding: var(--space-sm) var(--space-sm); }

  /* Footer: stack */
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Hero title */
  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }

  /* Countdown separators: hide on small screens */
  .countdown-sep { display: none; }
  .countdown-grid { gap: 1.5rem; }
}
