/* ==========================================================================
   Kelder Zonwering — site.css
   Single stylesheet. Direction A · Editorial Warm.
   Self-hosted Inter (no CDN). Design tokens ported from the prototype.
   ========================================================================== */

/* --- Self-hosted fonts (GDPR: no Google CDN) ------------------------------ */
@font-face { font-family:'Inter'; font-style:normal;  font-weight:400; font-display:swap; src:url('/resources/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal;  font-weight:500; font-display:swap; src:url('/resources/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal;  font-weight:600; font-display:swap; src:url('/resources/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal;  font-weight:700; font-display:swap; src:url('/resources/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:italic;  font-weight:400; font-display:swap; src:url('/resources/fonts/inter-400-italic.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:italic;  font-weight:500; font-display:swap; src:url('/resources/fonts/inter-500-italic.woff2') format('woff2'); }

/* --- Design tokens -------------------------------------------------------- */
:root {
  --paper:       #f6f1e7;
  --paper-soft:  #efe8d9;
  --ink:         #17150f;
  --ink-soft:    #3d372a;
  --mute:        #6a6358;
  --line:        rgba(23,21,15,.1);
  --line-strong: rgba(23,21,15,.2);
  --accent:      #ffc94d;
  --accent-deep: #b8892a;

  --font: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --pad-x: 40px;          /* desktop horizontal section padding */
  --radius: 4px;
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body { font-family: var(--font); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; transition: opacity .15s; }
a:hover { opacity: .7; }
button { font-family: inherit; cursor: pointer; transition: opacity .15s, transform .1s; }
button:hover { opacity: .9; }
button:active { transform: translateY(1px); }
input:focus, select:focus, textarea:focus { border-color: var(--ink) !important; }
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3, p { margin: 0; }

/* --- Layout primitives ---------------------------------------------------- */
.section { padding: 64px var(--pad-x); }
.section--tight { padding: 44px var(--pad-x); }
.section--soft { background: var(--paper-soft); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--bordered { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 44px; align-items: center; }

/* --- Typography helpers --------------------------------------------------- */
.display { font-weight: 400; letter-spacing: -.03em; line-height: 1.03; margin: 0; }
h1.display  { font-size: clamp(38px, 6.5vw, 92px); }
.display--xl { font-size: clamp(40px, 8vw, 108px); }   /* product masthead */
h2.display  { font-size: clamp(27px, 3.6vw, 46px); }
.display em { font-style: italic; color: var(--accent-deep); }
.section--dark .display em { color: var(--accent); }

.lede { font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--mute); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; opacity: .55; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow--accent { color: var(--accent-deep); font-weight: 600; opacity: 1; }
.section--dark .eyebrow--accent { color: var(--accent); }

.label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .6; }

/* spacing utilities */
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 36px; }

/* text on dark sections */
.section--dark .lede { color: rgba(246,241,231,.82); }
.section--dark .muted { color: rgba(246,241,231,.7); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 32px; border: none;
  font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--dark    { background: var(--ink); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost   { background: transparent; color: var(--ink); }
.section--dark .btn--ghost   { color: var(--paper); border: 1px solid rgba(246,241,231,.3); }
.section--dark .btn--outline { color: var(--paper); border-color: rgba(246,241,231,.3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Media / image slots (placeholder tones from the prototype) ----------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--home-hero { height: 560px; }
.media--hero      { height: 520px; }
.media--card      { height: 180px; }
.media--project   { height: 320px; }
.media--wide      { height: 480px; }
.media--contact   { height: 240px; }

/* --- Stats ---------------------------------------------------------------- */
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat__num { font-size: 34px; font-weight: 400; letter-spacing: -.02em; }
.stat__label { font-size: 12px; opacity: .6; margin-top: 2px; }
.stats--stacked { flex-direction: column; gap: 18px; }
.stats--stacked .stat { border-left: 2px solid var(--accent); padding-left: 16px; }

/* --- Numbered lists ------------------------------------------------------- */
.numbered { display: grid; gap: 0; }
.numbered__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.numbered__item:first-child { border-top: none; }
.numbered__idx { font-size: 15px; color: var(--accent-deep); font-weight: 500; }
.numbered__title { font-weight: 600; margin-bottom: 4px; }
.numbered__body { font-size: 14px; color: var(--mute); }
.section--dark .numbered__idx { color: var(--accent); }

/* --- Steps grid (4-col) --------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step__idx { color: var(--accent-deep); font-size: 13px; margin-bottom: 10px; }
.step__title { font-weight: 600; margin-bottom: 6px; }
.step__body { font-size: 14px; color: var(--mute); }

/* --- Cards ---------------------------------------------------------------- */
.card { display: block; text-decoration: none; color: inherit; }
.card-title { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-weight: 600; }
.card figcaption { margin-top: 14px; }

/* card grids */
.cards { display: grid; gap: 20px; }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

/* --- Meta rows / dividers ------------------------------------------------- */
.meta-row { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.meta-row .label { display: block; margin-bottom: 4px; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* --- Product masthead + bullets ------------------------------------------- */
.masthead { padding-bottom: 32px; }
.accent-dot { color: var(--accent-deep); }
.tagline { font-style: italic; font-size: clamp(19px, 2vw, 26px); color: var(--ink-soft); margin-top: 14px; max-width: 42ch; }
.bullets { display: grid; margin: 14px 0 0; }
.bullets__item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: start; }
.bullets__item:first-child { border-top: none; }
.bullets__idx { color: var(--accent-deep); font-size: 13px; }

/* --- Specs strip (product) ------------------------------------------------ */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.specs__val { font-size: 22px; margin-top: 6px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; padding: 18px var(--pad-x); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { width: 30px; height: 30px; border-radius: var(--radius); background: var(--accent); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.brand__name { line-height: 1.1; }
.brand__name b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.brand__name span { display: block; font-size: 9.5px; letter-spacing: 1.5px; opacity: .6; text-transform: uppercase; }

.nav__menu { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav__link { padding: 6px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; text-decoration: none; opacity: .72; }
.nav__link[aria-current="page"] { background: var(--accent); font-weight: 600; opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.nav__toggle { display: none; width: 40px; height: 40px; border: none; background: transparent; padding: 0; position: relative; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3.5px auto; transition: transform .2s, opacity .2s; }
.nav__drawer { display: none; }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero { padding: 56px var(--pad-x) 48px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.hero h1 { margin: 18px 0; }
.hero__media-wrap { position: relative; }
.hero__card {
  position: absolute; right: 20px; bottom: 20px; background: var(--ink); color: var(--paper);
  padding: 18px 22px; border-radius: var(--radius); max-width: 220px;
}
.hero__card .label { opacity: .55; }
.hero__card b { display: block; font-size: 28px; font-weight: 400; letter-spacing: -.02em; margin: 4px 0 2px; }
.hero__card small { opacity: .7; font-size: 12px; }

/* products strip header */
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.strip-head a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* brands row */
.brands { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brands .label { flex: none; }
.brands__list { display: flex; gap: 22px; flex-wrap: wrap; font-style: italic; font-size: 22px; opacity: .8; }

/* ==========================================================================
   Two-column section ratios (named, faithful to the prototype)
   ========================================================================== */
.split { display: grid; gap: 44px; align-items: center; }
.split--55-45   { grid-template-columns: 1.1fr 1fr; }
.split--40-60   { grid-template-columns: 1fr 1.3fr; }
.split--60-40   { grid-template-columns: 1.5fr 1fr; }
.split--58-42   { grid-template-columns: 1.4fr 1fr; }
.split--57-43   { grid-template-columns: 1.3fr 1fr; }
.split--55-45b  { grid-template-columns: 1.2fr 1fr; }
.split--45-55   { grid-template-columns: 1fr 1.2fr; }

/* ==========================================================================
   Product gallery mosaic
   ========================================================================== */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 150px; gap: 16px; }
.mosaic > *:first-child { grid-row: span 2; }

/* ==========================================================================
   Actie voorwaarden card
   ========================================================================== */
.terms-card { background: var(--accent); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; }
.terms-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.terms-card ul { list-style: none; margin: 0; padding: 0; }
.terms-card li { padding: 7px 0; border-top: 1px solid rgba(23,21,15,.2); font-size: 14px; }
.terms-card li:first-child { border-top: none; }

/* ==========================================================================
   Repair list (service)
   ========================================================================== */
.checklist { list-style: none; margin: 0; padding: 0; columns: 1; }
.checklist li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.checklist li:first-child { border-top: none; }
.checklist li::before { content: '· '; color: var(--accent-deep); font-weight: 700; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-card { background: var(--paper-soft); padding: 28px; border-radius: var(--radius); }
.form-card h3 { margin-bottom: 20px; }
.field { display: block; margin-bottom: 16px; }
.field > .label { display: block; margin-bottom: 6px; opacity: .6; letter-spacing: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-family: inherit; outline: none;
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; }
.alert { padding: 14px 16px; border-radius: 3px; font-size: 14px; margin-bottom: 16px; }
.alert--ok { background: #e6efe0; color: #2f5321; }
.alert--error { background: #f3e0dd; color: #7a2d22; }
.is-hidden { display: none !important; }
.g-recaptcha { margin-bottom: 16px; }
/* Spam honeypot — off-screen rather than display:none, which bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-block { border-top: 1px solid var(--line); padding: 18px 0; }
.contact-block .label { display: block; margin-bottom: 6px; }
.contact-block a, .contact-block p { font-size: 16px; text-decoration: none; margin: 0; }
.pre-line { white-space: pre-line; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--paper); padding: 60px var(--pad-x) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(246,241,231,.14); }
.footer-brand__line { font-size: 26px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 14px; }
.footer-brand__line em { font-style: italic; color: var(--accent); }
.footer-brand p { font-size: 14px; opacity: .7; max-width: 34ch; }
.footer-col h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .55; margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: 14px; text-decoration: none; opacity: .85; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 11px; opacity: .55; }

/* ==========================================================================
   Responsive — tablet (multi-column card grids)
   ========================================================================== */
@media (max-width: 1024px) {
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */
@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .section { padding: 40px var(--pad-x); }
  .section--tight { padding: 32px var(--pad-x); }
  .hero { padding: 32px var(--pad-x) 28px; }

  .hero__grid,
  .split, .split--55-45, .split--40-60, .split--60-40, .split--58-42,
  .split--57-43, .split--55-45b, .split--45-55 { grid-template-columns: 1fr; }

  .cards--5, .cards--4, .cards--3, .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .specs { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mosaic > *:first-child { grid-row: auto; }
  .mosaic .media { height: 220px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .stats { gap: 24px; }
  .field-row { grid-template-columns: 1fr; }

  .media--home-hero { height: 340px; }
  .media--hero { height: 320px; }
  .media--project { height: 240px; }
  .media--wide { height: 280px; }
  .brands__list { font-size: 18px; gap: 16px; }
}

/* ==========================================================================
   Nav → hamburger drawer at ≤1140px. The tightened 10-item bar needs ~1100px
   to sit on one line (measured with the web font loaded), so 1140 keeps a safe
   margin; below it we switch to the drawer. Layout still collapses at 768px.
   ========================================================================== */
@media (max-width: 1140px) {
  .nav__menu, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav__actions { margin-left: auto; gap: 10px; }
  .nav { gap: 12px; padding: 14px var(--pad-x); }
  .site-header.is-open .nav__drawer { display: block; }
  .nav__drawer { border-top: 1px solid var(--line); padding: 8px var(--pad-x) 16px; }
  .nav__drawer a { display: block; padding: 12px; border-radius: var(--radius); font-size: 16px; text-decoration: none; opacity: .8; }
  .nav__drawer a[aria-current="page"] { background: var(--accent); opacity: 1; font-weight: 600; }
  .nav__drawer .nav__phone-m { display: block; padding: 12px; font-weight: 600; opacity: 1; }
  /* collapsible "Producten" group (drawer only) */
  .nav__group > summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px; font-size: 16px; opacity: .8; cursor: pointer; list-style: none;
  }
  .nav__group > summary::-webkit-details-marker { display: none; }
  .nav__group > summary::after {
    content: ''; width: 7px; height: 7px; margin-right: 6px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s;
  }
  .nav__group[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  .nav__group > a { padding-left: 24px; font-size: 15px; }
  /* hamburger → X */
  .site-header.is-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-header.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
