/* ===============================
   Proefpad België - style.css
   Warm, friendly, flexbox-only design
   =============================== */

/* 1) Reset & base normalize */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { padding-left: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #FFBF92; outline-offset: 2px; }

/* 2) Theme tokens */
:root {
  --primary: #3B0D0B; /* Bourgondisch dieprood */
  --secondary: #2E5E4E; /* Warme groen */
  --accent: #FFF4E6; /* Zachte room */
  --cream-100: #FFF8F1; /* achtergrond-cream */
  --ink: #2A1E1C; /* tekst donker */
  --muted: #7A5E59;
  --white: #FFFFFF;
  --shadow-soft: 0 8px 24px rgba(59, 13, 11, 0.08);
  --shadow-hover: 0 12px 32px rgba(59, 13, 11, 0.14);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

/* 3) Base typography & page */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--cream-100);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); line-height: 1.2; }

h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 20px; color: var(--secondary); }

p { font-size: 16px; color: var(--ink); }
.sub { color: var(--muted); font-size: 18px; }

/* 4) Layout containers - flexbox-only */
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Content wrapper holds multiple blocks/cards */
.content-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
}

/* Global section spacing (HTML element) */
section { margin-bottom: 60px; padding: 40px 0; }

/* MANDATORY spacing class (in case used) */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* MANDATORY layout patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 20px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* 5) Header & navigation */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(59, 13, 11, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { height: 40px; width: auto; }

.main-nav {
  display: none; /* mobile hidden */
  align-items: center;
  gap: 18px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--primary);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.main-nav a:hover { background: var(--accent); transform: translateY(-1px); }
.main-nav a[aria-current="page"] { background: var(--primary); color: var(--accent); }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(59, 13, 11, 0.25);
  backdrop-filter: blur(2px);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1100;
  display: flex;
}
.mobile-menu.open { transform: translateX(0); }

/* Slide-in panel using flex only (no absolute) */
.mobile-menu > .mobile-nav,
.mobile-menu > nav.mobile-nav {
  margin-left: auto;
  width: 84%;
  max-width: 380px;
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: -6px 0 24px rgba(59, 13, 11, 0.15);
}
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.mobile-nav a { padding: 12px 14px; border-radius: 10px; color: var(--primary); }
.mobile-nav a:hover { background: var(--accent); }

/* 6) Hero */
.hero {
  background: var(--accent);
  border-bottom: 1px solid rgba(59,13,11,0.08);
}
.hero .container { gap: 0; }
.hero .content-wrapper {
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.hero h1 { font-size: 30px; }
.hero .sub { margin-top: 6px; }

/* CTA group */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

/* Trust badges */
.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 8px;
}
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); background: #FAF0E6; padding: 8px 12px; border-radius: 999px; }
.trust-badges img { width: 16px; height: 16px; }

