/* GO-Finance — Faro Digital
   Colour tokens: --burgundy and --logo-grey are PIXEL-SAMPLED from the original logo PNG
   (#8F181B = 1,307 px, #77787B = 1,129 px).
   Contrast notes (WCAG AA):
   - burgundy #8F181B on ivory #F7F5F1 ≈ 8.4:1, on white 9.07:1 → fine for small text.
   - white on burgundy ≈ 9.07:1; white on burgundy-deep ≈ 13:1.
   - muted #65615E on ivory ≈ 5.7:1.
   - logo-grey #77787B is 4.41:1 on white, i.e. BELOW AA for small text. It is used only for
     decoration/graphics (never for body text). The logo itself is shown unchanged.
   - Footer text on --ivory-deep uses --muted/--charcoal (>= 5:1). */

:root {
  /* colour */
  --ivory: #F7F5F1;
  --ivory-deep: #EFEBE4;
  --white: #FFFFFF;
  --burgundy: #8F181B;
  --burgundy-deep: #64171C;
  --charcoal: #252525;
  --muted: #65615E;
  --logo-grey: #77787B;
  --border: #E3DDD7;
  --border-strong: #CFC7BF;

  /* type */
  --font-head: "Lora", Georgia, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", sans-serif;
  --fs-sm: 0.9375rem;
  --fs-base: 1.125rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);
  --fs-eyebrow: 0.8125rem;

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --gutter: 1.25rem;

  /* shape */
  --radius: 3px;
  --shadow: 0 1px 2px rgba(37, 37, 37, 0.06);
  --maxw: 1200px;
  --header-h: 76px;
  --bar-h: 65px; /* mobile bottom bar: 8 + 48 + 8 padding + 1 border (safe-area is added on top) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); /* the bar never covers content or footer links */
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--burgundy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .hero__panel :focus-visible { outline-color: var(--white); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--charcoal); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0 0 var(--s-3); max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); border-block: 1px solid var(--border); }
.eyebrow { display: block; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); margin-bottom: var(--s-3); }
.lead { font-size: var(--fs-lead); color: var(--charcoal); }
.h2-sm { font-size: 1.75rem; margin-bottom: var(--s-4); }

.skip-link { position: absolute; left: var(--s-3); top: -100px; background: var(--burgundy); color: var(--white); padding: 0.75rem 1rem; z-index: 200; border-radius: var(--radius); }
.skip-link:focus { top: var(--s-3); color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.5rem;
  font: 600 1.0625rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 1px solid var(--burgundy); border-radius: var(--radius);
  background: var(--burgundy); color: var(--white); cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--burgundy); }
.btn--ghost:hover { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); }
.btn--light { background: var(--white); color: var(--burgundy); border-color: var(--white); }
.btn--light:hover { background: var(--ivory-deep); color: var(--burgundy-deep); border-color: var(--ivory-deep); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: var(--white); color: var(--burgundy); border-color: var(--white); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- header ---------- */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--charcoal); min-height: 44px; }
.brand:hover { color: var(--charcoal); }
/* the PNG is shown unchanged at 84px (native 250px); transparent padding is offset with negative margins, not cropped */
.brand img { width: 84px; height: 84px; margin-block: -17px; margin-inline: -8px 0; }
.brand__name { font-family: var(--font-head); font-size: 1.375rem; font-weight: 500; letter-spacing: 0.01em; }
.nav-toggle { display: none; align-items: center; gap: var(--s-2); min-height: 44px; min-width: 44px; padding: 0 0.9rem; background: transparent; color: var(--charcoal); border: 1px solid var(--border-strong); border-radius: var(--radius); font: 600 1rem var(--font-body); cursor: pointer; }
.nav-toggle__bars { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.site-nav { background: var(--ivory); }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a { display: flex; align-items: center; min-height: 52px; color: var(--charcoal); text-decoration: none; font-weight: 600; border-top: 1px solid var(--border); }
.site-nav a:hover { color: var(--burgundy); }
.site-nav a[aria-current="page"] { color: var(--burgundy); }
.header-cta { display: none; }
/* main.js adds .js-menu to <html>; without it the menu simply stays open and stacked */
.js-menu .nav-toggle { display: inline-flex; }
.js-menu .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--border); padding: 0 var(--gutter) var(--s-3); }
.js-menu .site-nav.is-open { display: block; }
.site-header__inner { flex-wrap: wrap; }
.site-nav { width: 100%; }

