/* ==========================================================================
   Team WAUW — huisstijl
   Gebaseerd op de bestaande site: gespikkelde lichte achtergrond,
   lichtblauw #4CB4FA, dieper blauw #0070C0, Lato (koppen) + DM Sans (tekst)
   ========================================================================== */

:root {
  --blue: #4cb4fa;          /* accentblauw: knoppen, koppen, banden */
  --blue-deep: #0070c0;     /* dieper blauw: cijferblokken, logo, cases-band */
  --blue-dark: #0a5c9c;     /* hover */
  --bg: #e9edec;            /* pagina-achtergrond onder de spikkels */
  --white: #fff;
  --text: #1d1e20;
  --muted: #55585c;
  --footer: #b8c0cc;
  --radius: 12px;
  --radius-lg: 22px;
  --max: 1200px;
  --font-head: "Lato", "Segoe UI", Tahoma, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg) url("../img/bg/background-spikkels.webp") repeat center / 900px auto;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

/* Koppen in de stijl van de site: lichtblauw, gecentreerd */
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { color: var(--blue); }
.section-head p { color: var(--muted); }
.section-blue .section-head h2, .section-blue .section-head p { color: #fff; }
.section-deep .section-head h2 { color: var(--blue); }
.section-deep .section-head h2 .accent { color: var(--text); }

:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--blue-deep); color: #fff; padding: .75rem 1.25rem; }
.skip-link:focus { left: 0; }

/* ---------- Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(150%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.logo img { width: 46px; height: auto; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-head); color: var(--blue-deep); font-weight: 400; font-size: .95rem;
  letter-spacing: .02em; text-decoration: none; padding: .3rem 0; position: relative;
}
.main-nav > ul > li > a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--text); }
.main-nav a:hover { color: var(--blue); text-decoration: none; }

.has-sub { position: relative; }
.sub-toggle { display: none; }
.sub-nav {
  position: absolute; top: 100%; left: -1rem; min-width: 240px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  padding: .5rem 0; margin: 0; list-style: none; display: block;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a { display: block; padding: .5rem 1.2rem; font-size: .92rem; }
.sub-nav a:hover { background: #f2f6f9; }

.nav-toggle { display: none; width: 44px; height: 38px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 0; }
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--blue-deep); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 62px 0 auto 0; background: #fff; max-height: 0; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.12); transition: max-height .32s ease; }
  .main-nav.open { max-height: calc(100vh - 62px); overflow-y: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem; }
  .main-nav > ul > li { border-bottom: 1px solid #eef2f4; }
  .main-nav a { display: block; padding: .9rem .25rem; font-size: 1rem; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .has-sub > a { flex: 1; }
  .sub-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
  .sub-toggle::before, .sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--blue-deep); transform: translate(-50%, -50%); transition: transform .25s; }
  .sub-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0); }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: 100%; max-height: 0; overflow: hidden; padding: 0; background: #f2f6f9; border-radius: var(--radius); transition: max-height .3s ease; }
  .sub-nav.open { max-height: 520px; padding: .35rem 0; margin-bottom: .6rem; }
}

/* ---------- Knoppen ---------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font-head); background: var(--blue); color: #fff !important;
  font-size: 1rem; font-weight: 400; padding: .85rem 2.4rem; border-radius: 999px; border: 2px solid var(--blue);
  text-decoration: none !important; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue) !important; border-color: #fff; }
.btn-white:hover { background: rgba(255, 255, 255, .85); border-color: transparent; color: var(--blue-dark) !important; }
.btn-deep { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-deep:hover { background: var(--blue); border-color: var(--blue); }

/* ---------- Secties ---------------------------------------------------- */
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-blue { background: var(--blue); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-deep { background: var(--blue-deep); color: #fff; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-white { background: #fff; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--blue); margin-bottom: .5rem; }
.section-blue .eyebrow, .section-deep .eyebrow { color: rgba(255, 255, 255, .9); }

/* ---------- Hero ------------------------------------------------------- */
.hero { position: relative; min-height: clamp(420px, 68vh, 660px); display: grid; place-items: center; text-align: center; padding: 6rem 0 8rem; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 30, 40, .34); }
.hero-content { max-width: 900px; color: #fff; }
.hero h1 { color: var(--blue); text-shadow: 0 3px 26px rgba(0, 0, 0, .45); }
.hero p.lead { font-size: clamp(1rem, 1.8vw, 1.25rem); color: rgba(255, 255, 255, .94); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Troefkaarten die over de hero heen schuiven */
.usp-row { position: relative; margin-top: -5.5rem; z-index: 2; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.usp-card { background: rgba(255, 255, 255, .88); backdrop-filter: blur(4px); padding: 1.6rem 1.4rem; border-radius: var(--radius); text-align: center; }
.usp-card h3 { color: var(--blue-deep); font-size: 1.1rem; margin-bottom: .35rem; }
.usp-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Pagina-kop van de binnenpagina's */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.page-hero-deep { background: var(--blue-deep); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero.page-hero-deep h1 { color: #fff; }
.page-hero.page-hero-deep h1 .accent { color: var(--blue); }
.page-hero.page-hero-deep p { color: rgba(255, 255, 255, .9); }
.page-hero.page-hero-deep .page-icon { filter: brightness(0) invert(1); }
.page-hero h1 { color: var(--blue); }
.page-hero h1 .accent { color: var(--text); }
.page-hero p { color: var(--muted); max-width: 720px; margin-inline: auto; }
.page-hero img.page-icon { width: 92px; height: 92px; object-fit: contain; margin: 0 auto 1rem; }
.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }

/* ---------- Split (tekst + beeld) -------------------------------------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: 4px; }
.foto-liggend { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-text h2 { color: var(--text); }
.split-text h2 .accent { color: var(--blue); }

/* ---------- Cijferblokken ---------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.stat { background: var(--blue-deep); color: #fff; padding: 1.1rem 2.2rem; text-align: center; min-width: 180px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.1; }
.stat span { font-size: .9rem; opacity: .9; }
.stats-overlap { margin-top: -3.5rem; position: relative; z-index: 2; }

/* ---------- Crewfuncties (icoon + label, zonder kader) ------------------ */
.functions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.5rem 1.5rem; }
@media (min-width: 900px) { .functions { grid-template-columns: repeat(4, 1fr); } }
.function-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; text-decoration: none !important; transition: transform .25s; }
.function-card img { width: 88px; height: 88px; object-fit: contain; }
.function-card span { font-family: var(--font-head); font-size: 1.15rem; color: var(--blue); font-weight: 600; }
.function-card:hover { transform: translateY(-5px); }
.function-card:hover span { color: var(--blue-deep); }
.section-blue .function-card span { color: #fff; }

/* ---------- Waarden ---------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem 1.25rem; text-align: center; }
.value img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 1rem; }
.value h3 { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin-bottom: .4rem; }
.value p { color: var(--text); font-size: .95rem; margin: 0; }

/* ---------- Galerij ---------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.gallery-wide img { aspect-ratio: 4 / 3; }

/* ---------- Klantlogo's (wit, dus op blauwe band) ----------------------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2rem 1.5rem; align-items: center; justify-items: center; }
.clients img { width: 100%; max-width: 170px; max-height: 90px; object-fit: contain; transition: transform .25s; }
.clients img:hover { transform: scale(1.06); }

/* ---------- Team ------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2.5rem 1.5rem; }
.team-grid-lead { max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 700px) { .team-grid-lead { grid-template-columns: repeat(3, 1fr); } }
.team-member { text-align: center; }
.team-member img { width: 100%; max-width: 200px; margin-inline: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #dfe6e6; }
.team-member h3 { font-family: var(--font-head); margin: 1rem 0 .1rem; font-size: 1.35rem; font-weight: 400; color: var(--text); }
.team-member p { color: var(--blue); font-size: .95rem; margin: 0; }

/* ---------- Reviews: slider ------------------------------------------- */
.review-slider { position: relative; padding: 0 clamp(0px, 4vw, 56px); }
.slider-venster { overflow: hidden; }
.slider-spoor {
  display: flex; list-style: none; margin: 0; padding: 0;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.slider-slide { flex: 0 0 100%; padding: .5rem; }
.slider-slide img { width: 100%; height: auto; border-radius: 18px; }
@media (min-width: 680px)  { .slider-slide { flex-basis: 50%; } }
@media (min-width: 1024px) { .slider-slide { flex-basis: 33.3333%; } }

.slider-knop {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--blue-deep); color: #fff; font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center; padding: 0 0 .18em;
  box-shadow: 0 6px 18px rgba(15, 45, 82, .25); transition: background .2s, transform .2s;
}
.slider-knop:hover { background: var(--blue); }
.slider-vorige { left: 0; }
.slider-volgende { right: 0; }
@media (max-width: 560px) { .slider-knop { width: 38px; height: 38px; font-size: 1.5rem; } }

.slider-stippen { display: flex; justify-content: center; gap: .5rem; margin-top: 1.75rem; }
.slider-stippen button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 112, 192, .28); transition: background .2s, transform .2s;
}
.slider-stippen button.actief { background: var(--blue-deep); transform: scale(1.35); }

