/* ==========================================================================
   Tornadospurters — stylesheet
   Kleurenschema: rood, wit en zwart (fietsclub-uitstraling).
   ========================================================================== */

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

:root{
  --white: #FFFFFF;
  --black: #000000;
  --text: #000000;
  --text-soft: rgba(0,0,0,0.68);
  --red: #A12D18;
  --red-dark: #6B1E10;
  --line: rgba(0,0,0,0.16);

  /* Aptos is Microsoft's default Office/Windows 11 font. It isn't a
     licensed webfont, so it can't be distributed via a CDN — instead we
     reference it by name so it renders as Aptos on any device that
     already has it installed (most Windows 11 / Microsoft 365 machines),
     and falls back to Segoe UI, then Inter (a similarly-shaped open font
     loaded below), then the system default everywhere else. */
  --font: 'Aptos', 'Aptos Fallback', 'Segoe UI Variable', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;

  --max: 1120px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--white);
  color:var(--text);
  font-family:var(--font);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{
  font-family:var(--font);
  font-weight:700;
  line-height:1.08;
  margin:0 0 .4em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--text-soft); }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }

:focus-visible{ outline:3px solid var(--red); outline-offset:3px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font);
  font-weight:700;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--red);
  display:inline-block;
  margin-bottom:.6em;
}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--white);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font); font-weight:700; font-size:1.28rem;
  text-decoration:none; color:var(--text);
}
.brand .mark{
  width:38px;height:38px;border-radius:50%;
  background:var(--red);
  display:flex;align-items:center;justify-content:center;
  color:var(--white); font-family:var(--font); font-weight:700; font-size:1.05rem;
  flex:none;
}
.brand img.mark{
  width:auto; height:48px; border-radius:0; background:none;
}
.brand small{
  display:block; font-family:var(--font); font-weight:600; font-size:.62rem;
  letter-spacing:.1em; text-transform:uppercase; color:var(--text-soft);
}
nav.main-nav{ display:flex; align-items:center; gap:4px; }
nav.main-nav a{
  font-family:var(--font); font-weight:600; font-size:.95rem;
  text-decoration:none; color:var(--text-soft);
  padding:10px 16px; border-radius:999px;
  transition:color .15s ease, background .15s ease;
}
nav.main-nav a:hover{ color:var(--text); background:rgba(0,0,0,.06); }
nav.main-nav a.active{ color:var(--white); background:var(--red); }

.nav-toggle{
  display:none; background:none; border:2px solid var(--text); border-radius:8px;
  width:44px; height:40px; cursor:pointer; padding:0;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ width:20px; height:2px; background:var(--text); display:block; }

@media (max-width: 760px){
  nav.main-nav{
    position:absolute; top:76px; left:0; right:0;
    background:var(--white); border-bottom:1px solid var(--line);
    flex-direction:column; align-items:stretch; padding:8px 24px 18px;
    display:none;
  }
  nav.main-nav.open{ display:flex; }
  nav.main-nav a{ padding:12px 10px; border-radius:8px; }
  .nav-toggle{ display:flex; }
}

/* ---------- hero (wide, short) ---------- */
.hero{
  position:relative;
  width:100%;
  aspect-ratio: 3 / 1;
  min-height:240px;
  max-height:460px;
  overflow:hidden;
  background:var(--red-dark);
}
.hero img{
  width:100%; height:100%; object-fit:cover;
  object-position:center 30%;
}
@media (max-width:640px){
  .hero{ aspect-ratio: 4 / 3; max-height:420px; }
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.05) 75%);
}
.hero-copy{
  position:absolute; left:0; right:0; bottom:0;
  padding:28px 24px 30px;
  color:var(--white);
}
.hero-copy .wrap{ padding:0; }
.hero-copy .eyebrow{ color:var(--white); }
.hero-copy h1{ color:var(--white); font-weight:800; font-size:clamp(1.6rem, 4.4vw, 2.9rem); margin-bottom:.2em; }
.hero-copy p{ color:rgba(255,255,255,.86); max-width:52ch; margin:0; font-size:1.02rem; }

.page-hero{
  padding:56px 0 32px;
  border-bottom:1px solid var(--line);
}
.page-hero h1{ font-weight:800; font-size:clamp(2rem, 5vw, 3rem); }
.page-hero p{ max-width:62ch; font-size:1.08rem; }

/* ---------- sections ---------- */
section{ padding:64px 0; }
section.tight{ padding:40px 0; }
.section-head{ margin-bottom:36px; max-width:70ch; }
.section-head h2{ font-size:clamp(1.6rem, 3.4vw, 2.2rem); }

/* ---------- hoofdbericht / featured post ---------- */
.featured-post{
  display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center;
  border:1px solid var(--line); border-radius:16px; padding:28px;
  margin-bottom:48px;
}
@media (max-width:760px){ .featured-post{ grid-template-columns:1fr; } }
.featured-post .thumb{ border-radius:12px; overflow:hidden; border:1px solid var(--line); }
.featured-post .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.featured-post .badge{
  display:inline-block; background:var(--red); color:var(--white);
  font-family:var(--font); font-weight:700; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  padding:4px 12px; border-radius:999px; margin-bottom:.8em;
}
.featured-post h2{ font-size:clamp(1.5rem, 3vw, 2rem); }
.featured-post p{ font-size:1.02rem; }

