/* =========================================================
   WEDDING INVITATION — Elegant Sage Green Theme
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&family=Great+Vibes&display=swap');

:root {
  --sage: #a8b5a2;
  --sage-light: #c8d5c2;
  --sage-dark: #7a9172;
  --sage-deep: #556b52;
  --cream: #faf7f2;
  --parchment: #f2ede4;
  --warm-white: #fffef9;
  --gold: #c9a96e;
  --gold-light: #e8d4a8;
  --dark: #2c2c2c;
  --text-muted: #7a7468;
  --border: rgba(168, 181, 162, 0.35);
  --shadow: rgba(85, 107, 82, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── ENTRANCE OVERLAY ─────────────────────────────────────── */
#entrance-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#entrance-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.entrance-inner {
  text-align: center;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
}
.entrance-ornament {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 8px;
  animation: fadeUp 1s ease both;
}
.entrance-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeUp 1s 0.2s ease both;
}
.entrance-names {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: var(--dark);
  margin: 16px 0;
  animation: fadeUp 1s 0.4s ease both;
  line-height: 1.2;
}
.entrance-to {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
  animation: fadeUp 1s 0.5s ease both;
}
.entrance-guest {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 32px;
  animation: fadeUp 1s 0.6s ease both;
}
.entrance-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sage);
  color: white;
  border: none;
  padding: 14px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  animation: fadeUp 1s 0.8s ease both;
  box-shadow: 0 4px 20px var(--shadow);
}
.entrance-btn:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow);
}
.entrance-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  animation: fadeUp 1s 0.3s ease both;
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
#main-content {
  display: none;
}
#main-content.visible {
  display: block;
  animation: fadeIn 0.8s ease;
}

/* ── COVER / HERO ─────────────────────────────────────────── */
#cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 60px 24px;
}
.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.cover-bg.loaded { transform: scale(1); }
.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(85, 107, 82, 0.35) 0%,
    rgba(44, 44, 44, 0.55) 60%,
    rgba(168, 181, 162, 0.25) 100%
  );
}
.cover-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 560px;
}
.cover-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 300;
}
.cover-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  color: #fff;
}
.cover-ampersand {
  display: block;
  color: var(--gold-light);
  font-size: 0.6em;
  line-height: 1.4;
}
.cover-date-band {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
}
.cover-date-band .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
}
.cover-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 2;
}
.cover-scroll-hint svg { opacity: 0.7; }

/* ── GUEST BANNER ─────────────────────────────────────────── */
#guest-banner {
  background: var(--sage);
  color: white;
  text-align: center;
  padding: 20px 24px;
  display: none;
}
#guest-banner.visible { display: block; }
.guest-banner-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}
.guest-banner-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
}

/* ── SECTIONS SHARED ──────────────────────────────────────── */
section {
  padding: 80px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.section-tag {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-divider {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
  margin: 0 auto 36px;
}
.section-divider.left { margin-left: 0; }

/* ── QUOTE ────────────────────────────────────────────────── */
#quote-section {
  text-align: center;
  padding: 64px 32px;
  background: var(--parchment);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
#quote-section::before,
#quote-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--sage-light);
  opacity: 0.18;
}
#quote-section::before { top: -80px; left: -60px; }
#quote-section::after  { bottom: -80px; right: -60px; }
.quote-mark {
  font-family: 'Great Vibes', cursive;
  font-size: 5rem;
  color: var(--sage);
  opacity: 0.4;
  line-height: 0.5;
  margin-bottom: 12px;
  display: block;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: var(--dark);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── COUPLE ───────────────────────────────────────────────── */
#couple-section {
  text-align: center;
}
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
.couple-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.couple-photo-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--sage-light);
  box-shadow: 0 8px 30px var(--shadow);
  background: var(--parchment);
  flex-shrink: 0;
}
.couple-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.couple-full-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark);
}
.couple-parent-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-top: 4px;
}
.couple-parent-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.couple-ampersand {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  color: var(--sage);
  line-height: 1;
}

