/* ==========================================================================
   BASE.CSS — WESPENNESTVERWIJDEREN.NL
   CSS Custom Properties + Basis Styling
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primair — Wespen-geel (CTA knoppen, actie-elementen) */
  --color-primary: #FFC107;
  --color-primary-dark: #E5AC00;
  --color-primary-light: #FFF8E1;
  --color-primary-bg: #FFFDF5;
  --color-primary-shadow: rgba(255, 193, 7, 0.3);
  --color-primary-rgb: 255, 193, 7;

  /* Secundair — Diep zwart (koppen, header, footer, structuur) */
  --color-secondary: #1A1A2E;
  --color-secondary-dark: #0F0F1A;
  --color-secondary-light: #2D2D44;
  --color-secondary-bg: #F5F5F7;
  --color-secondary-rgb: 26, 26, 46;

  /* Accent — Warm amber (highlights, badges) */
  --color-accent: #FF8F00;
  --color-accent-dark: #E67E00;
  --color-accent-light: #FFF3E0;
  --color-accent-rgb: 255, 143, 0;

  /* Sterren — Goud */
  --color-stars: #FFC107;

  /* WhatsApp */
  --color-wa: #128C7E;
  --color-wa-hover: #0e7a6e;

  /* Tekst & achtergrond */
  --color-text: #1A1A2E;
  --color-text-muted: #2D3748;
  --color-text-light: #718096;
  --color-border: #E2E8F0;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FFFDF5;

  /* Typografie */
  --font-heading: 'Montserrat', 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-sticky: 0 -2px 8px rgba(0, 0, 0, 0.1);
  --shadow-btn-primary: 0 2px 8px rgba(255, 193, 7, 0.35);
  --shadow-btn-wa: 0 2px 8px rgba(37, 211, 102, 0.3);

  /* Layout */
  --max-width: 1200px;
  --header-height: 108px;
  --sticky-height: 56px;

  /* Premium */
  --shadow-premium: 0 20px 60px rgba(0,0,0,0.08);
  --shadow-glass: 0 8px 32px rgba(26, 26, 46, 0.12);
  --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 50%, #3D3D5C 100%);
  --gradient-yellow: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
}

ul,
ol {
  list-style: none;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}

p {
  margin-bottom: var(--space-md);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: var(--shadow-btn-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-wa {
  background-color: var(--color-wa);
  color: #fff;
  box-shadow: var(--shadow-btn-wa);
}

.btn-wa:hover {
  background-color: var(--color-wa-hover);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.btn-black {
  background-color: var(--color-secondary);
  color: #fff;
}

.btn-black:hover {
  background-color: var(--color-secondary-light);
  color: #fff;
}

/* ---------- Section Spacing ---------- */
.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

.section-alt {
  background-color: var(--color-bg-alt);
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  max-width: 640px;
  margin: var(--space-md) auto 0;
  color: var(--color-text-muted);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-decoration: none;
}

/* ---------- Mobiel body padding voor sticky CTA ---------- */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* ---------- Touch Targets (WCAG 2.5.5 AAA) ---------- */
button, [role="button"], .btn, a, input, textarea, select {
  min-height: 44px;
}

input, textarea, select {
  font-size: 16px;
}

/* ---------- Focus Indicators (WCAG 2.4.7 AA) ---------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Reduced Motion (WCAG 2.3.3) ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Coarse Pointer (grotere touch targets op mobiel) ---------- */
@media (pointer: coarse) {
  button, [role="button"], .btn, a {
    min-height: 48px;
    padding: 12px 16px;
  }
}
