/* ==========================================================================
   Van Dooremolen — The Human Side of Performance
   Design Tokens, Brand Typography & Global Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted Brand Fonts (Lato Headings · Nunito Body)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('fonts/Lato-Thin.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url('fonts/Lato-ThinItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Lato-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Lato-LightItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Lato-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Lato-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Lato-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Lato-Black.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/Nunito-VariableFont_wght.ttf') format('truetype-variations');
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype-variations');
}

/* --------------------------------------------------------------------------
   2. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Core brand palette */
  --pine: #1C3530;       /* Pine / Donkergroen */
  --ivoor: #F5F1EA;      /* Ivoor / Warm wit */
  --cognac: #A8633A;     /* Cognac / Terracotta */
  --cognac-t: #8A4B28;   /* Donkerder cognac (minimaal 4.5:1 contrast op ivoor) */
  --cognac-l: #DDA47E;   /* Lichter cognac */
  --mos: #4A655C;        /* Mos / Muted groen */
  --linnen: #E8E2D6;     /* Linnen / Warm beige */
  --rule: #D8CFBF;       /* Border / Lijn */
  --rule-d: #3A524C;     /* Donkere scheidingslijn */
  --soft-d: #C3CEC8;     /* Zacht accent */

  /* Semantic aliases (Bouwdocument standard) */
  --vd-ink: var(--pine);
  --vd-paper: var(--ivoor);
  --vd-accent: var(--cognac);
  --vd-accent-text: var(--cognac-t);
  --vd-mos: var(--mos);
  --vd-linnen: var(--linnen);
  --vd-rule: var(--rule);

  /* Legacy design-system compatibility */
  --bone: var(--ivoor);
  --sand: var(--linnen);
  --paper: #FAF6EE;
  --ink: var(--pine);
  --ink-soft: #3A524C;
  --ink-mute: var(--mos);
  --clay: var(--cognac);
  --clay-deep: var(--cognac-t);
  --forest: var(--pine);
  --forest-deep: #162B27;

  --bg: var(--ivoor);
  --fg: var(--pine);
  --accent: var(--cognac);

  /* Typography */
  --head: 'Lato', system-ui, -apple-system, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
  --quote: Georgia, 'Times New Roman', serif;
  --serif: var(--head);
  --sans: var(--body);
  --mono: 'Menlo', 'Monaco', 'SF Mono', ui-monospace, 'Courier New', monospace;

  /* Spacing & Layout */
  --max: 1200px;
  --g: clamp(20px, 5vw, 72px);
  --gutter: var(--g);
}

/* --------------------------------------------------------------------------
   3. Base Resets & Global Behavior
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  margin: 0;
  background: var(--ivoor);
  color: var(--pine);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--cognac-t);
}

:focus-visible {
  outline: 2px solid var(--cognac);
  outline-offset: 3px;
}

::selection {
  background: rgba(168, 99, 58, 0.22);
  color: var(--pine);
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   4. Typography Classes
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mos);
}

.display {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.display em {
  font-family: var(--quote);
  font-style: italic;
  font-weight: normal;
  color: var(--cognac);
}

.h1 {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.lede {
  font-family: var(--body);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--mos);
}

.body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--mos);
}

.quote {
  font-family: var(--quote);
  font-style: italic;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.35;
  color: var(--pine);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--ivoor);
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--cognac-t);
  border-color: var(--cognac-t);
  color: var(--ivoor);
}

.btn-secondary {
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--rule);
}

.btn-secondary:hover {
  background: var(--linnen);
  border-color: var(--pine);
  color: var(--pine);
}

.btn-accent {
  background: var(--cognac);
  border-color: var(--cognac);
  color: var(--ivoor);
}

.btn-accent:hover {
  background: var(--cognac-t);
  border-color: var(--cognac-t);
}

.btn .arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. Layout & Grid Primitives
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--g);
  padding-right: var(--g);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  width: 100%;
}

.vd-logos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .vd-logos { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .vd-logos { grid-template-columns: repeat(2, 1fr); }
}

.vd-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

@media (max-width: 860px) {
  .vd-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --------------------------------------------------------------------------
   7. Header & Navigation Responsiveness
   -------------------------------------------------------------------------- */
.vd-burger { display: none; }

@media (max-width: 760px) {
  .vd-burger { display: inline-flex !important; }
  .vd-navlinks { display: none !important; }
  .vd-hide-sm { display: none !important; }
}

@media (min-width: 761px) {
  .vd-drawer { display: none !important; }
}

/* --------------------------------------------------------------------------
   8. Form Controls
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--pine);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cognac);
  box-shadow: 0 0 0 3px rgba(168, 99, 58, 0.15);
}
