/* Leo Club Meppel — Lions/Leo-blauw en goud, groot en vol */
:root {
  /* Kleuren van de huidige leoclubmeppel.nl: middernachtblauw, leisteen, zilver en lichtgrijs */
  --blue: #2c3e50;
  --blue-deep: #22313f;
  --gold: #bdc3c7;
  --gold-soft: #d5dadd;
  --navy: #1c2833;
  --white: #ffffff;
  --sand: #f4f3f5;
  --text: #2c3e50;
  --text-soft: #5d6d7e;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(20px, 5vw, 80px);
  --g: clamp(16px, 2vw, 32px);
  --section: clamp(80px, 10vw, 160px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid #7f8c8d; outline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy); }

.skip { position: absolute; left: var(--m); top: -100px; z-index: 60; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-big { min-height: 58px; padding: 16px 32px; font-size: 1.125rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Titels ---------- */
.title {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem); font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em; text-transform: uppercase; color: var(--blue);
}
.title-light { color: var(--white); }
.hl { background: var(--gold); color: var(--navy); padding: 0 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.4; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--white); background: var(--navy); overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  z-index: -2; animation: zoom 20s var(--ease) both;
}
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 30, 40, 0.92) 0%, rgba(20, 30, 40, 0.55) 45%, rgba(20, 30, 40, 0.15) 70%, rgba(20, 30, 40, 0.55) 100%); /* taste-skill-ignore: scrim over foto */
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--m); position: relative; z-index: 5; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.0625rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; }
.wordmark img { width: 48px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; padding: 8px 0; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.hero-content { margin-top: auto; padding: 0 var(--m) clamp(48px, 8vh, 96px); }
.hero h1 {
  font-size: clamp(3.5rem, 0.6rem + 12.4vw, 13.5rem); font-weight: 900; line-height: 0.85;
  letter-spacing: -0.045em; text-transform: uppercase; margin-left: -0.04em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:last-child { color: var(--gold); }
.hero-sub { max-width: 34ch; margin-top: 28px; font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.625rem); line-height: 1.35; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero h1, .hero-sub, .hero-actions { animation: rise 0.9s var(--ease) both; }
.hero-sub { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Over ons ---------- */
.over {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: var(--section) var(--m);
}
.over-text { display: grid; gap: 24px; }
.over-text p:not(.lead) { color: var(--text-soft); max-width: 60ch; }
.over-photo { position: relative; }
.over-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.over-photo::before { content: ""; position: absolute; inset: 24px -24px auto 24px; aspect-ratio: 4 / 5; background: var(--gold); border-radius: var(--radius); z-index: -1; }
.over-photo { isolation: isolate; }
.over-photo figcaption { margin-top: 40px; font-size: 0.9375rem; font-weight: 600; color: var(--text-soft); }

/* ---------- LEO ---------- */
.leo { background: var(--blue); color: var(--white); padding: var(--section) var(--m); }
.leo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin-top: clamp(40px, 5vw, 72px); }
.leo-item { background: #34495e; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); transition: transform 0.3s var(--ease), background-color 0.3s; }
.leo-item:hover { transform: translateY(-6px); background: #3d566e; }
.leo-letter { font-size: clamp(7rem, 4rem + 9vw, 13rem); font-weight: 900; line-height: 0.8; color: var(--gold); letter-spacing: -0.05em; }
.leo-item h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin: 20px 0 12px; }
.leo-item p:not(.leo-letter) { color: #e1e6ea; }

/* ---------- Wat we doen ---------- */
.doen { padding: var(--section) 0 0; }
.doen-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: end; padding: 0 var(--m); margin-bottom: clamp(40px, 5vw, 64px); }
.doen-head .lead { color: var(--text-soft); max-width: 32ch; }
.tiles { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(300px, 38vh)); gap: 6px; }
.tile { position: relative; overflow: hidden; color: var(--white); background: var(--navy); }
.tile-big { grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 30, 40, 0.88), rgba(20, 30, 40, 0.1) 60%); } /* taste-skill-ignore: scrim over foto */
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 36px); }
.tile h3 { font-size: clamp(1.25rem, 0.95rem + 0.8vw, 1.875rem); overflow-wrap: anywhere; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; }
.tile-big h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.75rem); }
.tile p { margin-top: 8px; max-width: 40ch; font-weight: 500; }
.tile-gold { background: var(--gold); }

