/* =========================================================
   De Klokkentoren Die Zingt — gedeelde stylesheet
   Wordt gebruikt door alle pagina's (NL + EN).
   ========================================================= */

:root {
  /* PRIMAIR — RUG-rood */
  --rood: #DC002E;
  --rood-donker: #A8001F;
  --rood-zacht: #FCDFE3;

  /* SECUNDAIR — terracotta. SPAARZAAM gebruiken: links,
     accentstreepje onder titel, hover-states. */
  --terra: #B54A1C;

  /* Achtergronden */
  --creme: #F2E9D4;             /* hoofdachtergrond — papier-warmte */
  --papier: #EADBBE;             /* perkament — voor kaarten en quotes */
  --steen: #D4C8B0;              /* warm taupe — voor subtiele blokken */

  /* Tekst */
  --inkt: #24211C;               /* broodtekst — bewust niet pure zwart */
  --brons: #83776B;              /* secundair: data, bijschriften, captions */

  /* Lijnen — lichtere variant van steen */
  --lijn: #C8BFAE;

  /* Donkere secties — zelfde diepe inkt-tint */
  --donker: #24211C;
  --donker-zacht: #34302A;

  /* TOEKOMST — verdigris kopergroen voor audio-accent o.i.d. */
  --verdigris: #3A5A52;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--inkt);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- TYPE ---------- */
.f-display { font-family: 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -0.02em; }
.f-body    { font-family: 'Hanken Grotesk', system-ui, sans-serif; }
.f-serif   { font-family: 'Instrument Serif', Georgia, serif; }

a { color: inherit; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}
.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) {
  .container-narrow { padding: 0 2rem; }
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.13;
  mix-blend-mode: multiply;
}

/* ---------- HERO ANIMATIONS ---------- */
.word { display: inline-block; opacity: 0; transform: translateY(40px); animation: word-up 1.1s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes word-up { to { opacity: 1; transform: translateY(0); } }
.word:nth-child(1) { animation-delay: 0.2s; }
.word:nth-child(2) { animation-delay: 0.35s; }
.word:nth-child(3) { animation-delay: 0.5s; }
.word:nth-child(4) { animation-delay: 0.65s; }

.hero-pills  { animation: word-up 0.8s ease-out 0s both; }
.hero-sub    { animation: word-up 1s ease-out 1s both; }
.hero-scroll { animation: word-up 1s ease-out 1.5s both; }

.hero-video {
  filter: grayscale(0.2) brightness(0.62) contrast(1.1) sepia(0.15);
  transform: scale(1.05);
  animation: ken-burns 30s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1.5%, -1%); }
}

/* ---------- WAVE BARS ---------- */
.wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}
.wave span {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  animation: wave-pulse 1.4s ease-in-out infinite;
}
.wave span:nth-child(1) { height: 30%;  animation-delay: 0s; }
.wave span:nth-child(2) { height: 70%;  animation-delay: 0.15s; }
.wave span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.wave span:nth-child(4) { height: 60%;  animation-delay: 0.45s; }
.wave span:nth-child(5) { height: 85%;  animation-delay: 0.6s; }
.wave span:nth-child(6) { height: 40%;  animation-delay: 0.75s; }
.wave span:nth-child(7) { height: 75%;  animation-delay: 0.9s; }
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ---------- BELL ICON ---------- */
.bell { transform-origin: 50% 8%; animation: bell-swing 3.2s ease-in-out infinite; }
@keyframes bell-swing {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}

