/* ==========================================================================
   Suurland Outdoor – stylesheet
   Eén bestand voor de hele site. Opbouw:
   1. Basis   2. Header/footer   3. Secties, rijen, kolommen
   4. Modules (.m = blok binnen een kolom)   5. Slider   6. Formulier
   7. Responsive (tablet <= 980px, mobiel <= 767px)

   Veel blokken krijgen hun eigen kleuren/maten via inline CSS-variabelen,
   bijv. style="--h-color:#e1251c;--h-size:42px". Zie README.md.
   ========================================================================== */

:root {
  --red: #e1251c;
  --dark: #333;
  --text: #666;
  --font: 'Montserrat', Helvetica, Arial, sans-serif;
  --header-h: 80px;
  --gap: 5.5%;
}

/* 1. Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 22px; } h4 { font-size: 18px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid #ddd; }

/* 2. Header & footer -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: 80%; max-width: 1080px; height: var(--header-h); margin: 0 auto;
}
.logo { flex-shrink: 0; }
.logo img { display: block; height: 43px; width: auto; transition: height .3s; }
.header-inner { transition: height .3s; }
/* kleinere header na scrollen (zoals de oude site) */
.site-header.scrolled .header-inner { height: 54px; }
.site-header.scrolled .logo img { height: 30px; }
.menu ul { display: flex; flex-wrap: nowrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 0; color: rgba(0, 0, 0, .6); font-weight: 600; font-size: 14px; white-space: nowrap; }
.menu a:hover { color: rgba(0, 0, 0, .9); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--red); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--red); border-radius: 2px; }

