*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
}
body {
  background: #f8f4ee;
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  color: #2a2318;
  overflow-x: hidden;
}
body.locked {
  overflow: hidden;
  height: 100vh;
}

/* ══════════════════════════════════════════
         ENVELOPE SCREEN
      ══════════════════════════════════════════ */
#env-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f5f0e8;
  overflow: hidden;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}
#env-screen.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── 4 FLAPS ── */
.env-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(175deg, #faf4e8 0%, #ede0c4 60%, #e2d0a8 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 4;
  /* 3D flap */
  transition:
    transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0s,
    opacity 0.3s ease 0.85s;
  /* subtle texture */
  box-shadow: inset 0 -2px 20px rgba(150, 110, 40, 0.08);
}
/* crease line on top flap */
.env-top::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 140, 60, 0.25),
    transparent
  );
}

.env-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(5deg, #ede0c8 0%, #f2e8d5 100%);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  z-index: 1;
}

.env-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(95deg, #e8dcc8 0%, #f0e8d8 100%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 2;
  transition:
    transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    opacity 0.3s ease 0.85s;
}

.env-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(265deg, #e8dcc8 0%, #f0e8d8 100%);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  z-index: 2;
  transition:
    transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    opacity 0.3s ease 0.85s;
}

/* center body of envelope */
.env-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #f7f0e2 0%, #ede4d0 100%);
  z-index: 0;
}
/* diagonal lines texture */
.env-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(201, 168, 76, 0.04) 18px,
    rgba(201, 168, 76, 0.04) 19px
  );
}

/* gold border frame */
.env-frame {
  position: absolute;
  inset: clamp(12px, 3vw, 28px);
  border: 3px solid rgba(231, 195, 93, 0.25);
  z-index: 3;
  pointer-events: none;
}
.env-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 168, 76, 0.13);
}

/* center horizontal crease */
.env-crease {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 140, 60, 0.2),
    transparent
  );
  z-index: 3;
  pointer-events: none;
}

/* ── WAX SEAL ── */
.seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.seal.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.2);
  pointer-events: none;
}

.seal-disc {
  width: clamp(160px, 15vw, 130px);
  height: clamp(160px, 15vw, 130px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 35%,
    #f2d555 0%,
    #c9a84c 38%,
    #a67c1a 68%,
    #6b4f08 100%
  );
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, 0.35),
    0 8px 32px rgba(139, 105, 20, 0.5),
    inset 0 -4px 12px rgba(0, 0, 0, 0.3),
    inset 0 3px 8px rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
/* decorative rings */
.seal-disc::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 225, 80, 0.3);
}
.seal-disc::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 225, 80, 0.18);
}

.seal-disc .glow-bg {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.45) 0%,
    transparent 68%
  );
  animation: glow-pulse 2.2s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
