/* Lokaal gehoste fonts (i.p.v. Google Fonts CDN) — werkt ook zonder internet-
   toegang tot fonts.gstatic.com, en stuurt geen bezoekers-IP naar Google. */
@font-face{font-family:'Baloo 2'; font-weight:500; font-style:normal; font-display:swap; src:url('../fonts/baloo2.woff2') format('woff2');}
@font-face{font-family:'Baloo 2'; font-weight:600; font-style:normal; font-display:swap; src:url('../fonts/baloo2.woff2') format('woff2');}
@font-face{font-family:'Baloo 2'; font-weight:700; font-style:normal; font-display:swap; src:url('../fonts/baloo2.woff2') format('woff2');}
@font-face{font-family:'Baloo 2'; font-weight:800; font-style:normal; font-display:swap; src:url('../fonts/baloo2.woff2') format('woff2');}
@font-face{font-family:'Figtree'; font-weight:400; font-style:normal; font-display:swap; src:url('../fonts/figtree.woff2') format('woff2');}
@font-face{font-family:'Figtree'; font-weight:500; font-style:normal; font-display:swap; src:url('../fonts/figtree.woff2') format('woff2');}
@font-face{font-family:'Figtree'; font-weight:600; font-style:normal; font-display:swap; src:url('../fonts/figtree.woff2') format('woff2');}
@font-face{font-family:'Figtree'; font-weight:700; font-style:normal; font-display:swap; src:url('../fonts/figtree.woff2') format('woff2');}
@font-face{font-family:'Gamja Flower'; font-weight:400; font-style:normal; font-display:swap; src:url('../fonts/gamja-flower.woff2') format('woff2');}

:root{
  --red:#C8102E;
  --red-dark:#98071F;
  --red-tint:#FBE6E9;
  --cream:#FBF6EC;
  --paper:#FFFFFF;
  --ink:#221C18;
  --ink-soft:#5B534C;
  --yellow:#F4B942;
  --yellow-ink:#4A3106;
  --line:#E9E0D0;

  /* afdelingskleuren */
  --sloepies:#7C5FBE;   /* paars */
  --speelclub:#F4B942;  /* geel */
  --speelclub-ink:#7A5A0A;
  --rakwi:#5FA85B;      /* groen */
  --tito:#C8102E;       /* rood */
  --keti:#3E7FC1;       /* blauw */
  --aspi:#E07B2E;       /* oranje */

  --font-display:'Baloo 2', sans-serif;
  --font-body:'Figtree', sans-serif;
  --font-hand:'Gamja Flower', cursive;
}
html{
  /* Gekantelde elementen (datumbadges, handnote, polaroids) steken net buiten
     hun eigen kader — zonder dit ontstaat daardoor een piepklein stukje
     horizontale scroll op mobiel. */
  overflow-x:clip;
}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  overflow-x:clip;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
h1,h2,h3,.font-display{font-family:var(--font-display); font-weight:700;}
a{text-decoration:none;}
.text-red{color:var(--red);}
.bg-cream{background:var(--cream);}
.bg-yellow-band{background:var(--yellow); color:var(--yellow-ink);}

.placeholder-box{
  background:repeating-linear-gradient(135deg, #f1e9d8, #f1e9d8 10px, #e9ddc4 10px, #e9ddc4 20px);
  border:2px dashed #cbbd9c;
  display:flex; align-items:center; justify-content:center;
  text-align:center; color:#7a6d52; font-size:13px; width:100%; height:100%;
}
.eyebrow-note{
  font-size:12px; color:var(--ink-soft); background:var(--paper);
  border:1px dashed var(--line); border-radius:8px; padding:6px 12px;
  display:inline-block;
}
.scribble{position:absolute; pointer-events:none;}
.eyebrow-dot{display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; color:var(--ink); margin-bottom:10px;}
.eyebrow-dot .dot{width:8px; height:8px; border-radius:50%; background:var(--red); display:inline-block; flex-shrink:0;}
.placeholder-icon{
  width:56px; height:56px; border-radius:50%; border:2px solid var(--red); color:var(--red);
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.55);
}
.handnote{font-family:var(--font-hand); font-size:30px; font-weight:400; color:var(--ink); transform:rotate(-4deg); display:inline-block;}
.ico{width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; display:inline-block; vertical-align:-4px; flex-shrink:0;}

