/* ==========================================================
   België Kompas — Playful Dynamic Style
   Single CSS file for all pages
   - Mobile-first
   - ONLY Flexbox for layouts (no grid/columns)
   - Bright, energetic, animated details
   - Uses brand colors & fonts
   - Includes mobile menu & cookie consent styles
   ========================================================== */

/* --------------------------
   0) Reset & Base
--------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #1B263B; background-color: #FFFFFF; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }
p { margin: 0; }
strong { font-weight: 700; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #2EC4B6; outline-offset: 2px; }

/* --------------------------
   1) Design Tokens
--------------------------- */
:root {
  --c-primary: #1B263B;   /* Navy */
  --c-secondary: #C79A00; /* Gold */
  --c-accent: #F7F4EA;    /* Cream */
  --c-white: #FFFFFF;
  --c-text: #1B263B;
  --c-muted: #5A6B87;
  /* Playful supporting tints for highlights (solid colors) */
  --c-pink: #FF4D6D;
  --c-aqua: #2EC4B6;
  --c-lime: #9EE01A;
  --c-violet: #7A5AF8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-1: 0 4px 12px rgba(27,38,59,0.12);
  --shadow-2: 0 10px 24px rgba(27,38,59,0.16);

  --container-max: 1100px;
}

/* --------------------------
   2) Typography
--------------------------- */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--c-primary); line-height: 1.2; margin: 0; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-top: 8px; }
.subheadline { color: var(--c-muted); font-size: 16px; margin-top: 8px; }

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .subheadline { font-size: 18px; }
}

/* Playful headline underline */
h2 { position: relative; display: inline-flex; align-items: center; gap: 10px; }
h2::after { content: ""; display: block; height: 6px; width: 56px; background: var(--c-pink); border-radius: 6px; transform: skewX(-12deg); }

/* Body links */
a { color: var(--c-primary); text-decoration-color: var(--c-aqua); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--c-secondary); }

/* --------------------------
   3) Global Layout Helpers (Flex-only)
--------------------------- */
.container { display: flex; width: 100%; justify-content: center; }
.content-wrapper { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: var(--container-max); padding: 0 16px; }

/* Mandatory spacing classes (exact rules) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }

/* Responsive alignment rules */
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* --------------------------
   4) Header & Navigation
--------------------------- */
header { position: sticky; top: 0; z-index: 50; background: var(--c-accent); box-shadow: var(--shadow-1); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 40px; }

/* Desktop nav */
.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { padding: 10px 14px; border-radius: 999px; color: var(--c-primary); background: transparent; transition: background 0.2s ease, transform 0.2s ease; }
.main-nav a:hover { background: var(--c-white); transform: translateY(-1px); }

/* Burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; color: var(--c-primary); background: var(--c-white); border-radius: 10px; box-shadow: var(--shadow-1); transition: transform 0.2s ease; }
.mobile-menu-toggle:hover { transform: scale(1.05); }

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

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--c-accent); transform: translateX(100%); transition: transform 0.35s ease; z-index: 120; box-shadow: var(--shadow-2); }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 14px 16px 0 0; width: 44px; height: 44px; font-size: 22px; color: var(--c-primary); background: var(--c-white); border-radius: 10px; box-shadow: var(--shadow-1); }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 16px; background: var(--c-white); color: var(--c-primary); border-radius: 12px; box-shadow: var(--shadow-1); font-size: 18px; }
.mobile-nav a:hover { background: #fff7d9; }

/* --------------------------
   5) Buttons
--------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 14px; border: 2px solid var(--c-primary); background: var(--c-white); color: var(--c-primary); font-weight: 700; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease; box-shadow: var(--shadow-1); }
.btn:hover { transform: translateY(-2px); background: #fff7d9; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--c-secondary); border-color: var(--c-secondary); color: #1B263B; }
.btn-primary:hover { background: #E3B300; }

/* Micro wiggle on hover for playful vibe */
.btn:hover { animation: btn-wiggle 0.5s ease; }
@keyframes btn-wiggle { 0%,100%{ transform: translateY(-2px) rotate(0deg);} 25%{ transform: translateY(-1px) rotate(-1deg);} 50%{ transform: translateY(-2px) rotate(1deg);} 75%{ transform: translateY(-1px) rotate(-0.5deg);} }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------
   6) Hero Sections