.seal-disc .glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.7);
  animation: ring-expand 2.4s ease-out infinite;
  z-index: -1;
  pointer-events: none;
}
.seal-disc .glow-ring.r2 {
  animation-delay: 0.8s;
}
.seal-disc .glow-ring.r3 {
  animation-delay: 1.6s;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes ring-expand {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.seal-text {
  font-family: "Great Vibes", cursive;
  font-size: clamp(36px, 4vw, 36px);
  color: rgba(255, 252, 220, 0.93);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  user-select: none;
  letter-spacing: 6px;
}

.seal:hover .seal-disc {
  transform: scale(1.07);
  box-shadow:
    0 0 0 6px rgba(201, 168, 76, 0.45),
    0 12px 40px rgba(139, 105, 20, 0.6),
    inset 0 -4px 12px rgba(0, 0, 0, 0.3),
    inset 0 3px 8px rgba(255, 255, 255, 0.18);
}
.seal:active .seal-disc {
  transform: scale(0.95);
}

/* vibrate on click */
.seal.cracking .seal-disc {
  animation: seal-vib 0.2s ease;
}
@keyframes seal-vib {
  0%,
  100% {
    transform: scale(1);
  }
  20% {
    transform: scale(0.94) rotate(-2.5deg);
  }
  60% {
    transform: scale(1.04) rotate(2deg);
  }
}

/* hint */
.seal-hint {
  position: absolute;
  bottom: clamp(32px, 7vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: fade-in-up 0.7s ease 1s forwards;
}
.seal-hint span {
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(9px, 1.8vw, 11px);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(130, 100, 45, 0.6);
  animation: hint-pulse 2s ease-in-out infinite;
  display: block;
}
.sh-arrow {
  width: 1px;
  height: clamp(18px, 3.5vh, 28px);
  background: linear-gradient(180deg, rgba(150, 115, 55, 0.5), transparent);
  margin: 5px auto 0;
  animation: hint-pulse 2s ease-in-out infinite;
}

/* names on envelope */
.env-names {
  position: absolute;
  bottom: clamp(48px, 17vh, 130px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 8;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  animation: fade-in-up 0.8s ease 0.6s forwards;
}
.env-names-txt {
  font-family: "Great Vibes", cursive;
  font-size: clamp(32px, 7vw, 64px);
  color: rgba(90, 65, 25, 0.7);
  line-height: 1.05;
}
.env-names-and {
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(8px, 1.4vw, 10px);
  letter-spacing: 5px;
  color: rgba(150, 115, 55, 0.5);
  text-transform: uppercase;
  display: block;
  margin: 5px 0;
}
.env-date-line {
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(14px, 1.5vw, 10px);
  letter-spacing: 4px;
  color: rgba(120, 90, 40, 0.45);
  margin-top: 16px;
}

/* shimmer */
.env-shimmer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 55% 35% at 50% 50%,
    rgba(255, 248, 210, 0.7) 0%,
    transparent 70%
  );
}
.env-shimmer.flash {
  animation: shimmer 0.5s ease forwards;
}

/* particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: pfall linear forwards;
}

/* ── OPEN STATE ── */
#env-screen.open .env-top {
  transform: perspective(1100px) rotateX(-182deg);
  opacity: 0;
}
#env-screen.open .env-left {
  transform: translateX(-108%);
  opacity: 0;
}
#env-screen.open .env-right {
  transform: translateX(108%);
  opacity: 0;
}
#env-screen.open .env-bottom {
  transform: perspective(-1100px) rotateX(-182deg);
  opacity: 0;
}

/* keyframes */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes hint-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes shimmer {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes pfall {
  0% {
    transform: translateY(-8px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(740deg);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════
         MAIN SITE
      ══════════════════════════════════════════ */
#site {
  opacity: 0;
  transition: opacity 1.1s ease 0.2s;
}
#site.on {
  opacity: 1;
}

/* HERO */
#hero {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: flex-start;
  overflow: hidden;
  background: #0f0c08;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* overlay */
  z-index: 1;
}
.hero-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(201, 168, 76, 0.015) 3px,
    rgba(201, 168, 76, 0.015) 4px
  );
  pointer-events: none;
}
.hero-bg-year {
  position: absolute;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(100px, 25vw, 280px);
  font-weight: 500;
  color: rgba(201, 168, 76, 0.04);
  letter-spacing: -10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  height: 80vh;
  justify-content: space-between;
}
.hero-sub {
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(14px, 1.8vw, 11px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: clamp(32px, 3vh, 28px);
  display: block;
}
.hero-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(72px, 10vw, 130px);
  color: #fff;
  line-height: 88px;
  letter-spacing: 2px;
  text-shadow: 0 4px 40px rgba(201, 168, 76, 0.25);
}
.hero-and {
  display: block;
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(10px, 2vw, 14px);
  letter-spacing: 8px;
  color: rgba(201, 168, 76, 0.7);
  text-transform: uppercase;
  margin: 10px 0;
}
.hero-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  margin-top: clamp(18px, 2vh, 36px);
}
.hdb-item {
  font-family: "Tenor Sans", sans-serif;
  font-size: clamp(12px, 1.8vw, 12px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
}
.hdb-dot {
  width: 4px;
  height: 4px;
  background: #fff;
  transform: rotate(45deg);
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.hs-text {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.3);
}
.hs-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.6), transparent);
  animation: hs-a 2s ease-in-out infinite;
}
@keyframes hs-a {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* SECTIONS */
.sec {
  position: relative;
  overflow: hidden;
}
.sec-in {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 10vh, 40px) 16px;
  text-align: center;
}
.tag {
  display: inline-block;
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #b08d40;
  margin-bottom: 14px;
}
.sec-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  color: #1e1810;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.sec-title em {
  font-style: italic;
  color: #b08d40;
}
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 12px auto 16px;
}
.rule-line {
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: rgba(180, 140, 60, 0.3);
}
.rule-gem {
  width: 6px;
  height: 6px;
  background: #c9a84c;
  transform: rotate(45deg);
}