/* ---------- Cijfers ---------- */
.cijfers { padding: var(--section) var(--m); background: var(--sand); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); margin-top: clamp(40px, 5vw, 64px); }
.figures div { border-top: 6px solid var(--gold); padding-top: 20px; }
.figures dt { font-size: clamp(2.75rem, 1.6rem + 4vw, 5.5rem); font-weight: 900; color: var(--blue); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.figures dd { margin-top: 10px; font-weight: 600; color: var(--text-soft); }

.leeftijd {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px var(--g); align-items: end;
  margin-top: clamp(48px, 6vw, 88px); padding: clamp(28px, 3.5vw, 48px);
  background: var(--gold); color: var(--navy); border-radius: var(--radius);
}
.leeftijd h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -0.02em; }
.leeftijd-intro p { margin-top: 10px; font-weight: 500; }
.leeftijd label { display: block; font-weight: 700; margin-bottom: 8px; }
.leeftijd-row { display: flex; gap: 10px; }
.leeftijd input {
  flex: 1; min-width: 0; min-height: 56px; padding: 10px 18px; border: 2px solid var(--navy); border-radius: 999px;
  font: 600 1.25rem var(--font); color: var(--navy); background: var(--white);
}
.leeftijd .btn { min-height: 56px; }
.leeftijd-uitkomst { grid-column: 1 / -1; font-size: 1.125rem; font-weight: 500; min-height: 3.2em; }
.leeftijd-uitkomst strong { font-weight: 900; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); text-transform: uppercase; letter-spacing: -0.01em; display: block; line-height: 1.1; margin-bottom: 4px; }

/* ---------- Lid worden ---------- */
.lid { background: var(--navy); color: var(--white); padding: var(--section) var(--m); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px); counter-reset: step; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-weight: 900; text-transform: uppercase; color: var(--gold); letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: #d5dadd; max-width: 38ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--g) clamp(32px, 6vw, 96px); align-items: end;
  background: var(--gold); color: var(--navy); padding: var(--section) var(--m);
}
.contact .title { color: var(--navy); }
.contact-main { display: grid; gap: 24px; }
.contact-mail {
  font-size: clamp(1.5rem, 0.8rem + 3vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05;
  text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.12em; overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--blue); }
.contact-side h3 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.contact-side ul + h3 { margin-top: 28px; }
.contact-side li { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.contact-side p { font-size: 1.125rem; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: var(--white); padding: clamp(56px, 6vw, 88px) var(--m) 32px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: var(--g); align-items: start; }
.footer .wordmark { font-size: 1.25rem; }
.footer .wordmark img { width: 56px; }
.footer-links { columns: 2; column-gap: var(--g); }
.footer-links li, .footer-data li { margin-bottom: 8px; font-weight: 500; }
.footer-links a, .footer-data a { text-decoration: none; }
.footer-links a:hover, .footer-data a:hover { text-decoration: underline; color: var(--gold); }
.footer-data { color: #bdc3c7; }
.footer-data a { color: var(--white); }
.credits { margin-top: 56px; font-size: 0.75rem; line-height: 1.6; color: #a9b4bd; max-width: 120ch; }
.credits a { color: #e1e6ea; text-decoration-thickness: 1px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; font-size: 0.875rem; color: #a9b4bd; }
.footer-legal a { color: var(--white); }

/* ---------- Binnenkomst ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 0.3s; }
  .hero-bg, .hero h1, .hero-sub, .hero-actions { animation: none; }
  .tile img, .leo-item, .btn { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .leo-grid { grid-template-columns: 1fr; }
  .leo-item { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: center; }
  .leo-letter { grid-row: span 2; font-size: 7rem; }
  .leo-item h3 { margin-top: 0; }
  .figures { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .leeftijd { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .wordmark { grid-column: 1 / -1; }
}

/* ---------- Telefoon ---------- */
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.5); color: var(--white);
    font: 700 1rem var(--font); cursor: pointer;
  }
  .nav-links {
    display: none; position: absolute; top: 84px; left: var(--m); right: var(--m); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 10px 20px 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: zwevend menu */
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; font-size: 1.125rem; }
  .nav-cta { margin-top: 10px; }
  .nav-cta .btn { width: 100%; }
  .hero-bg { object-position: 58% 50%; }
  .hero h1 { font-size: 17.5vw; }
  .hero-actions .btn { flex: 1 1 auto; }

  .over { grid-template-columns: 1fr; }
  .over-photo { width: 82%; }
  .doen-head { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .tile { height: 320px; }
  .tile-big { grid-row: auto; height: 400px; }
  .tile:nth-child(4) { grid-column: auto; }
  .figures { gap: 32px 20px; }
  .leeftijd-row { flex-direction: column; }
  .leo-item { grid-template-columns: 1fr; }
  .leo-letter { font-size: 6rem; grid-row: auto; }
  .leo-item h3 { margin-top: 14px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; }
}
