/* =============================================================
   GeldWacht Academie — style.css
   Vintage Retro aesthetic + Brand guidelines
   Mobile-first • Flexbox-only • No CSS Grid/Columns
   ============================================================= */

/* -------------------- CSS Reset / Normalize -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 20px; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 16px 0; }
button, a { cursor: pointer; }
button { border: none; background: none; font: inherit; }
[hidden] { display: none !important; }

/* -------------------- Theme Variables -------------------- */
:root {
  /* Brand */
  --primary: #123B5D; /* Navy */
  --secondary: #2E7D6E; /* Classic green */
  --accent: #F5FAFF; /* Light brand accent */

  /* Vintage/Retro neutrals & accents */
  --ink: #2B2B2B;            /* Dark ink */
  --paper: #FAF3E0;          /* Warm paper */
  --paper-2: #F6EDDE;        /* Alt paper */
  --card: #FFF9EF;           /* Card base */
  --rust: #B25631;           /* Burnt orange */
  --mustard: #D8A24A;        /* Mustard */
  --sage: #8FA79E;           /* Muted sage */
  --coffee: #4A3F39;         /* Brown accents */

  --border: #D9C9AC;         /* Card border */
  --ink-60: rgba(43,43,43,0.6);
  --ink-20: rgba(43,43,43,0.2);
  --shadow-1: 0 1px 0 var(--ink-20), 0 8px 18px rgba(0,0,0,0.06);
  --shadow-press: 0 2px 0 rgba(0,0,0,0.15);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;

  --container: 1100px;
  --gap-8: 8px;
  --gap-12: 12px;
  --gap-16: 16px;
  --gap-20: 20px;
  --gap-24: 24px;
  --gap-32: 32px;
  --gap-40: 40px;
}

/* -------------------- Global Base -------------------- */
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .logo-text {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; /* brand display */
  color: var(--primary);
}

h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.5px; text-transform: none; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; color: var(--coffee); }

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

p, li { font-size: 16px; }
small { font-size: 14px; color: var(--ink-60); }

/* Retro links */
a {
  color: #271201;
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-underline-offset: 3px;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
a:hover { color: var(--primary); }
a:focus { outline: 2px dashed var(--mustard); outline-offset: 2px; }

/* Containers & Wrappers (Flexbox-only) */
.container {
  display: flex;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  justify-content: center; /* sections center inner wrapper */
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-24);
  width: 100%;
}

/* Mandatory spacing class (apply alongside generic section rules) */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Generic section style */
main section {
  display: flex;
  width: 100%;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--paper);
}
main section:nth-child(even) { background: var(--paper-2); }

/* -------------------- Header & Navigation -------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--rust);
  box-shadow: var(--shadow-1);
}
header > .container { justify-content: space-between; align-items: center; padding: 12px 16px; }
.logo { display: flex; align-items: center; gap: var(--gap-12); text-decoration: none; }
.logo img { height: 40px; width: auto; }

.main-nav {
  display: none; /* mobile-first hidden */
  align-items: center;
  gap: var(--gap-16);
}
.main-nav a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--primary);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.main-nav a:hover { background: var(--card); border-color: var(--border); }
.main-nav a:last-child, .main-nav a[href*="inschrijven"], .main-nav a[href*="proefles"] {
  background: var(--mustard);
  color: #1f2328;
  border-color: #C6933F;
  box-shadow: var(--shadow-press);
}
.main-nav a[last-child]:hover, .main-nav a[href*="inschrijven"]:hover, .main-nav a[href*="proefles"]:hover {
  filter: brightness(0.96);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-s);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-press);
}
.mobile-menu-toggle:hover { background: #0E2F49; }
.mobile-menu-toggle:focus { outline: 2px dashed #fff; outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1000;
  padding: 20px 16px;
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0%); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  background: var(--rust);
  color: #fff;
  margin-bottom: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--gap-12);
  padding-top: 8px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--card);
  color: var(--coffee);
  text-decoration: none;
}
.mobile-nav a:hover { background: #FFF3E0; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  background: var(--paper-2);
  border-top: none;
  border-bottom: 1px solid var(--border);
}
.hero .container { justify-content: center; }
.hero .content-wrapper {
  padding: 28px 0;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  text-shadow: 0 1px 0 #fff;
}
.hero .sub { color: var(--coffee); max-width: 60ch; }

/* -------------------- CTA Group & Buttons -------------------- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-12);
}
.cta-group a,
.text-section > a:not(.link),
.hero a,
.content-wrapper > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-m);
  border: 2px solid var(--coffee);
  background: var(--mustard);
  color: #1f2328;
  text-decoration: none;
  box-shadow: 0 3px 0 #9C7730;
  transition: transform .15s ease, box-shadow .15s ease, filter .2s ease;
}
.cta-group a:hover,
.text-section > a:hover,
.hero a:hover,
.content-wrapper > a:hover { transform: translateY(1px); box-shadow: 0 1px 0 #9C7730; filter: brightness(0.98); }

/* Secondary/outline button variant for neutral links inside CTA groups */
.cta-group a:nth-child(2),
.cta-group a[href*="proef"],
.cta-group a[href*="gratis"],
.hero .cta-group a:nth-child(2) {
  background: var(--card);
  border-color: var(--coffee);
  color: var(--coffee);
  box-shadow: 0 3px 0 rgba(43,43,43,0.25);
}
.cta-group a:nth-child(2):hover { background: #FFF3E0; }

/* -------------------- Lists, Icons & Utilities -------------------- */
.trust, .feature-grid, .footer-nav, .card-container, .content-grid { width: 100%; }
.trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-12);
  padding-left: 0;
  list-style: none;
}
.trust li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
.trust img { width: 18px; height: 18px; }

