/* Van Wijk Installatie · Basis — "de thermostaat": radiatorwit, ink en kraanrood, één ronde vorm overal. */
:root {
  --ground: #f4f4f1;
  --tone: #e6e5df;
  --ink: #1b1916;
  --soft-ink: #4a463f;
  --red: #d21c34;
  --red-dark: #a8122a;
  --on-red: #ffffff;
  --night: #1b1916;
  --on-night: #f4f4f1;
  --night-soft: #b9b5ab;
  --font: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --m: clamp(16px, 2.6vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; font-optical-sizing: auto; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
h2 { font-size: clamp(38px, 5vw, 76px); line-height: .98; letter-spacing: -0.035em; font-weight: 800; max-width: 14ch; }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--on-red); }

/* knoppen: helemaal rond, net als de knop van de thermostaat */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: 600 18px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--red { background: var(--red); color: var(--on-red); }
.btn--red:hover { background: var(--red-dark); }
.btn--soft { background: var(--tone); color: var(--ink); }
.btn--soft:hover { background: #d9d8d0; }

/* kopbalk */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 14px var(--m); transition: background-color .3s, transform .35s var(--ease); }
.top.is-solid { background: var(--ground); }
.top.is-hidden { transform: translateY(-100%); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-decoration: none; }
.wordmark__dot { width: 24px; height: 24px; border-radius: 50%; border: 7px solid var(--red); background: var(--ground); }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; }
.top__nav a { position: relative; text-decoration: none; padding: 8px 0; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__cta { min-height: 46px; }

/* hero: de naam links, de thermostaatknop rechts */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; min-height: 100svh; padding: 112px var(--m) 64px; }
.hero__title { font-size: clamp(56px, 6.7vw, 120px); line-height: .9; letter-spacing: -0.045em; font-weight: 800; }
.hero__sub { margin-top: 36px; font-size: 24px; line-height: 1.45; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__open { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 16px; }
.lamp { width: 14px; height: 14px; border-radius: 50%; background: var(--soft-ink); flex: none; }
[data-open="ja"] .lamp { background: #2f8a3b; animation: pulse 2.4s ease-in-out infinite; }
[data-open="nee"] .lamp { background: var(--red); }
@keyframes pulse { 50% { transform: scale(.7); opacity: .6; } }

.dial { justify-self: end; width: min(100%, 620px); }
.dial__disc { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.dial__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial__ring .tick { stroke: var(--on-red); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.dial__ring .tick--big { stroke-width: 6; opacity: 1; }
.dial__ring text { fill: var(--on-red); font: 600 22px var(--font); text-anchor: middle; dominant-baseline: middle; }
.dial__arc { fill: none; stroke: var(--on-red); stroke-width: 18; stroke-linecap: round; }
.dial__hand { transition: transform .5s var(--ease); transform-origin: 300px 300px; }
.dial.is-drag .dial__hand { transition: none; }
.dial__hand circle { fill: var(--ink); stroke: var(--on-red); stroke-width: 8; }
.dial__knob { position: absolute; inset: 21%; border-radius: 50%; overflow: hidden; background: var(--tone); }
.dial__knob video { width: 100%; height: 100%; object-fit: cover; }
.dial__grip { position: absolute; inset: 0; border-radius: 50%; cursor: grab; touch-action: none; }
.dial.is-drag .dial__grip { cursor: grabbing; }
.dial__grip:focus-visible { outline-offset: 6px; }
.dial__read { margin-top: 24px; }
.dial__time { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.dial__say { margin-top: 6px; font-size: 18px; max-width: 40ch; min-height: 3.1em; }
.dial__days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dial__days button { min-width: 48px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--tone); color: var(--ink); font: 600 16px var(--font); cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.dial__days button:hover { transform: translateY(-2px); }
.dial__days button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.dial__days .dial__now { background: var(--red); color: var(--on-red); }
.dial__hint { margin-top: 12px; font-size: 16px; color: var(--soft-ink); }

/* diensten */
.services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); padding: var(--gap) var(--m) 0; }
.services__head { grid-column: 1 / 6; align-self: start; position: sticky; top: 110px; }
.services__head p { margin-top: 24px; max-width: 38ch; }
.services__photo { margin-top: 40px; width: min(86%, 420px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.services__photo img { width: 100%; height: 100%; object-fit: cover; }
.services__list { grid-column: 6 / 13; display: grid; gap: 8px; }
.svc { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 18px 24px 18px 0; border-radius: 999px 40px 40px 999px; transition: background-color .25s, transform .3s var(--ease); }
.svc:hover { background: var(--tone); transform: translateX(-6px); }
.svc__pic { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.svc__body p { margin-top: 6px; font-size: 16px; line-height: 1.5; }
.svc__price { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; white-space: nowrap; align-self: start; padding-top: 2px; }

/* werk: drie ronde foto's van verschillende maat */
.work { padding: var(--gap) var(--m) 0; }
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); margin-top: 56px; align-items: start; }
.work figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.work figcaption { margin-top: 16px; font-size: 16px; max-width: 30ch; }
.work__big { grid-column: 1 / 7; grid-row: 1 / 3; }
.work__a { grid-column: 8 / 13; grid-row: 1; }
.work__b { grid-column: 7 / 11; grid-row: 2; margin-top: -8%; }

/* prijzen: een donker veld */
.prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(24px, 3vw, 48px); margin-top: var(--gap); padding: clamp(80px, 9vw, 140px) var(--m); background: var(--night); color: var(--on-night); }
.prices__head { grid-column: 1 / 6; align-self: start; position: sticky; top: 110px; }
.prices__head p { margin-top: 24px; max-width: 38ch; }
.prices__note { color: var(--night-soft); }
.prices__head .btn { margin-top: 32px; }
.prices__table { grid-column: 6 / 13; width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.prices__table tr { background: #262420; transition: background-color .2s; }
.prices__table tr:hover { background: #312e29; }
.prices__table th { text-align: left; font-weight: 600; font-size: 18px; padding: 18px 0 18px 26px; border-radius: 999px 0 0 999px; }
.prices__table th span { display: block; font-weight: 400; font-size: 16px; color: var(--night-soft); margin-top: 2px; }
.prices__table td { text-align: right; padding: 18px 28px 18px 16px; font-size: 24px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; border-radius: 0 999px 999px 0; }

/* team */
.team { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); align-items: center; padding: var(--gap) var(--m) 0; }
.team__photo { grid-column: 1 / 6; border-radius: 999px; overflow: hidden; aspect-ratio: 2 / 3; max-height: 760px; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__text { grid-column: 7 / 13; }
.team__text p { margin-top: 24px; max-width: 46ch; }
.team__facts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.team__facts div { display: flex; flex-direction: column-reverse; justify-content: center; align-items: center; text-align: center; width: 168px; aspect-ratio: 1; border-radius: 50%; background: var(--tone); padding: 12px; }
.team__facts dt { font-size: 16px; }
.team__facts dd { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.team__facts div:first-child { background: var(--red); color: var(--on-red); }

/* werkgebied */
.area { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(24px, 3vw, 48px); padding: var(--gap) var(--m) 0; align-items: start; }
.area__main { grid-column: 1 / 8; }
.area__main > p { margin-top: 24px; max-width: 46ch; }
.pc { margin-top: 36px; max-width: 520px; }
.pc label { display: block; font-weight: 600; margin-bottom: 10px; }
.pc__row { display: flex; gap: 8px; }
.pc input { flex: 1; min-width: 0; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--tone); font: 600 18px var(--font); color: var(--ink); }
.pc__out { margin-top: 12px; min-height: 1.6em; font-weight: 600; }
.pc[data-ok="ja"] .pc__out { color: #24702f; }
.pc[data-ok="nee"] .pc__out { color: var(--red-dark); }
.area__places { margin-top: 44px; columns: 2; column-gap: 48px; }
.area__places li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; break-inside: avoid; }
.area__places li span:last-child { color: var(--soft-ink); }
.area__places li:first-child span:first-child { font-weight: 800; }
.visit { grid-column: 9 / 13; padding: 18px 18px 30px; border-radius: 40px; background: var(--tone); }
.visit__pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; }
.visit h3 { margin: 24px 10px 0; }
.visit__addr { margin: 8px 10px 0; }
.hours { width: calc(100% - 20px); margin: 20px 10px 24px; border-collapse: collapse; font-size: 16px; }
.hours th { text-align: left; font-weight: 400; padding: 5px 12px 5px 0; vertical-align: top; }
.hours td { text-align: right; font-weight: 600; padding: 5px 0; }
.visit .btn { margin-left: 10px; background: var(--ground); }

/* contact: drie grote regels */
.contact { padding: var(--gap) var(--m) clamp(80px, 9vw, 140px); }
.contact__ways { display: grid; gap: 8px; margin-top: 48px; }
.way { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; padding: 14px 0; text-decoration: none; transition: color .2s, transform .3s var(--ease); }
.way span { font-size: 18px; }
.way strong { font-size: clamp(30px, 5.2vw, 78px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 800; overflow-wrap: anywhere; }
.way:hover { color: var(--red); transform: translateX(8px); }

/* voet: de naam over de volle breedte, onderaan afgesneden */
.foot { background: var(--red); color: var(--on-red); overflow: hidden; padding: 40px var(--m) 32px; }
.foot__name { font-size: 25vw; font-weight: 800; letter-spacing: -0.06em; line-height: .78; margin: 0 0 32px -0.04em; white-space: nowrap; }
.foot__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 16px; }
.foot__row a { color: inherit; }

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

/* binnenkomen */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title, .js .hero__sub, .js .hero__actions, .js .hero__open, .js .dial { animation: rise .9s var(--ease) both; }
.js .hero__sub { animation-delay: .08s; }
.js .hero__actions { animation-delay: .16s; }
.js .hero__open { animation-delay: .22s; }
.js .dial { animation: spin-in 1.1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-40deg) scale(.9); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__title, .js .hero__sub, .js .hero__actions, .js .hero__open, .js .dial { animation: none; }
  .dial__hand, .btn, .svc, .way { transition: none; }
  [data-open="ja"] .lamp { animation: none; }
}

/* telefoon en tablet: een eigen opbouw */
@media (max-width: 860px) {
  body { font-size: 18px; }
  h2 { font-size: clamp(34px, 9vw, 52px); }
  .top { gap: 12px; padding: 10px 16px; }
  .top__nav { display: none; }
  .top__cta { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 16px; }
  .wordmark { font-size: 24px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 96px 16px 48px; gap: 40px; }
  .hero__title { font-size: clamp(44px, 12.6vw, 72px); }
  .hero__sub { margin-top: 24px; font-size: 18px; }
  .dial { justify-self: stretch; width: 100%; }
  .services, .area, .team, .prices { grid-template-columns: minmax(0, 1fr); padding-left: 16px; padding-right: 16px; }
  .services__head, .services__list, .area__main, .visit, .team__photo, .team__text, .prices__head, .prices__table { grid-column: 1; position: static; }
  .services__photo { width: 72%; margin: 32px auto 0; }
  .services__list { margin-top: 40px; }
  .svc { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; padding: 16px 20px 18px 16px; border-radius: 44px 28px 28px 44px; }
  .svc__pic { width: 72px; height: 72px; grid-row: 1 / 3; align-self: start; }
  .svc__price { grid-column: 2; padding: 0; font-size: 18px; }
  .svc:hover { transform: none; }
  .work { padding-left: 16px; padding-right: 16px; }
  .work__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; margin-top: 36px; }
  .work__big { grid-column: 1 / 3; grid-row: auto; }
  .work__a, .work__b { grid-column: auto; grid-row: auto; margin: 0; }
  .work figcaption { font-size: 16px; }
  .prices__table th span { font-size: 16px; }
  .prices__table, .prices__table tbody { display: grid; gap: 8px; }
  .prices__table tr { display: grid; border-radius: 28px; }
  .prices__table th { padding: 16px 22px 4px; border-radius: 0; }
  .prices__table td { text-align: left; padding: 0 22px 16px; font-size: 20px; border-radius: 0; }
  .team__photo { width: 76%; margin: 0 auto; }
  .team__facts div { width: calc((100% - 32px) / 3); }
  .team__facts dd { font-size: 24px; }
  .team__facts dt { font-size: 16px; }
  .area__places { columns: 1; }
  .way { gap: 0 12px; }
  .way strong { font-size: clamp(26px, 7.6vw, 40px); }
  .way span { font-size: 16px; }
  .contact { padding: var(--gap) 16px 120px; }
  .foot { padding: 32px 16px 96px; }
  .foot__row { grid-template-columns: 1fr; }
  .callbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: translateY(140%); transition: transform .35s var(--ease); }
  .callbar.is-on { transform: none; }
  .callbar.is-away { transform: translateY(140%); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 600; text-decoration: none; }
  .callbar a:first-child { background: var(--red); color: var(--on-red); }
}