/* ---------- blog / news cards ---------- */
.card-grid{
  display:grid; gap:28px;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
}
.post-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  display:flex; flex-direction:column;
}
.post-card .thumb{ aspect-ratio:16/10; overflow:hidden; background:var(--red-dark); }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.post-card .body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.post-card h3{ font-size:1.24rem; margin-bottom:.35em; }
.post-card p{ font-size:.96rem; flex:1; }

/* ticket-stub button — dashed edge, like a raffle / tombola ticket */
.ticket-btn{
  align-self:flex-start;
  margin-top:14px;
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font); font-size:.78rem; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase;
  text-decoration:none; color:var(--text);
  padding:10px 16px;
  border:1.5px dashed var(--red);
  border-radius:8px;
  background:rgba(161,45,24,.07);
  transition:background .15s ease, transform .15s ease;
}
.ticket-btn:hover{ background:rgba(161,45,24,.15); transform:translateY(-1px); }
.ticket-btn svg{ width:13px; height:13px; flex:none; }

/* ---------- sponsors ---------- */
.sponsor-grid{
  display:grid; gap:22px;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}
.sponsor-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:28px 20px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:14px;
}
.sponsor-logo{
  width:100%; height:96px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--white);
  border:1px solid var(--line);
  font-family:var(--font); font-weight:700; font-size:1.1rem;
  color:var(--red);
}
.sponsor-card .name{ font-weight:600; }
.sponsor-tier{
  font-family:var(--font); font-weight:700; font-size:.68rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--red);
}
.note-box{
  margin-top:8px;
  border:1px dashed var(--line);
  border-radius:12px;
  padding:16px 18px;
  font-family:var(--font); font-size:.82rem; color:var(--text-soft);
  background:rgba(161,45,24,.07);
}

/* ---------- fotoalbum ---------- */
.album-group{ margin-bottom:52px; }
.album-group:last-child{ margin-bottom:0; }
.album-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:20px;
  flex-wrap:wrap;
}
.album-head h2{ font-size:1.5rem; margin:0; }
.album-head .eyebrow{ margin:0; }
.photo-grid{
  display:grid; gap:12px;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
}
.photo-grid button{
  padding:0; border:none; background:none; cursor:pointer;
  border-radius:10px; overflow:hidden; aspect-ratio:4/3; line-height:0;
}
.photo-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.photo-grid button:hover img{ transform:scale(1.06); }

.lightbox{
  position:fixed; inset:0; z-index:100;
  background:rgba(0,0,0,.9);
  display:none; align-items:center; justify-content:center; padding:32px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:min(92vw, 1000px); max-height:86vh; border-radius:8px; }
.lightbox-close{
  position:absolute; top:20px; right:24px;
  width:44px; height:44px; border-radius:50%;
  background:var(--white); border:none; cursor:pointer;
  font-family:var(--font); font-size:1.3rem; color:var(--text);
}

/* ---------- contact ---------- */
.board-grid{
  display:grid; gap:22px;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
}
.board-card{
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:24px;
}
.board-card .role{
  font-family:var(--font); font-weight:700; font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--red); margin-bottom:.5em; display:block;
}
.board-card h3{ font-size:1.15rem; margin-bottom:.5em; }
.board-card a{ color:var(--red); text-decoration:none; font-weight:600; }
.board-card a:hover{ text-decoration:underline; }

.contact-panel{
  display:grid; gap:32px;
  grid-template-columns:1.1fr .9fr;
}
@media (max-width:820px){ .contact-panel{ grid-template-columns:1fr; } }
.info-list{ list-style:none; margin:0; padding:0; }
.info-list li{
  display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line);
}
.info-list li:last-child{ border-bottom:none; }
.info-list .label{
  font-family:var(--font); font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-soft); min-width:96px; padding-top:2px;
}
.map-frame{
  border-radius:14px; overflow:hidden; border:1px solid var(--line); min-height:280px;
}
.map-frame iframe{ width:100%; height:100%; min-height:280px; border:0; display:block; }

/* ---------- individual article / post page ---------- */
.article{ max-width:760px; }
.article-image{
  border-radius:14px; overflow:hidden; margin-bottom:28px; border:1px solid var(--line);
}
.article-image img{ width:100%; height:auto; }
.article-body{ font-size:1.05rem; }
.article-body h2{ font-size:1.4rem; margin-top:1.2em; }
.article-body ul{ padding-left:1.2em; }
.article-body li{ margin-bottom:.4em; color:var(--text-soft); }
.article-body p{ color:var(--text-soft); }
footer{
  background:var(--red-dark); color:rgba(255,255,255,.85);
  padding:44px 0 30px; margin-top:40px;
}
footer .wrap{ display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
footer h4{ color:var(--white); font-size:1.1rem; margin-bottom:.5em; }
footer a{ color:rgba(255,255,255,.85); text-decoration:none; }
footer a:hover{ text-decoration:underline; }
footer .fine{
  font-family:var(--font); font-weight:500; font-size:.74rem; color:rgba(255,255,255,.55);
  margin-top:26px; width:100%;
}

.placeholder-flag{
  display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px;
  background:var(--red); color:var(--white); font-family:var(--font);
  font-size:.62rem; letter-spacing:.06em; text-transform:uppercase; font-weight:700;
  vertical-align:middle;
}
