/* ============================================================
   Sharayu & Dipak Wedding — Section Styles
   Per-section visual design
   ============================================================ */

/* ===== OPENING OVERLAY — TRADITIONAL INDIAN DOOR REVEAL ===== */
#opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#opening-overlay.open {
  pointer-events: none;
}

#opening-overlay.hidden {
  display: none;
}

/* ── Warm Light Inside the Doorway ── */
.door-inner-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.door-light-core {
  width: 110vmax;
  height: 110vmax;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 254, 245, 0.98) 0%,
    rgba(255, 232, 158, 0.92) 18%,
    rgba(245, 175, 62, 0.72) 38%,
    rgba(217, 110, 22, 0.38) 58%,
    transparent 76%
  );
  opacity: 0;
  transform: scale(0.18);
  will-change: transform, opacity;
}

.door-light-rays {
  position: absolute;
  width: 160vmax;
  height: 160vmax;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 238, 170, 0.36) 0deg 6deg,
    transparent 6deg 15deg,
    rgba(240, 165, 55, 0.25) 15deg 20deg,
    transparent 20deg 30deg
  );
  mask-image: radial-gradient(circle at center, black 0%, rgba(0,0,0,0.6) 35%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, rgba(0,0,0,0.6) 35%, transparent 68%);
  opacity: 0;
  transform: scale(0.3) rotate(0deg);
  will-change: transform, opacity;
}

#opening-overlay.opening .door-light-core,
#opening-overlay.open .door-light-core {
  animation: innerLightBloom 1.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

#opening-overlay.opening .door-light-rays,
#opening-overlay.open .door-light-rays {
  animation: innerRaysBloom 1.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* ── 3D Door Stage & Portal ── */
.door-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  transition:
    transform 1.85s cubic-bezier(0.32, 0.08, 0.24, 1),
    opacity 0.5s ease 1.45s;
  will-change: transform, opacity;
}

.door-portal {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  transform-style: preserve-3d;
}

/* On wider screens (tablet/desktop landscape), preserve the authentic vertical
   Indian temple door aspect ratio in the center and frame it with warm carved
   teak & royal maroon temple jambs on the sides */
@media (min-aspect-ratio: 3/4) {
  .door-portal {
    width: min(100vw, 68vh);
    width: min(100vw, 68dvh);
  }

  .door-portal::before,
  .door-portal::after {
    content: '';
    position: absolute;
    top: -10vh;
    bottom: -10vh;
    width: 60vw;
    background:
      radial-gradient(circle at center, rgba(212, 138, 35, 0.16), transparent 70%),
      repeating-linear-gradient(
        90deg,
        #3A1407 0px,
        #4D1C0A 18px,
        #2D0E04 36px
      );
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.75);
    z-index: 4;
  }

  .door-portal::before {
    right: 100%;
    border-right: 4px solid #C88A2B;
    box-shadow:
      inset -12px 0 30px rgba(0, 0, 0, 0.65),
      4px 0 25px rgba(0, 0, 0, 0.5);
  }

  .door-portal::after {
    left: 100%;
    border-left: 4px solid #C88A2B;
    box-shadow:
      inset 12px 0 30px rgba(0, 0, 0, 0.65),
      -4px 0 25px rgba(0, 0, 0, 0.5);
  }
}

/* ── Door Leaves (Left & Right Mirror Image) ── */
.door-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.15%;
  transform-style: preserve-3d;
  transition: transform 1.65s cubic-bezier(0.25, 0.82, 0.25, 1);
  will-change: transform;
}

.door-left {
  left: 0;
  transform-origin: left center;
}

.door-right {
  right: 0;
  transform-origin: right center;
}

.door-surface {
  position: absolute;
  inset: 0;
  background-image: url('../images/indian-door-half.jpg');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.03);
  backface-visibility: hidden;
}

/* Right door is the exact mirror image of the left door */
.door-right .door-surface {
  transform: scaleX(-1);
}

/* 3D Wooden Thickness Edge on the inner meeting stile of each door */
.door-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(
    180deg,
    #7B4112 0%,
    #C98527 25%,
    #E6A845 50%,
    #C98527 75%,
    #7B4112 100%
  );
  box-shadow: inset 0 0 6px rgba(56, 20, 4, 0.7);
}

