/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-pale:   #F5E8C0;
  --cream:       #FDF8EF;
  --cream-dark:  #F2E8D5;
  --brown-dark:  #3D2B1F;
  --brown-mid:   #6B4226;
  --text-dark:   #2C1810;
  --text-mid:    #5C3D2E;
  --text-light:  #F5E8C0;
  --white:       #FFFFFF;
  --shadow:      rgba(61, 43, 31, 0.18);
  --font-script: 'Great Vibes', cursive;
  --font-serif:  'Cormorant Garamond', serif;
  --font-display:'Cinzel', serif;
  --font-body:   'Lato', sans-serif;
}

html { scroll-behavior: auto; }

/* =============================================
   ENVELOPE INTRO OVERLAY
   ============================================= */
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0402;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

#envelope-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.env-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

/* ── Invitation card (hidden behind envelope initially) ── */
.env-card {
  position: absolute;
  bottom: calc(100% - 3.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: min(360px, 84vw);
  background: linear-gradient(160deg, #1e1208 0%, #120a04 100%);
  border: 1px solid rgba(201,168,76,0.5);
  border-bottom: none;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
}

.env-card.slide-up {
  transform: translateX(-50%) translateY(-100%);
  opacity: 1;
  pointer-events: auto;
}

.env-card-om {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.env-card-invited {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 16px rgba(201,168,76,0.5);
}

.env-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.env-card-divider .line   { flex: 1; height: 1px; background: rgba(201,168,76,0.4); }
.env-card-divider .diamond { color: var(--gold); font-size: 0.55rem; }

.env-card-body {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 1.9;
  color: var(--gold-pale);
}

.env-card-body strong {
  font-family: var(--font-script);
  font-size: 1.4em;
  color: var(--gold-light);
  font-weight: 400;
}

.env-card-tap {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: rgba(201,168,76,0.45);
  margin-top: 1.2rem;
  animation: hintPulse 2s ease-in-out infinite;
}

.env-body {
  position: relative;
  width: min(560px, 92vw);
  height: min(400px, 84vw);
  background: linear-gradient(160deg, #1e1208 0%, #120a04 100%);
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.15),
    0 20px 60px rgba(0,0,0,0.8),
    inset 0 0 40px rgba(201,168,76,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 800px;
}

/* Envelope flap — triangle at top */
.env-flap {
  position: absolute;
  top: 0;
  left: -1px;
  right: -1px;
  height: 55%;
  background: linear-gradient(175deg, #2a1a08 0%, #1a0e05 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top: 2px solid var(--gold);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  display: flex;
  align-items: 30%;
  justify-content: center;
}

.env-flap.open {
  transform: rotateX(-180deg);
}

.env-seal {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,168,76,0.8);
  pointer-events: none;
}

/* Bottom V fold lines */
.env-body::before,
.env-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 51%;
  height: 52%;
  border-top: 1px solid rgba(201,168,76,0.3);
  z-index: 1;
}
.env-body::before { left: 0; transform-origin: bottom left; transform: skewY(-38deg); }
.env-body::after  { right: 0; transform-origin: bottom right; transform: skewY(38deg); }

.env-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.2rem;
  transition: opacity 0.4s ease;
}


.env-om {
  font-family: var(--font-serif);
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  letter-spacing: 0.18em;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.env-dear {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  color: var(--gold-light);
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 16px rgba(201,168,76,0.5);
}

.env-invite-text {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.env-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.env-names {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201,168,76,0.6), 0 2px 8px rgba(0,0,0,0.8);
  line-height: 1;
}

.env-date {
  font-family: var(--font-serif);
  font-size: clamp(0.6rem, 1.8vw, 0.75rem);
  letter-spacing: 0.2em;
  color: rgba(232,201,106,0.6);
}

.env-hint {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232,201,106,0.5);
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

body {
  font-family: var(--font-body);
  background: #0a0402;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

/* =============================================
   SINGLE FIXED BACKGROUND
   ============================================= */

.bg-fixed {
  position: fixed;
  inset: 0;
  background: url('assets/TempleBkgd.jpeg') center center / cover no-repeat;
  z-index: -1;
}

/* =============================================
   PAGE 1 — HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.78);
}

/* Floating diyas */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  top: -60px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: sparkleFall linear forwards;
}

@keyframes sparkleFall {
  0%   { transform: translateY(0) translateX(0);             opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translateY(55vh) translateX(var(--sway)); }
  80%  { opacity: 0.9; }
  100% { transform: translateY(110vh) translateX(0);          opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(0.4); opacity: 0.15; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  animation: fadeInUp 1.4s ease both;
}

/* Stacked names */
.hero-names-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.hero-name-line {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 12vw, 9rem);
  color: #e8d5a3;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(180, 140, 60, 0.3);
  line-height: 1.2;
  padding: 0.1em 0.15em;
  display: block;
  overflow: visible;
}

.hero-weds-line {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 5vw, 3.5rem);
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  line-height: 1.2;
  display: block;
  font-style: italic;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: max(2.2rem, env(safe-area-inset-bottom, 0px) + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  transition: opacity 0.4s ease;
  animation: scrollFadeIn 2s 1.5s ease forwards;
  opacity: 0;
}

.scroll-indicator.hidden {
  opacity: 0 !important;
  pointer-events: none;
  animation: none;
}

.scroll-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-arrow span {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg);
  animation: scrollBounce 1.4s ease-in-out infinite;
}
.scroll-arrow span:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.9; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 0.4; }
}

