@import url("./fonts/fonts.css");

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --paper: #f7f6f3;
  --ink: #1a1a1a;
  --line: #e3e1dc;
  --text-2: #3d3b37;
  --muted: #5c5a55;
  --footer-muted: #a9a6a0;
  --input-border: #cfccc6;
  --error: #a1352b;

  /* accent: amber */
  --accent: #d9962b;
  --accent-hover: #c98822;
  --accent-ink: #8a5a10;
  --on-accent: #1a1a1a;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: 96px;      /* side margin */
  --section: 160px; /* vertical rhythm between sections */
  --radius: 6px;
  --measure: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--ink); }
a:hover { color: var(--accent-ink); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 0; color: var(--paper); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── layout ─────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.page { max-width: 1440px; margin: 0 auto; background: var(--paper); }

.section { padding-top: var(--section); }
.section--tight { padding-top: 120px; }

.grid-4-8 {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
}
.grid-8-4 {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 64px;
}
.grid-2-7-3 {
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: 64px;
}
.grid-3-7-2 {
  display: grid;
  grid-template-columns: 3fr 7fr 2fr;
  gap: 64px;
}
.grid-7-1-4 {
  display: grid;
  grid-template-columns: 7fr 1fr 4fr;
  gap: 0;
}

/* ── type helpers ───────────────────────────────────────────────────── */
.kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--rule { border-top: 2px solid var(--accent); padding-top: 14px; }

.h1-hero { font-size: 78px; line-height: 1.02; letter-spacing: -0.015em; }
.h1-page { font-size: 56px; line-height: 1.05; letter-spacing: -0.015em; }
.h2 { font-size: 44px; line-height: 1.1; }
.h2-sm { font-size: 36px; line-height: 1.1; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.body-2 { color: var(--text-2); }
.small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.measure { max-width: var(--measure); }
.measure-sm { max-width: 640px; }

/* ── brand mark ─────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { display: flex; gap: 4px; align-items: flex-end; height: 20px; flex: none; }
.brand__mark i { width: 5px; border-radius: 2px; display: block; }
.brand__mark i:nth-child(1) { height: 18px; background: #2f6fdd; transform: rotate(-18deg); }
.brand__mark i:nth-child(2) { height: 20px; background: #d9962b; }
.brand__mark i:nth-child(3) { height: 16px; background: #3a9a5b; transform: rotate(18deg); }
.brand__name { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }

/* ── buttons & links ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  padding: 16px 26px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--nav { padding: 12px 20px; }

.link-underline {
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
}

/* ── nav ────────────────────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--paper);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav__links a { text-decoration: none; }
.nav__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--accent);
}
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  margin: -12px;
  cursor: pointer;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

.breadcrumb {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
  padding-bottom: 14px;
  display: none;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 460px;
  padding-bottom: 8px;
}
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.figure {
  margin: 0 var(--pad);
  border: 1px solid var(--line);
  background: #efede9;
  overflow: hidden;
  line-height: 0;
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--hero { max-width: calc(1440px - 2 * var(--pad)); margin-left: auto; margin-right: auto; aspect-ratio: 1248 / 560; }

/* ── steps ──────────────────────────────────────────────────────────── */
.steps { border-top: 1px solid var(--line); max-width: var(--measure); }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.step__n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent-ink); }
.step__t { font-size: 20px; font-weight: 500; margin-bottom: 8px; }

/* ── price band ─────────────────────────────────────────────────────── */
.band {
  margin-top: var(--section);
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.price { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.01em; }
.price mark { background: var(--line); color: inherit; padding: 0 8px; border-radius: 4px; }
.price small { font-size: 32px; color: var(--text-2); }

/* ── cities ─────────────────────────────────────────────────────────── */
.cities { font-family: var(--serif); font-size: 132px; line-height: 0.95; letter-spacing: -0.025em; }
.cities > div + div { padding-left: 160px; }
.cities em { color: var(--accent-ink); font-style: italic; }

/* ── portraits ──────────────────────────────────────────────────────── */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.person { display: flex; flex-direction: column; gap: 14px; }
.person--offset { margin-top: 56px; }
.person__img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: #efede9;
  overflow: hidden;
  line-height: 0;
}
.person__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__name { font-size: 18px; font-weight: 500; }
.person__role { font-size: 15px; color: var(--muted); }

/* ── serif running text ─────────────────────────────────────────────── */
.prose-serif {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  max-width: 760px;
}
.prose-serif p + p { margin-top: 28px; }

/* ── faq ────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); max-width: var(--measure); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  all: unset;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  box-sizing: border-box;
}
.faq__q:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq__sign {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--accent-ink);
  flex: none;
}
.faq__a { padding: 0 64px 24px 0; color: var(--text-2); }
.faq__a[hidden] { display: none; }

/* ── definition rows (voor bedrijven) ───────────────────────────────── */
.defs { border-top: 1px solid var(--line); max-width: var(--measure); }
.def {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.def__t { font-size: 17px; font-weight: 500; }
.def p { color: var(--text-2); }

/* ── numbered aside (contact) ───────────────────────────────────────── */
.aside-col { display: flex; flex-direction: column; gap: 40px; padding-top: 24px; }
.numbered {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}
.numbered b {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  color: var(--accent-ink);
  font-weight: 400;
}

/* ── contact details table ──────────────────────────────────────────── */
.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  font-size: 16px;
  line-height: 1.5;
}
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.details a { text-decoration: none; }
.details--ruled { border-top: 1px solid var(--line); padding-top: 24px; font-size: 15px; gap: 10px 20px; }

