/* ATG Renovatiewerken, voorbeeldsite. Zwitsers en strak: lichtgrijze vloer, antraciet, petrol, Outfit. De voeg tussen de tegels is het raster. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-normal-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f3f3f0;
  --surface: #e5e6e2;
  --ink: #15191c;
  --ink-2: #3e464c;
  --field: #23292d;
  --field-2: #2e353a;
  --on-field: #f3f3f0;
  --on-field-2: #c9cdcf;
  --accent: #0e6b66;
  --accent-press: #0a5551;
  --on-accent: #ffffff;
  --grout: #cfd2cc;
  --focus: #0e6b66;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap-section: clamp(88px, 12vw, 184px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --voeg: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.55; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
main p { max-width: 62ch; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--ground); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; background: var(--accent); color: var(--on-accent);
  font: 600 1.125rem/1 var(--font); text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.button:hover { background: var(--accent-press); }
.button:active { transform: translateY(1px); }
.button svg { width: 20px; height: 20px; flex: none; }
.button--ink { background: var(--ink); color: var(--ground); }
.button--ink:hover { background: var(--field-2); }
.button--light { background: var(--on-field); color: var(--ink); }
.button--light:hover { background: var(--grout); }
.button--big { min-height: 64px; font-size: 1.25rem; padding: 0 28px; }

/* Woordmerk: drie tegels met een voeg */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 48px; min-width: 48px; }
.brand-tiles { display: grid; grid-template-columns: repeat(3, 30px); gap: 3px; background: var(--grout); padding: 3px; }
.brand-tiles span { display: grid; place-items: center; height: 30px; background: var(--field); color: var(--on-field); font-weight: 700; font-size: 1.125rem; line-height: 1; }
.brand-tiles span:nth-child(2) { background: var(--accent); }
.brand-name { font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em; }
@media (max-width: 479px) { .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--ground); transition: background-color .2s var(--ease); }
.site-header.is-scrolled { background: var(--surface); }
.header-bar { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 12px; background: var(--ink); color: var(--ground); text-decoration: none; font-weight: 600; }
.header-tel:hover { background: var(--field-2); }
.header-tel svg { width: 20px; height: 20px; }
.header-tel .tel-text { display: none; }
.header-actions .button { min-height: 48px; padding: 0 16px; font-size: 1.125rem; }
.menu-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
.main-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); padding: 8px var(--gutter) 20px; box-shadow: 0 18px 30px rgba(21, 25, 28, .16); /* taste-skill-ignore: open gsm-menu is een overlay */ }
.main-nav.is-open ul { flex-direction: column; }
.main-nav.is-open a { min-height: 52px; font-size: 1.25rem; }