@keyframes scrollFadeIn {
  to { opacity: 1; }
}

/* =============================================
   PAGE 2 — INVITATION (TempleBkgd1)
   ============================================= */
.invitation {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.invitation-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.65);
}

.invite-label {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold-light);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

/* Hero merged overrides */
.hero-om {
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.hero-divider {
  margin: 0.8rem auto 1rem;
  max-width: 200px;
}
.hero-invite-body {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  line-height: 1.8;
  margin-bottom: 0;
  color: rgba(245,232,192,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.invite-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1rem;
}

.invite-body {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 2;
  color: var(--gold-pale);
  margin-bottom: 3rem;
}

.invite-body strong {
  font-family: var(--font-script);
  font-size: 1.5em;
  color: var(--gold-light);
  font-weight: normal;
}

.parents-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.parent-col { text-align: center; }

.parent-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.parent-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
}

.parent-divider {
  font-size: 1.5rem;
  color: var(--gold);
}

/* =============================================
   PAGE 3 — COUPLE PHOTO (TempleBkgd2)
   ============================================= */
.couple-photo-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.couple-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.45);
}

.photo-frame-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Corner ornament wrapper — gives us 4 pseudo-elements for 4 corners */
.photo-corner-wrap {
  position: relative;
  display: inline-block;
  padding: 12px;
}

.photo-corner-wrap::before,
.photo-corner-wrap::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
}
/* top-left */
.photo-corner-wrap::before {
  top: 0; left: 0;
  border-width: 3px 0 0 3px;
}
/* bottom-right */
.photo-corner-wrap::after {
  bottom: 0; right: 0;
  border-width: 0 3px 3px 0;
}

/* top-right and bottom-left via inner frame pseudo */
.photo-frame::before,
.photo-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}
.photo-frame::before {
  top: -12px; right: -12px;
  border-width: 3px 3px 0 0;
}
.photo-frame::after {
  bottom: -12px; left: -12px;
  border-width: 0 0 3px 3px;
}

.photo-frame {
  position: relative;
  width: min(420px, 88vw);
  height: min(520px, 108vw);
  overflow: hidden;
  border: 2px solid rgba(201, 168, 76, 0.5);
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.2),
    0 20px 50px rgba(61, 43, 31, 0.45);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.photo-frame:hover img { transform: scale(1.04); }

.photo-caption .script-text {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-pale);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* =============================================
   PAGE 4 — COUNTDOWN (TempleBkgd1)
   ============================================= */
.countdown-section {
  position: relative;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}

.temple-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.78);
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.count-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
}

.count-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-top: 0.4rem;
}

.count-sep {
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: var(--gold);
  line-height: 1;
  margin-top: -1rem;
}

/* =============================================
   OUR STORY
   ============================================= */
.our-story-section {
  position: relative;
  background: none;
}

.our-story-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.78);
}

