/* ============================================================
   ISABELLA & GABRIEL — Wedding Website
   Style: Romantic Luxury · Refined Minimalism
   Palette: Warm Ivory · Blush Rose · Antique Gold
   Fonts: Cormorant Garamond (display) + Jost (body) + Great Vibes (accent)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --ivory:       #faf6f0;
  --cream:       #f4ede2;
  --blush:       #e8c9bc;
  --rose:        #c9877a;
  --gold:        #b89b6a;
  --gold-light:  #d4b896;
  --sage:        #b5c4b1;
  --brown-soft:  #8c6e5a;
  --text-dark:   #3a2e28;
  --text-mid:    #6b5649;
  --text-light:  #a48c7e;
  --white:       #ffffff;

  --font-display: 'Cormorant Garamond', serif;
  --font-script:  'Great Vibes', cursive;
  --font-body:    'Jost', sans-serif;

  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 30px rgba(58,46,40,0.10);
  --shadow-lg: 0 12px 60px rgba(58,46,40,0.15);

  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utility ---- */
.container    { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.section-pad  { padding: 100px 0; }
.bg-soft      { background: var(--cream); }
.hidden       { display: none !important; }

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 64px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.section-header.light .section-title,
.section-header.light .eyebrow { color: var(--white); }
.section-header.light .eyebrow { color: var(--gold-light); }
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
  font-size: 1.4rem;
}
.divider::before, .divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--gold);
  opacity: 0.5;
}
.divider.light::before,
.divider.light::after { background: rgba(255,255,255,0.4); }
.divider.light { color: rgba(255,255,255,0.7); }
.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 20px auto 0;
  text-align: center;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 2px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}
.btn-primary.full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-sm { padding: 8px 20px; font-size: 0.72rem; margin-top: 16px; }

