/* ===== ROOT VARIABLES ===== */
:root {
  --bordo: #6b1a23;
  --bordo-dark: #4a1019;
  --blush: #f5e8ea;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg: #fefefe;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: var(--blush); }
body::-webkit-scrollbar-thumb { background: var(--bordo); border-radius: 4px; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ===== PASSWORD OVERLAY ===== */
#password-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #6b1a23 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#password-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: fadeSlideUp 0.8s ease both;
}

.password-box .hearts {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.password-box h1 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.password-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.password-box input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.password-box input::placeholder { color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.password-box input:focus { border-color: white; }

.password-box button {
  width: 100%;
  padding: 0.9rem;
  border-radius: 50px;
  border: none;
  background: white;
  color: var(--bordo-dark);
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.password-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.password-error {
  color: #ffe0e0;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
  display: block;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(254,254,254,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,26,35,0.2);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blush);
  color: var(--bordo-dark);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #6b1a23 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 1rem 2rem;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeSlideUp 1s ease both;
}

.hero-eyebrow {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 1s 0.2s ease both;
}

.hero-names {
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: #c8c8c8;
  background: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 50%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  animation: fadeSlideUp 1s 0.4s ease both;
}

.hero-ampersand {
  display: block;
  font-size: 0.5em;
  color: rgba(255,255,255,0.7);
  margin: 0.1em 0;
}

.hero-date {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 1.5rem;
  animation: fadeSlideUp 1s 0.6s ease both;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  animation: fadeSlideUp 1s 0.7s ease both;
}

.hero-divider span { color: rgba(255,255,255,0.5); font-size: 1.2rem; }
.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

/* Countdown */
.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s 0.9s ease both;
  margin-top: 0.5rem;
}

.countdown-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  min-width: 90px;
  text-align: center;
}

.countdown-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: white;
  line-height: 1;
}

.countdown-label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Floating hearts */
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.heart {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: floatHeart linear infinite;
}

@keyframes floatHeart {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ===== SECTION BASE ===== */
section { padding: 6rem 1.5rem; }

.section-eyebrow {
  text-align: center;
  color: var(--bordo);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.section-divider span { color: var(--bordo); font-size: 1.2rem; }
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--bordo);
  opacity: 0.4;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cards-grid--single {
  grid-template-columns: minmax(260px, 480px);
  justify-content: center;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(107,26,35,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.card-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; color: var(--text-dark); }
.card p { color: #666; font-size: 0.95rem; line-height: 1.7; }

/* ===== VENUE ===== */
#venue { background: var(--blush); }

.venue-card { text-align: left; }
.venue-card .card-icon { text-align: center; }
.venue-website {
  display: block;
  text-align: center;
  color: var(--bordo);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(107,26,35,0.35);
  padding-bottom: 1.25rem;
}
.venue-website:hover { border-bottom-color: var(--bordo); }
.venue-details-group { display: flex; flex-direction: column; gap: 0.4rem; }
.venue-badge {
  display: inline-block;
  background: var(--blush);
  color: var(--bordo-dark);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.venue-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.venue-detail span:first-child { flex-shrink: 0; }

.map-placeholder {
  margin-top: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(107,26,35,0.15);
}

.map-placeholder .map-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.map-placeholder h3 { color: var(--bordo); margin-bottom: 0.75rem; }
.map-placeholder p { color: #888; font-size: 0.9rem; }
.map-link { color: var(--bordo); font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid rgba(107,26,35,0.4); }
.map-link:hover { border-bottom-color: var(--bordo); }

/* ===== ATTIRE ===== */
#attire { background: white; }

.attire-card .color-swatches {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  position: relative;
}

.swatch::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #999;
  white-space: nowrap;
}

.swatch-note {
  margin-top: 2rem;
  font-size: 0.72rem;
  color: #aaa;
  text-align: center;
}

/* ===== REGISTRY ===== */
#registry { background: var(--blush); }

.registry-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.registry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.registry-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.registry-btn.primary {
  background: var(--bordo);
  color: white;
}

.registry-btn.secondary {
  background: white;
  color: var(--bordo-dark);
  border: 2px solid var(--bordo);
}

.registry-note {
  text-align: center;
  background: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(107,26,35,0.15);
}

.registry-note p { color: #666; font-size: 0.95rem; }
.registry-note strong { color: var(--bordo-dark); }

/* ===== FAQ ===== */
#faq { background: white; }

.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(107,26,35,0.2);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item.open { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: color 0.2s;
}

.faq-item.open .faq-question { color: var(--bordo-dark); }

.faq-icon {
  font-size: 1.4rem;
  color: var(--bordo);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.6rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.6rem 1.4rem;
}

.faq-answer p { color: #666; font-size: 0.95rem; line-height: 1.8; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #6b1a23 0%, #1a1a1a 100%);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}

footer .footer-hearts { font-size: 2rem; margin-bottom: 1rem; display: block; }
footer h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 50%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
footer .footer-date {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2rem;
}
footer .footer-msg { font-size: 1.05rem; opacity: 0.85; }

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 4rem 1.25rem; }
  .countdown { gap: 0.6rem; }
  .countdown-box { min-width: 72px; padding: 0.9rem 1rem; }
  .countdown-number { font-size: 2rem; }
  .nav-links a { font-size: 0.75rem; padding: 0.4rem 0.7rem; letter-spacing: 1px; }
}

@media (max-width: 480px) {
  .nav-links a { font-size: 0.7rem; padding: 0.35rem 0.5rem; letter-spacing: 0.5px; }
  .hero-names { font-size: 3rem; }
}
