/* ============================================================
   ARNOU — Global Stylesheet
   Variables · Reset · Typography · Utilities
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors — Arnou Bouw */
  --color-bg:               #FFFFFF;
  --color-surface:          #F7F7F7;
  --color-text:             #000000;
  --color-text-secondary:   #474748;
  --color-text-light:       #808081;
  --color-accent:           #DB0711;
  --color-accent-hover:     #B8060F;
  --color-border:           #E8E8E9;
  --color-border-light:     #F0F0F0;
  --color-dark:             #202021;
  --color-dark-surface:     #2A2A2B;
  --color-muted:            #9C9C9D;
  --color-light-grey:       #BABABB;
  --color-mid-grey:         #727273;

  /* Colors — Arnou Invest (Investeren-pagina) */
  --color-invest-teal:       #DB0711;
  --color-invest-teal-hover: #B8060E;
  --color-invest-yellow:     #DB0711;
  --color-invest-dark:       #202021;

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing (8px base grid) */
  --space-1:  0.5rem;   /*  8px */
  --space-2:  1rem;     /* 16px */
  --space-3:  1.5rem;   /* 24px */
  --space-4:  2rem;     /* 32px */
  --space-5:  2.5rem;   /* 40px */
  --space-6:  3rem;     /* 48px */
  --space-8:  4rem;     /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */

  /* Border radius */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   800ms ease;

  /* Nav height */
  --nav-height: 72px;

  /* Max content width */
  --max-width: 1280px;
  --content-width: 1100px;
}

/* ── 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: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem);  font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.label--light {
  color: var(--color-muted);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-width);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast),
              opacity var(--transition-fast);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn--outline-white {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline-white:hover, .btn--outline-white:focus-visible {
  background-color: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn--outline-dark:hover, .btn--outline-dark:focus-visible {
  border-color: var(--color-text);
}

.btn--outline-red {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn--outline-red:hover, .btn--outline-red:focus-visible {
  background-color: rgba(200,16,46,0.08);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid transparent;
  padding-inline: 0;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  opacity: 0.75;
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ── Badges / Status ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge--green   { background: #E8F5E9; color: #2E7D32; }
.badge--orange  { background: #FFF3E0; color: #E65100; }
.badge--red    { background: #DB0711; color: #fff; }
.badge--blue    { background: #E3F2FD; color: #1565C0; }
.badge--grey    { background: var(--color-surface); color: var(--color-text-secondary); }

/* ── Section headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-8);
}

.section-header--center {
  text-align: center;
}

.section-header .label {
  margin-bottom: var(--space-2);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 52ch;
}

.section-header--center p {
  margin-inline: auto;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 3rem;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: var(--space-3);
}

.section-header--center .divider {
  margin-inline: auto;
}

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

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-light); }

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive breakpoints ───────────────────────────────── */
@media (max-width: 1024px) {
  :root { --nav-height: 64px; }
  .container { padding-inline: var(--space-3); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .container { padding-inline: var(--space-2); }
  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
}