.door-left .door-edge {
  right: 0;
  transform-origin: right center;
  transform: rotateY(90deg);
}

.door-right .door-edge {
  left: 0;
  transform-origin: left center;
  transform: rotateY(-90deg);
}

/* Warm inner rim light + outer hinge depth shading */
.door-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 1.5s ease, background 1.5s ease;
}

.door-left .door-shade {
  background: linear-gradient(
    90deg,
    rgba(28, 8, 2, 0.38) 0%,
    transparent 24%,
    transparent 84%,
    rgba(255, 224, 130, 0.22) 100%
  );
}

.door-right .door-shade {
  background: linear-gradient(
    -90deg,
    rgba(28, 8, 2, 0.38) 0%,
    transparent 24%,
    transparent 84%,
    rgba(255, 224, 130, 0.22) 100%
  );
}

/* When doors swing open */
#opening-overlay.open .door-left {
  transform: rotateY(-108deg);
}

#opening-overlay.open .door-right {
  transform: rotateY(108deg);
}

#opening-overlay.open .door-stage {
  transform: scale(1.22);
  opacity: 0;
}

@media (min-aspect-ratio: 3/4) {
  #opening-overlay.open .door-stage {
    transform: scale(2.45);
  }
}

/* ── Glowing Golden Light Seam Between the Doors ── */
.door-center-seam {
  position: absolute;
  top: 2.5%;
  bottom: 2.5%;
  left: 50%;
  width: 7px;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  border-radius: var(--r-full);
  background: linear-gradient(
    180deg,
    rgba(255, 236, 170, 0.2) 0%,
    #FFFDF4 12%,
    #FFF9DC 50%,
    #FFFDF4 88%,
    rgba(255, 236, 170, 0.2) 100%
  );
  box-shadow:
    0 0 10px 3px rgba(255, 245, 200, 0.95),
    0 0 24px 8px rgba(245, 185, 66, 0.75),
    0 0 50px 16px rgba(217, 115, 18, 0.45);
  animation: doorSeamPulse 2.6s ease-in-out infinite;
}

#opening-overlay.opening .door-center-seam,
#opening-overlay.open .door-center-seam {
  animation: doorSeamFlare 0.75s ease-out forwards;
}

/* ── Golden Diamond Sparkles on Door (like Reference Image) ── */
.door-sparkles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.door-sparkle {
  position: absolute;
  width: var(--sp-size, 18px);
  height: var(--sp-size, 18px);
  background: radial-gradient(circle, #FFFDF5 0%, #FFE484 45%, rgba(240, 165, 35, 0) 72%);
  clip-path: polygon(
    50% 0%,
    64% 36%,
    100% 50%,
    64% 64%,
    50% 100%,
    36% 64%,
    0% 50%,
    36% 36%
  );
  filter: drop-shadow(0 0 8px rgba(255, 225, 110, 0.95));
  animation: doorSparkleTwinkle 2.4s ease-in-out var(--sp-delay, 0s) infinite;
}

#opening-overlay.opening .door-sparkles,
#opening-overlay.open .door-sparkles {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* ── Tap Anywhere Prompt Pill ── */
.door-tap-prompt {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.door-tap-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 11px 26px;
  border-radius: var(--r-full);
  background: rgba(42, 14, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(238, 192, 92, 0.78);
  box-shadow:
    0 6px 24px rgba(20, 5, 0, 0.55),
    0 0 22px rgba(235, 175, 55, 0.38),
    inset 0 1px 0 rgba(255, 240, 190, 0.35);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFF7E2;
  white-space: nowrap;
  animation: tapPulse 2.4s ease-in-out infinite;
}

.door-tap-pill i {
  color: #FFD972;
  font-size: 0.85rem;
  animation: tapBounce 1.5s ease-in-out infinite;
}

#opening-overlay.opening .door-tap-prompt,
#opening-overlay.open .door-tap-prompt {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

/* Ornate gold frame drawn by scripts/arch-frame.js */
.arch-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.arch-frame-outer { fill: none; stroke: var(--gold-primary); stroke-width: 2; }
.arch-frame-inner { fill: none; stroke: rgba(179,130,18,0.5); stroke-width: 1; }

/* Fallback until the script runs */
.hero-content:not(.has-arch-frame) { border: 1px solid rgba(179,130,18,0.42); border-radius: var(--r-xl); }

/* ===== HERO SECTION (2-Page Scroll Experience) ===== */
#hero {
  position: relative;
  min-height: 200vh;
  min-height: 200dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: clip;
}

.hero-bg-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: none;
  filter: brightness(1.06) saturate(1.1);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 245, 238, 0.08) 0%,
    rgba(246, 236, 222, 0.14) 45%,
    rgba(245, 234, 218, 0.28) 78%,
    var(--bg-dark) 100%
  );
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(
    ellipse 75% 60% at 50% 50%,
    rgba(255, 250, 242, 0.16) 0%,
    transparent 70%
  );
}

