/* ==============================================================
   WEDDING — 3D Envelope + Premium Site
   ============================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --near-black: #111111;
  --dark-gray: #222222;
  --mid-gray: #555555;
  --light-gray: #999999;
  --off-white: #F0F0F0;
  --white: #FFFFFF;
  --mid-color: #666;
  --mid-color-light: #888;
  --mid-color-dark: #333;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--near-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage { width: 100%; min-height: 100vh; position: relative; }

/* =============================================================
   ENVELOPE STAGE — Wedding paper tone
   ============================================================= */
.envelope-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 40%, #f5f5f5 0%, #e8e8e8 40%, #d8d8d8 100%);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.ambient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(0,0,0,0.02) 0%, transparent 65%);
  pointer-events: none;
  overflow: hidden;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='100%25' height='100%25'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2' opacity='0.08'%3E%3Cpath d='M15 25c0-5 3-10 8-10 4 0 7 4 9 6 2-2 5-6 9-6 5 0 8 5 8 10 0 8-9 15-17 22-8-7-17-14-17-22z' /%3E%3Cpath d='M150 60c0-4 3-8 6-8 3 0 5 3 7 5 1-2 4-5 7-5 4 0 6 4 6 8 0 6-7 12-13 17-6-5-13-11-13-17z' /%3E%3Cpath d='M40 160c0-3 2-6 5-6 2 0 4 2 5 3 1-1 3-3 5-3 3 0 5 3 5 6 0 4-5 9-10 12-5-3-10-8-10-12z' /%3E%3Cpath d='M100 10c0-3 2-5 4-5 2 0 3 2 4 3 1-1 3-3 4-3 2 0 4 2 4 5 0 4-4 8-8 11-4-3-8-7-8-11z' /%3E%3Cpath d='M170 130c0-3 2-6 4-6 2 0 3 2 4 3 1-1 3-3 4-3 2 0 4 3 4 6 0 4-4 9-8 12-4-3-8-8-8-12z' /%3E%3Cpath d='M60 30c0-4 3-7 6-7 3 0 5 3 6 4 2-1 4-4 7-4 3 0 6 3 6 7 0 6-7 12-13 17-6-5-12-11-12-17z' /%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
  animation: heartsDrift 20s ease-in-out infinite alternate;
}

@keyframes heartsDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-10px, -10px) rotate(2deg); }
}

.scene {
  perspective: 1400px;
  perspective-origin: 50% 45%;
  width: 100%;
  max-width: 750px;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.env-floor-shadow {
  position: absolute;
  bottom: 5%;
  left: 15%;
  right: 15%;
  height: 50px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.08) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  transform: translateZ(-10px);
}

/* Envelope */
.envelope {
  position: relative;
  width: 520px;
  height: 370px;
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-2deg);
  filter: drop-shadow(0 15px 50px rgba(0,0,0,0.5));
  transition: transform 0.4s var(--ease-premium);
}

.envelope:hover {
  transform: rotateX(6deg) rotateY(-1deg) translateY(-4px);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6));
}

/* Letter */
.letter {
  position: absolute;
  inset: 12px 20px 12px 20px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

.letter-paper {
  width: 100%;
  height: 100%;
  background: linear-gradient(175deg, #FFFFFF 0%, #FAFAFA 20%, #F5F5F5 60%, #F0F0F0 100%);
  border-radius: 4px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.letter-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 3px, rgba(0,0,0,0.008) 3px, rgba(0,0,0,0.008) 3.5px);
  pointer-events: none;
}

.letter-content { text-align: center; max-width: 340px; position: relative; z-index: 1; }

/* Close button on letter */
.letter-close {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 10;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s, transform 0.3s;
  font-family: var(--font-serif);
}

.letter-close:hover {
  color: var(--near-black);
  transform: scale(1.1);
}
.letter-heart { font-size: 28px; color: var(--near-black); display: block; margin-bottom: 10px; opacity: 0.4; }
.letter-title { font-family: var(--font-serif); font-size: 21px; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 14px; line-height: 1.3; color: var(--near-black); }
.letter-text { font-size: 14px; line-height: 1.9; color: #555; font-weight: 300; }
.letter-signature { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--near-black); line-height: 1.6; }

/* Envelope body */
.env-body { position: absolute; inset: 0; z-index: 3; border-radius: 6px; overflow: hidden; transform: translateZ(2px); }

.env-body-bg {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #f0f0f0 0%, #e5e5e5 20%, #dcdcdc 45%, #e5e5e5 70%, #d0d0d0 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.03);
}

.env-body-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 5px, rgba(0,0,0,0.008) 5px, rgba(0,0,0,0.008) 6px);
  pointer-events: none;
}