/* ---------- mobile bottom bar (single sticky element on mobile) ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--border-strong); }
.mobile-bar .btn { min-height: 48px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 6vw, 6rem) clamp(2.5rem, 1rem + 5vw, 5rem); border-bottom: 1px solid var(--border-strong); }
.hero__grid { display: grid; gap: var(--s-5); align-items: start; }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero__lead { margin-top: var(--s-4); }
.hero__actions { margin-top: var(--s-4); gap: var(--s-2) var(--s-4); }
.hero__panel { background: var(--burgundy); color: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--radius); }
.hero__panel-label { margin: 0 0 var(--s-1); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: .9; }
.hero__panel-name { margin: 0; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; }
.hero__panel-text { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.45; }
.hero__facts { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.35); font-size: var(--fs-sm); line-height: 1.4; }
.hero__facts li + li { margin-top: 2px; }
.hero__panel-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: var(--s-1); color: var(--white); font-weight: 600; }
.hero__panel-link:hover { color: var(--white); }

/* ---------- positioning strip ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--border); }
.strip__list { display: grid; }
.strip__item { padding-block: var(--s-4); border-top: 1px solid var(--border); }
.strip__item:first-child { border-top: 0; }
.strip__item strong { display: block; font-family: var(--font-head); font-size: 1.375rem; font-weight: 500; color: var(--charcoal); }
.strip__item span { display: block; margin-top: var(--s-1); color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }

/* ---------- section headings ---------- */
.section__head { margin-bottom: var(--s-6); max-width: 34ch; }
.section__head h2 { text-wrap: balance; }

/* ---------- diensten ---------- */
.service { display: grid; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid var(--border-strong); }
.service:last-of-type { border-bottom: 1px solid var(--border-strong); }
.service__num { font-family: var(--font-head); color: var(--burgundy); font-size: 1.125rem; }
.service p:last-child { margin-bottom: 0; }
.services__more { margin-top: var(--s-5); }

/* ---------- approach / two-column editorial ---------- */
.split { display: grid; gap: var(--s-6); align-items: center; }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.figure--landscape img { aspect-ratio: 8 / 5; object-fit: cover; object-position: 50% 50%; }
.split h2 { text-wrap: balance; margin-bottom: var(--s-4); }

/* ---------- CTA band ---------- */
.band { background: var(--burgundy); color: var(--white); padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.band__inner { display: grid; gap: var(--s-4); }
.band h2 { color: var(--white); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); text-wrap: balance; }
.band__line { margin: var(--s-2) 0 0; max-width: 40ch; color: var(--white); }

/* ---------- inner pages ---------- */
.page-intro { padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--border-strong); }
.page-intro h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); max-width: 20ch; text-wrap: balance; }
.page-intro .lead { margin-top: var(--s-4); }
.page-intro__grid { display: grid; gap: var(--s-5); align-items: center; }
/* below 960px the photo follows the text, full width, capped height */
.intro-figure img { width: 100%; max-height: 280px; object-fit: cover; object-position: 50% 30%; }
.bio__block { display: grid; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid var(--border-strong); }
.bio__block:first-child { border-top: 0; padding-top: 0; }
.bio__block h2 { font-size: 1.5rem; }
.bio__block p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.quick { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.contact-grid { display: grid; gap: var(--s-6); }
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; font: 400 1.0625rem/1.4 var(--font-body); color: var(--charcoal);
  background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 1px; border-color: var(--burgundy); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--burgundy); }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 1rem; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--burgundy); }
