/* ============================================================
   Jonas Smits — De Wraak van de Zamelaar
   Landingspagina
   ============================================================ */

:root {
  --bg:        #06140f;
  --bg-alt:    #0a1c16;
  --card:      #0f291f;
  --photo-bg:  #143a2e;

  --gold:   #d8c98a;
  --cream:  #ece7c2;
  --teal:   #5fd0c0;
  --muted:  #a9c2b6;
  --light:  #e8efe7;
  --white:  #ffffff;

  --maxw: 1140px;
  --pad-x: clamp(24px, 10.4vw, 150px);
  --pad-y: clamp(64px, 7vw, 100px);

  --ease: cubic-bezier(0.22, 0.65, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--light);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

/* ---------- Shared typografie ---------- */
.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--teal);
  text-transform: uppercase;
}

.heading {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--white);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
}
.heading--center { text-align: center; }

.prose {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}
.prose--lg {
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 22px);
}
.prose--light { color: var(--light); }
.prose--center { text-align: center; }

.quote {
  margin: 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.35;
  color: var(--cream);
}

.note {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  opacity: 0.85;
}

.price {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 28px);
  color: var(--gold);
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 44px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: var(--bg);
}
.btn--gold:hover { box-shadow: 0 10px 28px -10px rgba(216, 201, 138, 0.7); }

.btn--ghost {
  border-color: var(--muted);
  color: var(--light);
}
.btn--ghost:hover { background: rgba(169, 194, 182, 0.12); }

.btn--ghost-gold {
  border-color: var(--gold);
  color: var(--cream);
}
.btn--ghost-gold:hover { background: rgba(216, 201, 138, 0.12); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 28, 22, 0);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 28, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(216, 201, 138, 0.14);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.8);
}

.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--cream);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav__link:hover { color: var(--cream); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 2px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: rgba(6, 20, 15, 0.98);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0.35s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu__link {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--cream);
}
.mobile-menu__cta { margin-top: 10px; }

/* ============================================================
   Layout helpers
   ============================================================ */
.section {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding-top: calc(var(--pad-y) + 90px);
  overflow: hidden;
}
.hero__bg,
.boek__bg,
.footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg img,
.boek__bg img,
.footer__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  top: -10%;
  object-fit: cover;
  opacity: 0.12;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 64px);
  line-height: 1.05;
  color: var(--white);
}
.hero__subtitle {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--muted);
}
.hero__lead {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(21px, 2.7vw, 26px);
  line-height: 1.35;
  color: var(--cream);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.hero__cover {
  flex-shrink: 0;
  width: 360px;
  height: 510px;
  border-radius: 10px;
  border: 1px solid rgba(216, 201, 138, 0.4);
  overflow: hidden;
}
.hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   OVER JONAS
   ============================================================ */
.over {
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: calc(var(--maxw) + var(--pad-x) * 2);
  margin: 0 auto;
}
.over__photo {
  flex: 1 1 0;
  min-width: 0;
  height: 450px;
  border-radius: 14px;
  border: 1px solid rgba(216, 201, 138, 0.3);
  background: var(--photo-bg);
  overflow: hidden;
}
.over__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.over__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ============================================================
   HET BOEK
   ============================================================ */
.boek {
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 64px;
  overflow: hidden;
}
.boek > .boek__text,
.boek > .boek__cover { position: relative; z-index: 1; }

.boek__text {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc((var(--maxw) - 64px) * 0.66);
  margin-right: max(var(--pad-x), calc((100% - var(--maxw)) / 2));
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.boek__cover {
  flex-shrink: 0;
  width: 320px;
  height: 460px;
  margin-left: max(var(--pad-x), calc((100% - var(--maxw)) / 2));
  border-radius: 10px;
  border: 1px solid rgba(216, 201, 138, 0.4);
  overflow: hidden;
}
.boek__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   BESTELLEN
   ============================================================ */
.bestellen {
  background: var(--bg);
  display: flex;
  justify-content: center;
}
.bestellen__card {
  width: 100%;
  max-width: var(--maxw);
  background: var(--card);
  border: 1px solid rgba(216, 201, 138, 0.4);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.bestellen__card .heading { max-width: 18ch; }
.bestellen__card .prose { max-width: 52ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid rgba(216, 201, 138, 0.2);
  padding: 50px var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}
.footer__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.footer > p { position: relative; z-index: 1; }
.footer__brand {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--cream);
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.footer__social-link:hover { color: var(--cream); }
.footer__social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.footer__dot {
  color: var(--muted);
  opacity: 0.5;
}
.footer__legal {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted);
  opacity: 0.8;
}

/* ============================================================
   SCROLL-ANIMATIES (reveal)
   ============================================================ */
.reveal,
.reveal-img {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal { transform: translateY(28px); }
.reveal-img { transform: translateY(28px) scale(1.03); }

.reveal.in,
.reveal-img.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }

  .hero__content { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero__cover { width: 100%; max-width: 300px; height: auto; aspect-ratio: 360 / 510; align-self: center; }

  .over { flex-direction: column; align-items: stretch; }
  .over__photo { width: 100%; height: auto; aspect-ratio: 540 / 380; order: -1; }

  .boek { flex-direction: column; align-items: stretch; }
  .boek__text { max-width: none; margin-right: 0; }
  .boek__cover {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 320 / 460;
    margin-left: 0;
    align-self: center;
    order: -1;
  }
}

@media (max-width: 520px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- Respecteer toegankelijkheidsvoorkeur ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-parallax] { transform: none !important; }
}