/* 7) Card-like text sections */
.text-section {
  background: var(--white);
  border: 1px solid rgba(59, 13, 11, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section ul { display: flex; flex-direction: column; gap: 8px; }
.text-section li { color: var(--ink); }
.text-section a { color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }

/* 8) Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: bold;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  box-shadow: var(--shadow-soft);
}
.btn-primary { background: var(--primary); color: var(--accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--secondary); color: var(--accent); }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* 9) Testimonials - light background, dark text for readability */
.testimonial-card {
  background: #FFF7ED; /* very light warm */
  border: 1px solid rgba(59,13,11,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: var(--primary); }

/* 10) Footer */
footer {
  background: var(--primary);
  color: var(--accent);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
footer section { padding: 30px 0; margin-bottom: 0; }
footer .content-wrapper { flex-direction: column; }
footer .text-section { background: rgba(255, 244, 230, 0.06); border: 1px solid rgba(255, 244, 230, 0.12); color: var(--accent); }
footer a { color: #FFE2C9; }
footer a:hover { color: #FFFFFF; }
footer h3 { color: #FFE2C9; }
footer p { color: #FCEADB; }

/* 11) Lists inside contact/info */
.text-section li img { width: 18px; height: 18px; margin-right: 6px; }

/* 12) Utilities & micro-interactions */
.card:hover, .text-section:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); transition: transform 0.2s ease, box-shadow 0.25s ease; }

/* 13) Mobile-first responsive rules already applied. Desktop enhancements */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 44px; }

  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Allow content wrappers to arrange cards side-by-side with wrapping */
  .content-wrapper { flex-direction: row; }
  .content-wrapper > .text-section { flex: 1 1 320px; }

  .text-image-section { flex-direction: row; }
}

@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  .content-grid { justify-content: space-between; }
}

/* 14) Mobile menu animation preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 15) Links general */
a { transition: color 0.2s ease; }
a:hover { color: var(--secondary); }

/* 16) Tables or code (if any) - minimal friendly style */
table { width: 100%; border-collapse: collapse; display: flex; flex-direction: column; }
thead, tbody, tr { display: flex; flex-direction: row; width: 100%; }
th, td { padding: 10px 12px; border-bottom: 1px solid rgba(59,13,11,0.1); flex: 1; }
th { color: var(--secondary); text-align: left; }

/* 17) Cookie consent banner (fixed bottom) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid rgba(59,13,11,0.12);
  box-shadow: 0 -6px 18px rgba(59,13,11,0.08);
  z-index: 1200;
  display: none; /* hidden by default; toggle with .show */
}
.cookie-banner.show { display: flex; }
.cookie-banner .cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px;
}
.cookie-banner p { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-soft); }
.cookie-accept { background: var(--secondary); color: var(--accent); }
.cookie-reject { background: var(--primary); color: var(--accent); }
.cookie-settings { background: var(--accent); color: var(--primary); }
.cookie-actions .btn:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(59,13,11,0.35);
  display: none; /* toggle with .open */
  z-index: 1300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  padding: 20px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent); border-radius: var(--radius-md); padding: 12px; }
.cookie-category strong { color: var(--primary); }

/* Simple toggle style (button-based) */
.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid rgba(59,13,11,0.15);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
}
.toggle[aria-pressed="true"] { background: var(--secondary); color: var(--accent); border-color: var(--secondary); }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions .btn { padding: 10px 14px; border-radius: 999px; font-weight: 600; }

/* 18) Forms (if present later) */
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid rgba(59,13,11,0.18); border-radius: var(--radius-md); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 3px solid #FFD7B3; border-color: var(--primary); }
label { font-weight: 600; color: var(--primary); }

/* 19) Alignment helpers (where needed) */
.align-center { display: flex; align-items: center; justify-content: center; }
.space-between { display: flex; align-items: center; justify-content: space-between; }

/* 20) Specific adjustments for multi-column-like layouts using flex */
/* Lists of multiple .text-section blocks inside .content-wrapper already wrap. Ensure minimum widths */
.content-wrapper > .text-section { min-width: 280px; }

/* 21) Ensure no overlap by adding consistent gaps between cards and sections */
main > section .content-wrapper > * { margin: 0; }

/* 22) Accessibility tweaks for current page links */
[aria-current="page"] { font-weight: 700; }

/* 23) Print adjustments (minimal) */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  section { padding: 0; margin: 20px 0; }
}

/* 24) Additional optional blocks (if used in HTML later) */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--primary); }

/* 25) Ensure testimonial contrast in all sections */
section .testimonial-card p { color: #2B2524; }

/* 26) Desktop footer layout improvements */
@media (min-width: 768px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  footer .text-section { flex: 1 1 220px; }
}

/* 27) Text-image section mobile behavior */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* 28) Ensure mandatory gaps for all flex containers */
.content-grid, .card-container, .cta-group, .trust-badges, .mobile-nav, .cookie-actions { gap: 20px; }

/* 29) Small polish for secondary paragraphs inside footer and cards */
.text-muted { color: var(--muted); }

/* 30) Year element alignment in footer last row */
footer #year { font-variant-numeric: tabular-nums; }
