/*
 * style.css — Base styles, CSS reset, custom properties, and typography
 * Fietsdirectservice.nl — Mechanical Atelier Design System
 *
 * This file establishes the design foundation: color palette, type scale,
 * spacing rhythm, and baseline element resets. All other CSS files build
 * on the tokens defined here.
 */

/* ------------------------------------------------------------------ */
/*  Google Fonts                                                       */
/* ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Manrope:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------------ */
/*  Custom Properties (Design Tokens)                                  */
/* ------------------------------------------------------------------ */
:root {
  /* Brand palette */
  --color-primary-dark:   #252422;
  --color-accent:         #EB5E28;
  --color-accent-hover:   #d4521f;
  --color-accent-subtle:  rgba(235, 94, 40, 0.08);
  --color-light:          #FFFCF2;
  --color-muted:          #CCC5B9;
  --color-secondary-dark: #403D39;

  /* Extended surface palette (tonal layering) */
  --surface-bright:       #FFFCF2;
  --surface-base:         #FFF8F0;
  --surface-container-low:    #FBF3E6;
  --surface-container:        #F5EDE0;
  --surface-container-high:   #EFE7DB;
  --surface-container-highest:#E9E2D5;

  /* Text */
  --text-primary:   #252422;
  --text-secondary: #403D39;
  --text-muted:     #6B6560;
  --text-subtle:    #8A847D;
  --text-inverse:   #FFFCF2;

  /* Functional */
  --shadow-color:   rgba(30, 27, 20, 0.06);
  --ghost-border:   rgba(204, 197, 185, 0.15);

  /* Typography */
  --font-headline: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --text-display:   clamp(3rem, 5vw, 4.5rem);
  --text-h1:        clamp(2.25rem, 4vw, 3.5rem);
  --text-h2:        clamp(1.75rem, 3vw, 2.5rem);
  --text-h3:        clamp(1.25rem, 2vw, 1.5rem);
  --text-h4:        1.125rem;
  --text-body:      1rem;
  --text-body-lg:   1.125rem;
  --text-small:     0.875rem;
  --text-label:     0.8125rem;
  --text-eyebrow:   0.75rem;

  /* Spacing rhythm (8px base) */
  --space-xs:   0.25rem;  /*  4px */
  --space-sm:   0.5rem;   /*  8px */
  --space-md:   1rem;     /* 16px */
  --space-lg:   1.5rem;   /* 24px */
  --space-xl:   2rem;     /* 32px */
  --space-2xl:  3rem;     /* 48px */
  --space-3xl:  4rem;     /* 64px */
  --space-4xl:  6rem;     /* 96px */
  --space-5xl:  8rem;     /* 128px */
  --space-section: clamp(5rem, 8vw, 8rem);

  /* Layout */
  --container-max: 76rem;   /* 1216px */
  --container-narrow: 48rem; /* 768px */
  --container-px: clamp(1.25rem, 4vw, 3rem);

  /* Radii */
  --radius-sm:  0.25rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;
}

/* ------------------------------------------------------------------ */
/*  Reset                                                              */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-bright);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
}

::selection {
  background-color: rgba(235, 94, 40, 0.15);
  color: var(--text-primary);
}

/* ------------------------------------------------------------------ */
/*  Typography                                                         */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: 700; }

p {
  max-width: 65ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ------------------------------------------------------------------ */
/*  Layout Utilities                                                   */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ------------------------------------------------------------------ */
/*  Smooth scroll offset for sticky header                             */
/* ------------------------------------------------------------------ */
:target {
  scroll-margin-top: 6rem;
}

/* ------------------------------------------------------------------ */
/*  Focus styles                                                       */
/* ------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------ */
/*  Material Symbols config                                            */
/* ------------------------------------------------------------------ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
