/* ========================================================================
   Shabeer Fayas & Hiba — Wedding Invitation
   Theme: White & Champagne Gold on Soft Beige, cinematic luxury.
   ======================================================================== */

:root {
  --gold: #c9a86a;
  --gold-light: #e8d9b8;
  --gold-dark: #9c7b3f;
  --beige: #f6efe4;
  --beige-dark: #eee2cd;
  --ink: #2c2620;
  --ink-soft: #574b3c;
  --cream: #fffdf8;
  --glass-bg: rgba(255, 253, 248, 0.55);
  --glass-border: rgba(201, 168, 106, 0.35);
  --shadow-soft: 0 20px 60px -20px rgba(44, 38, 32, 0.25);
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  background: var(--beige);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  margin: 0;
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

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

/* Grain overlay for cinematic texture, fixed and non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------------------------- Loading Screen ---------------------------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-luxe), visibility 0.8s;
}
.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-inner { text-align: center; }
.loading-names {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: center;
  margin: 0 0 1.5rem;
}
.loading-amp { font-family: "Great Vibes", cursive; font-size: 1.4em; color: var(--gold); }
.loading-bar {
  width: 180px;
  height: 2px;
  background: var(--beige-dark);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2px;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  animation: loadFill 1.6s var(--ease-luxe) forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ---------------------------- Envelope Gate ---------------------------- */
.envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(ellipse at 50% 30%, var(--cream), var(--beige) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 1s var(--ease-luxe), visibility 1s;
  overflow: hidden;
}
.envelope-gate.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.envelope-content { position: relative; z-index: 2; padding: 2rem; }
.envelope-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.envelope-title {
  font-size: clamp(2.2rem, 10vw, 4rem);
  color: var(--ink);
}
.envelope-amp { font-family: "Great Vibes", cursive; color: var(--gold); padding: 0 0.2em; }
.envelope-date {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  font-size: 1.1rem;
  margin: 0.75rem 0 2rem;
}
.btn-open-invitation {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  padding: 1rem 2.2rem;
  min-height: 52px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease-luxe);
}
.btn-open-invitation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-luxe);
  z-index: -1;
}
.btn-open-invitation:hover::before,
.btn-open-invitation:focus-visible::before { transform: scaleX(1); }
.btn-open-invitation:hover,
.btn-open-invitation:focus-visible { color: var(--cream); }

.envelope-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* ---------------------------- Petals (shared) ---------------------------- */
.petal {
  position: absolute;
  top: -5%;
  width: 14px;
  height: 14px;
  background: var(--gold-light);
  border-radius: 0 100% 0 100%;
  opacity: 0.7;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(110vh) translateX(40px) rotate(340deg); opacity: 0; }
}

/* ---------------------------- Sticky Nav ---------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(246, 239, 228, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-luxe);
}
.site-nav.visible { transform: translateY(0); }
.site-nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 4vw, 2.2rem);
  margin: 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}
.site-nav-list a {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.site-nav-list a.active,
.site-nav-list a:hover { color: var(--gold-dark); border-color: var(--gold); }

/* ---------------------------- Music Toggle ---------------------------- */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 600;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-luxe);
}
.music-toggle:hover { transform: scale(1.08); }
.icon-note { width: 22px; height: 22px; }
.music-bars { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.music-toggle[aria-pressed="true"] .icon-note { display: none; }
.music-toggle[aria-pressed="true"] .music-bars { display: flex; }
.music-bars i {
  width: 3px; background: var(--gold-dark); border-radius: 2px;
  animation: bar 0.9s ease-in-out infinite;
}
.music-bars i:nth-child(1) { height: 6px; animation-delay: 0s; }
.music-bars i:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.music-bars i:nth-child(3) { height: 9px; animation-delay: 0.4s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.2); } }

/* ---------------------------- Scroll to top ---------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 600;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top-btn.show { opacity: 1; transform: translateY(0); }
.scroll-top-btn svg { width: 20px; height: 20px; }

/* ---------------------------- Generic Section Layout ---------------------------- */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin-bottom: 2.5rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