--------------------------- */
.hero { position: relative; overflow: hidden; background: var(--c-accent); padding: 40px 0; }
.hero .content-wrapper { align-items: flex-start; padding-top: 12px; padding-bottom: 24px; }
.hero h1 { color: var(--c-primary); }

/* Decorative playful solids */
.hero::before, .hero::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 28px; opacity: 0.18; z-index: 0; }
.hero::before { background: var(--c-pink); top: -30px; right: -30px; transform: rotate(12deg); animation: floaty 8s ease-in-out infinite; }
.hero::after { background: var(--c-aqua); bottom: -30px; left: -30px; transform: rotate(-8deg); animation: floaty 9s ease-in-out infinite reverse; }
@keyframes floaty { 0%{ transform: translateY(0) rotate(0);} 50%{ transform: translateY(8px) rotate(6deg);} 100%{ transform: translateY(0) rotate(0);} }

/* Keep content above shapes */
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }

/* --------------------------
   7) Sections & Text blocks
--------------------------- */
section { display: flex; padding: 24px 0; }
section .content-wrapper { gap: 18px; }

/* Alternating subtle backgrounds for energy and rhythm */
main > section:nth-of-type(even) { background: #FFFDF6; }

.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section p { color: var(--c-text); }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; }
.text-section li { background: #FDF9EE; border-left: 6px solid var(--c-secondary); padding: 8px 12px; border-radius: 8px; }

/* Trust badges as fun pills */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 0; list-style: none; }
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--c-white); color: var(--c-primary); border-radius: 999px; box-shadow: var(--shadow-1); border: 2px solid #FFE9A8; }

/* Icons in text */
.text-section img[alt] { width: 18px; height: 18px; display: inline-flex; margin-right: 8px; vertical-align: middle; }

