/* =============================================
   STORM & DIONNE BRUILOFT - COMPLETE DESIGN
   ============================================= */

/* 1. DESIGN TOKENS */
:root {
  --color-sage: #6B7F5F;
  --color-dusty-rose: #9B6B63;
  --color-cream: #F9F6F1;
  --color-dark-brown: #3D2817;
  --color-soft-peach: #E8BFB5;
  --color-white: #F9F6F1;
  --color-bg: var(--color-cream);
  --color-text: var(--color-sage);
  --color-text-light: var(--color-dusty-rose);
  --color-accent: var(--color-dusty-rose);
  --color-footer: #6B7F5F;
  --color-page-bg: #F0EDE5;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Great Vibes', cursive;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 6rem;
  --space-7: 8rem;

  /* Verticaal ritme: één waarde voor alle secties, zodat de afstand tussen
     secties overal gelijk is (2x --section-y) en het ritme binnen een sectie
     precies de helft daarvan is. */
  --section-y: var(--space-4);

  --transition: all 0.4s ease-out;
  --max-column-width: 700px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: #F0EDE5;
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

/* PAGE WRAPPER — Hele pagina als één kolom */
.page-wrapper {
  max-width: var(--max-column-width);
  margin: 0 auto;
}


.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-sage);
  color: var(--color-cream);
  padding: var(--space-2);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-sage);
  /* Geen globale margin-top: die lekte 3rem in elk tijdlijnitem en
     elk infoblok. Secties bepalen zelf hun bovenruimte. */
  margin-top: 0;
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
  /* Vangnet: lange woorden mogen de kolom nooit oprekken */
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 8vw, 3rem);
}

p {
  overflow-wrap: break-word;
}

/* 3. HERO SECTION — Hoogte volgt de foto, geen lege randen
   De hero had height:100vh met object-fit:contain. Omdat de kolom 700px breed
   is en de foto 1080x1500, bleef er altijd lege achtergrond over: op desktop
   als balken links en rechts, op mobiel als een grijs vlak onder de foto.
   De hoogte volgt nu de verhouding van de foto zelf: de scheurrand blijft
   heel en er is op geen enkel scherm nog lege ruimte. */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #F9F6F1;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1500;
  object-fit: cover;
  object-position: top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-3);
  z-index: 2;
}

.hero__content-top {
  text-align: center;
  color: var(--color-cream);
}

.hero__content-bottom {
  text-align: center;
  color: var(--color-cream);
}

.hero__tagline {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  opacity: 0.95;
}

.hero__title {
  /* 14vw liet de naam op smalle schermen tegen de rand aanlopen, 7rem paste
     op desktop niet meer binnen de zijruimte van de overlay */
  font-size: clamp(2.5rem, 10vw, 6.25rem);
  font-family: var(--font-script);
  color: var(--color-cream);
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero__date {
  font-size: 1.25rem;
  margin-bottom: 0;
  margin-top: -100px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

/* 4. MAIN CONTENT */
.main {
  background-color: #F9F6F1;
}

.container {
  max-width: 100%;
  padding: 0 var(--space-4);
  margin: 0 auto;
}

/* Gedeelde bouwstenen: inleidende regel en knoprij binnen een sectie.
   Vervangt de losse inline styles, zodat de afstanden op één plek staan. */
.section-lead {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.section-actions {
  text-align: center;
  margin: 0;
}

.section-actions + .section-actions {
  margin-top: var(--space-2);
}

/* 5. COUNTDOWN SECTION */
.countdown-section {
  padding: var(--section-y) 0;
  background: #F9F6F1;
}

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

.countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-3), 3vw, var(--space-4));
  flex-wrap: nowrap;
}

.countdown-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.countdown-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--color-text);
  text-shadow: 0 2px 4px rgba(255,255,255,0.5);
  line-height: 1;
}

.countdown-label {
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  line-height: 1;
}

.countdown-divider {
  width: 1px;
  height: clamp(2rem, 6vh, 3.5rem);
  background-color: var(--color-sage);
  opacity: 0.3;
}

.married-message {
  font-size: 2rem;
  font-family: var(--font-script);
  color: var(--color-sage);
  text-align: center;
  padding: var(--space-4) 0;
}

/* 6. TIMELINE SECTION */
.timeline-section {
  padding: var(--section-y) 0;
}

.section-title {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--section-y);
}

.timeline {
  position: relative;
}

