/* =========================================================
   Scouts Stad Torhout — Design system
   Palette: forest green + warm white, Apple-esque restraint
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700&display=swap');

:root{
  --ink:        #0e1f18;
  --forest:     #1b4332;
  --forest-2:   #2d6a4f;
  --leaf:       #40916c;
  --mint:       #95d5b2;
  --mist:       #eef6f0;
  --paper:      #fbfaf6;
  --white:      #ffffff;
  --line:       rgba(14,31,24,0.09);
  --shadow:     0 20px 50px -25px rgba(14,31,24,0.35);

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.16,.84,.26,1);
}

*{ box-sizing:border-box; }

/* ---------- Accessibility ---------- */
.skip-link{
  position:absolute; left:16px; top:-60px; z-index:1000;
  background:var(--forest); color:var(--white); padding:12px 20px; border-radius:10px;
  font-weight:700; font-size:0.9rem; transition: top .25s ease;
}
.skip-link:focus{ top:16px; }
a:focus-visible, button:focus-visible{
  outline:3px solid var(--leaf); outline-offset:3px; border-radius:6px;
}
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; margin:0; letter-spacing:-0.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

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

.container{ max-width:var(--container); margin:0 auto; padding:0 32px; }

/* ---------- Scout badge / patch (uses the group emblem) ---------- */
.scout-patch{
  position:absolute; width:112px; height:112px; border-radius:50%;
  background: var(--white); box-shadow: var(--shadow); border:3px solid var(--paper);
  display:flex; align-items:center; justify-content:center; padding:18px;
  animation: patchSway 6s ease-in-out infinite;
  transform-origin: 50% -30px;
}
.scout-patch img{ width:100%; height:100%; object-fit:contain; }
@keyframes patchSway{
  0%,100%{ transform: rotate(-4deg); }
  50%{ transform: rotate(4deg); }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ opacity:0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.is-visible > *{ opacity:1; transform:none; }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay:.03s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay:.10s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay:.17s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay:.24s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay:.31s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay:.38s; }
.reveal-stagger.is-visible > *:nth-child(7){ transition-delay:.45s; }