/* Reveal animations */
.reveal-up, .reveal-text {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.reveal-up.in-view, .reveal-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(3px) saturate(1.05) brightness(0.85) contrast(1.05);
  transform: scale(1.08);
  animation: heroPan 24s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.08) translateY(0); }
  to { transform: scale(1.15) translateY(-2%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30,24,16,0.55) 0%, rgba(30,24,16,0.72) 55%, rgba(20,15,10,0.88) 100%);
}
.hero-petals { position: absolute; inset: 0; overflow: hidden; }
.hero-floral-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--gold-light);
  opacity: 0.55;
}
.floral-frame-svg {
  position: absolute;
  top: 1rem; left: 1rem;
  width: 90px; height: 90px;
}
.hero-floral-frame::after {
  content: "";
  position: absolute;
  top: 1rem; right: 1rem;
  width: 90px; height: 90px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10 10 C 80 10, 10 80, 10 150'/%3E%3Cpath d='M10 10 C 100 20, 150 60, 190 10'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  transform: scaleX(-1);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.hero-names {
  font-size: clamp(2.4rem, 10vw, 4.6rem);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  color: #fffdf8;
}
.hero-heart { color: var(--gold); font-size: 0.4em; margin: 0.1em 0; }
.hero-tagline {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--gold-light);
  margin-top: 1rem;
}
.hero-date {
  margin-top: 2rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(232, 217, 184, 0.4);
  border-bottom: 1px solid rgba(232, 217, 184, 0.4);
}
.hero-date-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-date-value {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid var(--gold-light);
  border-radius: 20px;
}
.scroll-indicator span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------------------------- Countdown ---------------------------- */
.countdown-section { background: var(--cream); }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 640px;
  margin: 0 auto;
}
.countdown-cell {
  background: linear-gradient(160deg, var(--beige), var(--beige-dark));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.2rem 0.4rem;
  text-align: center;
}
.countdown-number {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--gold-dark);
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s var(--ease-luxe);
}
.countdown-number.tick { animation: tickPulse 0.4s var(--ease-luxe); }
@keyframes tickPulse { 0% { transform: translateY(-6px); opacity: 0.4;} 100% { transform: translateY(0); opacity: 1; } }
.countdown-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------------------- Blessings ---------------------------- */
.blessings-section {
  background: var(--beige);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.blessings-floral { width: 160px; height: 48px; color: var(--gold); margin: 0 auto; }
.blessings-quote {
  max-width: 640px;
  margin: 1.5rem auto;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--ink);
  line-height: 1.7;
}

/* ---------------------------- Our Story ---------------------------- */
.story-section { background: var(--cream); }
.timeline { display: flex; flex-direction: column; gap: 3.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.timeline-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
}
.timeline-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.05) contrast(1.03) brightness(1.01);
  transition: transform 0.8s var(--ease-luxe);
}
.timeline-item:hover .timeline-media img { transform: scale(1.05); }
.timeline-text { text-align: center; padding: 0 0.5rem; }
.timeline-index {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  color: var(--gold);
}
.timeline-text h3 { font-size: 1.6rem; margin: 0.3rem 0 0.7rem; }
.timeline-text p { color: var(--ink-soft); }

@media (min-width: 800px) {
  .timeline-item { grid-template-columns: 1fr 1fr; gap: 3rem; text-align: left; }
  .timeline-item .timeline-text { text-align: left; padding: 0; }
  .timeline-item.reverse .timeline-media { order: 2; }
  .timeline-item.reverse .timeline-text { order: 1; }
}

