/* ============================================================
   main.css — Design tokens, reset, typography
   De Warme Kerstmars vzw
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors — Brand Style Guide */
  --color-primary:       #630909;   /* Deep Wine Red */
  --color-primary-dark:  #4a0606;
  --color-primary-light: #8B1414;
  --color-crimson:       #AF0505;   /* Crimson Red */
  --color-secondary:     #EBB11F;   /* Golden Amber */
  --color-secondary-dark:#d49a13;
  --color-white:         #FFFFFF;
  --color-cream:         #F7F6F2;   /* Warm off-white body bg */
  --color-off-white:     #FAFAF8;
  --color-light-grey:    #EDECEA;
  --color-ink:           #2a0707;   /* Dark wine for body copy */
  --color-text:          #2a0707;
  --color-text-light:    #555555;
  --color-text-muted:    #888888;
  --color-border:        #E8E3DC;
  --color-bg:            #F7F6F2;

  /* Radii */
  --r-lg: 36px;
  --r-md: 24px;
  --r-sm: 14px;

  /* Typography */
  --font-heading:  'DM Sans', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-weight-light:   300;
  --font-weight-regular: 400;
  --font-weight-medium:  600;
  --font-weight-bold:    700;

  /* Type Scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max: 1440px;
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.18);
  --shadow-primary: 0 8px 32px rgba(99,9,9,.30);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(.34,1.56,.64,1);

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

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

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

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-light);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: 1.7;
  color: var(--color-text-light);
}

strong { font-weight: var(--font-weight-bold); color: var(--color-text); }

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

@media (max-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

.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;
}

.text-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white     { color: var(--color-white); }
.text-muted     { color: var(--color-text-muted); }

.bg-primary     { background-color: var(--color-primary); }
.bg-dark        { background-color: var(--color-primary-dark); }
.bg-off-white   {
  background-color: var(--color-off-white);
  background-image: radial-gradient(circle, rgba(99,9,9,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-light-grey  { background-color: var(--color-light-grey); }

/* ── Inline logo name ─────────────────────────────────────── */
.logo-inline {
  display: inline-block;
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}

.logo-inline--label {
  height: 1.6em;
}

/* ── Wave Dividers ─────────────────────────────────────────── */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
  margin-bottom: -2px;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 2px);
  margin-inline: -1px;
  height: auto;
}

/* Hero wave — overlaps into hero image */
.wave-divider--hero {
  margin-top: -120px;
  position: relative;
  z-index: 3;
}

.wave-divider--hero svg {
  height: 120px;
}

/* Skyline silhouette divider (walkers) */
.skyline-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: flex;
  margin-bottom: -5px;
}

.skyline-divider__side,
.skyline-divider__center {
  flex: 0 0 calc(33.34% + 1px);
  width: calc(33.34% + 1px);
  margin-inline: -0.5px;
  line-height: 0;
}

.skyline-divider__side svg,
.skyline-divider__center svg {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding-block: var(--space-20);
}

.section--lg {
  padding-block: var(--space-32);
}

.section--sm {
  padding-block: var(--space-12);
}

.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title--white {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 60ch;
  line-height: 1.7;
}

.section-subtitle--white {
  color: rgba(255,255,255,0.82);
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

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

/* ── Mobile (640px) ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .section        { padding-block: var(--space-12); }
  .section--lg    { padding-block: var(--space-16); }
  .section--sm    { padding-block: var(--space-8);  }

  /* Remove ch constraint — let text fill the narrow viewport */
  .section-subtitle { max-width: 100%; }

  /* Prevent iOS auto-zoom on form focus (requires font-size ≥ 16px) */
  input, select, textarea { font-size: 16px; }

  /* Skyline: only show center (with walkers) on mobile */
  .skyline-divider__side { display: none; }
  .skyline-divider__center { flex: 0 0 100%; width: 100%; }
}

/* ── Gold accent bar ────────────────────────────────────────── */
.gold-bar {
  display: inline-block;
  width: 4px;
  height: 1em;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
  margin-right: var(--space-3);
  vertical-align: middle;
}
