/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #5e6b56;
  --gold: #b8964e;
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --sage: #e8ede4;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav a {
  text-decoration: none;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--gold);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: var(--sage);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 1rem;
}

.hero h1 .amp {
  font-style: italic;
  color: var(--gold);
  display: block;
  font-size: 0.6em;
  margin: 0.3rem 0;
}

.hero-date {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--green);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.scroll-btn {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  animation: bounce 2s infinite;
}

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

/* ── Details ── */
.details {
  padding: 6rem 2rem;
  text-align: center;
  background: white;
}

.details h2,
.haalahja h2,
.majoittautuminen h2,
.lapset h2,
.rsvp h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 2rem;
}

.details h2 { margin-bottom: 3.5rem; }
.rsvp h2 { margin-bottom: 0.5rem; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.details-card {
  padding: 1.5rem 1rem;
  text-align: center;
}

.card-icon {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.details-card h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}

.detail-time {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.detail-venue {
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.detail-address {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.map-link {
  color: var(--green);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.3s;
}

.map-link:hover {
  color: var(--gold);
}

/* ── Häälahja ── */
.haalahja {
  padding: 6rem 2rem;
  text-align: center;
  background: white;
}

/* ── Majoittautuminen ── */
.majoittautuminen {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--sage);
}

/* ── Lapset ── */
.lapset {
  padding: 6rem 2rem;
  text-align: center;
  background: white;
}

/* ── RSVP ── */
.rsvp {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--sage);
}

.section-text,
.rsvp-subtitle {
  color: var(--text-light);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.section-text {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.rsvp-subtitle {
  line-height: 1.3;
  margin-bottom: 2.5rem;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  background: white;
  border-top: 1px solid var(--cream-dark);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 1.2rem;
    padding: 0.8rem 1rem;
  }

  .nav a {
    font-size: 0.75rem;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-number {
    font-size: 1.6rem;
  }
}