/* ---------- Top bar ---------- */
.topbar{
  position:fixed; inset:0 0 auto 0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 32px;
  background: rgba(251,250,246,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.topbar.scrolled{ border-color: var(--line); box-shadow: 0 1px 0 rgba(14,31,24,0.03); }

.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:1.05rem; color:var(--forest); }
.brand img{ height:34px; width:auto; }

.nav-desktop{ display:flex; align-items:center; gap:2px; }

.nav-home{
  display:flex; align-items:center; justify-content:center;
  width:50px; height:50px; border-radius:50%; color:var(--forest);
  margin-right:6px; transition: background .25s ease, transform .25s ease;
}
.nav-home:hover{ background:rgba(27,67,50,0.08); transform:translateY(-1px); }
.nav-home svg{ width:28px; height:28px; }
.nav-desktop a{
  position:relative; padding:9px 16px; font-size:0.92rem; font-weight:600; color:var(--ink); opacity:.72;
  border-radius:999px; transition: opacity .25s ease, background .25s ease;
}
.nav-desktop a:hover{ opacity:1; background:rgba(27,67,50,0.06); }
.nav-desktop a.active{ opacity:1; color:var(--forest); }

.nav-dropdown{ position:relative; }
.nav-dropdown-panel{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translate(-50%,8px);
  min-width:200px; background:var(--white); border:1px solid var(--line); border-radius:16px;
  box-shadow: var(--shadow); padding:8px; opacity:0; visibility:hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel{
  opacity:1; visibility:visible; transform:translate(-50%,0);
}
.nav-dropdown-panel a{ display:block; padding:10px 14px; border-radius:10px; font-size:0.9rem; opacity:.85; }
.nav-dropdown-panel a:hover{ background:var(--mist); opacity:1; }

.nav-cta{
  padding:10px 20px !important; background:var(--forest); color:var(--white) !important; opacity:1 !important;
  box-shadow: 0 8px 20px -8px rgba(27,67,50,0.55);
}
.nav-cta:hover{ background:var(--forest-2) !important; }

.burger{ display:none; width:40px; height:40px; border:none; background:none; cursor:pointer; align-items:center; justify-content:center; }
.burger span, .burger::before, .burger::after{ content:''; display:block; width:20px; height:2px; background:var(--ink); position:relative; transition: transform .3s ease, opacity .3s ease; }
.burger::before{ transform: translateY(-6px); }
.burger::after{ transform: translateY(4px); }

.mobile-menu{
  position:fixed; inset:0; z-index:99; background:var(--paper);
  display:flex; flex-direction:column; padding:100px 32px 40px; overflow-y:auto;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-family:var(--font-display); font-size:1.6rem; padding:14px 0; border-bottom:1px solid var(--line); color:var(--forest); }

.mobile-menu-label{
  font-family:var(--font-display); font-size:1.6rem; font-weight:600;
  padding:14px 0 4px; color:var(--forest); display:block;
}
.mobile-tak-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px;
  padding:6px 0 20px; border-bottom:1px solid var(--line); margin-bottom:4px;
}
.mobile-tak-item{
  display:flex; align-items:center; gap:10px; padding:14px 16px; min-height:56px;
  border-radius:16px; background:var(--mist); color:var(--forest);
  font-family:var(--font-body); font-weight:700; font-size:1rem;
  border-bottom:none !important; transition: background .2s ease, transform .2s ease;
}
.mobile-tak-item img{ width:30px; height:30px; object-fit:contain; flex:none; }
.mobile-tak-item:active{ background:var(--mint); transform:scale(0.97); }
.mobile-tak-item:nth-child(5):last-child{ grid-column: 1 / -1; }

/* ---------- Hero ---------- */
.hero{
  position:relative; padding:170px 32px 120px; overflow:hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--mint) 0%, var(--paper) 62%);
}
.hero-inner{ max-width:var(--container); margin:0 auto; text-align:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:0.8rem; font-weight:700; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--forest); background:rgba(64,145,108,0.12); padding:8px 16px; border-radius:999px;
}
.hero h1{
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height:1.08; margin-top:28px; color:var(--forest);
}
.hero h1 em{
  font-style:normal; color:var(--leaf); position:relative; display:inline-block;
}
.hero h1 em::after{
  content:''; position:absolute; left:2%; right:2%; bottom:6px; height:10px; z-index:-1;
  background: var(--mint); opacity:.55; border-radius:6px; transform:rotate(-1deg);
}
.hero p.lead{ max-width:640px; margin:26px auto 0; font-size:1.15rem; color:rgba(14,31,24,0.68); }
.hero-actions{ display:flex; gap:14px; justify-content:center; margin-top:38px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding:15px 28px; border-radius:999px; font-weight:700;
  font-size:0.95rem; border:1px solid transparent; cursor:pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
}
.btn-primary{ background:var(--forest); color:var(--white); box-shadow:0 14px 30px -12px rgba(27,67,50,0.55); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 20px 36px -12px rgba(27,67,50,0.6); background:var(--forest-2); }
.btn-ghost{ background:transparent; color:var(--forest); border-color:var(--line); }
.btn-ghost:hover{ transform:translateY(-2px); background:var(--white); border-color:var(--forest); }

.hero-visual{ margin-top:70px; position:relative; }
.hero-visual-frame{
  border-radius:28px; overflow:hidden; box-shadow: var(--shadow); aspect-ratio: 16/8;
}
.hero-visual-frame img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition: transform 1.2s var(--ease); }
.hero-visual:hover .hero-visual-frame img{ transform:scale(1.07); }

/* ---------- Section scaffolding ---------- */
section{ padding:110px 0; scroll-margin-top:90px; }
.section-head{ max-width:640px; margin:0 auto 56px; text-align:center; }
.section-head .eyebrow{ margin-bottom:18px; }
.section-head h2{ font-size:clamp(2rem,4vw,2.9rem); color:var(--forest); }
.section-head p{ margin-top:16px; color:rgba(14,31,24,0.65); font-size:1.05rem; }
.tint{ background: var(--mist); }

/* ---------- News / event cards ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.event-card{
  background:var(--white); border:1px solid var(--line); border-radius:22px; padding:32px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.event-card:hover{ transform:translateY(-6px); box-shadow: var(--shadow); }
.event-card .tag{ font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--leaf); }
.event-card h3{ font-size:1.35rem; margin-top:12px; color:var(--forest); }
.event-card p{ margin-top:10px; color:rgba(14,31,24,0.66); font-size:0.95rem; }
.event-card .dl{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-weight:700; font-size:0.88rem; color:var(--forest); }
.event-card .dl:hover{ text-decoration:underline; }

/* ---------- Story / about split ---------- */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; }
.split .art{ border-radius:26px; overflow:hidden; box-shadow:var(--shadow); }
.split .art img{ width:100%; height:100%; object-fit:cover; }
.split h2{ font-size:clamp(1.9rem,3.4vw,2.6rem); color:var(--forest); }
.split p{ margin-top:20px; color:rgba(14,31,24,0.68); font-size:1.05rem; }
.stat-row{ display:flex; gap:40px; margin-top:34px; }
.stat b{ display:block; font-family:var(--font-display); font-size:2.1rem; color:var(--forest); }
.stat span{ font-size:0.85rem; color:rgba(14,31,24,0.6); }