/* countdown */
#countdown {
  background: #fdf9f2;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}
.cd-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 56px);
  flex-wrap: wrap;
}
.cd-block {
  text-align: center;
}
.cd-n {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(32px, 9vw, 88px);
  font-weight: 400;
  color: #c9a84c;
  line-height: 1;
  display: block;
}
.cd-l {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b0a080;
  margin-top: 4px;
}
.cd-sep {
  font-size: 32px;
  color: rgba(201, 168, 76, 0.3);
  margin-bottom: 24px;
}

/* invite */
#invite {
  background: #fff;
}
.invite-wrap {
  max-width: 600px;
  margin: 0 auto;
  border-left: 2px solid rgba(201, 168, 76, 0.3);
  padding: 32px 40px;
  text-align: left;
  position: relative;
}
.invite-wrap::before {
  content: '"';
  font-family: "Bodoni Moda", serif;
  font-size: 160px;
  line-height: 0;
  position: absolute;
  top: 50px;
  left: -20px;
  color: rgba(201, 168, 76, 0.1);
  pointer-events: none;
}
.invite-p {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.95;
  color: #5a4e3e;
  font-style: italic;
}

/* strip */
#strip {
  overflow: hidden;
  background: #f5efe4;
  padding: 0;
}
.strip-track {
  display: flex;
  gap: 5px;
  animation: strip-go 40s linear infinite;
  width: max-content;
}
.strip-img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
  filter: sepia(0.12) brightness(1.03);
}
@keyframes strip-go {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* program */
#program {
  background: #fdf9f2;
}
.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 540px) {
  .prog-grid {
    grid-template-columns: 1fr;
  }
}
.prog-card {
  background: #fff;
  padding: 28px 26px;
  border-top: 2px solid rgba(201, 168, 76, 0.3);
  position: relative;
}
.prog-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.pc-time {
  font-family: "Tenor Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #c9a84c;
  margin-bottom: 10px;
}
.pc-title {
  font-family: "Bodoni Moda", serif;
  font-size: 18px;
  color: #1e1810;
  margin-bottom: 6px;
}
.pc-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: #8a7a68;
}

/* gallery */
#gallery {
  background: #fff;
  padding-top: 40px;
  padding-bottom: 40px;
}
.gal-head {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 28px;
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 100px;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4px;
}
.g-i {
  overflow: hidden;
  cursor: pointer;
}
.g-i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s,
    filter 0.4s;
  filter: grayscale(0.15);
}
.g-i:hover img {
  transform: scale(1.08);
  filter: grayscale(0);
}
.g-i.a {
  grid-column: span 4;
  grid-row: span 3;
}
.g-i.b {
  grid-column: span 4;
  grid-row: span 2;
}
.g-i.c {
  grid-column: span 4;
  grid-row: span 2;
}
.g-i.d {
  grid-column: span 3;
  grid-row: span 2;
}
.g-i.e {
  grid-column: span 5;
  grid-row: span 2;
}
.g-i.f {
  grid-column: span 4;
  grid-row: span 2;
}
.g-i.g {
  grid-column: span 3;
  grid-row: span 3;
}
.g-i.h {
  grid-column: span 5;
  grid-row: span 2;
}
@media (max-width: 700px) {
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
  .g-i.a,
  .g-i.b,
  .g-i.c,
  .g-i.d,
  .g-i.e,
  .g-i.f,
  .g-i.g,
  .g-i.h {
    grid-column: span 1;
    grid-row: span 1;
  }
  .g-i.a,
  .g-i.g {
    grid-row: span 2;
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.lightbox.on {
  opacity: 1;
  visibility: visible;
}
#lb-img {
  max-width: 92vw;
  max-height: 88svh;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: "Tenor Sans", sans-serif;
  font-size: 16px;
  color: rgba(201, 168, 76, 0.8);
  cursor: pointer;
  letter-spacing: 2px;
}

/* dresscode */
#dresscode {
  background: #fdf9f2;
}
.palette {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 32px);
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sw-c {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s;
}
.sw-c:hover {
  transform: scale(1.12);
}
.sw-l {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #a09080;
}
.dc-txt {
  max-width: 500px;
  margin: 0 auto;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(14px, 2vw, 16px);
  font-style: italic;
  line-height: 1.9;
  color: #5a4e3e;
}

