/* =====================================================================
   WACHTEN OP NOAH — landingpagina
   Mobile-first. Breakpoints: 800px (tablet), 1280px (desktop),
   zelfde als in de mockup.
   ===================================================================== */

:root {
  --navy: #406a9c;
  --navy-soft: #547bab;
  --sand: #f0bc76;
  --sand-dark: #c99a5c;
  --cream: #f7f4ee;
  --ink: #1a1a1a;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.italic-label {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--sand);
  letter-spacing: 0.02em;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0); }

.btn-on-light {
  background: var(--navy);
  color: #fff;
}
.btn-on-dark {
  background: var(--sand);
  color: var(--navy);
}

/* ---------- topbar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 1.1rem 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
}
.topbar-title {
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.topbar-author {
  margin-top: 0.3rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.topbar-date {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0.7;
  font-style: normal;
}

/* ---------- hero ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 68svh;
  overflow: hidden;
  background: #fac77f url("assets/hero.jpg") 62% 77% / cover no-repeat;
}

/* the baked-in "Wacht je mee?" now sits at 62% across / 77% down the image —
   this anchors the button at that exact same screen point, at any size. */
.hero-content {
  position: absolute;
  top: 84%;
  left: 62%;
  transform: translate(-50%, 0);
  z-index: 1;
  white-space: nowrap;
}

/* countdown badge, fixed to the hero's own top-right corner —
   independent of the background image crop, so it never shifts. */
.hero-countdown {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(64, 106, 156, 0.85);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
  padding: 0.6rem 0.7rem 0.55rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.hero-countdown-label {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.62rem;
  text-align: center;
  color: var(--sand);
  letter-spacing: 0.02em;
}
.hero-countdown-units {
  display: flex;
  gap: 0.45rem;
}
.hero-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 30px;
}
.hero-countdown-value {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-countdown-key {
  margin-top: 0.2rem;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}

/* ---------- chapter section ---------- */
.chapter {
  background: var(--navy);
  color: #fff;
  padding: 3rem 1.25rem;
}
.chapter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.chapter-cover {
  max-width: 340px;
  margin: 0 auto 1.75rem;
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}
.chapter-eyebrow {
  font-size: 1rem;
  margin: 0 0 0.15rem;
}
.chapter-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 1.1rem;
}
.chapter-full {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.chapter-full.open { max-height: 4000px; }
.chapter-full-inner { padding-top: 0.25rem; }
.chapter-full h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sand);
  margin: 0 0 1rem;
}
.chapter-full p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.1rem;
}
.chapter-preorder-btn {
  display: inline-block;
  margin-top: 0.75rem;
}
.chapter-toggle { margin-top: 0.25rem; margin-bottom: 0.5rem; }
.chapter-toggle-btn::after { content: "Lees hoofdstuk 1"; }
.chapter-toggle-btn.is-open::after { content: "Verberg hoofdstuk 1"; }

/* ---------- agenda section ---------- */
.agenda { padding: 0; }
.agenda-header {
  background: var(--navy);
  padding: 1.1rem 1.25rem;
}
.agenda-header .italic-label {
  display: block;
  text-align: center;
  font-size: 1.7rem;
}
.agenda-body { padding: 2rem 1.25rem 2.5rem; max-width: var(--max-width); margin: 0 auto; }
.agenda-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.agenda-empty {
  font-size: 0.9rem;
  color: #666;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

/* mobile: stacked cards */
.agenda-list { display: flex; flex-direction: column; }
.agenda-card {
  padding: 1rem 0;
  border-bottom: 1px solid #e2ddd0;
}
.agenda-card:first-child { border-top: 1px solid #e2ddd0; }
.agenda-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.agenda-card-datum {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.agenda-card-locatie { font-weight: 600; }
.agenda-card-stad { color: #555; font-size: 0.9rem; }
.agenda-card-info { font-size: 0.85rem; color: #666; margin-top: 0.3rem; }
.agenda-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sand-dark);
  text-decoration: underline;
}

/* desktop/tablet: table */
.agenda-table { width: 100%; border-collapse: collapse; display: none; }
.agenda-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  font-weight: 600;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid #d8d2c2;
}
.agenda-table td {
  padding: 0.85rem 0.5rem 0.85rem 0;
  border-bottom: 1px dotted #d8d2c2;
  font-size: 0.95rem;
  vertical-align: top;
}
.agenda-table td:first-child, .agenda-table th:first-child { font-weight: 700; color: var(--navy); }
.agenda-table a { color: var(--sand-dark); font-weight: 700; text-decoration: underline; }

/* ---------- newsletter section ---------- */
.newsletter {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 1.25rem 3rem;
}
.newsletter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.newsletter-photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.newsletter-text-block { text-align: center; }
.newsletter-heading {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.newsletter-copy {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1.4rem;
  line-height: 1.6;
}

/* footer */
.site-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #999;
  padding: 1.6rem 1.2rem 1.2rem;
  background: var(--cream);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.footer-social a:hover { transform: translateY(-2px); opacity: 0.85; }
.footer-social svg { width: 16px; height: 16px; }

/* =====================================================================
   TABLET — 800px+
   ===================================================================== */
@media (min-width: 800px) {
  .topbar { padding: 1.4rem 1rem; }
  .topbar-title { font-size: 2.8rem; }
  .topbar-author { font-size: 1.1rem; }
  .topbar-date { font-size: 0.95rem; }
  .hero { min-height: 72vh; }
  .hero-countdown { top: 1.5rem; right: 1.5rem; padding: 0.8rem 1rem 0.7rem; border-radius: 14px; }
  .hero-countdown-label { font-size: 0.72rem; margin-bottom: 0.45rem; }
  .hero-countdown-units { gap: 0.65rem; }
  .hero-countdown-unit { min-width: 38px; }
  .hero-countdown-value { font-size: 1.4rem; }
  .hero-countdown-key { font-size: 0.62rem; }

  .chapter-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
  }
  .chapter-text-col { order: 1; }
  .chapter-cover { order: 2; margin: 0; max-width: 100%; }
  .chapter-heading { font-size: 1.4rem; }

  .agenda-header .italic-label { font-size: 2.2rem; }
  .agenda-title { font-size: 2.6rem; }
  .agenda-list { display: none; }
  .agenda-table { display: table; }

  .newsletter-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: center;
  }
  .newsletter-photo { margin: 0; }
  .newsletter-text-block { text-align: left; }
}

/* =====================================================================
   DESKTOP — 1280px+
   ===================================================================== */
@media (min-width: 1280px) {
  .topbar-title { font-size: 3.2rem; }
  .hero { min-height: 78vh; }
  .chapter { padding: 4.5rem 3rem; }
  .agenda-body { padding: 3rem 3rem 4rem; }
  .agenda-header { padding: 1.4rem 3rem; }
  .newsletter { padding: 3.5rem 3rem 4rem; }
}