.env-body-bg::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  pointer-events: none;
}

.env-bottom-edge { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08)); border-radius: 0 0 6px 6px; z-index: 4; pointer-events: none; }

/* Address */
.env-address { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 5; pointer-events: none; }
.addr-line { display: block; font-family: var(--font-serif); font-size: 12px; color: #666; letter-spacing: 1.5px; text-transform: uppercase; }
.addr-main { font-size: 20px; color: #222; letter-spacing: 3px; margin-bottom: 6px; font-weight: 500; }

/* Flap */
.env-flap-wrap { position: absolute; top: 0; left: 0; right: 0; height: 54%; z-index: 10; transform-style: preserve-3d; transform-origin: top center; }

.env-flap {
  position: absolute; inset: 0; border-radius: 6px; transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
  background: linear-gradient(170deg, #f8f8f8 0%, #f0f0f0 15%, #e8e8e8 35%, #e0e0e0 55%, #e8e8e8 75%, #dcdcdc 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.6);
}

.flap-edge-light { position: absolute; top: 0; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.4) 70%, transparent); z-index: 3; pointer-events: none; }
.flap-crease { position: absolute; bottom: 25%; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.3) 80%, transparent 95%); z-index: 3; pointer-events: none; }
.flap-cast-shadow { position: absolute; bottom: 23%; left: 4%; right: 4%; height: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%); z-index: 1; pointer-events: none; }

/* Wax seal */
.env-wax-seal { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); z-index: 12; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2)); }

.wax-circle {
  width: 88px; height: 88px;
  background: radial-gradient(circle at 35% 30%, #f0f0f0 0%, #ddd 20%, #ccc 45%, #bbb 68%, #aaa 100%);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0,0,0,0.15), inset 0 3px 10px rgba(255,255,255,0.25), inset 0 -5px 12px rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}

.wax-circle::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.15) 0%, transparent 45%); }
.wax-heart { position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); font-size: 34px; color: #555; line-height: 1; }

/* Open state */
.envelope.open .letter {
  opacity: 1; visibility: visible; z-index: 6; transform: translateY(-4px);
  transition: opacity 0.5s ease 0.3s, visibility 0s linear 0.3s, transform 0.5s ease 0.3s;
  pointer-events: auto;
}

/* Hint */
.open-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.45; z-index: 10; pointer-events: none; transition: opacity 0.4s; }
.open-hint.hidden { opacity: 0; }
.hint-arrow { font-size: 18px; color: #666; animation: hintBounce 2.5s ease-in-out infinite; opacity: 0.6; }
.hint-text { font-size: 11px; color: #666; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 400; }

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(7px); opacity: 0.7; }
}

/* =============================================================
   MAIN SITE — Premium
   ============================================================= */
.main-site { display: none; background: var(--off-white); min-height: 100vh; }
.main-site.visible { display: block; opacity: 1; }

.main-container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0; }

.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (min-width: 1025px) {
  .main-content { max-width: 1000px; padding: 0 48px; }
}

@media (min-width: 1400px) {
  .main-content { max-width: 1100px; padding: 0 64px; }
}

/* ----- Header ----- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(245,245,245,0.88);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px);
  transition: padding 0.3s var(--ease-premium);
}

.logo { font-family: var(--font-serif); font-size: 18px; color: var(--near-black); letter-spacing: 2px; text-transform: uppercase; }

.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  font-size: 11px; color: var(--mid-gray); text-decoration: none;
  letter-spacing: 2px; transition: color 0.3s; text-transform: uppercase;
  position: relative;
}
.site-header nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--near-black); transform: scaleX(0); transition: transform 0.3s var(--ease-premium);
  transform-origin: right center;
}
.site-header nav a:hover { color: var(--near-black); }
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ----- Hero Premium ----- */
.hero-section {
  text-align: center;
  padding: 200px 0 80px;
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 70%, var(--off-white) 100%),
              url('img/hero-bg.jpg') center 30% / cover no-repeat;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.hero-section::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(180deg, transparent, var(--light-gray));
  opacity: 0.3;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--off-white));
  pointer-events: none;
}

.hero-title {
  font-family: 'Great Vibes', var(--font-serif);
  font-size: 82px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 14px;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.hero-date {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 8px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

/* ----- Sections + reveal animations ----- */
.content-section {
  padding: 100px 0;
  text-align: center;
}

.content-section h2 {
  font-family: 'Great Vibes', var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 36px;
  letter-spacing: 0px;
  color: var(--near-black);
  position: relative;
  display: inline-block;
}

.content-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--mid-color);
  margin: 18px auto 0;
  opacity: 0.5;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Details Card Premium ----- */
.details-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 44px 40px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03), 0 1px 8px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.details-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.05), 0 2px 12px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.detail-item { margin-bottom: 28px; }
.detail-item:last-child { margin-bottom: 0; }

