/* =========================================================================
   David's Speed Solutions — brochure site styles
   Static, zero JavaScript, no third-party requests. Self-hosted fonts only.
   Palette locked from the MCART logo spec (CMYK -> sRGB).
   ========================================================================= */

@import url('fonts.css');

:root {
  /* --- Locked brand palette (do not add colours outside this family) --- */
  --cream:      #F0E8CC;   /* page + card background            (C6 M9 Y20 K0)   */
  --cream-card: #F7F1DC;   /* raised card — a hair lighter than page             */
  --silver:     #8F8F8A;   /* muted accents, dividers           (C50 M40 Y40 K0) */
  --rust:       #7A2E1E;   /* accent — buttons, links           (C35 M100 Y100 K50) */
  --rust-dark:  #5E2115;   /* accent hover/active                                */
  --ink:        #3D1416;   /* headings + body text              (C50 M100 Y80 K70) */
  --ink-soft:   #5A2A2A;   /* softened ink for secondary text                    */

  /* Display face: Saira (squared athletic, OFL) echoes the Octin College logo
     wordmark. Used for every heading, the brand name and UI labels. Bitter/Georgia
     kept only as graceful fallbacks. */
  --font-head:   'Saira', 'Bitter', Georgia, sans-serif;
  /* Accent face: Jost (Futura-style, OFL) echoes the logo's Futura accents —
     used for the small uppercase eyebrows + the placeholder badge. */
  --font-accent: 'Jost', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1080px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow: 0 2px 10px rgba(61, 20, 22, 0.10);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.4rem); font-weight: 600; }
p { margin: 0 0 1rem; }

/* keyboard focus visibility (accessibility) */
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 3px; }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* ----------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2rem); }
.section { padding-block: clamp(2.75rem, 8vw, 5rem); }
.section--alt { background: var(--cream-card); }
.section__intro { max-width: 46ch; margin-bottom: clamp(1.5rem, 5vw, 2.5rem); }
.eyebrow {
  font-family: var(--font-accent); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  font-size: .78rem; color: var(--rust); margin: 0 0 .5rem;
}

/* checkered-flag divider (racing heritage) — pure CSS, no image */
.checker {
  height: 16px;
  background-color: var(--cream);
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.checker--on-alt { background-color: var(--cream-card); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(240, 232, 204, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(143, 143, 138, 0.4);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .55rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__name {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: 1rem; letter-spacing: .02em; line-height: 1.05;
}
.brand__name span { display: block; font-size: .72rem; font-weight: 600; color: var(--rust); letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; gap: clamp(.75rem, 3vw, 1.75rem); flex-wrap: wrap; }
.main-nav a {
  font-weight: 600; color: var(--ink); text-decoration: none; font-size: .95rem;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--rust); border-bottom-color: var(--rust); }
.main-nav a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--rust); }

/* ------------------------------------------------------------------- hero */
.hero { text-align: center; padding-block: clamp(2.5rem, 9vw, 5.5rem); }
.hero__logo { width: min(340px, 74vw); margin: 0 auto clamp(1.25rem, 4vw, 2rem); }
.hero h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.75rem); font-weight: 700; max-width: 18ch;
  margin-inline: auto; margin-bottom: .6rem;
}
.hero__sub { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; margin: 0 auto 1.75rem; }
.hero__sub .placeholder--inline { max-width: 100%; white-space: normal; }
.hero__cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: var(--radius); text-decoration: none;
  border: 2px solid var(--rust); transition: background-color .15s, color .15s, transform .05s;
}
.btn--primary { background: var(--rust); color: var(--cream); }
.btn--primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--rust); }
.btn--ghost:hover { background: var(--rust); color: var(--cream); }
.btn:active { transform: translateY(1px); }

/* -------------------------------------------------------------- services */
.services-grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: var(--cream); border: 1px solid rgba(143, 143, 138, 0.45);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.section--alt .service-card { background: var(--cream); }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--silver); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 1.4rem 1.4rem 1.6rem; }
.service-card__body h3 { display: flex; align-items: baseline; gap: .5rem; }