/* ---------------------------- Events ---------------------------- */
.events-section { background: var(--beige); }
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}
@media (min-width: 720px) {
  .events-grid { grid-template-columns: 1fr 1fr; }
}
.event-card {
  position: relative;
  padding: 2.4rem 1.8rem 2rem;
  text-align: center;
}
.event-card-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--cream);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.event-card-title { font-size: 1.7rem; margin-bottom: 0.3rem; }
.event-card-date { color: var(--gold-dark); letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.event-card-details { display: grid; gap: 0.7rem; text-align: left; max-width: 320px; margin: 0 auto 1.6rem; }
.event-card-details div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--glass-border); padding-bottom: 0.4rem; }
.event-card-details dt { color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event-card-details dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------------------------- Buttons (shared) ---------------------------- */
.btn-gold, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-luxe), box-shadow 0.3s var(--ease-luxe);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  border: none;
  box-shadow: 0 10px 25px -8px rgba(156, 123, 63, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(156, 123, 63, 0.65); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
}
.btn-ghost:hover { background: rgba(201, 168, 106, 0.12); }
.btn-small { min-height: 44px; padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.btn-calendar { width: 100%; }

/* ---------------------------- Gallery ---------------------------- */
.gallery-section { background: var(--cream); }
.gallery-masonry {
  columns: 2;
  column-gap: 0.9rem;
}
@media (min-width: 700px) { .gallery-masonry { columns: 3; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.6s var(--ease-luxe);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(44,38,32,0.35), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(20, 15, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-luxe), visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,217,184,0.4);
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 1.2rem; right: 1.2rem; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.8rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ---------------------------- Venue / Map ---------------------------- */
.venue-section { background: var(--beige); }
.map-card { padding: 1.2rem; text-align: center; }
.map-embed { border-radius: 14px; overflow: hidden; margin-bottom: 1.2rem; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------------------------- RSVP ---------------------------- */
.rsvp-section { background: var(--cream); }
.rsvp-subtitle { text-align: center; color: var(--ink-soft); max-width: 460px; margin: -1.5rem auto 2.5rem; }
.rsvp-form { padding: 2rem 1.6rem; max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label, .form-row legend { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding: 0; }
.form-row input, .form-row textarea {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.6);
  color: var(--ink);
}
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,106,0.25);
}
.attend-options { display: flex; gap: 1rem; flex-wrap: wrap; }
.attend-option {
  flex: 1 1 auto;
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  min-height: 48px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.attend-option input { min-height: auto; width: auto; accent-color: var(--gold-dark); }
.btn-submit { width: 100%; margin-top: 0.5rem; }

.rsvp-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.rsvp-success-check {
  width: 76px; height: 76px;
  margin: 0 auto 1rem;
  color: var(--gold-dark);
}
.rsvp-success-check circle {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circleDraw 0.6s var(--ease-luxe) forwards;
}
.rsvp-success-check path {
  stroke: var(--gold-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDraw 0.4s var(--ease-luxe) 0.5s forwards;
}
@keyframes circleDraw { to { stroke-dashoffset: 0; } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

/* ---------------------------- Footer ---------------------------- */
.site-footer {
  position: relative;
      z-index: 2;
  background: linear-gradient(180deg, var(--ink) 0%, #211c16 100%);
  color: var(--beige);
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
}
.footer-petals {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.5;

    pointer-events: none;   /* <-- ADD THIS */
}
.footer-thankyou {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  color: var(--gold-light);
  position: relative; z-index: 1;
}
.footer-message { color: var(--beige-dark); margin: 0.3rem 0 1.5rem; position: relative; z-index: 1; }
.footer-names { font-family: "Playfair Display", serif; font-size: 1.4rem; letter-spacing: 0.04em; position: relative; z-index: 1; }
.footer-actions { margin: 1.6rem 0; position: relative; z-index: 1; }
.footer-fine { font-size: 0.8rem; color: rgba(246,239,228,0.5); margin-top: 2rem; position: relative; z-index: 1; }

.footer-divider{
    width:80px;
    height:1px;
    border:none;
    background:rgba(255,255,255,.2);
    margin:30px auto;
}

.footer-promo{
    max-width:650px;
    margin:0 auto;
    text-align:center;
}

.promo-title{
    font-size:1.15rem;
    font-weight:600;
    margin-bottom:12px;
    color:#f5d08a;
}

.promo-text{
    color:#d9d9d9;
    line-height:1.7;
    margin-bottom:20px;
}

.promo-btn{
    display:inline-block;
    padding:12px 26px;
    background:#25D366;
    color:#fff;
    text-decoration:none;
    border-radius:999px;
    font-weight:600;
    transition:.3s;
}

.promo-btn:hover{
    background:#1ebe5b;
    transform:translateY(-2px);
}

.promo-credit{
    margin-top:20px;
    font-size:.9rem;
    color:#bfbfbf;
    line-height:1.8;
}

.promo-credit strong{
    color:#fff;
}
/* ---------------------------- Reduced Motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg { animation: none; }
}

/* ---------------------------- Small screens polish ---------------------------- */
@media (max-width: 380px) {
  .section-inner { padding: 4rem 1.1rem; }
  .countdown-grid { gap: 0.5rem; }
}