/* ====================================================================
   NAVIGATION
   ==================================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(250,246,240,0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(58,46,40,0.08);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--white);
  transition: color 0.3s;
}
#navbar.scrolled .nav-logo { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
#navbar.scrolled .nav-links a { color: var(--text-mid); }
#navbar.scrolled .nav-links a:hover { color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}
#navbar.scrolled .nav-toggle span { background: var(--text-dark); }

/* ====================================================================
   HERO
   ==================================================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Replace this gradient with your actual photo: background-image: url('images/hero.jpg'); */
  background:
    radial-gradient(ellipse at 30% 60%, rgba(200,140,120,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(180,155,100,0.25) 0%, transparent 50%),
    linear-gradient(160deg, #3a2e28 0%, #5c3d2e 40%, #8c6e5a 100%);
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,20,15,0.38) 0%, rgba(30,20,15,0.55) 100%);
}
.hero-petals {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: petalFall linear infinite;
  color: rgba(232,201,188,0.6);
}
@keyframes petalFall {
  0%   { transform: translateY(-60px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.ampersand {
  font-family: var(--font-script);
  font-size: 0.65em;
  color: var(--gold-light);
  vertical-align: middle;
  margin: 0 0.15em;
}
.hero-phrase {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.80);
  margin: 20px 0 14px;
}
.hero-date {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 40px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 16px; height: 16px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ====================================================================
   TIMELINE
   ==================================================================== */
.timeline {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-light) 10%, var(--gold-light) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}
.timeline-item[data-side="left"]  { flex-direction: row-reverse; }
.timeline-item[data-side="right"] { flex-direction: row; }

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 2;
  flex-shrink: 0;
}
.timeline-dot svg { width: 18px; height: 18px; }

.timeline-card {
  width: calc(50% - 50px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184,155,106,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.timeline-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}
/* Timeline: left side item text-align */
.timeline-item[data-side="left"] .timeline-card { text-align: right; }

/* ====================================================================
   DETAILS
   ==================================================================== */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184,155,106,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.detail-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
}
.detail-icon svg { width: 24px; height: 24px; }
.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.detail-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.palette-hint {
  text-align: center;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.palette-hint p {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.palette-swatches {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.palette-swatches span {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.palette-swatches span:hover { transform: scale(1.15); }

/* ====================================================================
   COUNTDOWN
   ==================================================================== */
.parallax-section {
  position: relative;
  overflow: hidden;
  /* Replace with your photo: background-image: url('images/countdown-bg.jpg'); */
  background:
    radial-gradient(ellipse at 20% 80%, rgba(200,140,120,0.4) 0%, transparent 50%),
    linear-gradient(135deg, #2c1f1a 0%, #5c3d2e 50%, #3a2e28 100%);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
.countdown-overlay {
  position: absolute; inset: 0;
  background: rgba(20,12,8,0.55);
}
#countdown .container { position: relative; z-index: 2; }
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.cd-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  transition: transform 0.2s;
}
.cd-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 10px;
}
.countdown-sep {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  padding-bottom: 20px;
}

/* ====================================================================
   GALLERY
   ==================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
  margin-bottom: 24px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }

.gallery-placeholder {
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
}
/* Romantic gradient placeholders — replace src with real images */
.g1 { background: linear-gradient(135deg, #d4a5a5 0%, #a05c5c 100%); }
.g2 { background: linear-gradient(135deg, #c9b99a 0%, #8c6e5a 100%); }
.g3 { background: linear-gradient(135deg, #b5c4b1 0%, #7a9e7e 100%); }
.g4 { background: linear-gradient(135deg, #e8c9bc 0%, #c9877a 100%); }
.g5 { background: linear-gradient(135deg, #d4b896 0%, #9a7a58 100%); }
.g6 { background: linear-gradient(135deg, #c0b5d4 0%, #7a6a9e 100%); }
.g7 { background: linear-gradient(135deg, #f2ddc4 0%, #c49a6c 100%); }
.g8 { background: linear-gradient(135deg, #d9c5b2 0%, #a08060 100%); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(30,18,12,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s;
}
.gallery-overlay svg { width: 32px; height: 32px; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { background: rgba(30,18,12,0.45); }
.gallery-item:hover .gallery-overlay svg { opacity: 1; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }

.gallery-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(20,12,8,0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-close svg { width: 28px; height: 28px; }
.lightbox-content {
  width: min(700px, 90vw);
  height: min(500px, 70vh);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lightbox-content > div {
  width: 100%; height: 100%;
}

/* ====================================================================
   RSVP
   ==================================================================== */
.rsvp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184,155,106,0.15);
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(184,155,106,0.30);
  border-radius: var(--radius);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,155,106,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.radio-group { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.radio-label input[type="radio"] { display: none; }
.radio-btn {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.radio-label input[type="radio"]:checked + .radio-btn {
  background: var(--gold);
  border-color: var(--gold);
}
.radio-label input[type="radio"]:checked + .radio-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.rsvp-success {
  text-align: center;
  padding: 40px 20px;
}
.rsvp-success svg {
  width: 64px; height: 64px;
  color: var(--sage);
  margin: 0 auto 20px;
}
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.rsvp-success p { color: var(--text-mid); }

/* ====================================================================
   GIFTS
   ==================================================================== */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.gift-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(184,155,106,0.12);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.gift-card.featured {
  border-color: var(--gold);
  border-width: 2px;
}
.gift-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
}
.gift-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
}
.gift-icon svg { width: 28px; height: 28px; }
.gift-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.gift-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.65;
}
.gift-price {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--cream);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ====================================================================
   MESSAGES
   ==================================================================== */
.message-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 1px solid rgba(184,155,106,0.15);
}
.messages-list { display: flex; flex-direction: column; gap: 20px; }
.message-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid rgba(184,155,106,0.10);
  transition: transform 0.2s;
}
.message-card:hover { transform: translateX(4px); }
.message-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.message-body { flex: 1; }
.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.message-meta strong {
  font-size: 0.9rem;
  color: var(--text-dark);
}
.message-meta span {
  font-size: 0.75rem;
  color: var(--text-light);
}
.message-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
#footer {
  background: var(--text-dark);
  padding: 64px 24px 40px;
}
.footer-inner { text-align: center; }
.footer-names {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.footer-date {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}
#footer .divider { color: rgba(184,155,106,0.5); margin-bottom: 28px; }
#footer .divider::before,
#footer .divider::after { background: rgba(184,155,106,0.3); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(184,155,106,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-hashtag {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  opacity: 0.7;
  margin-bottom: 20px;
}
.footer-credit {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.inline-heart { width: 12px; height: 12px; color: var(--rose); display: inline-block; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 900px) {
  /* Timeline stacks */
  .timeline::before { left: 22px; }
  .timeline-item { flex-direction: column !important; padding-left: 60px; }
  .timeline-dot { left: 22px; transform: none; }
  .timeline-card { width: 100%; text-align: left !important; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }

  /* Nav */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(250,246,240,0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 12px 30px rgba(58,46,40,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-mid); font-size: 0.85rem; }

  /* Countdown */
  .countdown-sep { display: none; }
  .countdown-grid { gap: 12px; }
}

@media (max-width: 640px) {
  .section-pad { padding: 72px 0; }
  .rsvp-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gallery-item.tall { grid-row: span 2; }
  .gallery-item.wide { grid-column: span 2; }
  .countdown-unit { min-width: 80px; padding: 18px 12px; }
  .detail-card { padding: 28px 20px; }
  .message-form-card { padding: 24px 16px; }
}

/* ====================================================================
   SCROLL FLIP ANIMATION (number counter)
   ==================================================================== */
@keyframes flipIn {
  0%   { transform: rotateX(-90deg); opacity: 0; }
  100% { transform: rotateX(0deg);   opacity: 1; }
}
.cd-flip { animation: flipIn 0.4s ease forwards; }