#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99; /* Float over content, under overlays */
  pointer-events: none;
}

/* ── Hero Page Stages (Page 1: Ganpati, Page 2: Invitation Card) ── */
.hero-page-stage {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  padding: calc(var(--offset-top) + var(--sp-4)) var(--sp-4) var(--sp-6);
  box-sizing: border-box;
}

.hero-page-stage--ganpati {
  padding-bottom: var(--sp-12);
}

.hero-page-stage--card {
  padding-bottom: var(--sp-8);
}

/* ── PAGE 1: Auspicious Ganpati with Glowing Background ── */
.hero-ganpati-reveal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-5);
  max-width: 620px;
  width: min(92%, 620px);
  padding: var(--sp-8) var(--sp-4);
}

/* Radiant glowing background behind Ganpati */
.hero-ganpati-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: min(90vw, 420px);
  height: min(90vw, 420px);
  pointer-events: none;
  z-index: 1;
}

.ganpati-glow-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 252, 238, 0.98) 0%,
    rgba(255, 226, 140, 0.82) 20%,
    rgba(245, 178, 62, 0.52) 42%,
    rgba(217, 120, 24, 0.25) 64%,
    transparent 82%
  );
  filter: blur(14px);
  animation: ganpatiGlowPulse 4s ease-in-out infinite alternate;
}

.ganpati-glow-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 175, 55, 0.65);
  box-shadow:
    0 0 35px rgba(212, 175, 55, 0.42),
    inset 0 0 30px rgba(255, 230, 160, 0.32);
  animation: ganpatiRingRotate 45s linear infinite;
}

.ganpati-glow-halo {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  animation: ganpatiHaloBreathe 4s ease-in-out infinite alternate;
}

@keyframes ganpatiGlowPulse {
  0%   { transform: scale(0.94); opacity: 0.82; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes ganpatiRingRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ganpatiHaloBreathe {
  0%   { transform: scale(0.92); opacity: 0.45; }
  100% { transform: scale(1.06); opacity: 0.88; }
}

.hero-ganpati-graphic {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ganpati-graphic picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ganpati-reveal-img {
  width: clamp(150px, 20vw, 210px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 4px 18px rgba(179, 130, 18, 0.45))
    drop-shadow(0 0 28px rgba(255, 235, 170, 0.65));
  animation: ganpatiFloat 4.2s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ganpatiFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.hero-ganpati-texts {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ganpati-deva-invocation {
  font-family: var(--font-deva);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--maroon-primary);
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 12px rgba(255, 248, 230, 0.95),
    0 0 24px rgba(212, 175, 55, 0.45);
  margin: 0;
}

.ganpati-eng-invocation {
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-shadow: 0 1px 4px rgba(255, 252, 245, 0.85);
  margin: 0;
}

/* Subtle scroll cue at bottom of Page 1 */
.hero-scroll-cue {
  position: absolute;
  bottom: calc(var(--sp-6) + 4px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--gold-dark);
  transition: opacity var(--t-fast), transform var(--t-fast);
  animation: scrollCueFloat 2.6s ease-in-out infinite;
}

.hero-scroll-cue:hover {
  color: var(--maroon-primary);
}

.hero-scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(179, 130, 18, 0.35);
  border-radius: var(--r-full);
  box-shadow:
    0 4px 16px rgba(45, 16, 6, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-scroll-pill i {
  font-size: 0.68rem;
  color: var(--gold-primary);
  animation: chevronBob 1.6s ease-in-out infinite;
}

@keyframes scrollCueFloat {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(5px); opacity: 1; }
}

@keyframes chevronBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* ── PAGE 2: Invitation Card (The designed element in curly braces and tips) ── */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  background: linear-gradient(
    160deg,
    rgba(255, 250, 242, 0.64) 0%,
    rgba(251, 242, 228, 0.56) 55%,
    rgba(248, 236, 218, 0.62) 100%
  );
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  box-shadow:
    0 16px 48px rgba(45, 16, 6, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.65);
  padding: var(--sp-10) 76px var(--sp-10);
  max-width: 780px;
  width: min(92%, 780px);
}

.hero-ganpati-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: heroSubIn 0.9s ease 0.2s both;
}

.hero-ganpati-img {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(179, 130, 18, 0.35));
}

.hero-invocation {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--maroon-primary);
  text-shadow: 0 1px 4px rgba(255, 252, 245, 0.85);
}