/* ===== Navbar ===== */
.navbar{background:#fff; border-bottom:1px solid var(--line);}
.navbar .nav-link{font-weight:600; color:var(--ink); margin:0 14px;}
.navbar .nav-link:hover{color:var(--red);}
.navbar .nav-link.active{color:var(--red);}
.logo-slot{width:260px; height:42px;}
.btn-chiro{
  font-family:var(--font-body); font-weight:700; border-radius:100px; padding:.6rem 1.3rem; border:2px solid transparent;
}
.btn-chiro-red{background:var(--red); color:#fff;}
.btn-chiro-red:hover{background:var(--red-dark); color:#fff;}
.btn-chiro-outline{background:transparent; border-color:var(--ink); color:var(--ink);}
.btn-chiro-outline.on-photo{border-color:#fff; color:#fff;}
.btn-chiro-dark{background:var(--ink); color:#fff;}
.btn-chiro-dark:hover{background:var(--red); color:#fff;}

/* ===== Hero (homepage) ===== */
.hero{position:relative; height:580px; overflow:hidden;}
.hero-scrim{position:absolute; inset:0; background:linear-gradient(90deg, rgba(20,14,10,.75) 0%, rgba(20,14,10,.45) 35%, rgba(20,14,10,.15) 60%, rgba(20,14,10,.05) 100%);}
.hero-tag{
  position:absolute; top:26px; right:24px; background:var(--red); color:#fff;
  font-family:var(--font-display); font-weight:700; padding:9px 18px; border-radius:100px;
  font-size:14px; transform:rotate(4deg); z-index:3;
}
.hero h1{color:#fff; font-size:52px; line-height:1.1; max-width:620px;}
.hero h1 .accent{color:var(--red);}

/* ===== Page header (sub-pages) ===== */
.page-header{background:#fff; border-bottom:1px solid var(--line); padding:56px 0;}
.page-header h1{font-size:38px;}
.breadcrumb-chiro{font-size:13.5px; font-weight:600; color:var(--ink-soft); margin-bottom:14px;}
.breadcrumb-chiro a{color:var(--ink-soft);}
.breadcrumb-chiro a:hover{color:var(--red);}

/* ===== Sections ===== */
section{padding:76px 0;}
.section-icon{
  width:40px; height:40px; border-radius:50%; background:var(--red-tint); color:var(--red);
  border:1.5px dashed var(--red); display:inline-flex; align-items:center; justify-content:center;
  font-size:18px; transform:rotate(-8deg); margin-right:10px;
}

/* ===== Agenda cards ===== */
.agenda-card{border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--cream); transition:transform .2s ease, box-shadow .2s ease; min-height:142px;}
.agenda-card:hover{transform:rotate(-1deg) translateY(-3px); box-shadow:0 10px 22px rgba(34,28,24,.1);}
.agenda-thumb{width:132px; height:88px; object-fit:cover; border-radius:10px; flex-shrink:0;}
.date-badge{
  position:absolute; top:12px; left:12px; background:var(--yellow); color:var(--yellow-ink);
  border-radius:10px; padding:8px 10px; text-align:center; font-family:var(--font-display);
  line-height:1.05; box-shadow:0 3px 0 rgba(0,0,0,.15); transform:rotate(-6deg); width:58px;
}
.date-badge .dow{font-size:13px; font-weight:600;}
.date-badge .num{font-size:26px; font-weight:800;}
.date-badge .mon{font-size:12px; text-transform:uppercase; font-weight:700;}
.date-badge.inline{position:static; flex-shrink:0;}

/* ===== Month group headers (kalenderpagina) ===== */
.month-heading{
  display:flex; align-items:center; gap:12px; margin:48px 0 22px;
}
.month-heading:first-child{margin-top:0;}
.month-heading h2{font-size:22px; margin:0; white-space:nowrap;}
.month-heading .rule{height:1px; background:var(--line); flex:1;}

/* ===== Afdelingen ===== */
.afd-card{
  border-radius:18px; overflow:hidden; position:relative; aspect-ratio:3/4.2; color:#fff;
  display:flex; flex-direction:column; justify-content:flex-end;
}
.afd-figure{position:absolute; inset:0; padding:12% 8% 30%; display:flex; align-items:flex-end; justify-content:center; overflow:hidden;}
.afd-figure img{width:100%; height:100%; object-fit:contain; object-position:bottom; filter:drop-shadow(0 6px 10px rgba(0,0,0,.18)); transition:transform .25s ease;}
.afd-card:hover .afd-figure img{transform:scale(1.08);}
.afd-info{position:relative; padding:14px;}
.afd-info h3{font-size:18px; margin-bottom:0;}
.afd-info .age{font-size:12.5px; opacity:.9;}
.afd-sloepies{background:var(--sloepies);}
.afd-speelclub{background:var(--speelclub); color:var(--speelclub-ink);}
.afd-rakwi{background:var(--rakwi);}
.afd-tito{background:var(--tito);}
.afd-keti{background:var(--keti);}
.afd-aspi{background:var(--aspi);}

/* ===== CTA band ===== */
.cta-polaroid{background:#fff; padding:10px 10px 40px; border-radius:4px; box-shadow:0 14px 26px rgba(34,28,24,.18); transform:rotate(3deg); max-width:480px; margin:0 auto;}
.cta-polaroid .placeholder-box{height:280px;}
.cta-polaroid img{height:280px;}

.cta-polaroid-group{display:flex; justify-content:center; align-items:center; flex-wrap:nowrap; padding:20px 0;}
.cta-polaroid-group .cta-polaroid{width:230px; height:230px; max-width:none; margin:0 -26px; padding:10px 10px 30px; transition:transform .2s ease, z-index 0s;}
.cta-polaroid-group .cta-polaroid img{height:100%;}
.cta-polaroid-group .cta-polaroid:hover{transform:rotate(0deg) scale(1.08) !important; z-index:5 !important;}

/* ===== Info strip ===== */
.info-strip{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.info-item{min-width:0;}
.info-item p, .info-item .richtext-content{overflow-wrap:break-word; word-break:break-word;}
.info-item i{color:var(--red); font-size:22px; line-height:1;}
.info-item .richtext-content p{margin:0;}
.info-item .richtext-content a{color:var(--red) !important; font-weight:600;}
.info-item .richtext-content{
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  line-clamp:6;
  -webkit-line-clamp:6;
  overflow:hidden;
}

/* ===== Leiding ===== */
.leiding-photo{aspect-ratio:1/1.05; border-radius:16px; overflow:hidden;}
.leiding-carousel{position:relative;}
.leiding-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:#fff;
  color:var(--ink); display:none; align-items:center; justify-content:center;
  box-shadow:0 4px 10px rgba(34,28,24,.15); cursor:pointer; padding:0;
}
.leiding-arrow:hover{background:var(--red); color:#fff; border-color:var(--red);}
.leiding-arrow-left{left:4px;}
.leiding-arrow-right{right:4px;}
.leiding-carousel.is-scrollable .leiding-arrow{display:flex;}
.leiding-scroll-wrap{overflow-x:auto; overflow-y:hidden; padding-bottom:10px; -webkit-overflow-scrolling:touch; scrollbar-width:none;}
.leiding-scroll-wrap::-webkit-scrollbar{display:none;}
.leiding-scroll-wrap.is-centered{display:flex; justify-content:center;}
.leiding-scroll{
  display:flex; gap:20px; width:max-content;
}
.leiding-scroll.marquee{animation:leiding-marquee 36s linear infinite;}
.leiding-scroll-wrap:hover .leiding-scroll.marquee,
.leiding-scroll-wrap.is-interacting .leiding-scroll.marquee{animation-play-state:paused;}
@keyframes leiding-marquee{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@media (prefers-reduced-motion: reduce){
  .leiding-scroll.marquee{animation:none; overflow-x:auto;}
}
.leiding-card{flex:0 0 150px;}
.badge-hoofd{
  display:inline-flex; align-items:center; gap:5px; background:var(--red-tint); color:var(--red);
  font-size:11.5px; font-weight:700; padding:3px 9px; border-radius:100px;
}
.badge-hoofd svg{fill:currentColor; stroke:none;}
.badge-hoofd-photo{
  position:absolute; bottom:8px; left:8px; background:var(--red); color:#fff;
  box-shadow:0 3px 8px rgba(34,28,24,.25);
}
.badge-afd{
  display:inline-block; font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:100px; color:#fff;
}

/* ===== Event detail page ===== */
.event-hero{position:relative; aspect-ratio:3/2; border-radius:20px; overflow:hidden;}
.event-hero .date-badge{top:16px; left:16px; transform:rotate(-4deg);}
.event-meta-row{display:flex; flex-wrap:wrap; gap:22px; margin:22px 0 6px; font-weight:600; font-size:15px;}
.event-meta-row .ico{color:var(--red);}
.event-body p{font-size:16px; line-height:1.7; color:var(--ink-soft); margin:0;}
.event-body ul, .event-body ol{font-size:16px; line-height:1.7; color:var(--ink-soft); padding-left:22px; margin-bottom:1rem;}
.event-body a{color:var(--red); font-weight:600;}
.event-side{background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px;}
.event-side h4{font-size:15px; margin-bottom:14px;}
.event-side ul{list-style:none; padding:0; margin:0; font-size:14px; color:var(--ink-soft);}
.event-side li{display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--line);}
.event-side li:last-child{border-bottom:none;}
.event-side li .ico{color:var(--red); margin-top:1px;}
.back-link{display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:14px; color:var(--ink-soft); margin-bottom:24px;}
.back-link:hover{color:var(--red);}

/* ===== Footer ===== */
footer{background:var(--ink); color:#EFE9DF; margin-top:auto;}
.foot-social a{width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.25); display:inline-flex; align-items:center; justify-content:center; color:#EFE9DF; font-size:13px;}
footer a:hover{color:#fff;}
footer .small-link{color:#a89f90;}

@media (max-width:767px){
  .logo-slot{width:190px; height:30px;}
  .hero{height:520px;}
  .hero h1{font-size:34px;}
  .page-header{padding:40px 0;}
  .page-header h1{font-size:28px;}
  .cta-polaroid-group .cta-polaroid{width:132px; height:132px; margin:0 -20px; padding:7px 7px 20px;}
}
