/* Hoekstra Bouw · pakket Basis. Richting: de naam als monument. Anton en Work Sans; flessengroen op gebroken wit,
   bouwgeel als enige felle kleur: de hero, de waterpas en de knop. Eén hoek: recht. */
:root {
  --bg: #f7f7f5;
  --surface: #eae9e4;
  --ink: #0d2a1c;
  --muted: #3c4842;
  --accent: #f6e016;
  --accent-ink: #0d2a1c;
  --green: #0d2a1c;
  --green-2: #173d2b;
  --paper: #f7f7f5;

  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-text: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--surface); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
:target { scroll-margin-top: 5rem; }
p { max-width: 48ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: 0.75rem; z-index: 100; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { clip-path: none; width: auto; height: auto; }
h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; }
h3 { font-family: var(--font-text); font-weight: 600; font-size: var(--step-body); }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.4rem; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease), background-color 180ms ease, color 180ms ease; }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--green-2); }
.link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: text-underline-offset 180ms ease; }
.link:hover { text-underline-offset: 0.4em; }

/* ---------- kopbalk ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; padding-inline: var(--margin); background: var(--accent); transition: background-color 240ms ease, transform 300ms var(--ease); }
.top.is-solid { background: var(--paper); }
.top.is-hidden { transform: translateY(-100%); }
.wordmark { font-family: var(--font-display); font-size: var(--step-lead); text-transform: uppercase; letter-spacing: 0.005em; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.top__nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); margin-left: auto; }
.top__nav a { font-size: 1rem; font-weight: 600; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.top__nav a:hover { text-decoration-color: currentColor; }
.top__cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; background: var(--ink); color: var(--paper); font-size: 1rem; font-weight: 600; text-decoration: none; transition: transform 140ms var(--ease); }
.top__cta:active { transform: scale(0.96); }

/* ---------- hero: de naam als monument, Mats tussen de letters ---------- */
.hero { position: relative; min-height: 100svh; background: var(--accent); color: var(--ink); padding: calc(4rem + 9vh) var(--margin) 2.5rem; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.hero__name { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: min(22vw, 41svh); line-height: 0.82; letter-spacing: -0.01em; margin-left: -0.03em; }
.line { display: block; overflow: hidden; padding-block: 0.02em; }
.line__in { display: block; }
.hero__row { display: flex; align-items: stretch; gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.hero__row .line { flex: none; }
.hero__photo { width: auto; height: 0.86em; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 30%; align-self: center; margin-top: 0.04em; }
.hero__low { position: absolute; right: var(--margin); bottom: clamp(1.5rem, 4vh, 3rem); display: grid; gap: 1.25rem; width: min(28rem, 32vw); }
.hero__sub { font-size: var(--step-lead); line-height: 1.3; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .line__in { transform: translateY(105%); animation: rise-line 700ms var(--ease) forwards; animation-delay: calc(var(--d, 0ms) + 60ms); }
  .js .hero__photo { clip-path: inset(100% 0 0 0); animation: open-photo 900ms var(--ease) 300ms forwards; }
  .js .hero__low { opacity: 0; transform: translateY(16px); animation: fade-up 600ms var(--ease) 450ms forwards; }
}
@keyframes rise-line { to { transform: none; } }
@keyframes open-photo { to { clip-path: inset(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- agenda: de waterpas met de eerste vrije week ---------- */
.agenda { background: var(--green); color: var(--paper); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.agenda__head { grid-column: 1 / 6; }
.agenda__head h2 { font-size: var(--step-head); }
.agenda__head p { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.agenda__jobs { grid-column: 7 / 13; align-self: end; display: flex; flex-wrap: wrap; gap: 6px; }
.agenda__jobs button { min-height: 3rem; padding: 0 1.1rem; background: var(--green-2); color: var(--paper); font-weight: 600; font-size: 1rem; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease); }
.agenda__jobs button:hover { background: #22513a; }
.agenda__jobs button:active { transform: scale(0.96); }
.agenda__jobs button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.agenda :focus-visible { outline-color: var(--accent); }
.level { grid-column: 1 / -1; }
.level__body { background: var(--accent); padding: clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 4vw, 4rem); }
.vial { position: relative; background: #d8ef9a; border-radius: 999px; padding: 0.35rem; overflow: hidden; }
.vial__weeks { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); position: relative; z-index: 1; }
.vial__weeks span { display: grid; place-items: center; min-height: clamp(2.75rem, 5vw, 4.25rem); font-weight: 600; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; transition: color 300ms ease; }
.vial__weeks span:nth-child(odd) { background: rgba(13, 42, 28, 0.06); }
.vial__weeks span:first-child { border-radius: 999px 0 0 999px; }
.vial__weeks span:last-child { border-radius: 0 999px 999px 0; }
.vial__weeks span.is-free { color: var(--ink); }
.bubble { position: absolute; z-index: 0; top: 0.35rem; bottom: 0.35rem; left: calc(0.35rem + (100% - 0.7rem) / 16 * var(--at, 0)); width: calc((100% - 0.7rem) / 16); border-radius: 999px; background: #f9fde9; transform: scaleX(1.5); transition: left 900ms cubic-bezier(0.34, 1.4, 0.64, 1); }
.level__scale { display: flex; justify-content: space-between; max-width: none; margin-top: 0.75rem; font-size: 0.875rem; color: #c9d6cf; }
.agenda__text { grid-column: 1 / 9; font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } }

/* ---------- klussen: namen in kolommen ---------- */
.jobs { padding: var(--section) var(--margin); }
.jobs h2 { font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem); }
.jobs__cols { margin-top: 6rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.jobs__col { grid-column: span 3; }
.jobs__col h3 { margin-bottom: 1.4rem; font-size: 1rem; }
.jobs__col li { font-size: 1rem; line-height: 1.3; padding-block: 0.12rem; color: var(--muted); cursor: default; transition: color 180ms ease, transform 240ms var(--ease); }
.jobs__col li:hover, .jobs__col li:focus-visible, .jobs__col li.is-on { color: var(--ink); transform: translateX(6px); }
.jobs__sum { display: none; }
.jobs__say { grid-column: 10 / 13; grid-row: 1; font-size: 1rem; line-height: 1.4; min-height: 6rem; }

/* ---------- foto's van het werk ---------- */
.run { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 var(--margin); }
.run figure { overflow: hidden; }
.run img { width: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.run__big { grid-column: 1 / -1; }
.run__big img { aspect-ratio: 21 / 9; object-position: 50% 62%; }
.run__half img { aspect-ratio: 4 / 3; }
.run figure:hover img { transform: scale(1.03); }
figcaption { margin-top: 0.7rem; font-size: 1rem; color: var(--muted); }

/* ---------- over Mats ---------- */
.about { padding: var(--section) var(--margin) calc(var(--section) / 2); }
.about__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: calc(34vw - 11rem - var(--margin)); }
.about__facts { display: grid; gap: 1.25rem; align-content: start; }
.about__facts dt { font-size: 0.875rem; color: var(--muted); }
.about__facts dd { font-size: 1rem; font-weight: 600; }
.about__text { font-size: var(--step-lead); line-height: 1.35; max-width: 58ch; }
.about__row--lists { margin-top: 7.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; }
.about__portrait video { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.about__list h3 { margin-bottom: 1rem; }
.about__list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; padding-block: 0.4rem; }
.about__list li:nth-child(odd) { background: var(--surface); margin-inline: -0.6rem; padding-inline: 0.6rem; }
.about__list li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- prijzen: één groot woord, balken eronder ---------- */
.prices { padding: var(--section) var(--margin); display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.prices__col { container-type: inline-size; }
.prices__word { font-size: 31cqw; line-height: 0.8; letter-spacing: -0.01em; margin-left: -0.03em; }
.bars { margin-top: 1.25rem; display: grid; gap: 6px; }
.bars details { background: var(--surface); }
.bars summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; padding: 0 1.1rem; font-weight: 600; cursor: pointer; transition: background-color 180ms ease; }
.bars summary::-webkit-details-marker { display: none; }
.bars summary::after { content: '+'; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; transition: transform 240ms var(--ease); }
.bars details[open] summary::after { transform: rotate(45deg); }
.bars summary:hover { background: #dfded8; }
.bars ul { display: grid; gap: 0.85rem; padding: 0.5rem 1.25rem 1.25rem; }
.bars li { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; }
.bars li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.prices__note { margin-top: 1.25rem; font-size: 1rem; color: var(--muted); }
.prices__photo { position: sticky; top: 6rem; }
.prices__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; }

/* ---------- het Gooi ---------- */
.place { padding: 0 var(--margin) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; align-items: end; }
.place__photo { grid-column: 1 / 8; }
.place__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.place__photo--small { grid-column: 8 / 13; }
.place__photo--small img { aspect-ratio: 1; }
.place__text { grid-column: 8 / 13; grid-row: 2; font-size: var(--step-lead); line-height: 1.35; }

/* ---------- contact in grote regels ---------- */
.contact { background: var(--accent); padding-bottom: 3rem; }
.rows > li { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; min-height: clamp(5.5rem, 10vw, 9.5rem); padding: 0 var(--margin) clamp(0.6rem, 1.4vw, 1.25rem); font-family: var(--font-display); text-transform: uppercase; font-size: var(--step-head); line-height: 0.95; }
.rows > li:nth-child(even) { background: #ecd60f; }
.rows a { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.1em; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.rows a:hover { text-decoration-color: currentColor; }
.rows__hint { font-family: var(--font-text); text-transform: none; font-size: 1rem; font-weight: 600; padding-bottom: 0.5em; }
.rows__greet { justify-content: flex-start !important; gap: 0.3em !important; }
.round { display: inline-grid; place-items: center; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--ink); color: var(--accent); align-self: center; transition: transform 240ms var(--ease); }
.round svg { width: 50%; height: 50%; }
.round:hover { transform: rotate(-12deg) scale(1.06); }
.contact__note { padding: 1.5rem var(--margin) 0; font-size: 1rem; }

/* ---------- voet ---------- */
.foot { background: var(--green); color: var(--paper); overflow: hidden; padding-top: 3rem; }
.foot__name { font-family: var(--font-display); text-transform: uppercase; font-size: 31vw; line-height: 0.8; letter-spacing: -0.01em; max-width: none; white-space: nowrap; margin-left: -0.02em; color: var(--accent); }
.foot__legal { padding: 1.5rem var(--margin) 2rem; display: grid; gap: 0.4rem; font-size: 0.875rem; color: #c9d6cf; }
.foot__legal p { max-width: 62ch; }

/* ---------- bel-balk op de telefoon ---------- */
.callbar { display: none; }

/* ---------- binnenkomen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- telefoon en tablet ---------- */
@media (max-width: 860px) {
  .hero__low { position: static; width: auto; margin-top: 2rem; align-self: end; }
  .top { height: 3.5rem; }
  .top__nav { display: none; }
  .wordmark { font-size: 1.25rem; }
  .hero { padding: calc(3.5rem + 9vh) var(--margin) 6.5rem; min-height: 100svh; }
  .hero__name { font-size: 24.5vw; }
  .hero__row { flex-wrap: wrap; row-gap: 0; }
  .hero__photo { width: 100%; height: min(30svh, 64vw); aspect-ratio: auto; object-position: 40% 35%; margin-top: 0.6rem; }
  .hero__low { justify-self: stretch; max-width: none; }
  .hero__sub { font-size: 1.125rem; }
  .agenda { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .agenda__head, .agenda__jobs, .agenda__text { grid-column: 1 / -1; }
  .agenda__jobs button { flex: 1 1 calc(50% - 6px); }
  .vial { padding: 0.25rem; }
  .vial__weeks span { font-size: 0.8125rem; min-height: 2.75rem; }
  .bubble { top: 0.25rem; bottom: 0.25rem; left: calc(0.25rem + (100% - 0.5rem) / 16 * var(--at, 0)); width: calc((100% - 0.5rem) / 16); transform: scaleX(1.7); }
  .level__body { padding: 0.75rem 0.5rem; }
  .jobs__cols { margin-top: 3rem; grid-template-columns: 1fr; row-gap: 2.5rem; }
  .jobs__col { grid-column: 1 / -1; }
  .jobs__col li { font-size: 1.125rem; line-height: 1.45; }
  .jobs__col h3 { margin-bottom: 0.75rem; }
  .jobs__sum { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 1rem; }
  .jobs__say { display: none; }
  .run { grid-template-columns: 1fr; }
  .run__big img { aspect-ratio: 4 / 3; }
  .about__row { grid-template-columns: 1fr; row-gap: 2rem; }
  .about__text { order: -1; padding-right: 0; font-size: 1.1875rem; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .about__row--lists { margin-top: 3.5rem; grid-template-columns: 1fr; row-gap: 2.5rem; }
  .prices { grid-template-columns: 1fr; }
  .prices__photo { position: static; }
  .place { grid-template-columns: 1fr; }
  .place__photo, .place__photo--small, .place__text { grid-column: 1 / -1; grid-row: auto; }
  .place__photo--small { display: none; }
  .rows > li { font-size: 9.6vw; min-height: 5.25rem; }
  .rows__hint { display: none; }
  .rows__greet .round { width: 3.5rem; height: 3.5rem; margin-left: auto; }
}
@media (max-width: 600px) {
  .foot { padding-bottom: 4.5rem; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); background: var(--paper); transform: translateY(110%); transition: transform 320ms var(--ease); }
  .callbar.is-on { transform: none; }
  .callbar.is-away { transform: translateY(110%); }
  .callbar a { display: grid; place-items: center; min-height: 3.25rem; font-weight: 600; text-decoration: none; background: var(--ink); color: var(--paper); }
  .callbar a + a { background: var(--accent); color: var(--ink); }
}