.hero-poem {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.74rem, 1.45vw, 1.02rem);
  line-height: 1.68;
  color: var(--text-bright);
  max-width: 580px;
  width: 100%;
  padding: var(--sp-2) var(--sp-4);
  border-top: 1px solid rgba(179, 130, 18, 0.28);
  border-bottom: 1px solid rgba(179, 130, 18, 0.28);
  text-shadow: 0 1px 6px rgba(255, 252, 245, 0.9);
  animation: heroSubIn 1s ease 0.35s both;
}

.hero-poem p {
  white-space: nowrap;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}

.hero-invite-lead {
  font-family: var(--font-heading);
  font-size: clamp(0.66rem, 1.3vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon-deep);
  margin-top: var(--sp-1);
  text-shadow: 0 1px 4px rgba(255, 252, 245, 0.85);
  animation: heroSubIn 1s ease 0.45s both;
}

.hero-names {
  font-family: var(--font-cursive);
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.1;
  padding: 0 var(--sp-2);
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: heroNamesIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s both;
  filter: drop-shadow(0 2px 12px rgba(179,130,18,0.28));
}

.hero-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.hero-names .hero-name {
  display: block;
  line-height: 1.2;
  padding: 0.08em 0.2em;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon-primary) 30%, var(--gold-primary) 50%, var(--maroon-primary) 70%, var(--maroon-deep));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    goldShimmer 6s ease 1.7s infinite,
    heroNameFloat 4.6s ease-in-out 1.2s infinite;
}

.hero-person:last-child .hero-name,
.hero-names .hero-person:nth-of-type(2) .hero-name {
  animation:
    goldShimmer 6s ease 2.1s infinite,
    heroNameFloat 4.8s ease-in-out 1.9s infinite;
}

.hero-parent-line {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.56rem, 1.75vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--maroon-deep);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.35;
  margin-top: 1px;
  text-shadow: 0 1px 3px rgba(255, 252, 245, 0.85);
}

.hero-names .hero-amp {
  -webkit-text-fill-color: var(--orange-primary);
  color: var(--orange-primary);
  font-size: 0.45em;
  line-height: 1;
  margin: 0.08em 0;
  display: inline-block;
  animation: ampersandFloat 5s ease-in-out 1.5s infinite;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  max-width: 280px;
  animation: heroSubIn 1s ease 0.85s both;
}

.hero-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border-strong));
}

.hero-divider-line:last-child {
  background: linear-gradient(90deg, var(--gold-border-strong), transparent);
}

.hero-divider-icon {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

.hero-family-welcome {
  font-family: var(--font-heading);
  font-size: clamp(0.68rem, 1.35vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon-primary);
  text-shadow: 0 1px 4px rgba(255, 252, 245, 0.85);
  /* Breathing room above the arch frame's bottom knob (scales with viewport) */
  padding: clamp(4px, 1vw, 10px) clamp(8px, 3vw, 24px) 0;
  margin-bottom: clamp(18px, 4.5vw, 40px);
  animation: heroSubIn 1s ease 1s both;
}

.hero-venue {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.65vw, 1.04rem);
  color: var(--text-bright);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(255, 252, 245, 0.85);
  animation: heroSubIn 1s ease 1.1s both;
}

