/* ================================================
   WEDDING WEBSITE — style.css
   Tông màu: Champagne, Ivory, Rose Gold, Blush
   ================================================ */

/* ── CSS Variables ── */
:root {
  --champagne:   #e8d5b7;
  --champagne-lt:#f5ede0;
  --ivory:       #faf7f2;
  --ivory-dark:  #f0ebe2;
  --blush:       #f2c4ce;
  --blush-deep:  #d4899a;
  --rose-gold:   #b76e79;
  --rose-dark:   #8b4a55;
  --gold:        #c9a96e;
  --gold-lt:     #e4cda7;
  --brown-warm:  #7a5c4f;
  --text-dark:   #3d2c2c;
  --text-mid:    #6b4f4f;
  --text-light:  #a08080;
  --white:       #ffffff;

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

  --radius-card:  16px;
  --radius-lg:    24px;
  --shadow-soft:  0 8px 40px rgba(180,120,110,0.12);
  --shadow-card:  0 4px 24px rgba(120,70,60,0.10);
  --transition:   all 0.45s cubic-bezier(0.23,1,0.32,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-sans);
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--blush-deep); border-radius: 3px; }

/* ── Petals Canvas ── */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   LOADER
══════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

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

.loader-rings {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin 1.4s linear infinite;
}
.ring-1 { border-top-color: var(--rose-gold); animation-duration: 1.2s; }
.ring-2 { inset: 10px; border-top-color: var(--gold); animation-duration: 1.6s; animation-direction: reverse; }
.ring-3 { inset: 20px; border-top-color: var(--blush-deep); animation-duration: 1s; }

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* ══════════════════════════════════════
   MUSIC TOGGLE
══════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 800;
  box-shadow: 0 4px 20px rgba(180,100,100,0.2);
  transition: var(--transition);
}
.music-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(180,100,100,0.3); }
.music-toggle i { color: var(--rose-gold); font-size: 1.1rem; z-index: 1; }

.music-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--blush);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.music-toggle.playing .music-ripple { animation: ripple 1.2s ease-out infinite; }
.music-toggle.playing i { animation: rotate-icon 4s linear infinite; }
@keyframes rotate-icon { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(120,70,60,0.08);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-monogram {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rose-gold);
  letter-spacing: 0.05em;
}

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rose-gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--rose-gold); }
.nav-links a:hover::after { width: 100%; }

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

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 80vw);
  height: 100vh;
  background: var(--ivory);
  z-index: 750;
  transition: right 0.4s cubic-bezier(0.23,1,0.32,1);
  padding: 100px 40px 40px;
  box-shadow: -4px 0 30px rgba(0,0,0,0.08);
}
.nav-drawer.open { right: 0; }
.nav-drawer ul { display: flex; flex-direction: column; gap: 28px; }
.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  inset: -10% 0;
  background:
    url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80')
    center/cover no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(60,30,20,0.35) 0%,
    rgba(60,20,20,0.50) 50%,
    rgba(40,15,10,0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--champagne-lt);
  opacity: 0.85;
}

.hero-names {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.bride-name, .groom-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-ampersand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--champagne);
  opacity: 0.9;
  line-height: 1;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 12px;
}
.date-num {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--champagne-lt);
}
.date-sep {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 14px 28px;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}
.cd-val {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.cd-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--champagne-lt);
  opacity: 0.75;
  margin-top: 4px;
}
.cd-dot {
  font-size: 1.5rem;
  color: var(--champagne);
  opacity: 0.5;
  margin: 0 4px;
  padding-bottom: 14px;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.btn-primary i {
  animation: bounce-y 1.8s ease-in-out infinite;
}
@keyframes bounce-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.6));
  margin: 0 auto;
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  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; }
}

/* ══════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════ */
.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose-gold);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.story-divider {
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  margin-bottom: 56px;
}

/* ══════════════════════════════════════
   STORY SECTION
══════════════════════════════════════ */
.section-story {
  padding: 100px 0;
  background: var(--ivory);
  position: relative;
  z-index: 1;
}
.section-story::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-img-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.story-img-deco {
  position: absolute;
  inset: -16px -16px auto auto;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border: 1.5px solid var(--champagne);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.story-text { padding: 20px 0; }

.story-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--rose-gold);
  line-height: 1.4;
  margin-bottom: 24px;
}
.story-text p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.8;
}
.story-ending {
  font-style: italic;
  color: var(--text-dark) !important;
  font-weight: 500 !important;
}
.story-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--rose-gold);
}
.sig-amp { color: var(--gold); }

/* ══════════════════════════════════════
   GALLERY SECTION
══════════════════════════════════════ */
.section-gallery {
  padding: 100px 0;
  background: var(--ivory-dark);
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(80,30,30,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 1.5rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,10,10,0.95);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img-wrap {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 8px;
  overflow: hidden;
}
.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  font-size: 1rem;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left:  20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════
   TIMELINE SECTION
══════════════════════════════════════ */
.section-timeline {
  padding: 100px 0;
  background: var(--ivory);
  position: relative;
  z-index: 1;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

.tl-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--champagne) 10%, var(--champagne) 90%, transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 56px;
  position: relative;
}
.tl-item.left  { justify-content: flex-end; padding-right: calc(50% + 32px); }
.tl-item.right { justify-content: flex-start; padding-left: calc(50% + 32px); }