.detail-label {
  font-size: 9px;
  color: var(--mid-color-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}

.detail-value {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--near-black);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.detail-value.address { font-size: 17px; font-family: var(--font-sans); font-weight: 300; color: var(--mid-gray); }

.detail-divider { width: 40px; height: 1px; background: rgba(0,0,0,0.06); margin: 24px auto; }

/* =============================================================
   COUNTDOWN + CALENDAR — Premium
   ============================================================= */
.countdown-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  padding: 100px 0;
}

/* Date Hero */
.date-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  perspective: 600px;
}

.date-hero-num {
  font-family: var(--font-serif);
  font-size: 78px;
  font-weight: 400;
  color: var(--near-black);
  letter-spacing: -2px;
  line-height: 1;
  transition: transform 0.3s var(--ease-premium);
  display: inline-block;
}

.date-hero:hover .date-hero-num { transform: scale(1.02); }

.date-hero-sep {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--mid-color);
  margin: 0 8px;
  line-height: 1;
  opacity: 0.5;
}

/* Divider */
.divider-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}

.divider-symbol {
  font-size: 12px;
  color: var(--mid-color);
  opacity: 0.5;
}

/* Countdown timer */
.countdown-label {
  font-size: 9px;
  color: var(--mid-gray);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 36px;
  text-align: center;
  font-weight: 500;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.countdown-item { text-align: center; }

.countdown-num {
  width: 82px;
  height: 92px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--near-black);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03), 0 1px 6px rgba(0,0,0,0.02);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  transition: box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
  border: 1px solid rgba(0,0,0,0.02);
}

.countdown-item:hover .countdown-num {
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.countdown-unit {
  font-size: 9px;
  color: var(--light-gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Calendar Premium */
.calendar-section {
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}

.calendar-month {
  font-size: 11px;
  color: var(--mid-color-dark);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-header {
  font-size: 9px;
  color: var(--light-gray);
  letter-spacing: 1px;
  font-weight: 500;
  padding: 4px 0 10px;
  text-transform: uppercase;
}

.cal-day {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--near-black);
  padding: 6px 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  line-height: 1;
  transition: background 0.3s var(--ease-premium), color 0.3s var(--ease-premium);
  cursor: default;
}

.cal-day:hover:not(.other):not(.highlight) { background: rgba(0,0,0,0.02); }

.cal-day.other { color: var(--light-gray); opacity: 0.25; }
.cal-day.other:hover { background: transparent; }

.cal-day.highlight {
  border: none;
  color: var(--near-black);
  font-weight: 500;
  background: none;
  box-shadow: none;
  position: relative;
}

/* Heart border using SVG background */
.cal-day.highlight::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.2' opacity='0.5'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center center / contain no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* =============================================================
   GALLERY — Premium
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-placeholder {
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--light-gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
}

.gallery-placeholder:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transform: scale(1.02);
}

/* =============================================================
   WISHES — Flowers & Gifts
   ============================================================= */
.wishes-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 40px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03), 0 1px 8px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.wishes-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.05), 0 2px 12px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.wish-item {
  text-align: center;
  padding: 8px 0;
}

.wish-icon {
  color: var(--mid-color);
  opacity: 0.6;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.wish-label {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--near-black);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.wish-text {
  font-size: 14px;
  color: var(--mid-gray);
  line-height: 2;
  font-weight: 300;
  max-width: 380px;
  margin: 0 auto;
}

.wish-divider {
  width: 40px;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 28px auto;
}

/* =============================================================
   LOCATION — Map
   ============================================================= */
.location-card {
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 32px 36px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03), 0 1px 8px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
}

.location-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--near-black);
  margin-bottom: 6px;
}

.location-address {
  font-size: 14px;
  color: var(--mid-gray);
  font-weight: 300;
  margin-bottom: 20px;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--near-black);
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  transition: all 0.4s var(--ease-premium);
  font-family: var(--font-sans);
}

.location-btn:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.map-container {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* =============================================================
   RSVP — Premium
   ============================================================= */
#rsvp { border-bottom: none; padding-bottom: 80px; }

#rsvp .rsvp-text {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 2;
  max-width: 400px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.rsvp-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--near-black);
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  transition: all 0.4s var(--ease-premium);
  cursor: pointer;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.rsvp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.rsvp-btn:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.rsvp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Social RSVP buttons */