/* ── EVENTS ───────────────────────────────────────────────── */
#events-section {
  text-align: center;
  background: var(--warm-white);
  max-width: 100%;
  padding: 80px 24px;
}
.events-inner {
  max-width: 680px;
  margin: 0 auto;
}
.event-cards {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.event-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  background: white;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.event-badge {
  display: inline-block;
  background: var(--sage);
  color: white;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.event-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 18px;
}
.event-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.event-detail-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--sage-dark);
}
.event-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage-deep);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.event-maps-btn:hover {
  background: var(--sage);
  color: white;
}

/* ── COUNTDOWN ────────────────────────────────────────────── */
#countdown-section {
  text-align: center;
  background: var(--sage-deep);
  max-width: 100%;
  padding: 80px 24px;
  color: white;
}
.countdown-inner { max-width: 600px; margin: 0 auto; }
.countdown-section-tag { color: var(--gold-light); opacity: 0.8; }
.countdown-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 300;
  margin-bottom: 16px;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}
.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 8vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold-light);
}
.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.2);
  align-self: center;
  padding-bottom: 24px;
}

/* ── LOVE STORY ───────────────────────────────────────────── */
#lovestory-section {
  text-align: center;
}
.lovestory-body {
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  white-space: pre-line;
  max-width: 620px;
  margin: 0 auto;
}
.lovestory-body strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  display: block;
  margin-top: 24px;
  margin-bottom: 4px;
}

/* ── GALLERY ──────────────────────────────────────────────── */
#gallery-section { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--parchment);
  box-shadow: 0 4px 16px var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ── VIDEO ────────────────────────────────────────────────── */
#video-section {
  text-align: center;
  background: var(--parchment);
  max-width: 100%;
  padding: 80px 24px;
}
.video-inner { max-width: 680px; margin: 0 auto; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  margin-top: 40px;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── DRESS CODE ───────────────────────────────────────────── */
#dresscode-section { text-align: center; }
.dresscode-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 24px var(--shadow);
  margin-top: 32px;
}
.dresscode-swatch {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.dresscode-color-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
}
.dresscode-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  text-align: center;
}

/* ── GIFT ─────────────────────────────────────────────────── */
#gift-section { text-align: center; }
.gift-cards {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
.gift-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  background: white;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 20px;
}
.gift-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage-deep);
}
.gift-bank {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
}
.gift-account {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: 'Jost', monospace;
  letter-spacing: 0.08em;
}
.gift-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.copy-btn {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage-deep);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-family: 'Jost', sans-serif;
}
.copy-btn:hover {
  background: var(--sage);
  color: white;
}
.copy-btn.copied {
  background: var(--sage-deep);
  color: white;
  border-color: var(--sage-deep);
}

/* ── AD BANNER ────────────────────────────────────────────── */
.ad-banner {
  background: linear-gradient(135deg, var(--parchment) 0%, white 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 40px auto;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px var(--shadow);
}
.ad-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--sage-light);
  border: 2px dashed var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.55rem;
  color: var(--sage-dark);
  text-align: center;
  letter-spacing: 0.05em;
  font-family: 'Jost', sans-serif;
  padding: 6px;
  line-height: 1.4;
}
.ad-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: flex;
}
.ad-body {}
.ad-powered {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ad-studio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sage-deep);
}
.ad-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.ad-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.ad-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}
.ad-contact-link:hover { color: var(--sage-dark); }

/* ── MUSIC PLAYER ─────────────────────────────────────────── */
#music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: none;
}
#music-player.visible { display: block; }
.music-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(85, 107, 82, 0.4);
  transition: all 0.3s ease;
}
.music-btn:hover { background: var(--sage-deep); transform: scale(1.08); }
.music-btn.playing { animation: pulse-ring 2s ease infinite; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}
footer .footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(168,181,162,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(168,181,162,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,181,162,0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .couple-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .couple-ampersand { font-size: 2.8rem; }
  .couple-photo-wrap { width: 120px; height: 120px; }
  .ad-banner { flex-direction: column; text-align: center; }
  .ad-contacts { justify-content: center; }
  .countdown-grid { gap: 12px; }
  .gift-card { flex-wrap: wrap; }
  .copy-btn { margin-left: 0; }
}