.site-footer { background: #222; color: #969696; }
.footer-inner { width: 80%; max-width: 1080px; margin: 0 auto; padding: 15px 0 5px; font-size: 14px; min-height: 50px; }

/* 3. Secties, rijen, kolommen ------------------------------------------------
   <section class="section">            volle breedte, achtergrond
     <div class="row" style="--cols:…">  gecentreerd, max 1080px, grid
       <div class="col">…modules…</div>                                     */
.section {
  position: relative;
  padding: 54px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section.full { padding: 0; }
/* achtergrond blijft staan tijdens scrollen (vervangt Divi-parallax) */
@media (min-width: 981px) { .section.parallax { background-attachment: fixed; background-size: cover; } }
.row {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: var(--cols, 1fr);
  column-gap: var(--gap);
  align-items: start;
  width: 80%; max-width: 1080px;
  margin: 0 auto;
  padding: 27px 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.row-inner { width: 100%; padding: 0; }
.col { min-width: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.col > * + * { margin-top: 24px; }

/* vormen boven/onder een sectie (golf, schuine rand) */
.shape { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; background-repeat: repeat-x; }
.shape-top { top: 0; }
.shape-bottom { bottom: 0; }

/* 4. Modules --------------------------------------------------------------- */
.m { position: relative; color: var(--t-color, inherit); background-size: cover; background-position: center; background-repeat: no-repeat; }
.m :is(h1, h2, h3, h4, h5, h6) {
  color: var(--h-color, var(--dark));
  font-size: min(var(--h-size, 26px), 9vw);
  font-weight: var(--h-weight, 500);
  text-transform: var(--h-transform, none);
  line-height: max(var(--h-lh, 1.2), 1.1);
}
.m :is(p, li, td) { font-size: var(--t-size, 14px); line-height: var(--t-lh, 1.7); }
.m :is(p, li) a { color: var(--a-color, var(--red)); font-weight: 600; text-decoration: underline; }
.m table { width: 100%; border-collapse: collapse; }
.m td, .m th { padding: 6px 10px; border-bottom: 1px solid #eee; text-align: left; }

.image img { display: inline-block; }
.image { line-height: 0; }
.image.fill img { width: 100%; }

.video { aspect-ratio: 16 / 9; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }

.code iframe { width: 100%; border: 0; }

.blurb-img, .blurb-icon { margin-bottom: 20px; text-align: center; }
.blurb-icon { line-height: 1; }
.blurb-icon::before { content: attr(data-icon); font-family: 'ETmodules'; speak: none; }

.counter-num { color: var(--n-color, var(--red)); font-size: var(--n-size, 72px); font-weight: 700; line-height: 1.1; }

.testimonial { margin: 0; }
.testimonial footer { margin-top: 1em; }

.divider { margin: 0; }

/* knoppen */
.btn {
  display: inline-block;
  padding: .3em 1em;
  font-family: inherit;
  font-size: var(--btn-size, 20px);
  font-weight: 600;
  line-height: 1.7;
  text-transform: var(--btn-transform, none);
  color: var(--btn-color, #fff);
  background: var(--btn-bg, var(--red));
  border: var(--btn-border, 0);
  border-radius: var(--btn-radius, 3px);
  cursor: pointer;
  transition: filter .2s;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

@font-face {
  font-family: 'ETmodules';
  src: url('/assets/fonts/divi-icons.woff') format('woff');
  font-display: block;
}

/* 5. Slider ---------------------------------------------------------------- */
.slider { position: relative; overflow: hidden; }
.slide {
  position: relative;
  display: none;
  padding: 120px 8%;
  text-align: center;
  background-size: cover; background-position: center;
}
.slide.active, .slider:not(.ready) .slide:first-child { display: block; }
.slide-link { position: absolute; inset: 0; z-index: 1; }
.slide-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; pointer-events: none; }
.slide-inner a { pointer-events: auto; }
.slide .slide-title { color: var(--h-color, var(--dark)); font-size: min(var(--h-size, 46px), 8vw); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.slide .slide-text > :not(.slide-title, .btn), .slide .slide-text > div * { color: var(--t-color, inherit); font-size: 16px; font-weight: 500; line-height: 1.4; }
.slider .slide:not(.dark) .slide-title { text-transform: none; font-size: min(var(--h-size, 23px), 6vw); }
.slide .btn { margin-top: 1em; font-size: 16px; }
.slide-img { margin-bottom: 1em; }
.slider-dots { position: absolute; z-index: 3; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(128, 128, 128, .5); cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--red); }
.slider-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 36px; line-height: 1; color: rgba(128, 128, 128, .8);
}
.slider-arrow.prev { left: 10px; } .slider-arrow.next { right: 10px; }
.slide:not(.dark) { padding-top: 60px; padding-bottom: 60px; }

/* 6. Aanmeldformulier (brochure aanvragen) ------------------------------------ */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 40px; }
.signup-form { display: grid; gap: 10px; }
.signup-form input {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 3px;
  font: inherit; font-size: 14px; background: #fff; color: #333;
}
.signup-form .btn { justify-self: end; font-size: 18px; }
.form-msg:empty { display: none; }
.form-msg { margin: 0; font-weight: 600; }

/* 7. Responsive ------------------------------------------------------------ */
@media (min-width: 981px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 980px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

@media (max-width: 980px) {
  .row { grid-template-columns: 1fr; row-gap: 30px; width: 80%; }
  .row[style*="width:100%"] { width: 100%; }
  .section { padding-top: 50px; padding-bottom: 50px; }
  .section.full { padding: 0; }
  .menu-toggle { display: block; }
  .menu {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-top: 3px solid var(--red); box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; width: 80%; margin: 0 auto; padding: 10px 0 20px; }
  .menu a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }
  .signup { grid-template-columns: 1fr; padding: 30px; }
}

@media (max-width: 767px) {
  .row, .header-inner, .footer-inner { width: 90%; }
  .slide { padding: 70px 6%; }
  .m[style*="padding:"] { padding-left: min(30px, 6vw) !important; padding-right: min(30px, 6vw) !important; }
  .row[style*="padding:"] { padding-top: 20px !important; }
}