/* ---------- Contact ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.form-panel { background: var(--blue); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.5rem); }
.form-panel h2 { color: #fff; text-align: center; }
.form-field { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
label { display: block; font-size: .88rem; margin-bottom: .3rem; color: #fff; }
input, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .8rem 1rem; border: 0; border-radius: 8px; background: #eef4fb; color: var(--text); }
input:focus, textarea:focus { outline: 3px solid rgba(255, 255, 255, .8); }
textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-actions { text-align: center; margin-top: 1.5rem; }
.form-note { font-size: .8rem; color: rgba(255, 255, 255, .9); text-align: center; margin-top: 1rem; }
.alert { padding: .9rem 1.15rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .95rem; }
.alert-ok { background: #e4f5ea; color: #1a6b3c; }
.alert-error { background: #fdeaea; color: #98211f; }

/* Contactgegevens in drie blokken boven het formulier */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem .75rem; text-align: center; max-width: 900px; margin-inline: auto; }
.info-blok h2 { font-family: var(--font-head); color: var(--blue); letter-spacing: .06em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .35rem; }
.info-blok p { font-size: 1.1rem; margin: 0; line-height: 1.6; }
.info-blok a { color: var(--text); }
.info-blok a:hover { color: var(--blue-deep); }
.contact-info-blokken { padding-top: 0; padding-bottom: clamp(2rem, 4vw, 3rem); }

.form-panel-smal { max-width: 780px; margin-inline: auto; }

/* Foto boven de contactgegevens, even breed als het formulier */
.contact-foto { padding: 0 0 clamp(2rem, 4vw, 3rem); }
.contact-foto img { width: 100%; max-width: 780px; height: auto; margin-inline: auto; border-radius: 10px; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer { background: var(--footer); padding: 1.4rem 0; color: #3b4450; font-size: .85rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.footer-inner p { margin: 0; }
.socials { list-style: none; display: flex; gap: .85rem; justify-content: center; margin: 0; padding: 0; }
.socials img { width: 26px; height: 26px; }
.footer-right { justify-self: end; display: flex; align-items: center; gap: .75rem; }
.footer-right .label-logo { height: 70px; width: auto; max-width: 120px; border-radius: 8px; }
.site-footer a { color: #3b4450; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-right { justify-self: center; }
}

/* ---------- Animatie --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
