/* footer.css — Aarav & Riya Wedding */

/* ===================== FOOTER ===================== */
#footer {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#footer { min-height: 140vh; }

.footer__content, .footer__bottom { position: relative; z-index: 4; }
#footer .footer__video-wrap { z-index: 0; }
#footer .footer__content, #footer .footer__bottom { z-index: 10; background: transparent; }
#footer .footer__content { position: absolute; top: 12%; left: 0; width: 100%; height: 64%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; color: var(--dark); background: transparent; border: 0; border-radius: 0; backdrop-filter: none; }
#footer .footer__content > * { color: var(--dark); text-shadow: none; }
#footer .footer__content .footer__names, #footer .footer__content .footer__forever { color: var(--copper); }
#footer .footer__content .footer__amp, #footer .footer__content .footer__date, #footer .footer__content .footer__contact { color: var(--royal); }
#footer .footer__bottom { position: absolute; bottom: 0; left: 0; width: 100%; color: var(--ivory); text-shadow: 0 2px 8px rgba(0,0,0,.7); }
#footer .footer__bottom { display: block; visibility: visible; min-height: 3.5rem; padding: 1.2rem 1rem; text-align: center; font-size: .75rem; line-height: 1.4; letter-spacing: .1em; color: var(--dark); text-shadow: 0 1px 0 rgba(255,247,232,.75); }

.footer__video-wrap {
  position: absolute;
  inset: 0;
}

.footer__video-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--dark) 0%, color-mix(in srgb, var(--rose) 55%, var(--dark)) 48%, var(--copper) 100%);
  position: absolute;
  inset: 0;
}
#footer .footer__video-fallback { display: none; }

.footer__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 48%, transparent), color-mix(in srgb, var(--copper) 28%, transparent));
  z-index: 1;
}

.footer__petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  border-radius: 50% 0 50% 0;
  animation: petal-fall linear infinite;
  opacity: 0.7;
}

@keyframes petal-fall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 0.7; }
  to { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.footer__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 4rem 2rem;
}

.footer__monogram {
  width: clamp(80px, 15vw, 140px);
  height: clamp(80px, 15vw, 140px);
  margin: 0 auto 2rem;
  display: block;
}

.footer__names {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer__amp {
  font-family: var(--font-script);
  display: block;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--gold);
  line-height: 1.2;
}

.footer__date {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.3em;
  color: rgba(250,243,224,0.6);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer__forever {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold);
  margin-bottom: 2rem;
}

.footer__divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.footer__contact {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(250,243,224,0.5);
  letter-spacing: 0.1em;
}

.footer__bottom {
  position: relative;
  z-index: 3;
  padding: 1.5rem 2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(250,243,224,0.3);
  letter-spacing: 0.1em;
}

.footer__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Keep footer copy in a predictable vertical rhythm at every viewport size. */
#footer .footer__content {
  gap: 1rem;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}
#footer .footer__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  line-height: .95;
  margin: 0;
}
#footer .footer__amp { margin: 0; line-height: 1; }
#footer .footer__date,
#footer .footer__forever,
#footer .footer__contact { margin: 0; text-align: center; line-height: 1.5; }
#footer .footer__divider { flex: 0 0 auto; margin: .4rem auto; }
@media (max-width: 600px) {
  #footer .footer__content { top: 6%; height: 78%; gap: .75rem; }
  #footer .footer__names { font-size: clamp(2.5rem, 13vw, 4.5rem); }
  #footer .footer__date { font-size: .78rem; letter-spacing: .16em; }
  #footer .footer__contact { font-size: .72rem; max-width: 90vw; }
}

/* Final footer composition: the invitation copy always lives on a stable, high-contrast card. */
#footer {
  min-height: clamp(680px, 100svh, 900px);
  padding: clamp(4rem, 9vw, 7rem) 1rem 6rem;
  box-sizing: border-box;
  isolation: isolate;
  background: #081232;
}

#footer .footer__video-wrap,
#footer .footer__video-wrap .footer__video,
#footer .footer__video-wrap .footer__video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(3, 10, 32, 0.88) 0%, rgba(8, 18, 48, 0.62) 48%, rgba(31, 10, 35, 0.82) 100%);
  z-index: 1;
}

#footer .footer__petals { z-index: 2; }
#footer .footer__canvas { z-index: 3; }

#footer .footer__content {
  position: relative;
  inset: auto;
  z-index: 4;
  width: min(calc(100% - 2rem), 42rem);
  height: auto;
  min-height: 0;
  margin: auto;
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  box-sizing: border-box;
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.7rem);
  align-items: center;
  justify-content: center;
  color: #fff9e8;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: footer-card-reveal 900ms cubic-bezier(.16, 1, .3, 1) both;
}

#footer .footer__content > * { color: inherit; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }
#footer .footer__monogram { width: clamp(72px, 12vw, 112px); height: auto; margin: 0 0 .25rem; }
#footer .footer__names { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 600; letter-spacing: .04em; line-height: 1.05; color: #fff9e8; }
#footer .footer__amp { font-family: var(--font-script); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; color: #f0c842; }
#footer .footer__date { margin-top: .65rem; font-family: var(--font-body); font-size: clamp(.88rem, 1.6vw, 1.05rem); font-weight: 700; letter-spacing: .16em; line-height: 1.35; color: #f7d985; }
#footer .footer__forever { font-family: var(--font-script); font-size: clamp(2rem, 4vw, 3.25rem); color: #fff9e8; }
#footer .footer__contact { max-width: 34rem; font-family: var(--font-body); font-size: clamp(.88rem, 1.5vw, 1.05rem); font-weight: 400; line-height: 1.75; letter-spacing: .035em; color: #f5ead0; }
#footer .footer__divider { width: min(13rem, 58%); margin: .15rem auto; background: linear-gradient(90deg, transparent, #f0c842, transparent); }
#footer .footer__bottom { position: absolute; left: 0; bottom: 0; z-index: 4; width: 100%; box-sizing: border-box; padding: 1.25rem 1rem; color: #fff9e8; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }

/* Beat the legacy footer colour rules with the final readable palette. */
#footer .footer__content .footer__names { color: #fff9e8; }
#footer .footer__content .footer__amp { color: #f0c842; }
#footer .footer__content .footer__date { color: #f7d985; }
#footer .footer__content .footer__forever { color: #fff9e8; }
#footer .footer__content .footer__contact { color: #f5ead0; }

@keyframes footer-card-reveal { from { opacity: 0; transform: translateY(32px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 600px) {
  #footer { min-height: 760px; padding: 3.5rem 0 5.5rem; }
  #footer .footer__content { width: min(calc(100% - 2rem), 34rem); padding: 2.25rem 1.25rem; gap: 1rem; }
  #footer .footer__names { font-size: clamp(3.1rem, 15vw, 4.8rem); line-height: 1.08; }
  #footer .footer__date { margin-top: .8rem; font-size: .78rem; letter-spacing: .1em; line-height: 1.45; }
  #footer .footer__forever { font-size: clamp(1.9rem, 10vw, 2.65rem); }
  #footer .footer__contact { font-size: .86rem; line-height: 1.65; }
  #footer .footer__bottom { font-size: .7rem; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) { #footer .footer__content { animation: none; } }