/* --------------------------
   8) Cards & Testimonials
--------------------------- */
.card { background: var(--c-white); border: 2px solid #E7EDF7; border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-1); }

/* Testimonial cards with dark text on light background for readability */
.testimonial-card { background: #FFFFFF; border: 2px solid #E7EDF7; border-radius: 16px; box-shadow: var(--shadow-1); }
.testimonial-card p { color: var(--c-text); }
.testimonial-card strong { color: var(--c-primary); }

/* --------------------------
   9) Footer
--------------------------- */
footer { background: var(--c-primary); color: var(--c-accent); }
footer a { color: var(--c-accent); }
footer .content-wrapper { padding-top: 28px; padding-bottom: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { padding: 8px 12px; background: rgba(247,244,234,0.08); border-radius: 999px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: rgba(247,244,234,0.08); border-radius: 10px; }
.hours { color: #D5DDEB; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); }
.contact-mini { display: flex; flex-direction: column; gap: 6px; }
.contact-mini img { display: inline-flex; width: 16px; height: 16px; margin-right: 6px; }

/* --------------------------
   10) Utilities
--------------------------- */
.muted { color: var(--c-muted); }
.badge { display: inline-flex; padding: 6px 10px; background: var(--c-aqua); color: #032B2B; border-radius: 999px; font-weight: 700; }

/* --------------------------
   11) Responsive Layout Tweaks
--------------------------- */
@media (min-width: 768px) {
  .hero { padding: 56px 0; }
  header .content-wrapper { padding-top: 14px; padding-bottom: 14px; }
}

/* --------------------------
   12) Cookie Consent Banner & Modal
--------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; justify-content: center; transform: translateY(100%); transition: transform 0.35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .inner { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: var(--container-max); margin: 12px; padding: 16px; background: var(--c-accent); color: var(--c-text); border: 2px solid #FFE9A8; border-radius: 16px; box-shadow: var(--shadow-2); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background: var(--c-secondary); border: 2px solid var(--c-secondary); color: var(--c-primary); border-radius: 12px; padding: 10px 14px; font-weight: 700; box-shadow: var(--shadow-1); }
.cookie-banner .btn-reject { background: #ffffff; border: 2px solid var(--c-primary); color: var(--c-primary); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.cookie-banner .btn-settings { background: var(--c-white); border: 2px dashed var(--c-secondary); color: var(--c-primary); border-radius: 12px; padding: 10px 14px; font-weight: 700; }

/* Modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 210; }
.cookie-overlay.is-open { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; left: 0; right: 0; top: 50%; transform: translateY(-50%) translateX(110%); display: flex; justify-content: center; z-index: 220; transition: transform 0.35s ease; }
.cookie-modal.is-open { transform: translateY(-50%) translateX(0); }
.cookie-modal .content { display: flex; flex-direction: column; gap: 14px; width: 92%; max-width: 680px; background: var(--c-accent); border: 2px solid #FFE9A8; border-radius: 18px; box-shadow: var(--shadow-2); padding: 18px; }
.cookie-modal .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFFFFF; border-radius: 12px; padding: 12px; border: 1px solid #E7EDF7; }
.cookie-modal .row .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-modal .row .hint { color: var(--c-muted); font-size: 14px; }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.toggle { position: relative; width: 52px; height: 30px; background: #E7EDF7; border-radius: 999px; transition: background 0.2s ease; display: flex; align-items: center; padding: 3px; }
.toggle.on { background: var(--c-aqua); }
.toggle .knob { width: 24px; height: 24px; background: #FFFFFF; border-radius: 50%; box-shadow: var(--shadow-1); transform: translateX(0); transition: transform 0.2s ease; }
.toggle.on .knob { transform: translateX(22px); }

/* --------------------------
   13) Accessibility helpers
--------------------------- */
.skip-link { position: absolute; left: 8px; top: -100px; background: var(--c-aqua); color: #032B2B; padding: 10px 14px; border-radius: 10px; transition: top 0.2s ease; z-index: 200; }
.skip-link:focus { top: 8px; }

/* --------------------------
   14) Page-specific small tweaks
--------------------------- */
/* CTA containers */
.hero .cta-group { margin-top: 6px; }

/* Footer layout mix on small screens */
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }

/* Larger screens: align footer items in a playful row wrap */
@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* --------------------------
   15) Desktop adjustments
--------------------------- */
@media (min-width: 992px) {
  .content-wrapper { padding: 0 20px; gap: 28px; }
  .hero .content-wrapper { align-items: flex-start; }
}

/* --------------------------
   16) Additional Flex Layout Helpers
--------------------------- */
/* Use these where needed across pages to ensure flex-only layouts */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* --------------------------
   17) Navigation buttons inside header (consistent with .btn)
--------------------------- */
.main-nav .btn, .mobile-nav .btn { box-shadow: var(--shadow-1); }

/* --------------------------
   18) Lists spacing within content for readability
--------------------------- */
.content-wrapper > h2 + .text-section, .content-wrapper > h2 + .testimonial-card { margin-top: 4px; }

/* Ensure at least 20px space between stacked content blocks */
.content-wrapper > * + * { margin-top: 6px; }

/* --------------------------
   19) Print adjustments (safe defaults)
--------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-overlay, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* --------------------------
   20) Contrast-safe testimonial and review sections
--------------------------- */
section:has(.testimonial-card) { background: #FAFBFE; }

/* --------------------------
   21) Prevent overlaps & ensure spacing
--------------------------- */
main { display: flex; flex-direction: column; gap: 12px; }
main > section { margin-bottom: 8px; }

/* --------------------------
   22) Animations for subtle energy cues
--------------------------- */
/* Fun hover for nav links (underline slide) */
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; background: var(--c-aqua); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.main-nav a:hover::after { transform: scaleX(1); }

/* --------------------------
   23) Compliance Checks
   - No grid/columns properties used
   - Flex-only for layout containers
   - Adequate gaps and spacing
--------------------------- */