/* Ornately Framed & Highlighted Wedding Date Reveal */
.hero-date-frame {
  position: relative;
  margin-top: var(--sp-2);
  padding: 14px 36px 16px;
  background: linear-gradient(
    135deg,
    rgba(139, 26, 26, 0.92) 0%,
    rgba(90, 16, 16, 0.95) 50%,
    rgba(139, 26, 26, 0.92) 100%
  );
  border: 1.5px solid var(--gold-light);
  border-radius: var(--r-md);
  box-shadow:
    0 8px 26px rgba(90, 16, 16, 0.32),
    0 0 28px rgba(212, 175, 55, 0.35),
    inset 0 0 0 3px rgba(212, 175, 55, 0.22);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: heroSubIn 1s ease 1.25s both;
}

.hero-date-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #FFE28A;
  border-style: solid;
  pointer-events: none;
}

.hero-date-corner.tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.hero-date-corner.tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.hero-date-corner.bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.hero-date-corner.br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }

.hero-date-label {
  font-family: var(--font-heading);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-pale);
  opacity: 0.92;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #FFFDF7;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
}


/* ===== OUR STORY SECTION ===== */
#story {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-warm) 50%, var(--bg-dark) 100%);
}

.story-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(179,130,18,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139,26,26,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold-border-strong) 10%, var(--gold-border-strong) 90%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
  align-items: center;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--maroon-primary);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 3px var(--gold-border-strong), var(--shadow-gold);
  z-index: 1;
  animation: timelineDot 3s ease-in-out infinite;
  flex-shrink: 0;
}

.timeline-content {
  padding: var(--sp-6);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}

.timeline-content:hover {
  border-color: var(--gold-border-strong);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Timeline alternating layout is handled by the HTML */
.timeline-right .timeline-content {
  text-align: left;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-mid);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon-primary);
  margin-bottom: var(--sp-3);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline-photo {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-top: var(--sp-4);
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.timeline-content:hover .timeline-photo img {
  transform: scale(1.05);
}

/* ===== EVENTS SECTION ===== */
#events {
  background: var(--bg-void);
  position: relative;
}

#events::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 0% 50%, rgba(179,130,18,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(139,26,26,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ===================================================
   EVENTS — INVITATION LAYOUT
   =================================================== */

/* ===================================================
   FADE SCROLL PAGES & UNIFIED INVITATION CARDS
   =================================================== */

.fade-page {
  will-change: opacity, transform;
  transition: opacity 0.14s linear, transform 0.14s linear;
}

.invite {
  --invite-card-w: min(88vw, 430px);
  --invite-card-h: min(78vh, 602px);
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  position: relative;
}

.invite-page-stage {
  min-height: calc(92vh - var(--offset-top));
  min-height: calc(92dvh - var(--offset-top));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  box-sizing: border-box;
}

/* ---- Highlighted Date & Venue Card (Exact Same Size as Board & End Showcase) ---- */
.invite-venue.invite-venue--highlighted {
  position: relative;
  width: var(--invite-card-w);
  height: var(--invite-card-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
  align-items: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  background: linear-gradient(
    145deg,
    rgba(139, 26, 26, 0.95) 0%,
    rgba(86, 14, 14, 0.97) 50%,
    rgba(139, 26, 26, 0.95) 100%
  );
  border: 1.5px solid var(--gold-light);
  border-radius: 28px;
  box-shadow:
    0 20px 55px rgba(74, 38, 12, 0.22),
    0 0 36px rgba(212, 175, 55, 0.26),
    inset 0 0 0 6px rgba(212, 175, 55, 0.22),
    inset 0 0 0 11px rgba(255, 248, 230, 0.1);
}

.invite-venue.invite-venue--highlighted::before {
  display: none;
}

.invite-venue.invite-venue--highlighted .hero-date-corner {
  width: 18px;
  height: 18px;
}

.invite-venue.invite-venue--highlighted .hero-date-corner.tl { top: 14px; left: 14px; }
.invite-venue.invite-venue--highlighted .hero-date-corner.tr { top: 14px; right: 14px; }
.invite-venue.invite-venue--highlighted .hero-date-corner.bl { bottom: 14px; left: 14px; }
.invite-venue.invite-venue--highlighted .hero-date-corner.br { bottom: 14px; right: 14px; }

.invite-venue-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.invite-highlight-date {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 2.8vw, 1.52rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #FFFDF7;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.45);
  margin: 2px 0;
}

.invite-venue-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 200px;
  margin: var(--sp-3) 0;
  color: var(--gold-light);
  font-size: 0.9rem;
}