/* Feature grid (cards) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-20);
}

/* Text section styled as a retro card */
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-12);
  flex: 1 1 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.text-section h3 { color: var(--rust); }
.text-section ul, .text-section ol { margin: 0 0 8px 18px; }

/* Generic lists with icons */
.content-wrapper > ul, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; }
.content-wrapper li { display: flex; align-items: center; gap: 10px; }
.content-wrapper li img { width: 18px; height: 18px; }

/* Cards (optional utility) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px;
  box-shadow: var(--shadow-1);
}

/* Flexible content grid utility */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* Text + image side-by-side utility */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.text-image-section > * { flex: 1 1 280px; }

/* Feature item utility */
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* -------------------- Testimonials -------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFFFF;
  color: #1E1E1E; /* dark text on light bg for readability */
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: var(--primary); }
.testimonial-card:hover { transform: translateY(-2px); transition: transform .2s ease; }

/* -------------------- Pricing highlights -------------------- */
.text-section strong { color: var(--primary); font-weight: 700; }

/* -------------------- Footer -------------------- */
footer {
  background: #4c656d;
  color: #F3EFE7;
  border-top: 4px solid var(--rust);
}
footer .container { justify-content: center; }
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--gap-24);
  padding: 24px 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a { color: #FCE7C6; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
footer .text-section { background: transparent; border: none; box-shadow: none; padding: 0; color: #F3EFE7; }
footer .logo img { filter: brightness(0) invert(1); height: 36px; }

/* -------------------- Forms/Inputs (generic) -------------------- */
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px dashed var(--secondary); outline-offset: 2px; }

/* -------------------- Cookie Consent Banner -------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--paper-2);
  border-top: 3px solid var(--rust);
  box-shadow: 0 -8px 18px rgba(0,0,0,0.08);
}
.cookie-banner .cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-12);
  width: 100%;
  max-width: var(--container);
  align-items: center;
  justify-content: space-between;
}
.cookie-banner p { margin: 0; color: var(--coffee); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: var(--radius-s);
  border: 2px solid var(--coffee); box-shadow: var(--shadow-press);
  background: var(--mustard); color: #1f2328; text-decoration: none;
}
.cookie-buttons .btn.alt { background: var(--card); color: var(--coffee); }
.cookie-buttons .btn.settings { background: var(--secondary); color: #fff; border-color: #226759; box-shadow: 0 3px 0 #1B5A4E; }
.cookie-buttons .btn:hover { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,0.2); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none; /* toggled via .open or .active */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
}
.cookie-modal.open, .cookie-modal.active { display: flex; }
.cookie-modal-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-16);
  width: 92%;
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-header h3 { margin: 0; color: var(--primary); }
.cookie-modal-close {
  width: 36px; height: 36px; border-radius: var(--radius-s);
  background: var(--rust); color: #fff; display: flex; align-items: center; justify-content: center;
}
.cookie-preferences {
  display: flex; flex-direction: column; gap: var(--gap-12);
}
.cookie-row { display: flex; flex-wrap: wrap; gap: var(--gap-12); align-items: center; justify-content: space-between; padding: 10px; border: 1px dashed var(--border); border-radius: var(--radius-s); }
.cookie-row .label { font-weight: 700; color: var(--coffee); }
.cookie-row .desc { color: var(--ink-60); }
.toggle {
  display: inline-flex; align-items: center; gap: 8px;
}
.toggle input[type="checkbox"] { width: 18px; height: 18px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: var(--gap-12); justify-content: flex-end; }
.cookie-modal-actions .btn { padding: 10px 16px; border-radius: var(--radius-m); border: 2px solid var(--coffee); background: var(--mustard); color: #1f2328; box-shadow: var(--shadow-press); text-decoration: none; }
.cookie-modal-actions .btn.secondary { background: var(--card); color: var(--coffee); }

/* -------------------- Accessibility helpers -------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }

/* -------------------- Responsive Layout Tweaks -------------------- */
@media (min-width: 640px) {
  .hero .content-wrapper { padding: 36px 0; }
}
@media (min-width: 768px) {
  .content-wrapper { gap: var(--gap-32); }
  .hero .content-wrapper { padding: 44px 0; }
}

/* -------------------- Page-specific Enhancements -------------------- */
/* Kenniscentrum categories as cards already covered by .text-section + .feature-grid */
/* Price/Plan CTA buttons inside text-section */
.text-section a[href*="inschrijven"],
.text-section a[href*="Mail"],
.text-section a[href^="mailto:"] {
  align-self: flex-start;
}

/* Info rows with icons (contact pages) */
.content-wrapper > p > img, .text-section > p > img { margin-right: 8px; }

/* -------------------- Mandatory Responsiveness for utilities -------------------- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* -------------------- Tables (if any appear later) -------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--border); padding: 10px; text-align: left; }
th { background: var(--card); }

/* -------------------- Fine details for vintage flair -------------------- */
hr { border: none; border-top: 1px dashed var(--border); margin: 24px 0; }
blockquote { border-left: 4px solid var(--rust); padding-left: 12px; color: var(--coffee); background: var(--card); }

/* -------------------- Prevent overlaps, ensure spacing -------------------- */
.content-wrapper > * + * { margin-top: 0; }
main section + section { margin-top: 0; }

/* -------------------- Print styles (basic) -------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}

/* -------------------- Ensure NO GRID used: Flex-only ensured above -------------------- */
/* -------------------- End of stylesheet -------------------- */