/* Held: tekst links, staande foto rechts */
.hero { padding: clamp(16px, 3vw, 40px) 0 0; }
.hero-grid { display: grid; gap: 24px; }
.hero-title { font-size: clamp(2.1rem, 5.6vw, 4.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: .95; }
.hero-lead { font-size: 1.25rem; line-height: 1.5; max-width: 30em; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { flex: 1 1 220px; }
.hero-text { display: grid; gap: 20px; align-content: start; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 4px 0 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 1rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Secties */
.section { padding-top: var(--gap-section); }
.section-title { font-size: clamp(2.1rem, 5vw, 4.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; max-width: 15ch; }
.section-intro { font-size: 1.25rem; max-width: 34em; margin-top: 18px; }

/* Diensten: tekst links, foto's als tegels rechts */
.services-grid { display: grid; gap: 40px; margin-top: clamp(32px, 5vw, 64px); }
.service-list { list-style: none; display: grid; gap: 36px; }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.service-icon { width: 52px; height: 52px; flex: none; }
.service h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.service p { margin: 0; max-width: 32em; }
.tile-wall { display: grid; grid-template-columns: 1fr 1fr; gap: var(--voeg); background: var(--grout); padding: var(--voeg); align-self: start; }
.tile-wall figure { margin: 0; position: relative; }
.tile-wall img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.tile-wall .wide { grid-column: span 2; }
.tile-wall .wide img { aspect-ratio: 2 / 1; }
.tile-wall figcaption { position: absolute; left: 0; bottom: 0; background: var(--ground); color: var(--ink); padding: 6px 10px; font-size: 1rem; font-weight: 500; }

/* Tegelrekenaar */
.calc-field { background: var(--field); color: var(--on-field); margin-top: var(--gap-section); padding: clamp(64px, 9vw, 128px) 0; }
.calc-field .section-title { color: var(--on-field); }
.calc-field .section-intro { color: var(--on-field-2); }
.calc-grid { display: grid; gap: 36px; margin-top: 36px; }
.calc-form { display: grid; gap: 20px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-form label, .calc-form legend { font-weight: 600; display: block; margin-bottom: 6px; padding: 0; }
.calc-form input[type="number"], .calc-form select {
  width: 100%; min-height: 56px; padding: 10px 14px; font: 500 1.25rem/1.2 var(--font);
  background: var(--on-field); color: var(--ink); border: 0; border-radius: 0;
}
.calc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pattern-options { display: grid; grid-template-columns: 1fr; gap: var(--voeg); background: #4a5258; padding: var(--voeg); }
.pattern-options label { margin: 0; display: flex; align-items: center; gap: 14px; padding: 8px 16px; min-height: 56px; background: var(--field-2); cursor: pointer; text-align: center; font-weight: 500; }
.pattern-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pattern-options svg { width: 44px; height: 30px; }
.pattern-options label:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.pattern-options label:has(input:focus-visible) { outline: 3px solid var(--on-field); outline-offset: 2px; }
.calc-result { display: grid; gap: 16px; align-content: start; }
.calc-preview { background: #4a5258; padding: var(--voeg); }
.calc-preview svg { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.calc-sentence { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 0; max-width: 22em; font-variant-numeric: tabular-nums; }
.calc-sentence strong { font-weight: 700; color: #ffffff; }
.calc-note { color: var(--on-field-2); margin: 0; max-width: 36em; }
.calc-send { justify-self: start; }

/* Werkwijze */
.steps-grid { display: grid; gap: 36px; margin-top: clamp(32px, 5vw, 56px); }
.steps-photo { margin: 0; }
.steps-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps { list-style: none; display: grid; gap: 28px; align-content: start; }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 6px; }
.step h3 span { color: var(--accent); }
.step p { margin: 0; max-width: 34em; }

/* Ook ander werk */
.extra { background: var(--surface); margin-top: var(--gap-section); padding: clamp(56px, 8vw, 112px) 0; }
.extra-grid { display: grid; gap: 28px; align-items: center; }
.extra-statement { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; max-width: 22em; margin: 20px 0 28px; }
.extra-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--voeg); background: var(--grout); padding: var(--voeg); }
.extra-list li { background: var(--ground); padding: 14px 16px; font-weight: 500; }
.extra-photo { margin: 0; }
.extra-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Vragen */
.faq-grid { display: grid; gap: 32px; }
.faq { display: grid; gap: var(--voeg); background: var(--grout); padding: var(--voeg); align-self: start; }
.faq details { background: var(--ground); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 14px 20px; font-weight: 600; font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; background: currentColor; }
.faq .plus::before { left: 0; right: 0; top: 9px; height: 3px; }
.faq .plus::after { top: 0; bottom: 0; left: 9px; width: 3px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; margin: 0; max-width: 40em; }

/* Werkgebied: gemeenten als tegels */
.towns { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--voeg); background: var(--grout); padding: var(--voeg); margin-top: 28px; }
.towns li { background: var(--ground); padding: 18px 16px; font-weight: 600; font-size: 1.25rem; }
.towns li.is-home { background: var(--accent); color: var(--on-accent); }

/* Slot en footer */
.closer { margin-top: var(--gap-section); background: var(--field); color: var(--on-field); padding: clamp(56px, 8vw, 112px) 0; }
.closer-grid { display: grid; gap: 24px; align-items: end; }
.closer-title { font-size: clamp(2.1rem, 5vw, 4.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; max-width: 14ch; }
.closer p { font-size: 1.25rem; color: var(--on-field-2); margin: 16px 0 0; max-width: 30em; }
.closer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { background: var(--ink); color: var(--ground); padding: clamp(56px, 8vw, 96px) 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-tiles { width: 100%; max-width: 760px; height: auto; margin-bottom: 44px; }
.footer-grid { display: grid; gap: 28px; }
.footer-col h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; color: #a9b1b6; }
.footer-col a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col p, .footer-col address { font-style: normal; margin: 0; color: #d3d7d9; }
.footer-small { margin-top: 40px; font-size: 1rem; color: #a9b1b6; max-width: 56ch; }
.footer-small a { color: #d3d7d9; }

/* Contact */
.page-head { padding-top: clamp(24px, 5vw, 64px); }
.page-title { font-size: clamp(2.3rem, 6.6vw, 5.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: .96; max-width: 13ch; }
.contact-grid { display: grid; gap: 40px; margin-top: 32px; }
.direct { display: grid; gap: 10px; align-content: start; }
.direct .button { width: 100%; justify-content: flex-start; }
.direct-lines { display: grid; gap: 4px; margin-top: 8px; }
.direct-lines a { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.direct-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.direct-lines svg { width: 22px; height: 22px; flex: none; }
.direct address { font-style: normal; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { font-size: 1rem; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: 12px 14px; font: 400 1.125rem/1.4 var(--font); color: var(--ink); background: #fff; border: 2px solid #bfc4c0; border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid var(--focus); outline-offset: 1px; }
.field-row { display: grid; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot, onzichtbaar */
.form-status { background: var(--field); color: var(--on-field); padding: 24px; }
.form-status h2 { font-size: 2.1rem; margin-bottom: 8px; }
.form-status p { margin: 0; }
.form-status a { color: var(--on-field); font-weight: 600; }
.form-note { font-size: 1rem; color: var(--ink-2); margin: 0; }
.direct p, .form-status p, .field .hint { max-width: 60ch; }

/* Beweging */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .tile-wall[data-reveal] figure { opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .tile-wall[data-reveal].is-in figure { opacity: 1; transform: none; }
.js .tile-wall[data-reveal].is-in figure:nth-child(2) { transition-delay: 90ms; }
.js .tile-wall[data-reveal].is-in figure:nth-child(3) { transition-delay: 180ms; }
.js .tile-wall[data-reveal].is-in figure:nth-child(4) { transition-delay: 270ms; }
.js .hero-media.is-in img { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.hero-media { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .tile-wall[data-reveal] figure { opacity: 1; transform: none; transition: none; }
  .js .hero-media.is-in img { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media (min-width: 560px) {
  .header-tel .tel-text { display: inline; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .towns { grid-template-columns: repeat(3, 1fr); }
  .extra-list { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .pattern-options { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  :root { --header-h: 78px; }
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: stretch; }
  .hero-text { align-content: space-between; gap: 28px; padding-bottom: 4px; }
  .hero-media img { aspect-ratio: 4 / 5; height: 100%; max-height: calc(100vh - var(--header-h) - 40px); min-height: 520px; }
  .hero-actions .button { flex: 0 1 auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; }
  .calc-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .steps-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; }
  .extra-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; }
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; }
  .area-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: end; }
  .towns { margin-top: 0; }
  .closer-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .closer-actions { flex-direction: column; }
  .closer-actions .button { width: 100%; }
  .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 72px; align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

/* Gsm: eerst bellen of mailen, dan het formulier */
@media (max-width: 979px) {
  .contact-grid .direct { order: -1; }
  .contact-grid .direct figure { display: none; }
}