.timeline__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--section-y);
  position: relative;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  flex-shrink: 0;
  /* Schaalt mee zodat de tekstkolom op smalle schermen leesbaar blijft */
  width: clamp(66px, 20vw, 135px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.timeline__content {
  flex: 1;
  min-width: 0;
}

.timeline__time {
  display: block;
  font-weight: 600;
  color: var(--color-sage);
  margin-bottom: var(--space-1);
  font-size: clamp(0.95rem, 3vw, 1.2rem);
}

.timeline__title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline__description {
  color: var(--color-text-light);
}

/* 7. PRACTICAL INFO */
.info-section {
  padding: var(--section-y) 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.info-plain {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(107, 127, 95, 0.15);
}

.info-plain:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.info-title {
  font-size: clamp(1rem, 3vw, 1.3rem);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.info-icon {
  width: clamp(51px, 15vw, 66px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.info-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 8. DRESSCODE TEASER */
.dresscode-section {
  padding: var(--section-y) 0;
}

.dresscode-teaser {
  text-align: center;
  padding: var(--space-4);
  background-color: rgba(107, 127, 95, 0.05);
  border-radius: 12px;
}

.dresscode-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  text-align: center;
  margin-bottom: var(--space-1);
}

.dresscode-desc {
  text-align: center;
  margin-bottom: var(--space-3);
  color: var(--color-text-light);
}

/* 9. PHOTO SECTION
   De scheurrand zit in de foto zelf en levert de witruimte al. Extra padding
   maakte daar een tweede, zichtbare marge omheen. */
.photo-section {
  position: relative;
}

.photo-section__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 1304;
  object-fit: cover;
  display: block;
}

/* 10. PLAYLIST SECTION */
.playlist-section {
  padding: var(--section-y) 0;
}

.playlist-teaser {
  text-align: center;
}

.playlist-image {
  /* Was 600px breed voor een tekening die maar een fractie daarvan vulde */
  width: clamp(86px, 18vw, 126px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto var(--space-2);
  display: block;
}

.playlist-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: var(--space-1);
}

.playlist-desc {
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

/* 11. CALL TO ACTION */
.cta-section {
  padding: var(--section-y) 0;
  text-align: center;
}

/* 12. BUTTONS */
.btn {
  display: inline-block;
  /* 6rem zijruimte liet de knop op smalle schermen buiten de kolom lopen */
  padding: var(--space-2) var(--space-5);
  max-width: 100%;
  background-color: var(--color-sage);
  color: var(--color-cream);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.btn:focus-visible {
  outline: 2px solid var(--color-dark-brown);
  outline-offset: 3px;
}

.btn:hover {
  background-color: var(--color-dusty-rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 127, 95, 0.2);
}

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

.btn--secondary {
  background-color: transparent;
  border: 1px solid var(--color-dusty-rose);
  color: var(--color-dusty-rose);
  border-radius: 3px;
}

.btn--secondary:hover {
  background-color: rgba(161, 112, 112, 0.06);
  transform: none;
  box-shadow: none;
}

/* 13. CONTACT SECTION */
.contact-section {
  padding: var(--section-y) 0;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 600px;
  margin: 0 auto;
  margin-top: var(--space-5);
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

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

.contact-item-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.contact-item-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0;
}

.contact-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-role {
  font-size: 0.9rem;
  display: block;
  color: var(--color-text-light);
  margin-top: var(--space-1);
}

.contact-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-sage);
  border-radius: 12px;
  padding: var(--space-5);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-title {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  margin-bottom: var(--space-3);
}

.contact-role {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--color-text-light);
  margin-bottom: var(--space-1);
}

.contact-name {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.contact-link {
  display: block;
  color: var(--color-sage);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: var(--space-3);
  word-break: break-word;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-button {
  display: inline-block;
  background-color: var(--color-sage);
  color: var(--color-cream);
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-button:hover {
  background-color: var(--color-dusty-rose);
}

/* 14. FOOTER */
.footer {
  background-color: var(--color-footer);
  color: var(--color-cream);
  text-align: center;
  /* Had 8rem margin-top bovenop 6rem eigen padding: 14rem lege ruimte */
  padding: var(--space-5) var(--space-4);
  margin-top: 0;
}

.footer__message {
  margin-bottom: var(--space-1);
  font-size: 1rem;
}

.footer__copyright {
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer__herovito {
  margin-top: var(--space-3);
  font-size: 0.85rem;
}

.footer__herovito a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--color-cream);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer__herovito a:hover,
.footer__herovito a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.footer__logo {
  /* Stond op 40px in een tekstregel en liep daardoor over de haakjes heen */
  height: 3.2em;
  width: auto;
  display: block;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  /* Naast elkaar heeft alleen de eerste kolom een streep onder zich, wat
     scheef oogt. In twee kolommen scheidt de kolomruimte al genoeg. */
  .info-plain {
    padding-bottom: 0;
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .countdown-display {
    gap: var(--space-2);
  }

  .countdown-divider {
    height: 2rem;
  }

  .section-title {
    gap: var(--space-2);
  }

  .container {
    padding: 0 var(--space-3);
  }

  .timeline__item {
    gap: var(--space-2);
  }
}
