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

:root {
  --primary: #B22222;
  --secondary: #DAA520;
  --accent: #FF8C00;
  --bg: #FFF8F0;
  --text: #2C1810;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Decorative Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(218,165,32,0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(178,34,34,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,248,240,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(218,165,32,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-couple {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-divider-dot {
  color: var(--secondary);
  font-size: 0.8rem;
  opacity: 0.6;
}

.nav-date {
  font-size: 0.8rem;
  opacity: 0.55;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  opacity: 0.7;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  background:
    linear-gradient(135deg, rgba(178,34,34,0.06) 0%, transparent 50%, rgba(218,165,32,0.06) 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-names {
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-names span { display: block; }

.hero-names .ampersand {
  font-family: var(--font-body);
  font-size: 0.4em;
  color: var(--secondary);
  margin: 4px 0;
  font-style: italic;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent);
  margin: 16px 0 8px;
}

.hero-venue {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.countdown-item {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 90px;
  box-shadow: var(--shadow);
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ── Section ── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 12px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.7;
  font-size: 1.05rem;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px auto;
  color: var(--secondary);
  font-size: 1.2rem;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

/* ── Story ── */
.story-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 2;
  opacity: 0.85;
}

/* ── Events ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.event-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 0 2px 2px 0;
}

.event-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.event-name {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.event-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.event-time {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.event-venue {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.event-address {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 12px;
}

.event-dresscode-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.event-dresscode-link:hover { opacity: 1; }

.event-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.6;
}

/* ── Location ── */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

#map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-details { padding-top: 8px; }

.location-venue {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.location-address {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 16px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #8B1A1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178,34,34,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-publish {
  background: #1a7f3c;
  color: white;
}

.btn-publish:hover {
  background: #145f2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,127,60,0.3);
}

.btn-publish:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid rgba(178,34,34,0.1);
}

footer p {
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 2;
}

/* ── Scroll Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  opacity: 0.75;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
  transition: opacity 0.2s;
}
.nav-hamburger:hover { opacity: 1; }
.nav-hamburger .ham-line {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.nav-hamburger.open .ham-line-1 { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open .ham-line-2 { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .ham-line-3 { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.nav-mobile-overlay {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(255,248,240,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.nav-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
  opacity: 0.5;
  padding: 10px 24px;
  letter-spacing: 0.01em;
  transition: color 0.15s, opacity 0.15s;
}
.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active {
  color: var(--primary);
  opacity: 1;
}

@media (max-width: 768px) {
  nav .container { height: 64px; }
  .nav-brand { flex-shrink: 0; }
  .nav-couple { font-size: 0.9rem; }
  .nav-date { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; align-items: center; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.04em; }

  .hero { padding: 100px 16px 60px; }

  .countdown { gap: 12px; }
  .countdown-item { min-width: 70px; padding: 12px 14px; }
  .countdown-num { font-size: 1.5rem; }

  .location-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #map { height: 260px; }

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

/* ── Loading ── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
}