/* location */
#location {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #0f0c08;
  position: relative;
  overflow: hidden;
}
.loc-bg {
  position: absolute;
  inset: 0;
  background: url("../images/ezdi.jpg") center/cover;
  filter: brightness(0.25) saturate(0.5);
}
.loc-card {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 52px);
}
.loc-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 168, 76, 0.1);
  pointer-events: none;
}
.loc-name {
  font-family: "Alex Brush", cursive;
  font-size: clamp(36px, 7vw, 60px);
  color: #e8d090;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.loc-addr {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}
.loc-time {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(201, 168, 76, 0.8);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.map-btn {
  display: inline-block;
  font-family: "Tenor Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  color: #0f0c08;
  text-decoration: none;
  background: linear-gradient(135deg, #e8d090, #c9a84c);
  padding: 12px 16px;
  transition: all 0.25s;
}
.map-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
}

/* rsvp */
#rsvp {
  background: #fff;
}
.rsvp-in {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.field {
  margin-bottom: 16px;
}
.field input[type="text"] {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  color: #2a2318;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.field input[type="text"]:focus {
  border-color: #c9a84c;
}
.field input[type="text"]::placeholder {
  color: #b0a080;
  font-size: 13px;
}
.flbl {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b08d40;
  display: block;
  margin-bottom: 12px;
}
.rg {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.rl {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #5a4e3e;
}
.rl input {
  display: none;
}
.rc {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rl input:checked ~ .rc {
  background: #c9a84c;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.sub-btn {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  background: #1e1810;
  border: none;
  color: #e8d090;
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.sub-btn:hover {
  background: #c9a84c;
  color: #1e1810;
}

/* popup */
.popup-ov {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.popup-ov.on {
  opacity: 1;
  visibility: visible;
}
.popup-box {
  background: #fff;
  padding: 48px 40px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  border-top: 2px solid #c9a84c;
}
.pp-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.pp-title {
  font-family: "Alex Brush", cursive;
  font-size: 40px;
  color: #c9a84c;
  margin-bottom: 10px;
}
.pp-txt {
  font-family: "Bodoni Moda", serif;
  font-size: 15px;
  font-style: italic;
  color: #5a4e3e;
  line-height: 1.7;
}
.pp-close {
  margin-top: 22px;
  padding: 10px 26px;
  background: #1e1810;
  border: none;
  color: #e8d090;
  cursor: pointer;
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
}

/* audio */
.au-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: #c9a84c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 5000;
  transition: 0.2s;
  border-radius: 0;
}
.au-btn:hover {
  background: #c9a84c;
  color: #fff;
}
.au-btn svg {
  width: 14px;
  height: 14px;
}

/* footer */
footer {
  background: #0f0c08;
  padding: 56px 24px;
  text-align: center;
}
.ft-names {
  font-family: "Great Vibes", cursive;
  font-size: 34px;
  color: rgba(232, 208, 144, 0.9);
}
.ft-date {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}
.ft-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 14px auto;
}
.ft-rule-l {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
}
.ft-gem {
  width: 5px;
  height: 5px;
  background: rgba(201, 168, 76, 0.4);
  transform: rotate(45deg);
}
.ft-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}
.ft-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.ft-links a:hover {
  color: rgba(255, 255, 255, 1);
}
.ft-copy {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 1);
  margin-top: 14px;
}

/* scroll reveal */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.8s cubic-bezier(0.3, 0, 0.2, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}

.time-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  padding: 0px 16px 80px 16px;
}

.time-box-item {
  width: calc(25% - 16px);
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
}

.time-box-item-text {
  content: "";
  background-color: transparent;
  background: linear-gradient(180deg, #00000030 56%, #000000 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 16px 8px;
  display: flex;
  align-items: flex-start;
  margin: 0;
  flex-direction: column;
  justify-content: flex-end;
}

.time-title {
  font-size: 14px;
  text-align: left;
  color: rgba(232, 208, 144, 0.9);
  font-weight: 600;
  margin-bottom: 4px;
}

.time-descr {
  font-size: 16px;
  text-align: left;
  color: #fff;
  font-family: seawave;
  font-weight: 400;
}

video {
  width: 100%;
}

/* Media Query for Mobile Devices */
@media (min-width: 280px) and (max-width: 719px) {
  .time-box {
    flex-wrap: wrap;
  }

  .time-box-item {
    width: calc(50% - 8px);
  }
}