.invite-venue-divider::before,
.invite-venue-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 226, 169, 0.65), transparent);
}

.invite-venue-name {
  font-family: var(--font-cursive);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: #FFFDF7;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(212, 175, 55, 0.45);
}

.invite-venue-place {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-style: italic;
  color: rgba(255, 248, 232, 0.92);
  max-width: 310px;
  line-height: 1.5;
}

/* ---- Reception Highlighted Tile ---- */
.invite-venue.invite-venue--reception {
  background: linear-gradient(
    145deg,
    rgba(14, 25, 48, 0.96) 0%,
    rgba(22, 38, 72, 0.98) 50%,
    rgba(12, 20, 38, 0.96) 100%
  );
  border: 1.5px solid var(--gold-light);
  box-shadow:
    0 20px 55px rgba(10, 18, 36, 0.35),
    0 0 36px rgba(212, 175, 55, 0.28),
    inset 0 0 0 6px rgba(212, 175, 55, 0.22),
    inset 0 0 0 11px rgba(255, 248, 230, 0.08);
}

.reception-highlight-time {
  font-family: var(--font-heading);
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
  margin-top: 1px;
}

.invite-reception-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reception-action-btn {
  font-family: var(--font-heading);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 6px 14px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.reception-action-btn:hover {
  background: #FFFFFF;
  color: #0b1526;
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

/* Explicit override for Lande Lawns reception actions (ensures Calendar is white) */
.invite-venue--reception .reception-action-btn,
.invite-venue--reception .event-cal-link,
.invite-venue--reception .event-cal-link.reception-action-btn {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.invite-venue--reception .reception-action-btn:hover,
.invite-venue--reception .event-cal-link:hover,
.invite-venue--reception .event-cal-link.reception-action-btn:hover {
  background: #FFFFFF;
  color: #0b1526 !important;
  border-color: #FFFFFF;
}

#event-reception .icard-thumb img {
  object-position: center 50%;
}

/* ---- Single-Page Events Board (Dynamically sizes to fit all events) ---- */
.invite-board {
  position: relative;
  width: var(--invite-card-w);
  height: auto;
  min-height: var(--invite-card-h);
  margin: 0 auto;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(165deg, rgba(255, 252, 247, 0.96) 0%, rgba(248, 238, 224, 0.94) 100%);
  border: 1.5px solid var(--gold-border-strong);
  border-radius: 28px;
  box-shadow:
    0 20px 55px rgba(74, 38, 12, 0.16),
    inset 0 0 0 5px rgba(255, 252, 247, 0.8),
    inset 0 0 0 6px rgba(179, 130, 18, 0.38),
    inset 0 0 0 10px rgba(255, 252, 247, 0.8),
    inset 0 0 0 11px rgba(179, 130, 18, 0.22);
}

.invite-board-top {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(179, 130, 18, 0.25);
}

.invite-board-heading {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maroon-primary);
}

.invite-board-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-muted);
}

.invite-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Each row opens one by one as user scrolls */
.invite-row {
  position: relative;
}