.rsvp-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rsvp-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 36px;
  min-width: 220px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: none;
  font-weight: 400;
}

.rsvp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.rsvp-wa,
.rsvp-tg,
.rsvp-ig {
  background: #222;
  color: #fff;
}

.rsvp-wa:hover,
.rsvp-tg:hover,
.rsvp-ig:hover {
  background: #000;
  color: #fff;
}

/* ----- Footer ----- */
.site-footer {
  text-align: center;
  padding: 40px 0;
  font-size: 11px;
  color: var(--light-gray);
  letter-spacing: 2px;
  border-top: 1px solid rgba(0,0,0,0.03);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 640px) {
  .envelope { width: 340px; height: 260px; }
  .scene { height: 400px; }
  .letter { inset: 8px 12px 8px 12px; }
  .letter-paper { padding: 16px 18px; }
  .letter-title { font-size: 16px; }
  .letter-text { font-size: 12px; }
  .letter-heart { font-size: 20px; }
  .wax-circle { width: 58px; height: 58px; }
  .wax-heart { font-size: 22px; }
    .env-wax-seal { bottom: 5%; }

  .hero-title { font-size: 44px; letter-spacing: 1px; }
  .hero-date { font-size: 11px; letter-spacing: 5px; }
  .hero-section { padding: 140px 0 60px; min-height: 60vh; background-position: center 20%; }
  .site-header { padding: 14px 0 12px; }
  .site-header.scrolled { padding: 8px 0; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 9px; letter-spacing: 1px; }
  .addr-main { font-size: 16px; }
  .addr-line { font-size: 11px; }
  .details-card { padding: 28px 24px; }
  .detail-value { font-size: 18px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .date-hero-num { font-size: 48px; letter-spacing: -1px; }
  .date-hero-sep { font-size: 32px; }
  .countdown-num { width: 64px; height: 74px; font-size: 32px; }
  .countdown-grid { gap: 10px; }
  .calendar-grid { gap: 2px; }
  .cal-day { width: 30px; height: 30px; font-size: 13px; }
  .content-section { padding: 64px 0; }
  .divider-line { width: 40px; }
}

/* =============================================================
   DESKTOP+ (>1024px)
   ============================================================= */
@media (min-width: 1025px) {
  .scene { height: 680px; max-width: 900px; }
  .envelope { width: 620px; height: 440px; }
    .env-wax-seal { bottom: 5%; }
  .wax-circle { width: 100px; height: 100px; }
  .wax-heart { font-size: 40px; }
  .main-content { max-width: 1100px; padding: 0 60px; }

  .hero-section { padding: 280px 0 100px; min-height: 90vh; }
  .hero-title { font-size: 108px; letter-spacing: 2px; }
  .hero-date { font-size: 16px; letter-spacing: 10px; }

  .content-section { padding: 120px 0; }
  .content-section h2 { font-size: 36px; }

  .date-hero-num { font-size: 96px; }
  .date-hero-sep { font-size: 60px; }

  .countdown-num { width: 100px; height: 110px; font-size: 52px; border-radius: 14px; }
  .countdown-grid { gap: 24px; }
  .countdown-unit { font-size: 10px; }
  .countdown-label { font-size: 10px; letter-spacing: 6px; }

  .calendar-section { max-width: 420px; }
  .cal-day { width: 44px; height: 44px; font-size: 17px; }
  .cal-day-header { font-size: 11px; padding: 6px 0 14px; }
  .calendar-grid { gap: 6px; }
  .calendar-month { font-size: 13px; letter-spacing: 6px; }

  .details-card { max-width: 560px; padding: 52px 48px; }
  .detail-value { font-size: 22px; }
  .detail-value.address { font-size: 19px; }
  .detail-label { font-size: 10px; letter-spacing: 4px; }

  .gallery-grid { max-width: 720px; gap: 16px; }
  .gallery-placeholder { border-radius: 12px; font-size: 12px; }

  .wishes-card { max-width: 620px; padding: 52px 48px; }
  .wish-label { font-size: 24px; }
  .wish-text { font-size: 15px; max-width: 420px; }
  .wish-icon svg { width: 32px; height: 32px; }

  .location-card { max-width: 620px; padding: 36px 44px; }
  .location-name { font-size: 24px; }
  .location-address { font-size: 15px; }
  .map-container { max-width: 800px; }
  .timeline { max-width: 700px; }
  .map-container iframe { height: 400px; }
}

/* =============================================================
   TIMELINE — Schedule
   ============================================================= */
.timeline {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  padding: 10px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, #666, #333, #666, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 0;
  margin-bottom: 36px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.tl-marker {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--mid-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(0,0,0,0.08);
}

.tl-body {
  width: 46%;
  background: var(--white);
  padding: 20px 24px;
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.tl-body:hover {
  transform: translateY(-5px);
}

.tl-left {
  float: left;
  text-align: right;
  margin-right: -20px;
}

.tl-right {
  float: right;
  text-align: left;
  margin-left: -20px;
}

.tl-time {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--near-black);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.tl-content {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--mid-gray);
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
}

.tl-sub {
  display: block;
  font-size: 10px;
  color: var(--light-gray);
  text-transform: none;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

  #rsvp .rsvp-text { font-size: 17px; max-width: 500px; }
  .rsvp-btn { padding: 16px 48px; font-size: 12px; letter-spacing: 4px; }
  .rsvp-social { min-width: 260px; padding: 16px 40px; font-size: 14px; }

  .site-header { padding: 32px 0 24px; }
  .logo { font-size: 20px; }
  .site-header nav { gap: 36px; }
  .site-header nav a { font-size: 12px; letter-spacing: 2.5px; }

  .site-footer { padding: 50px 0; font-size: 12px; letter-spacing: 3px; }

/* ===========================================
 Timeline Mobile
=========================================== */

@media (max-width:768px){

.timeline{
 max-width:100%;
 padding:0 10px;
}

.timeline::before{
 left:50%;
 transform:translateX(-50%);
}

.tl-marker{
 left:50%;
 transform:translateX(-50%);
 width:12px;
 height:12px;
 top:22px;
 box-shadow:0 0 0 6px rgba(0,0,0,0.08);
}

.tl-body{
 width:42%;
 padding:14px 16px;
 border-radius:14px;
}

.tl-left{
 float:left;
 text-align:right;
 margin-right:-14px;
}

.tl-right{
 float:right;
 text-align:left;
 margin-left:-14px;
}

.timeline-item{
 overflow:hidden;
 margin-bottom:28px;
}

.tl-time{
 font-size:11px;
}

.tl-content{
 font-size:10px;
 line-height:1.4;
 letter-spacing:.6px;
}

.tl-sub{
 font-size:9px;
}



.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contacts-grid .contact-card {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-bottom: 12px;
}

.contacts-section {
  margin-bottom: 40px;
}

@media (max-width:768px){
  .contacts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contacts-grid .contact-card {
    width: 100% !important;
  }
}
}

.contacts-grid .contact-card{
 width:100% !important;
 min-width:0 !important;
 max-width:100% !important;
}
.contacts-section{
 margin-bottom:40px;
}

/* =============================================================
   RSVP FORM — Premium Black & White
   ============================================================= */
#rsvp-form-section {
  padding-bottom: 40px;
}

.guest-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 40px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03), 0 1px 8px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: left;
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.guest-form:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.05), 0 2px 12px rgba(0,0,0,0.03);
}

