/* ─────────────────────────────────────────────
   Takly — Gedeelde basisstijlen (mobile-first)
   Gebruikt door alle pagina's

   Breakpoints:
     sm   600px   cookie-banner naast elkaar
     md   768px   2-kolom grids, nav-links zichtbaar
     lg  1024px   volledige desktop layouts
     xl  1280px   bredere containers
   ───────────────────────────────────────────── */

:root {
  --navy:   #1B2E4B;
  --blue:   #2E5DA6;
  --orange: #E8650A;
  --gray:   #8AADD4;
  --light:  #F4F7FB;
  --white:  #FFFFFF;
  --text:   #2C3E50;
  --muted:  #6B7E96;
  --border: #DDE4EE;

  /* Layout */
  --container-max:   1280px;
  --container-blog:  900px;
  --container-legal: 760px;
  --content-pad:     1.25rem;

  /* Fluid typography */
  --fs-hero:     clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem);
  --fs-section:  clamp(2rem, 1.4rem + 2.4vw, 2.6rem);
  --fs-contact:  clamp(2rem, 1.2rem + 3.2vw, 2.8rem);
  --fs-legal-h1: clamp(2rem, 1.4rem + 2.4vw, 2.6rem);
  --fs-body:     clamp(0.95rem, 0.9rem + 0.2vw, 1.1rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(27,46,75,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--content-pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--orange); }

/* Nav-links: mobiel = verborgen dropdown */
.nav-links {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(27,46,75,0.99);
  flex-direction: column;
  align-items: stretch;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 0.25rem;
  z-index: 99;
}
.nav-links.open { display: flex; }

nav.site-nav a.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-left: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
}
nav.site-nav a.nav-link:hover { color: var(--white); }

/* CTA-knop binnen de nav (mobiel) */
.nav-cta { margin-left: 0; }
.nav-links .btn,
.nav-links .nav-cta {
  margin-left: 0;
  margin-top: 0.75rem;
  text-align: center;
  padding: 0.85rem;
  font-size: 1rem;
}

/* ── HAMBURGER ───────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px;
  background: none;
  border: none;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}
.btn-primary:hover {
  background: #d4580a;
  border-color: #d4580a;
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── FORM BASIS ──────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-input.error,
.form-textarea.error { border-color: #e85555; }

.form-textarea { resize: vertical; min-height: 100px; }

/* Mobiel: 1 kolom */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Honeypot verbergen */
.hp-field { display: none !important; }

.form-submit-wrap { margin-top: 0.5rem; }

#submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Feedback berichten */
.form-feedback {
  display: none;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: #0f1929;
  padding: 1.5rem var(--content-pad);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  align-items: center;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.5);
}
.footer-logo span { color: var(--orange); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.25); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ── COOKIE BANNER ───────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  padding: 1.1rem 1.4rem;
  z-index: 200;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.35s ease-out, opacity 0.25s ease-out;
}
.cookie-banner.hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

/* Mobiel: gestapeld */
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}
.cookie-banner-text { min-width: 0; }
.cookie-banner-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
  letter-spacing: 0.3px;
}
.cookie-banner-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}
.cookie-banner-desc a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
}
.cookie-banner .cookie-btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  min-width: 110px;
  min-height: 48px;
  text-align: center;
  width: 100%;
}

/* ── FADE IN ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── SECTION HELPERS ─────────────────────────── */
section { padding: 3.5rem var(--content-pad); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label,
.page-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-section);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── RESPONSIVE ─────────────────────────────── */

/* sm: cookie-banner naast elkaar */
@media (min-width: 600px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .cookie-banner-text { flex: 1; min-width: 260px; }
  .cookie-banner-actions {
    flex-direction: row;
    flex-shrink: 0;
  }
  .cookie-banner .cookie-btn { width: auto; }
}

/* md: hamburger weg, nav-links inline, footer in rij, form-row 2 kolommen */
@media (min-width: 768px) {
  .nav-inner { padding: 0 2rem; }

  .hamburger { display: none; }

  .nav-links {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border-top: none;
    gap: 0;
  }

  nav.site-nav a.nav-link {
    margin-left: 2rem;
    padding: 0;
    font-size: 0.9rem;
    border-bottom: none;
    min-height: 0;
    display: inline-block;
  }

  .nav-cta { margin-left: 2rem; }
  .nav-links .btn,
  .nav-links .nav-cta {
    margin-left: 2rem;
    margin-top: 0;
    text-align: left;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }

  .form-row { grid-template-columns: 1fr 1fr; }
}

/* lg: ruimere section padding */
@media (min-width: 1024px) {
  section { padding: 6rem 2rem; }
  footer  { padding: 2rem; }
}

/* xl: bredere containers */
@media (min-width: 1280px) {
  .nav-inner,
  .section-inner,
  .footer-inner {
    max-width: var(--container-max);
  }

  section { padding: 6rem 2.5rem; }
  footer  { padding: 2rem 2.5rem; }
}