.reveal-card {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.invite-row--left.reveal-card {
  transform: translateX(-24px) translateY(14px) scale(0.96);
}

.invite-row--right.reveal-card {
  transform: translateX(24px) translateY(14px) scale(0.96);
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* Individual Compact Event Card (fits all 5 inside the unified board height) */
.icard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid rgba(179, 130, 18, 0.28);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

/* Alternating zig-zag alignment like the reference image */
.invite-row--right .icard {
  flex-direction: row-reverse;
  text-align: right;
}

.invite-row--left .icard {
  flex-direction: row;
  text-align: left;
}

.icard:hover {
  transform: translateY(-2px);
  background: rgba(255, 253, 249, 0.96);
  border-color: var(--maroon-primary);
  box-shadow: 0 8px 22px rgba(139, 26, 26, 0.14), 0 0 16px rgba(212, 175, 55, 0.2);
}

/* Circular Medallion Thumbnail */
.icard-thumb {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(179, 130, 18, 0.55);
  background: #F4E6D2;
  box-shadow: 0 4px 12px rgba(90, 38, 12, 0.12);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.icard:hover .icard-thumb {
  transform: scale(1.06);
  border-color: var(--maroon-primary);
}

.icard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Event Name & Date/Time Info */
.icard-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(179, 130, 18, 0.28);
}

.invite-row--left .icard-info {
  align-items: flex-start;
}

.invite-row--right .icard-info {
  align-items: flex-end;
}

.icard-name {
  font-family: var(--font-cursive);
  font-size: clamp(1.38rem, 3.2vw, 1.72rem);
  font-weight: 400;
  color: var(--maroon-primary);
  line-height: 1.05;
  margin: 0;
}

.icard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-row--right .icard-meta {
  flex-direction: row-reverse;
}

.icard-day-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.icard-time-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.icard-month {
  font-family: var(--font-heading);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.icard-time {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--maroon-primary);
}

.icard-row-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1px;
}

.invite-row--right .icard-row-footer {
  flex-direction: row-reverse;
}

.icard-tap-hint {
  font-family: var(--font-heading);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-dark);
  transition: color var(--t-fast);
}

.icard:hover .icard-tap-hint {
  color: var(--maroon-primary);
}

/* ---- Add To Calendar link ---- */
.event-cal-link {
  font-family: var(--font-heading);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--maroon-primary);
  border-bottom: 1px solid rgba(139, 26, 26, 0.3);
  transition: color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 2;
}
.event-cal-link:hover {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* ---- Closing Showcase Card (Exact Same Size as Date/Venue & Board, No Fade) ---- */
.invite-end-showcase {
  display: flex;
  justify-content: center;
}

.invite-blend-frame {
  position: relative;
  width: var(--invite-card-w);
  height: var(--invite-card-h);
  padding: 12px;
  background: linear-gradient(160deg, #FBF4E8 0%, #EFE0C9 50%, #E7D3B5 100%);
  border: 1.5px solid var(--gold-border-strong);
  border-radius: 28px;
  box-shadow:
    0 20px 55px rgba(74, 38, 12, 0.18),
    0 0 40px rgba(179, 130, 18, 0.16),
    inset 0 0 0 1px rgba(255, 252, 245, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Double gold inner inlay border */
.invite-blend-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(179, 130, 18, 0.52);
  border-radius: 22px;
  pointer-events: none;
  z-index: 4;
}

.invite-blend-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #F4E7D4;
}

.invite-blend-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* ---- Event Invite Modal (Compact Smaller Size, Clean Border, No Fade) ---- */
.event-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.event-invite-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 8, 3, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.event-modal-dialog {
  position: relative;
  z-index: 2;
  height: 58vh;
  height: 58dvh;
  max-width: 76vw;
  aspect-ratio: 1060 / 1484;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.94);
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.event-invite-modal.open .event-modal-dialog {
  transform: scale(1);
}

.event-modal-frame {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 10px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-modal-frame::before {
  inset: 5px;
  border-radius: 17px;
}

.event-modal-frame .invite-blend-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.event-modal-frame .invite-blend-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.event-invite-modal.open .event-modal-frame .invite-blend-img {
  opacity: 1;
}

.event-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon-primary));
  border: 2px solid var(--gold-light);
  color: #FFFDF8;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(212, 175, 55, 0.35);
  transition: transform var(--t-fast), background var(--t-fast);
}

.event-modal-close:hover {
  transform: scale(1.1) rotate(90deg);
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .invite {
    --invite-card-w: min(92vw, 390px);
    --invite-card-h: min(74vh, 546px);
  }
  .invite-venue.invite-venue--highlighted {
    padding: var(--sp-5) var(--sp-4);
  }
  .invite-board {
    height: auto;
    min-height: auto;
    padding: 14px 10px 18px;
    border-radius: 24px;
    gap: 8px;
  }
  .invite-board-list {
    gap: 6px;
  }
  .icard {
    padding: 4px 8px;
    gap: 8px;
  }
  .icard-thumb {
    width: 46px;
    height: 46px;
  }
  .icard-name {
    font-size: 1.22rem;
  }
  .icard-day-num {
    font-size: 1.25rem;
  }
  .icard-month {
    font-size: 0.46rem;
  }
  .icard-time {
    font-size: 0.52rem;
  }
}