/* ----------------------------------------------------- about / feature rows */
/* Shared image + text layout, reused by Over David, Racing and Op reis.
   Mobile: image on top, text below. Desktop: two columns; --reverse flips the
   image to the right for visual rhythm between consecutive feature sections. */
.about { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 820px) {
  .about { grid-template-columns: 1.1fr 1fr; }
  .about--reverse { grid-template-columns: 1fr 1.1fr; }
  .about--reverse .about__media { order: 2; }
  .about--reverse .about__text  { order: 1; }
}
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* "concept — nog door David te bevestigen" marker: subtler than the rust
   ✎-placeholder badge; a section is drafted but David still confirms it. */
.draft-note {
  display: inline-block; font-family: var(--font-accent); font-weight: 500;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silver);
  border: 1px solid var(--silver); border-radius: 999px; padding: .15rem .6rem; margin: 0 0 1rem;
}
/* inline ⟨David: …⟩ gap inside drafted copy — a real fact only David can supply */
.cue {
  color: var(--rust); background: rgba(122, 46, 30, .08);
  border: 1px dashed rgba(122, 46, 30, .5); border-radius: 6px;
  padding: .05em .4em; font-size: .92em;
}
.cue--block { display: block; margin-top: .75rem; }

/* "Meer over …" link under a homepage teaser block */
.feature-more { margin-top: 1.35rem; margin-bottom: 0; }

/* ------------------------------------------------------ sub-page (racing / op reis) */
.page-hero { padding-block: clamp(2.25rem, 7vw, 4rem); }
.page-hero .container { max-width: 62ch; }
.page-hero h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); margin-bottom: .5rem; }
.page-hero .lead { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--ink-soft); margin-bottom: 0; }

/* rich text column on sub-pages */
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.1rem; }

/* photo gallery — responsive grid, uniform 4:3 crops */
.gallery { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--silver);
}
.gallery--tall img { aspect-ratio: 3 / 4; }

/* --------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--cream-card); border: 1px solid rgba(143, 143, 138, 0.45);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  min-width: 0;
}
.section--alt .contact-card { background: var(--cream); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid rgba(143,143,138,.3); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  font-family: var(--font-head); font-weight: 600; color: var(--rust);
  min-width: 6.5rem; flex-shrink: 0;
}
.contact-list li > :not(.label) { min-width: 0; overflow-wrap: anywhere; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* credentials strip */
.creds { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1rem; }
.cred {
  display: flex; flex-direction: column; background: var(--cream); border: 1px solid rgba(143,143,138,.45);
  border-radius: var(--radius); padding: .7rem 1.1rem; min-width: 8.5rem;
}
.section--alt .cred { background: var(--cream-card); }
.cred .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--silver); font-weight: 700; }
.cred .v { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; }

/* ------------------------------------------------- editorial placeholders */
/* Visible on-page cues so David sees exactly what copy to write. */
.placeholder {
  border: 2px dashed var(--rust);
  background: repeating-linear-gradient(-45deg, rgba(122,46,30,.05), rgba(122,46,30,.05) 10px, rgba(122,46,30,.10) 10px, rgba(122,46,30,.10) 20px);
  border-radius: 8px; padding: .9rem 1rem; margin: 0 0 1rem; color: var(--ink-soft);
}
.placeholder::before {
  content: "✎ Tekst van David";
  display: inline-block; font-family: var(--font-accent); font-weight: 500; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--rust);
  background: var(--cream); border: 1px solid var(--rust); border-radius: 999px;
  padding: .12rem .6rem; margin-bottom: .5rem;
}
.placeholder p { margin: 0; font-style: italic; }
.placeholder--inline { display: inline-block; padding: .35rem .6rem; margin: 0; }
.placeholder--inline::before { display: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 2.5rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr; } }
.site-footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: .35rem; }
.site-footer small, .site-footer p { color: rgba(240, 232, 204, 0.82); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(240,232,204,.2);
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
  font-size: .85rem; color: rgba(240,232,204,.75);
}

/* --------------------------------------------------------- privacy page */
.legal { padding-block: clamp(2.5rem, 8vw, 4.5rem); }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.legal h2 { font-size: clamp(1.25rem, 3.5vw, 1.55rem); margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .meta { color: var(--ink-soft); font-size: .95rem; }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