.our-story-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.our-story-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.our-story-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--gold-light);
  margin: 0.3rem 0 0.8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.our-story-body {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.our-story-photo {
  flex: 0 0 auto;
}

.story-arch {
  width: min(260px, 70vw);
  aspect-ratio: 3/4;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  background: #1a1008;
}

.story-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.our-story-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.our-story-text p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 2;
  color: #d4c4a0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.our-story-sign {
  font-family: var(--font-script) !important;
  font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
  color: var(--gold-light) !important;
  margin-top: 0.5rem;
  line-height: 1.2 !important;
}

@media (max-width: 768px) {
  .our-story-body {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .story-arch { width: min(220px, 65vw); }
  .our-story-text { text-align: center; }
}

/* =============================================
   PAGE 5 — WEDDING EVENT (TempleBkgd2)
   ============================================= */
.events-section {
  position: relative;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}

.events-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.events-col {
  flex: 1;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.events-row {
  align-items: stretch;
}

.events-col .section-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.events-col .section-label {
  font-size: 0.8rem;
  white-space: nowrap;
}

.events-divider-v {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.5) 20%, rgba(201,168,76,0.5) 80%, transparent);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .events-row {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  .events-divider-v {
    width: 60%;
    height: 1px;
    align-self: center;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.5) 20%, rgba(201,168,76,0.5) 80%, transparent);
  }
}

.events-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.78);
}

.event-card-single {
  background: rgba(253, 248, 239, 0.10);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 2.5rem;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.event-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.event-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-pale);
  margin-bottom: 0.3rem;
}

.event-time {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.event-divider {
  width: 50px;
  height: 1px;
  background: rgba(201, 168, 76, 0.4);
  margin: 1.2rem auto;
}

.event-venue {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.event-address {
  font-size: 0.85rem;
  color: var(--gold-pale);
  margin-bottom: 1.5rem;
}

.event-map-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.event-map-btn:hover {
  background: var(--gold);
  color: var(--brown-dark);
}

.watch-live-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(201, 168, 76, 0.3);
}
.watch-live-btn.disabled:hover {
  background: none;
  color: var(--gold-light);
}

/* Gold Watch Live button */
.watch-live-gold-btn {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.5rem;
  background: var(--gold);
  color: var(--brown-dark);
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.watch-live-gold-btn:hover {
  background: transparent;
  color: var(--gold-light);
  box-shadow: 0 0 30px rgba(201,168,76,0.6);
}
.watch-live-gold-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--gold-light);
  box-shadow: none;
}
.watch-live-gold-btn.disabled:hover {
  background: transparent;
  color: var(--gold-light);
  box-shadow: none;
}

/* =============================================
   PAGE 6 — THINGS TO KNOW (TempleBkgd2)
   ============================================= */
.info-section {
  position: relative;
  min-height: unset;
  background: url('assets/TempleBkgd.jpeg') center bottom / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.temple-bg-2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,6,2,0.88) 0%, rgba(30,12,4,0.92) 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-card {
  background: rgba(253, 248, 239, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.28);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}

.info-card:hover {
  background: rgba(253, 248, 239, 0.13);
  border-color: rgba(201, 168, 76, 0.65);
}

.info-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

.info-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.info-card p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cream);
}

.info-card .hashtag {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* =============================================
   LIVE STREAMING
   ============================================= */
.livestream-section {
  position: relative;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fancy standalone Watch Live button */
.watch-live-fancy-btn {
  display: inline-block;
  position: relative;
  text-decoration: none;
  margin-top: 0.5rem;
  padding: 1.1rem 3.6rem;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brown-dark);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #a8782a 100%);
  border: none;
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.6),
    0 0 0 4px rgba(201,168,76,0.15),
    0 0 30px rgba(201,168,76,0.5),
    0 6px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.watch-live-fancy-btn::before,
.watch-live-fancy-btn::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  color: var(--brown-dark);
  opacity: 0.7;
}
.watch-live-fancy-btn::before { left: 1.2rem; }
.watch-live-fancy-btn::after  { right: 1.2rem; }

.watch-live-fancy-btn .wlb-inner {
  position: relative;
}

.watch-live-fancy-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.8),
    0 0 0 5px rgba(201,168,76,0.25),
    0 0 50px rgba(201,168,76,0.7),
    0 10px 30px rgba(0,0,0,0.5);
}
.watch-live-fancy-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.livestream-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 2;
  color: #d4c4a0;
  max-width: 520px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.livestream-coming-soon {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(245, 232, 192, 0.55);
  letter-spacing: 0.06em;
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--brown-dark);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 500px; margin: 0 auto; }