/* ===== GALLERY SECTION ===== */

#gallery {
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-dark) 50%, var(--bg-void) 100%);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 252, 246, 0.7);
  border: 1px solid var(--gold-border);
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--maroon-primary);
  color: #FFFDF9;
  border-color: var(--maroon-primary);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  columns: 3;
  column-gap: var(--sp-4);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(179,130,18,0.22), var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(45, 18, 8, 0.82) 100%);
  opacity: 0;
  transition: opacity var(--t-mid);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-5);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-caption {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--cream);
  font-style: italic;
}

/* Photo placeholder in gallery */
.gallery-placeholder {
  aspect-ratio: var(--ratio, 4/3);
  background: linear-gradient(135deg, rgba(246, 236, 222, 0.95), rgba(232, 216, 195, 0.8));
  border: 1.5px dashed var(--gold-border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}

.gallery-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(179,130,18,0.08), transparent 60%);
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(30, 14, 6, 0.92);
  backdrop-filter: blur(10px);
  animation: lightboxIn 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
}

#lightbox.open { display: flex; }

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
  border: 1px solid var(--gold-border);
  animation: lightboxImgIn 0.3s ease;
}

#lightbox-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

#lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-caption {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream);
  text-align: center;
  white-space: nowrap;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.lightbox-nav:hover { background: rgba(212,175,55,0.3); border-color: var(--gold-light); }
.lightbox-prev { left: var(--sp-6); }
.lightbox-next { right: var(--sp-6); }

/* ===== VENUE SECTION ===== */
#venue {
  background: var(--bg-dark);
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-12);
  align-items: start;
}

.venue-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.venue-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--maroon-primary);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.venue-address {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.venue-info-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.venue-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(179,130,18,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.venue-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.venue-info-label {
  font-family: var(--font-heading);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.venue-info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.venue-map-container {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gold-border-strong);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
}

.venue-map-container iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
  filter: sepia(10%) contrast(1.02);
}

/* ===== WISHES SECTION ===== */
#wishes {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-warm) 100%);
}

.wishes-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: var(--sp-10) var(--sp-12);
  position: relative;
  overflow: hidden;
}

.wishes-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--maroon-primary), var(--gold-primary), transparent);
}

.wishes-wall-wrap {
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.wishes-wall-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.wishes-wall-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--maroon-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.wishes-wall-title::before,
.wishes-wall-title::after {
  content: '❧';
  color: var(--gold-primary);
  font-size: 1.1rem;
  opacity: 0.8;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
  justify-content: center;
}

.wishes-grid:has(.wish-card:only-child) {
  display: flex;
  justify-content: center;
}

.wishes-grid:has(.wish-card:only-child) .wish-card {
  max-width: 580px;
  width: 100%;
}

.wish-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  position: relative;
  overflow: hidden;
  animation: wishCardIn 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}

.wish-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border-strong);
  box-shadow: var(--shadow-md);
}

.wish-card::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: var(--sp-3);
  font-family: serif;
  font-size: 4.5rem;
  color: var(--gold-primary);
  opacity: 0.16;
  line-height: 1;
  pointer-events: none;
}

.wish-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
  white-space: pre-line;
}

.wish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--gold-border);
  position: relative;
  z-index: 1;
}

.wish-author {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon-primary);
}

.wish-date {
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.wish-divider {
  width: 30px;
  height: 1px;
  background: var(--gold-border-strong);
  margin: var(--sp-3) 0;
}

/* ===== FORM FIELDS ===== */
.form-group {
  margin-bottom: var(--sp-6);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: var(--sp-4) var(--sp-5);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--maroon-primary);
  background: #FFFFFF;
  box-shadow: 0 0 15px rgba(179,130,18,0.18), inset 0 0 0 1px rgba(179,130,18,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-textarea { resize: vertical; min-height: 100px; }

/* ===== TOAST NOTIFICATION ===== */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 251, 244, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border-strong);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-full);
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--maroon-primary);
  z-index: 8000;
  pointer-events: none;
  display: none;
}

#toast.show { display: block; animation: toastIn 0.3s ease; }
#toast.hide { animation: toastOut 0.3s ease forwards; }
