/* ============================================================
   MASA SUPERMARKT — Design Tokens & Global Styles (V2 Light)
   Licht, professioneel, zonder rood · geen emoji's
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&family=Tajawal:wght@400;500;700&family=Amiri:wght@400;700&display=swap');

:root {
  /* ── Merkkleuren (accenten) — blauw, zoals het winkelbord ──
     (tokennamen behouden 'purple' om HTML/JS-klassen niet te breken) */
  --color-brand-purple:       #1846A0;  /* blauw */
  --color-brand-purple-dark:  #0E2E66;  /* donkerblauw */
  --color-brand-purple-light: #2E6AD0;  /* lichtblauw */
  --color-brand-gold:         #C9A84C;

  /* ── Neutrale achtergronden ── */
  --color-bg-page:    #FFFFFF;
  --color-bg-section: #F8F9FA;
  --color-bg-card:    #FFFFFF;

  /* ── Tekst ── */
  --color-text-primary:   #1A1A2E;
  --color-text-secondary: #5A5A72;
  --color-text-muted:     #9B9BAD;

  /* ── UI ── */
  --color-border:       #E5E7EB;
  --color-border-focus: #1846A0;

  /* ── Status (zonder fel rood) ── */
  --color-success:    #166534;  --color-success-bg: #F0FDF4;
  --color-amber:      #B45309;  --color-amber-bg:   #FFFBEB;
  --color-neutral:    #5A5A72;  --color-neutral-bg: #F1F3F5;
  --color-info:       #1E3A8A;  --color-info-bg:    #EFF4FF;

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ── Shadow ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  /* ── Spacing ── */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* ── Type scale ── */
  --text-xs: 0.75rem;  --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem;  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.25rem; --text-5xl: 3rem; --text-6xl: 3.75rem;

  /* ── Fonts ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-ar:      'Tajawal', 'Amiri', system-ui, sans-serif;

  /* ── Transitions ── */
  --t-fast: 150ms ease;
  --t-base: 220ms ease;
  --t-slow: 300ms ease;

  /* ── Z ── */
  --z-nav: 100; --z-sticky: 90; --z-overlay: 200; --z-panel: 210; --z-toast: 300; --z-modal: 400;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: var(--font-ar); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }
svg { display: block; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; color: var(--color-text-primary); font-weight: 700; }
h1 { font-family: var(--font-display); }
[dir="rtl"] h1 { font-family: var(--font-ar); font-weight: 700; }

.display { font-family: var(--font-display); }
[dir="rtl"] .display { font-family: var(--font-ar); }

/* ── Layout ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.container-sm { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--space-6); }

.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.bg-section { background: var(--color-bg-section); }

/* ── Section header ── */
.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-purple);
  margin-bottom: var(--space-3);
}

.section-header { max-width: 640px; margin-bottom: var(--space-10); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); margin-bottom: var(--space-3); }
.section-header p { color: var(--color-text-secondary); font-size: var(--text-lg); }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8);
}
.section-head-row h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl)); }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: var(--space-16) 0; }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ── Reveal animation (subtiel) ──
   Gegate achter .js zodat content zonder JS / in headless altijd zichtbaar is. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms cubic-bezier(0.22,1,0.36,1), transform 620ms cubic-bezier(0.22,1,0.36,1); }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Utility ── */
.link-arrow {
  color: var(--color-brand-purple); font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--space-2);
  transition: gap var(--t-fast);
}
.link-arrow:hover { gap: var(--space-3); }
.link-arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }

.text-purple { color: var(--color-brand-purple); }
.text-secondary { color: var(--color-text-secondary); }
.hidden { display: none !important; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-section); }
::-webkit-scrollbar-thumb { background: #D5D8DE; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-brand-purple-light); }

::selection { background: rgba(24,70,160,0.14); color: var(--color-brand-purple-dark); }