/* ---------- Takken (branches) journey ---------- */
.journey{ position:relative; }
.journey-track{
  position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:18px; margin-top:60px;
}
.journey-line{
  position:absolute; top:74px; left:8%; right:8%; height:2px;
  background: repeating-linear-gradient(90deg, var(--leaf) 0 10px, transparent 10px 18px);
  z-index:0;
}
.tak-card{
  position:relative; z-index:1; background:var(--white); border:1px solid var(--line); border-radius:24px;
  padding:28px 20px; text-align:center; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease;
}
.tak-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow); border-color:transparent; }
.tak-card .badge{
  width:96px; height:96px; margin:0 auto 18px; border-radius:50%; background:var(--mist);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.tak-card .badge img{ width:64px; height:64px; object-fit:contain; }
.tak-card h3{ font-size:1.15rem; color:var(--forest); }
.tak-card .age{ display:block; margin-top:4px; font-size:0.82rem; font-weight:700; color:var(--leaf); text-transform:uppercase; letter-spacing:.05em; }
.tak-card p{ margin-top:12px; font-size:0.88rem; color:rgba(14,31,24,0.6); }
.tak-card a.more{ display:inline-block; margin-top:14px; font-weight:700; font-size:0.85rem; color:var(--forest); }

@media (max-width:980px){
  .journey-line{ display:none; }
  .journey-track{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .journey-track{ grid-template-columns:1fr; }
}

/* ---------- Leiding / people grid ---------- */
.people-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.person-card{
  background:var(--white); border:1px solid var(--line); border-radius:24px; overflow:hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.person-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.person-photo{ aspect-ratio:4/4; overflow:hidden; background:var(--mist); }
.person-photo img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.person-card:hover .person-photo img{ transform:scale(1.06); }
.person-body{ padding:20px 22px 24px; }
.person-body h3{ font-size:1.15rem; color:var(--forest); }
.person-body .totem{ font-size:0.85rem; color:var(--leaf); font-weight:700; margin-top:4px; }
.person-meta{ margin-top:12px; font-size:0.85rem; color:rgba(14,31,24,0.62); display:flex; flex-direction:column; gap:4px; }
.person-meta b{ color:var(--ink); font-weight:700; }

.tak-header{ display:flex; align-items:center; gap:18px; margin: 70px 0 34px; }
.tak-header img{ width:56px; height:56px; object-fit:contain; }
.tak-header h3{ font-size:1.5rem; color:var(--forest); }

/* ---------- Info blocks (uniform, contact, calendar) ---------- */
.info-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:24px; }
.info-panel{ background:var(--white); border:1px solid var(--line); border-radius:24px; padding:36px; }
.info-panel h3{ font-size:1.3rem; color:var(--forest); margin-bottom:16px; }
.info-panel ul li{ position:relative; padding-left:22px; margin-bottom:10px; color:rgba(14,31,24,0.75); }
.info-panel ul li::before{ content:'✓'; position:absolute; left:0; color:var(--leaf); font-weight:700; }
.info-panel a.mail{ color:var(--forest); font-weight:700; }

/* ---------- FAQ accordion ---------- */
.faq-list{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.faq-item{ background:var(--white); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.faq-q{
  width:100%; text-align:left; padding:22px 26px; background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:20px; font-family:var(--font-body);
  font-size:1.02rem; font-weight:700; color:var(--forest);
}
.faq-q .plus{ flex:none; width:26px; height:26px; border-radius:50%; background:var(--mist); position:relative; transition: transform .35s var(--ease), background .3s ease; }
.faq-q .plus::before, .faq-q .plus::after{ content:''; position:absolute; background:var(--forest); left:50%; top:50%; transform:translate(-50%,-50%); }
.faq-q .plus::before{ width:10px; height:2px; }
.faq-q .plus::after{ width:2px; height:10px; }
.faq-item.open .plus{ transform:rotate(135deg); background:var(--forest); }
.faq-item.open .plus::before, .faq-item.open .plus::after{ background:var(--white); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .5s var(--ease); }
.faq-a-inner{ padding:0 26px 24px; color:rgba(14,31,24,0.68); font-size:0.98rem; line-height:1.7; }
.faq-a-inner a{ color:var(--forest); font-weight:700; }

/* ---------- Timeline (kalender) ---------- */
.timeline{ position:relative; max-width:760px; margin:0 auto; padding-left:36px; }
.timeline::before{ content:''; position:absolute; left:8px; top:6px; bottom:6px; width:2px; background:var(--line); }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item::before{
  content:''; position:absolute; left:-36px; top:4px; width:16px; height:16px; border-radius:50%;
  background:var(--white); border:3px solid var(--leaf);
}
.timeline-item .date{ font-size:0.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--leaf); }
.timeline-item h4{ font-size:1.2rem; margin-top:6px; color:var(--forest); }
.timeline-item p{ margin-top:6px; color:rgba(14,31,24,0.65); font-size:0.95rem; }

.tak-cal-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:20px; }
.tak-cal-card{ background:var(--white); border:1px solid var(--line); border-radius:20px; padding:26px; text-align:center; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tak-cal-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.tak-cal-card h4{ color:var(--forest); font-size:1.05rem; }
.tak-cal-card a{ display:inline-block; margin-top:14px; font-weight:700; color:var(--leaf); font-size:0.88rem; }

/* ---------- CTA banner ---------- */
.cta-banner{
  border-radius:32px; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  padding:64px 48px; text-align:center; color:var(--white); position:relative; overflow:hidden;
}
.cta-banner::after{
  content:''; position:absolute; inset:-40%; background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 60%);
  animation: drift 12s linear infinite;
}
@keyframes drift{ from{ transform: translate(0,0); } to{ transform: translate(6%,6%); } }
.cta-banner h2{ color:var(--white); font-size:clamp(1.8rem,3.6vw,2.6rem); position:relative; }
.cta-banner p{ margin-top:14px; opacity:.85; position:relative; max-width:520px; margin-left:auto; margin-right:auto; }
.cta-banner .btn-primary{ margin-top:30px; background:var(--white); color:var(--forest); position:relative; box-shadow:0 14px 30px -12px rgba(0,0,0,0.35); }
.cta-banner .btn-primary:hover{ background:var(--mist); }

/* ---------- Footer ---------- */
footer.site-footer{
  background:
    linear-gradient(rgba(27,67,50,0.93), rgba(27,67,50,0.93)),
    url('../img/texture-chalk.jpg');
  background-size: cover; background-blend-mode: multiply;
  color:rgba(255,255,255,0.82); padding:70px 0 30px; margin-top:0;
}
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
.footer-grid h6{ color:var(--white); font-family:var(--font-display); font-size:1.05rem; margin-bottom:16px; }
.footer-grid a{ display:block; padding:5px 0; font-size:0.92rem; opacity:.82; transition:opacity .2s ease, transform .2s ease; }
.footer-grid a:hover{ opacity:1; transform:translateX(3px); }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.2rem; color:var(--white); margin-bottom:14px; }
.footer-brand img{ height:32px; filter:brightness(0) invert(1); }
.footer-bottom{ margin-top:56px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.15); display:flex; justify-content:space-between; align-items:center; font-size:0.85rem; opacity:.75; flex-wrap:wrap; gap:12px; }
.social-icon{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; transition: background .3s ease, transform .3s ease; }
.social-icon:hover{ background:rgba(255,255,255,0.25); transform:translateY(-2px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ padding:160px 32px 90px; text-align:center; background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); }
.page-hero .eyebrow{ margin-bottom:20px; }
.page-hero h1{ font-size:clamp(2.4rem,5vw,4rem); color:var(--forest); }
.page-hero p{ margin-top:18px; max-width:560px; margin-left:auto; margin-right:auto; color:rgba(14,31,24,0.65); font-size:1.05rem; }

/* ---------- Utility ---------- */
.pill{ display:inline-block; padding:5px 12px; border-radius:999px; background:var(--mist); color:var(--forest); font-size:0.78rem; font-weight:700; }
.center{ text-align:center; }
.mt-lg{ margin-top:60px; }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .nav-desktop{ display:none; }
  .burger{ display:flex; }
  .card-grid{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; gap:36px; }
  .people-grid{ grid-template-columns:repeat(2,1fr); }
  .info-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .tak-cal-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .people-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .hero{ padding:150px 20px 90px; }
  section{ padding:64px 0; }
  .tak-cal-grid{ grid-template-columns:1fr; }
  .container{ padding:0 20px; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ justify-content:center; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .scout-patch{ width:76px; height:76px; padding:12px; }
}

.two-col-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; max-width:700px; margin:0 auto; }
@media (max-width:600px){ .two-col-grid{ grid-template-columns:1fr; } }