/* ---------- SCROLL HINT ---------- */
.scroll-hint { animation: bounce-soft 2.4s ease-in-out infinite; }
@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ---------- PULSE DOT ---------- */
.pulse-dot { position: relative; }
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--rood);
  opacity: 0.4;
  animation: pulse-out 2s ease-out infinite;
}
@keyframes pulse-out {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- BUTTONS / TILES ---------- */
.tile-hover { transition: all .35s cubic-bezier(0.22,1,0.36,1); }
.tile-hover:hover { transform: translateY(-6px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--rood);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all .25s ease;
}
.btn-primary:hover {
  background: var(--rood-donker);
  transform: translateY(-2px);
}

/* ---------- DROP-CAP ---------- */
.drop-cap::first-letter {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em -0.1em 0;
  color: var(--terra);    /* secondaire kleur uit storyboard */
}

/* ---------- DIVIDER ---------- */
.divider-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 4rem 0;
}
.divider-mark::before,
.divider-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.divider-mark::before {
  background: linear-gradient(90deg, transparent, var(--lijn));
  transform-origin: right center;
}
.divider-mark::after {
  background: linear-gradient(90deg, var(--lijn), transparent);
  transform-origin: left center;
}
.divider-mark.visible::before,
.divider-mark.visible::after {
  transform: scaleX(1);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-wipe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.reveal-wipe.visible {
  clip-path: inset(0 0 0 0);
}

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--rood);
  z-index: 50;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: all .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .site-header-inner { padding: 1rem 2rem; }
}

.header-transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.header-solid {
  background: rgba(242, 233, 212, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--lijn);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}
.logo-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--rood);
  transition: transform .25s ease;
}
.logo-mark:hover .logo-dot { transform: scale(1.25); }
.logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}
.nav-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  transition: all .25s ease;
}
.nav-link.is-active {
  background: var(--inkt);
  color: white;
}
.header-transparent .nav-link.is-active {
  background: var(--creme);
  color: var(--inkt);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid currentColor;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-decoration: none;
  transition: all .25s ease;
}
.lang-switch:hover { transform: translateY(-1px); }
.lang-switch .lang-active   { font-weight: 700; }
.lang-switch .lang-inactive { opacity: 0.45; transition: opacity .25s; }
.lang-switch .lang-divider  { opacity: 0.3; }
.lang-switch:hover .lang-inactive { opacity: 0.75; }

.mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition: all .25s ease;
}

.mobile-nav {
  border-top: 1px solid var(--lijn);
  background: var(--creme);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
}
.mobile-nav .nav-link {
  text-align: left;
  font-size: 1rem;
  padding: 0.625rem 0.75rem;
}

/* ---------- PAGE FADE ---------- */
/* Belangrijk: animation NIET op <body> zetten — een transform op body breekt
   position:fixed van descendants (de header). Dus toepassen op <main>. */
.page-fade > main,
.page-fade > article {
  animation: pageIn 0.5s ease-out both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- YOUTUBE ---------- */
.yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--donker);
  border: 1px solid var(--lijn);
  overflow: hidden;
  border-radius: 4px;
}
.yt-mount { position: absolute; inset: 0; }
.yt-mount iframe { width: 100%; height: 100%; border: 0; }
.yt-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  color: rgba(255, 252, 244, 0.75);
  text-align: center;
  padding: 2rem;
}

/* ---------- AUDIO PLAYER ---------- */
.audio-button-big {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--rood);
  color: white;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  position: relative;
}
.audio-button-big::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--rood);
  opacity: 0.25;
  animation: pulse-out 2.5s ease-out infinite;
}
.audio-button-big:hover { transform: scale(1.08); }
.audio-button-big.playing {
  background: var(--donker);
  border: 2px solid var(--rood);
}
.audio-button-big.playing::before { animation-duration: 1.4s; }
.audio-icon-pause { display: none; }
.audio-button-big.playing .audio-icon-play  { display: none; }
.audio-button-big.playing .audio-icon-pause { display: inline-block; }