.footer-couple {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.footer-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1rem;
}

.footer-hashtag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 232, 192, 0.4);
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */
.section-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.section-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 14px rgba(201,168,76,0.4);
}
.section-label.light {
  color: var(--gold-pale);
  text-shadow: 0 0 16px rgba(232,201,106,0.5), 0 1px 8px rgba(0,0,0,0.6);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow:
    0 0 20px rgba(201,168,76,0.5),
    0 2px 8px rgba(0,0,0,0.4);
}
.section-heading.light {
  color: var(--gold-light);
  text-shadow:
    0 0 30px rgba(232,201,106,0.6),
    0 0 60px rgba(201,168,76,0.3),
    0 2px 12px rgba(0,0,0,0.8);
}
.section-label.light {
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 2.5rem;
  max-width: 300px;
}
.divider-ornament .line   { flex: 1; height: 1px; background: var(--gold); }
.divider-ornament .diamond { color: var(--gold); font-size: 0.6rem; }
.divider-ornament.light .line   { background: rgba(232, 201, 106, 0.45); }
.divider-ornament.light .diamond { color: var(--gold-pale); }

/* =============================================
   ANIMATIONS — KEYFRAMES
   ============================================= */

/* Hero entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero name lines stagger in */
.hero-names-stacked .hero-name-line:nth-child(1) {
  animation: nameReveal 1.2s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
.hero-names-stacked .hero-weds-line {
  animation: nameReveal 1.2s cubic-bezier(0.22,1,0.36,1) 0.65s both;
}
.hero-names-stacked .hero-name-line:nth-child(3) {
  animation: nameReveal 1.2s cubic-bezier(0.22,1,0.36,1) 1s both;
}

@keyframes nameReveal {
  from { opacity: 0; transform: translateY(60px) scale(0.92); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}


/* Ken Burns on hero via pseudo-element */
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.07) translate(-1.5%, 1%); }
  100% { transform: scale(1)    translate(0, 0); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: kenBurns 20s ease-in-out infinite;
  z-index: 0;
}


/* =============================================
   ANIMATIONS — SCROLL REVEAL CLASSES
   ============================================= */

/* Base hidden state */
.will-reveal {
  opacity: 0;
  will-change: opacity, transform;
}

/* Fade up */
.will-reveal.anim-fade-up {
  transform: translateY(50px);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1),
              transform 0.85s cubic-bezier(0.22,1,0.36,1);
}
.will-reveal.anim-fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade down */
.will-reveal.anim-fade-down {
  transform: translateY(-30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.will-reveal.anim-fade-down.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scale in */
.will-reveal.anim-scale-in {
  transform: scale(0.88) translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.will-reveal.anim-scale-in.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Divider expand */
.will-reveal.anim-expand {
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.will-reveal.anim-expand.revealed {
  opacity: 1;
  transform: scaleX(1);
}

/* Countdown blocks bounce in */
.will-reveal.anim-count-in {
  transform: translateY(40px) scale(0.8);
  transition: opacity 0.7s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
.will-reveal.anim-count-in.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Info cards — staggered left/right alternating */
.info-card {
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1),
              background 0.3s, border-color 0.3s;
}
.info-card:nth-child(odd).will-reveal  { transform: translateX(-40px); }
.info-card:nth-child(even).will-reveal { transform: translateX(40px); }
.info-card.revealed { opacity: 1; transform: translateX(0) !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .section-inner { padding: 2.5rem 1.2rem; }

  .section-heading {
    font-size: clamp(1.4rem, 6vw, 2rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .section-label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .parents-block { flex-direction: column; gap: 1.2rem; }
  .parent-divider { transform: rotate(90deg); }

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

  .countdown-timer { gap: 0.8rem; }
  .count-sep { display: none; }
  .countdown-block { min-width: 70px; }

  .photo-frame { height: min(460px, 90vw); }

  .event-card-single { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-name-line  { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .hero-weds-line  { font-size: clamp(1.6rem, 9vw, 3rem); }
}



/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