.tl-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--champagne-lt);
  max-width: 340px;
  width: 100%;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.tl-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--champagne));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--rose-dark);
  font-size: 1rem;
}
.tl-date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 6px;
}
.tl-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.tl-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.tl-time {
  font-size: 0.8rem;
  color: var(--rose-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dot on line */
.tl-item::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose-gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--rose-gold);
  z-index: 2;
}

/* ══════════════════════════════════════
   LOCATION SECTION
══════════════════════════════════════ */
.section-location {
  padding: 100px 0;
  background: var(--ivory-dark);
  position: relative;
  z-index: 1;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.loc-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--champagne-lt);
}

.loc-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--champagne));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--rose-dark);
}
.loc-card h3 {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 8px;
}
.loc-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.loc-address {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.loc-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.loc-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.loc-details i { color: var(--rose-gold); width: 16px; }

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-dark));
  color: white;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(183,110,121,0.3);
}
.btn-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(183,110,121,0.45);
}

.map-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--champagne-lt);
}
.map-wrapper iframe { display: block; border-radius: var(--radius-card); }

/* ══════════════════════════════════════
   INVITATION SECTION
══════════════════════════════════════ */
.section-invite {
  padding: 100px 0;
  background:
    linear-gradient(135deg, #fdf6ee 0%, #f9eff5 50%, #fdf3e8 100%);
  position: relative;
  z-index: 1;
}

.invite-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(210,160,150,0.25);
  border-radius: 24px;
  padding: 60px 60px;
  position: relative;
  box-shadow: 0 20px 60px rgba(180,100,100,0.10);
}

.invite-border-tl,
.invite-border-br {
  position: absolute;
  width: 80px;
  height: 80px;
}
.invite-border-tl {
  top: 20px; left: 20px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  border-radius: 4px 0 0 0;
}
.invite-border-br {
  bottom: 20px; right: 20px;
  border-bottom: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  border-radius: 0 0 4px 0;
}

.invite-inner { text-align: center; }

.invite-top {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.invite-flower {
  color: var(--rose-gold);
  font-size: 1.5rem;
  margin: 12px 0;
  display: block;
}

.invite-names {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--text-dark);
  font-weight: 400;
  margin: 16px 0;
  line-height: 1.2;
}
.invite-names span { color: var(--rose-gold); }

.invite-body {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin: 20px 0;
}

.invite-divider {
  color: var(--gold);
  letter-spacing: 0.5em;
  margin: 24px 0;
  font-size: 0.75rem;
}

.invite-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 24px;
}
.invite-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-mid);
}
.invite-detail-item i { color: var(--rose-gold); font-size: 0.9rem; margin-top: 3px; min-width: 16px; }

.invite-closing {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#footer {
  background: var(--text-dark);
  position: relative;
  z-index: 1;
}

.footer-top {
  padding: 64px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-monogram {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--champagne);
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold-lt);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.7;
}
.footer-thanks {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(240,220,210,0.7);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 36px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200,160,140,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-lt);
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(200,170,160,0.4);
  letter-spacing: 0.05em;
}
.footer-bottom i { color: var(--blush-deep); margin: 0 2px; }

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════ */
.reveal-up,
.reveal-fade,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1),
              transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.reveal-up    { transform: translateY(40px); }
.reveal-fade  { transform: translateY(16px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(0.93); }

.reveal-up.in,
.reveal-fade.in,
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s !important; }
.delay-2 { transition-delay: 0.24s !important; }
.delay-3 { transition-delay: 0.36s !important; }
.delay-4 { transition-delay: 0.48s !important; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item.large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-names { gap: 12px; }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-img-frame { aspect-ratio: 3/2; max-width: 480px; margin: 0 auto; }
  .story-img-deco  { display: none; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item.large { grid-column: span 2; grid-row: span 3; }

  .timeline { padding: 0 16px; }
  .tl-center-line { left: 24px; }
  .tl-item        { padding: 0 0 0 60px !important; justify-content: flex-start !important; }
  .tl-item::before { left: 24px; transform: none; }
  .tl-card { max-width: 100%; }

  .location-grid { grid-template-columns: 1fr; }

  .invite-card { padding: 40px 28px; }

  .countdown { padding: 12px 16px; gap: 2px; }
  .cd-item   { min-width: 38px; }
  .cd-dot    { margin: 0 2px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.8rem; }
  .gallery-grid  { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .invite-card   { padding: 36px 20px; }
  .invite-names  { font-size: 2rem; }

  .hero-names    { flex-direction: column; gap: 0; }
  .hero-ampersand { font-size: 2rem; }
  .bride-name,
  .groom-name    { font-size: 3.2rem; }

  .countdown { flex-wrap: wrap; justify-content: center; border-radius: 16px; }
}