/* ── forms ──────────────────────────────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; max-width: 640px; }
.form--pair { gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.field--full { grid-column: 1 / -1; }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.field__err { font-size: 14px; font-weight: 400; color: var(--error); }
.field__err[hidden] { display: none; }
.field-pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  width: 100%;
}
textarea { resize: vertical; line-height: 1.55; }
select { appearance: auto; }

input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent);
}
.is-invalid { border-color: var(--error) !important; }

.filedrop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
  border: 1px dashed #b9b6af;
  border-radius: var(--radius);
  font-weight: 400;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
}
.filedrop:hover, .filedrop.is-over { border-color: var(--ink); }
.filedrop__cta {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
  flex: none;
}
.filedrop input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.filelist { font-size: 14px; color: var(--muted); line-height: 1.6; }
.filelist[hidden] { display: none; }

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}

.form__error-summary {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--error);
  margin-top: -16px;
}
.form__error-summary[hidden] { display: none; }

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* success state */
.sent {
  border-top: 2px solid var(--accent);
  padding-top: 32px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sent[hidden] { display: none; }
.sent__h { font-family: var(--serif); font-size: 40px; line-height: 1.1; }
.sent p { color: var(--text-2); }
.sent .btn { align-self: flex-start; margin-top: 8px; }

/* ── footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.footer--slim { padding-top: 40px; padding-bottom: 40px; align-items: center; font-size: 14px; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer__brand .brand__name { font-size: 24px; }
.footer__meta { font-size: 14px; color: var(--footer-muted); line-height: 1.6; }
.footer__links { display: flex; gap: 32px; font-size: 14px; flex-wrap: wrap; }
.footer a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--muted);
}
.footer a:hover { color: var(--accent); }
.footer :focus-visible { outline-color: var(--paper); }

/* ── mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --pad: 20px;
    --section: 88px;
  }

  body { font-size: 16px; }

  .h1-hero { font-size: 42px; line-height: 1.05; }
  .h1-page { font-size: 38px; }
  .h2 { font-size: 34px; }
  .h2-sm { font-size: 30px; }
  .lead { font-size: 17px; }
  .kicker { font-size: 12px; }
  .kicker--rule { padding-top: 12px; }

  .grid-4-8, .grid-8-4, .grid-2-7-3, .grid-3-7-2, .grid-7-1-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grid-2-7-3 > :last-child:empty,
  .grid-3-7-2 > :last-child:empty,
  .grid-7-1-4 > :nth-child(2):empty { display: none; }

  .nav__inner { padding-top: 18px; padding-bottom: 18px; }
  .brand__name { font-size: 22px; }
  .brand__mark { gap: 3px; height: 16px; }
  .brand__mark i { width: 4px; }
  .brand__mark i:nth-child(1) { height: 14px; }
  .brand__mark i:nth-child(2) { height: 16px; }
  .brand__mark i:nth-child(3) { height: 13px; }

  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    font-size: 17px;
    z-index: 20;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; min-height: 44px; display: flex; align-items: center; }
  .nav__links .btn { margin-top: 12px; min-height: 52px; justify-content: center; }

  .breadcrumb { display: block; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 32px;
    gap: 24px;
  }
  .hero__aside { gap: 24px; max-width: none; padding-bottom: 0; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__actions .btn { width: 100%; min-height: 52px; }
  .hero__actions .link-underline { padding: 12px 0; align-self: flex-start; }

  /* photo runs to the right edge on mobile */
  .figure--hero {
    margin: 0 0 0 var(--pad);
    border-right: 0;
    aspect-ratio: 350 / 300;
    max-width: none;
  }

  .step { grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; }
  .step__n { font-size: 32px; }
  .step__t { font-size: 18px; margin-bottom: 6px; }

  .band { padding-top: 44px; padding-bottom: 44px; }
  .price { font-size: 44px; line-height: 1.1; }
  .price mark { padding: 0 6px; }
  .price small { font-size: 22px; }

  .cities { font-size: 60px; }
  .cities > div + div { padding-left: 48px; }

  .people { gap: 16px; }
  .person--offset { margin-top: 28px; }
  .person__name { font-size: 17px; }

  .prose-serif { font-size: 23px; }
  .prose-serif p + p { margin-top: 18px; }

  .faq__q { font-size: 16px; padding: 18px 0; gap: 16px; min-height: 44px; }
  .faq__sign { font-size: 26px; }
  .faq__a { padding: 0 0 20px; }

  .def { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .def__t { font-size: 16px; }

  .aside-col { padding-top: 0; gap: 32px; }

  .form, .form--pair { grid-template-columns: 1fr; gap: 22px; }
  .field-pair { gap: 16px; }
  input[type="text"], input[type="email"], input[type="tel"], select { min-height: 48px; }
  .check input { width: 22px; height: 22px; margin-top: 1px; }
  .form__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .form__actions .btn { width: 100%; min-height: 52px; }
  .form__actions .small { text-align: center; }
  .filedrop { min-height: 52px; }

  .sent__h { font-size: 30px; }
  .sent .btn { align-self: stretch; min-height: 52px; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 24px;
    font-size: 15px;
  }
  .footer__links { flex-direction: column; gap: 14px; font-size: 15px; }
  .footer__meta { font-size: 13px; }
}

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