/* ============================================================
   Garage Rasschaert — Wetteren — homepage preview
   Palette: warm paper / graphite ink / steel / copper accent
   Type: Gambetta (display serif) + Switzer (text) — self-hosted
   No photos recovered (dead domain) → typographic / color-field hero.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/gambetta-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/switzer-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f3ef;
  --paper-2: #edeae4;
  --surface: #faf9f6;
  --ink: #1b1d21;
  --ink-soft: rgba(27, 29, 33, 0.66);
  --steel: #545a63;
  --dark: #17181b;
  --dark-2: #202226;
  --copper: #bd6a3a;        /* decorative accent (glow, large marks) */
  --copper-deep: #9c5228;   /* button bg / band — 5.75:1 on white */
  --copper-lite: #cd7c4d;   /* on-dark accent text — 5.57:1 on graphite */
  --copper-ink: #a5541f;    /* copper text/links on light — 4.87:1 */
  --copper-soft: rgba(189, 106, 58, 0.35);
  --line: rgba(27, 29, 33, 0.13);
  --line-dark: rgba(245, 243, 239, 0.13);
  --cream: #f5f3ef;
  --cream-soft: #cfcdc7;

  --serif: 'Gambetta', 'Georgia', 'Times New Roman', serif;
  --sans: 'Switzer', -apple-system, 'Helvetica Neue', sans-serif;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.7em; border-radius: 8px;
  min-height: 48px; /* touch target */
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.btn--primary { background: var(--copper-deep); color: #fff; }
.btn--primary:hover { background: #834219; transform: translateY(-1px); }
.btn--ghost {
  color: var(--cream);
  border: 1px solid rgba(245, 243, 239, 0.45);
  background: rgba(245, 243, 239, 0.05);
}
.btn--ghost:hover { background: rgba(245, 243, 239, 0.12); border-color: rgba(245, 243, 239, 0.8); }
.btn--onband { background: var(--cream); color: var(--ink); }
.btn--onband:hover { background: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--small { font-size: 0.9rem; padding: 0.55em 1.15em; min-height: 44px; }
.btn-num { font-variant-numeric: tabular-nums; }

.text-link {
  position: relative;
  color: var(--copper-ink); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--copper-soft);
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--copper-ink); }
.text-link--light { color: var(--copper-lite); border-bottom-color: rgba(205, 124, 77, 0.4); }
.text-link--light:hover { border-color: var(--copper-lite); }
/* Expand tap target to >=44px without shifting the visible underline */
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%); height: 44px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.topbar.scrolled {
  background: rgba(23, 24, 27, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  color: var(--cream); text-decoration: none; letter-spacing: 0.01em;
}
.brand-sub { color: var(--copper-lite); font-family: var(--sans); font-weight: 600; font-size: 0.72em; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.5em; }
@media (max-width: 560px) { .brand-sub { display: none; } }

/* ---------- Hero (dark, typographic) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
  color: var(--cream);
}
/* brushed-steel diagonal + copper glow, all CSS (no image) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(189, 106, 58, 0.22) 0%, rgba(189, 106, 58, 0) 55%),
    linear-gradient(115deg, #202226 0%, #17181b 46%, #131417 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(115deg, rgba(245,243,239,0.028) 0 2px, rgba(245,243,239,0) 2px 7px);
  mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero-mark {
  position: absolute; z-index: -1;
  right: -0.06em; bottom: -0.16em;
  font-family: var(--serif); font-weight: 700; line-height: 0.8;
  font-size: clamp(16rem, 46vw, 40rem);
  color: rgba(245, 243, 239, 0.035);
  letter-spacing: -0.03em;
  pointer-events: none; user-select: none;
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: 8rem var(--pad) clamp(3.5rem, 9vh, 6rem);
}
.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0.5rem 0 1.1rem;
  max-width: 14ch;
}
.lede {
  max-width: 40ch;
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  color: var(--cream-soft);
  margin-bottom: 1.9rem;
}
.overline {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--copper-ink);
}
.overline--ondark { color: var(--copper-lite); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Trust lockup ---------- */
.trust { padding: clamp(2.4rem, 5vw, 3.6rem) var(--pad); }
.trust-lockup {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 44px -32px rgba(27, 29, 33, 0.5);
  overflow: hidden;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.35rem;
  padding: 1.8rem 1.2rem;
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-stat {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  line-height: 1.05; color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-label {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.03em; color: var(--ink-soft);
}
@media (max-width: 640px) {
  .trust-lockup { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--line); }
  .trust-item { padding: 1.35rem 1.2rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section-head h2 { margin: 0.5rem 0 0.9rem; }
.section-intro { max-width: 42ch; color: var(--ink-soft); }

/* ---------- Diensten (services) ---------- */
.diensten-grid {
  max-width: var(--wrap); margin: 2.6rem auto 0;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
@media (max-width: 860px) { .diensten-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .diensten-grid { grid-template-columns: 1fr; } }
.dienst {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.7rem 1.7rem 1.8rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.dienst:hover {
  border-color: var(--copper-soft);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -30px rgba(27, 29, 33, 0.45);
}
.dienst-num {
  font-family: var(--serif); font-size: 0.95rem; font-weight: 500;
  color: var(--copper-ink); letter-spacing: 0.04em;
}
.dienst h3 {
  font-size: 1.4rem; font-weight: 500; margin: 0.55rem 0 0.55rem;
}
.dienst p { color: var(--ink-soft); font-size: 0.98rem; }
.dienst--feature {
  background: linear-gradient(150deg, #202226 0%, #17181b 100%);
  border-color: transparent;
  color: var(--cream);
}
.dienst--feature .dienst-num { color: var(--copper-lite); }
.dienst--feature h3 { color: var(--cream); }
.dienst--feature p { color: var(--cream-soft); }
.dienst--feature:hover { border-color: rgba(205,124,77,0.4); }

/* ---------- Accent band (copper — second visual moment) ---------- */
/* white / cream on copper-deep #9c5228 = 5.75 / 5.19 → AA */
.band {
  position: relative;
  background: linear-gradient(120deg, var(--copper-deep) 0%, #8a4620 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.band-mark {
  position: absolute; z-index: 0;
  right: -0.04em; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(13rem, 42vw, 30rem);
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none; user-select: none;
}
.band-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad);
  text-align: center;
}
.overline--band { color: rgba(255, 255, 255, 0.92); }
.band-title { color: #fff; max-width: 16ch; margin: 0.6rem auto 0; }
.band-lede {
  max-width: 40ch; margin: 1.1rem auto 0;
  font-size: clamp(1.125rem, 2.3vw, 1.28rem);
  color: rgba(255, 255, 255, 0.94);
}
.band .btn { margin-top: 1.9rem; }

/* ---------- Praktisch ---------- */
.prak-grid {
  max-width: var(--wrap); margin: 2.4rem auto 0;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 860px) { .prak-grid { grid-template-columns: 1fr; } }
.prak-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.9rem 1.9rem;
}
.prak-card h3 {
  font-size: 1rem; font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--copper-ink);
  margin-bottom: 0.9rem;
}
.prak-card p { color: var(--ink-soft); }
.prak-card .big { color: var(--ink); font-size: 1.08rem; font-weight: 500; }
.prak-card address { font-style: normal; }
.prak-card .text-link { display: inline-block; margin-top: 0.85rem; }
.prak-card .stack > * + * { margin-top: 0.55rem; }

/* ---------- Owner-directed note ---------- */
.owner {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.owner-inner {
  max-width: 640px; margin: 0 auto;
  padding: 1.3rem var(--pad) 1.5rem;
  text-align: center;
  font-size: 0.85rem; line-height: 1.6;
  color: var(--ink-soft);
}
.owner-inner p { margin: 0; }
.owner-link {
  display: inline-block; margin-top: 0.5rem;
  color: var(--copper-ink); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--copper-soft);
  transition: border-color 0.2s ease;
}
.owner-link:hover { border-color: var(--copper-ink); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(245, 243, 239, 0.72); }
.footer .wrap {
  padding: 3.5rem var(--pad) 2.5rem;
  display: grid; gap: 1.4rem;
  justify-items: start;
  font-size: 0.95rem;
}
.footer-name {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  color: var(--cream); margin-bottom: 0.4rem;
}
.footer-name .brand-sub { color: var(--copper-lite); }
.footer p { color: rgba(245, 243, 239, 0.72); }
.footer-note { font-size: 0.84rem; color: rgba(245, 243, 239, 0.55); max-width: 52ch; }
.footer-reg { font-size: 0.8rem; color: rgba(245, 243, 239, 0.42); }
.watermark {
  border-top: 1px solid var(--line-dark);
  text-align: center;
  padding: 1.1rem var(--pad);
  font-size: 0.82rem; letter-spacing: 0.05em;
}
.watermark a { color: rgba(245, 243, 239, 0.55); text-decoration: none; }
.watermark a:hover { color: var(--copper-lite); }

.preview-badge {
  position: fixed; right: 0.9rem; bottom: 0.9rem; z-index: 40;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.9);
  background: rgba(23, 24, 27, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 243, 239, 0.16);
  border-radius: 999px;
  padding: 0.4em 0.95em;
  text-decoration: none;
}
.preview-badge:hover { background: rgba(23, 24, 27, 0.92); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
.diensten-grid .dienst:nth-child(2) { transition-delay: 0.06s; }
.diensten-grid .dienst:nth-child(3) { transition-delay: 0.12s; }
.diensten-grid .dienst:nth-child(4) { transition-delay: 0.06s; }
.diensten-grid .dienst:nth-child(5) { transition-delay: 0.12s; }
.diensten-grid .dienst:nth-child(6) { transition-delay: 0.18s; }
.prak-grid .prak-card:nth-child(2) { transition-delay: 0.1s; }
.prak-grid .prak-card:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], [data-reveal] { opacity: 1; transform: none; transition: none; }
}