.audio-wave-vis {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.audio-wave-vis.active {
  opacity: 1;
  transform: translateY(0);
}
.audio-wave-vis span {
  display: block;
  width: 4px;
  background: var(--rood);
  border-radius: 2px;
  animation: wave-pulse 0.9s ease-in-out infinite;
  animation-play-state: paused;
}
.audio-wave-vis.active span { animation-play-state: running; }
.audio-wave-vis span:nth-child(1) { height: 40%;  animation-delay: 0s; }
.audio-wave-vis span:nth-child(2) { height: 75%;  animation-delay: 0.1s; }
.audio-wave-vis span:nth-child(3) { height: 55%;  animation-delay: 0.2s; }
.audio-wave-vis span:nth-child(4) { height: 100%; animation-delay: 0.3s; }
.audio-wave-vis span:nth-child(5) { height: 65%;  animation-delay: 0.4s; }
.audio-wave-vis span:nth-child(6) { height: 80%;  animation-delay: 0.5s; }
.audio-wave-vis span:nth-child(7) { height: 45%;  animation-delay: 0.6s; }

/* ---------- SOCIAL ICONS ---------- */
.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .3s ease;
  border: 1.5px solid currentColor;
  color: inherit;
}
.social-icon:hover {
  background: var(--rood);
  border-color: var(--rood);
  color: white;
  transform: translateY(-3px) rotate(-6deg);
}

/* ---------- UTILITY ---------- */
.bg-creme  { background: var(--creme); }
.bg-papier { background: var(--papier); }
.bg-steen { background: var(--steen); }
.bg-donker { background: var(--donker); color: var(--papier); }
.bg-rood-zacht { background: var(--rood-zacht); }
.bg-terra   { background: var(--terra); color: var(--papier); }

.txt-rood       { color: var(--rood); }
.txt-terra       { color: var(--terra); }
.txt-inkt-zacht { color: var(--brons); }
.txt-papier-dim { color: rgba(255, 252, 244, 0.72); }

/* ---------- TITLE ACCENT STREEPJE ---------- */
/* Spaarzaam: één terracotta-lijntje onder de h1 op long-form pagina's */
.title-accent {
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--terra);
  border-radius: 1.5px;
  margin: 1.5rem 0 0;
}

/* ---------- INLINE LINKS — terracotta accent ---------- */
article a:not(.btn-primary):not(.logo-mark):not(.tile-hover):not(.nav-link):not(.lang-switch):not(.social-icon) {
  color: var(--terra);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}
article a:not(.btn-primary):not(.logo-mark):not(.tile-hover):not(.nav-link):not(.lang-switch):not(.social-icon):hover {
  color: var(--rood);
}

/* ============================================================
   LANGUAGE PICKER — cookie-banner stijl, centered
   Verstopt zich pas zodra <html> de class .lang-chosen heeft.
   Die class wordt al in <head> gezet als de keuze ergens
   bewaard is (localStorage of cookie), dus terugkomers
   zien hem nooit meer.
   ============================================================ */
#lang-picker {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 24, 21, 0.35);   /* zachte dim, geen blur */
  animation: lpFade 0.28s ease-out both;
}
html.lang-chosen #lang-picker { display: none !important; }

@keyframes lpFade { from { opacity: 0; } to { opacity: 1; } }

.lp-card {
  background: var(--papier);
  color: var(--inkt);
  border-radius: 6px;
  border: 1px solid var(--lijn);
  padding: 1.5rem;
  max-width: 26rem;
  width: 100%;
  box-shadow: 0 20px 60px -15px rgba(26, 24, 21, 0.35);
  animation: lpPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
@keyframes lpPop {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}
.lp-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--rood);
  flex-shrink: 0;
}
.lp-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brons);
  margin: 0;
  font-weight: 600;
}

.lp-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.375rem 0;
}
.lp-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rood);
}

.lp-sub {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--brons);
  margin: 0 0 1.25rem 0;
}

.lp-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.lp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border-radius: 4px;
  border: 1px solid var(--lijn);
  background: var(--creme);
  color: var(--inkt);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}
.lp-btn .lp-flag-svg {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(36, 33, 28, 0.1);
}
.lp-btn:hover {
  border-color: var(--terra);
  background: var(--papier);
  transform: translateY(-1px);
}
.lp-btn:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