.form-row {
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 9px;
  color: var(--mid-color-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--near-black);
  outline: none;
  transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}

.form-input::placeholder {
  color: var(--light-gray);
  font-weight: 300;
}

.form-input:focus {
  border-color: var(--near-black);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--mid-gray);
  font-weight: 300;
  transition: color 0.2s;
}

.radio-label:hover {
  color: var(--near-black);
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}

.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--near-black);
  opacity: 0;
  transition: opacity 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--near-black);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  opacity: 1;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--mid-gray);
  font-weight: 300;
  transition: color 0.2s;
}

.checkbox-label:hover {
  color: var(--near-black);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.check-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--light-gray);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}

.check-custom::after {
  content: '✕';
  font-size: 10px;
  color: var(--near-black);
  opacity: 0;
  transition: opacity 0.2s;
  line-height: 1;
}

.checkbox-label input[type="checkbox"]:checked + .check-custom {
  border-color: var(--near-black);
  background: var(--near-black);
}

.checkbox-label input[type="checkbox"]:checked + .check-custom::after {
  opacity: 1;
  color: var(--white);
}

/* Submit button */
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--near-black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease-premium);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.form-submit:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.form-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  font-weight: 300;
}

.form-message.success {
  background: rgba(0,0,0,0.02);
  color: var(--near-black);
  border: 1px solid rgba(0,0,0,0.06);
}

.form-message.error {
  background: rgba(0,0,0,0.02);
  color: var(--near-black);
  border: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 640px) {
  .guest-form {
    padding: 28px 20px;
  }
  .form-input {
    font-size: 13px;
    padding: 12px 14px;
  }
}