/* spam honeypot: off-screen, not display:none */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.aside { border-top: 1px solid var(--border-strong); padding-top: var(--s-5); }
.aside h2 { margin-bottom: var(--s-4); }
.aside address { font-size: 1.0625rem; line-height: 1.7; }
.aside dl { margin: var(--s-4) 0; }
.aside dt { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.aside dd { margin: 2px 0 var(--s-3); }
.aside a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ivory-deep); border-top: 1px solid var(--border-strong); padding-block: var(--s-7) var(--s-5); color: var(--charcoal); }
.footer__grid { display: grid; gap: var(--s-5); }
.footer__brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--charcoal); font-family: var(--font-head); font-size: 1.375rem; }
.footer__brand img { width: 72px; height: 72px; margin-block: -14px; margin-inline: -6px 0; }
.footer__title { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 var(--s-2); }
.site-footer a { color: var(--charcoal); display: inline-block; padding-block: 6px; }
.site-footer a:hover { color: var(--burgundy); }
.site-footer .footer__brand { display: inline-flex; padding-block: 0; }
.site-footer address { line-height: 1.7; }
.site-footer p { max-width: 36ch; }
.footer__legal { align-items: center; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--border-strong); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.footer__legal a { color: var(--muted); text-decoration: underline; padding-block: 0; min-height: 24px; }
.footer__legal p { margin: 0; max-width: none; }

/* 44px touch targets for stand-alone links */
.site-footer li a, .site-footer address a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.site-footer .footer__legal a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- reveal ----------
   Content is ALWAYS visible by default. main.js adds .reveal-ready to <html> only once it
   knows it can run the effect, and only a small transform nudge is used (never opacity:0). */
.reveal-ready .reveal { transition: transform .6s ease; }
.reveal-ready .reveal:not(.is-visible) { transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .reveal, .reveal-ready .reveal:not(.is-visible) { transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- ≥640 ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .hero__grid { gap: var(--s-6); }
  .hero__panel { padding: var(--s-4) var(--s-5); }
  .hero__panel-link { min-height: 40px; }
  .hero__panel-text, .hero__facts { font-size: 1rem; }
  .strip__list { grid-template-columns: repeat(3, 1fr); }
  .strip__item { border-top: 0; padding-inline: var(--s-4); border-left: 1px solid var(--border); }
  .strip__item:first-child { border-left: 0; padding-left: 0; }
  .quick { grid-template-columns: repeat(2, minmax(0, 280px)); }
  .service { grid-template-columns: 56px 1fr; column-gap: var(--s-4); }
  .service__num { grid-row: span 2; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
}

/* ---------- ≥960 ---------- */
@media (min-width: 960px) {
  :root { --header-h: 92px; --gutter: 2.5rem; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .site-header { position: sticky; top: 0; }
  .brand img { width: 96px; height: 96px; margin-block: -20px; }
  .brand__name { font-size: 1.5rem; }
  .js-menu .nav-toggle { display: none; }
  .site-header__inner { flex-wrap: nowrap; }
  .site-nav, .js-menu .site-nav, .js-menu .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: transparent; width: auto; margin-left: auto; }
  .site-nav ul { flex-direction: row; gap: var(--s-5); }
  .site-nav a { border-top: 0; min-height: 44px; }
  .header-cta { display: inline-flex; }
  .hero__grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-7); }
  /* top of the panel lines up with the top of the H1 (eyebrow height + its margin) */
  .hero__panel { margin-top: calc(var(--fs-eyebrow) * 1.65 + var(--s-3)); padding: var(--s-5); }
  .hero__panel-name { font-size: 1.875rem; }
  .hero__panel-text { margin-top: var(--s-2); }
  .hero__facts { margin-top: var(--s-3); padding-top: var(--s-3); }
  .hero__panel-link { margin-top: var(--s-2); }
  .service { grid-template-columns: 72px 0.9fr 1.4fr; align-items: baseline; padding-block: var(--s-6); }
  .service__num { grid-row: auto; }
  .service p { margin: 0; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .page-intro__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .intro-figure img { max-height: none; aspect-ratio: 8 / 5; object-position: 50% 50%; }
  .bio__block { grid-template-columns: 1fr 2fr; gap: var(--s-6); padding-block: var(--s-6); }
    .contact-grid { grid-template-columns: 1.5fr 1fr; gap: var(--s-7); align-items: start; }
  .aside { border-top: 0; padding-top: 0; border-left: 1px solid var(--border-strong); padding-left: var(--s-6); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s-7); }
  .band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; }
}

/* ---------- ≥1200 ---------- */
@media (min-width: 1200px) {
  :root { --gutter: 3rem; }
}
