/* ==========================================================
   Bruiloft Luuk & Nadieh — Style
   Bold / Feestelijk / Edgy
   ========================================================== */

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --white: #f5f0eb;
  --grey: #888;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* CONTAINER */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('assets/images/luuk-nadieh.jpeg') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px 24px;
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero-content {
    padding-top: 70px;
  }
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
}

/* 666 animation */
.hero-date {
  height: 1.6em; /* fixed height prevents layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-666,
.date-real {
  position: absolute;
}

.date-666 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: #cc0000;
  text-shadow:
    0 0 10px rgba(204, 0, 0, 0.8),
    0 0 30px rgba(204, 0, 0, 0.5),
    0 0 60px rgba(204, 0, 0, 0.3);
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.hero-date.show-666 .date-666 {
  opacity: 1;
}

.hero-date.show-666.flicker-on .date-666 {
  animation: flicker 0.15s infinite alternate;
}

.date-real {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* State: revealed */
.hero-date.revealed .date-666 {
  opacity: 0;
  transform: scale(1.2);
  filter: blur(8px);
  animation: none !important;
}

.hero-date.revealed .date-real {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

@keyframes flicker {
  0%   { opacity: 1; }
  25%  { opacity: 0.85; }
  50%  { opacity: 1; }
  75%  { opacity: 0.9; }
  100% { opacity: 0.95; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--gold);
  display: inline-block;
  margin: 0 8px;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.8);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn:hover {
  background: transparent;
  color: var(--gold);
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--dark);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section-intro {
  text-align: center;
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ==========================================================
   TIMELINE
   ========================================================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(212, 175, 55, 0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--black);
  border-radius: 50%;
}

.timeline-time {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-content p {
  color: rgba(245, 240, 235, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Maps link */
.maps-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  transition: color 0.2s;
}

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

.icon-map {
  width: 18px;
  height: 18px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-top: 6px;
}

.badge-ceremony {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-all {
  background: rgba(245, 240, 235, 0.1);
  color: var(--white);
  border: 1px solid rgba(245, 240, 235, 0.2);
}

/* ==========================================================
   INFO GRID
   ========================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.info-card {
  background: rgba(245, 240, 235, 0.04);
  border: 1px solid rgba(245, 240, 235, 0.08);
  padding: 32px 24px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.info-card p {
  color: rgba(245, 240, 235, 0.7);
  font-size: 0.95rem;
}

/* ==========================================================
   PLACEHOLDER / SOP CONTENT
   ========================================================== */
.placeholder-content,
.speeches-content {
  text-align: center;
  max-width: 560px;
  margin: 48px auto 0;
  color: rgba(245, 240, 235, 0.7);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.placeholder-content.visible,
.speeches-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RSVP / CTA
   ========================================================== */
.rsvp-cta {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rsvp-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-large {
  padding: 20px 56px;
  font-size: 1.05rem;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-content {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-content > p {
  color: var(--grey);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 260px 260px;
  gap: 24px;
  justify-content: center;
}

.contact-card {
  background: rgba(245, 240, 235, 0.04);
  border: 1px solid rgba(245, 240, 235, 0.08);
  padding: 28px 36px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.contact-card p {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--white);
}

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

a.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 18px;
  background-color: #25d366 !important;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s;
  -webkit-appearance: none;
  -webkit-text-fill-color: #fff;
}

a.btn-whatsapp:hover {
  background-color: #1da851 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

a.btn-whatsapp:active,
a.btn-whatsapp:focus {
  background-color: #25d366 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

a.btn-whatsapp svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  transform: translateZ(0);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--grey);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item::before {
    left: -28px;
    width: 10px;
    height: 10px;
  }

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

  .contact-cards {
    grid-template-columns: 260px;
  }
}
