/*
Theme Name: Hietbrink Witgoedservice
Description: Thema voor G. Hietbrink Witgoedservice in Ruurlo.
Version: 1.1.3
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: hietbrink
*/

:root {
	--blauw: #345da8;
	--geel: #e0cb33;
	--inkt: #312c2c;
	--koel: #edf1f8;
	--staal: #5f5e62;
	--cord: 10px;
	--bocht: 64px;
	--inzet: clamp(16px, 4vw, 48px);
	--binnen: clamp(40px, 7vw, 104px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
main.wp-block-group { margin-block: 0; }
:focus-visible { outline: 3px solid var(--blauw); outline-offset: 3px; }
.hws-slot :focus-visible { outline-color: #fff; }

h1, h2, h3 { font-style: italic; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.6rem); line-height: 1; margin: 0 0 .4em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 0 0 .5em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 .35em; }
p { margin-block: 0 1em; }
.hws-rail { width: min(1200px, 100%); margin-inline: auto; box-sizing: border-box; }
.hws-smal { max-width: 40rem; }
.hws-rail > .wp-block-group, .hws-rail { --wp--style--global--content-size: 100%; }

/* Kop */
.hws-kop {
	position: sticky; top: 0; z-index: 30; background: #fff;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 12px var(--inzet); box-shadow: 0 1px 0 #d9deE8;
}
.admin-bar .hws-kop { top: 32px; }
.hws-logo { display: block; line-height: 0; }
.hws-logo img { width: clamp(160px, 19vw, 230px); height: auto; }
.hws-kop-rechts { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.hws-kop .wp-block-navigation { font-weight: 600; font-size: 1rem; gap: 24px; }
.hws-kop .wp-block-navigation a { color: var(--inkt); text-decoration: none; }
.hws-kop .wp-block-navigation a:hover { color: var(--blauw); text-decoration: underline; text-underline-offset: 5px; }
.hws-kop .wp-block-navigation__responsive-container.is-menu-open { padding: 32px var(--inzet); }
.hws-kop .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.5rem; gap: 20px; }

/* Knoppen */
.wp-block-button__link, .hws-verstuur {
	display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--blauw); color: #fff; font: inherit; font-weight: 700;
	padding: .8em 1.5em; text-decoration: none; line-height: 1.2;
}
.wp-block-button__link:hover, .hws-verstuur:hover { background: #29497f; color: #fff; }
.hws-knop-licht .wp-block-button__link { background: #fff; color: var(--blauw); }
.hws-knop-licht .wp-block-button__link:hover { background: var(--koel); color: var(--blauw); }
.hws-knop-rand .wp-block-button__link { background: transparent; color: var(--blauw); box-shadow: inset 0 0 0 3px var(--blauw); }
.hws-knop-rand .wp-block-button__link:hover { background: var(--blauw); color: #fff; }
.hws-slot .hws-knop-rand .wp-block-button__link { color: #fff; box-shadow: inset 0 0 0 3px #fff; }
.hws-slot .hws-knop-rand .wp-block-button__link:hover { background: #fff; color: var(--blauw); }
.hws-knop-klein .wp-block-button__link { font-size: 1rem; padding: .6em 1.1em; white-space: nowrap; }
.hws-knop-groot .wp-block-button__link { font-size: clamp(1.25rem, 2.6vw, 1.6rem); padding: .7em 1.3em; font-stretch: 110%; }

/* Hero */
.hws-hero { background: #fff; padding: clamp(36px, 6vw, 88px) var(--inzet) clamp(44px, 6vw, 80px); }
.hws-hero-raster {
	display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hws-hero-raster > * { margin: 0; }
.hws-hero h1 { color: var(--inkt); }
.hws-hero-tekst > p { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.4; max-width: 30em; margin-bottom: 1.3em; }
.hws-hero .wp-block-buttons { gap: 12px; }
.hws-hero-foto { margin: 0; }
.hws-hero-foto img {
	display: block; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 30% 60%;
	border-radius: 12px var(--bocht) 12px 12px;
}
.hws-paginakop { background: var(--koel); padding: clamp(36px, 5vw, 72px) var(--inzet); }
.hws-paginakop h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: .25em; }
.hws-paginakop p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 36em; margin: 0; line-height: 1.4; }

/* Het snoer: loopt als een doorgaande lijn van boven naar beneden door de pagina */
.hws-snoer { position: relative; padding: var(--binnen) calc(var(--inzet) + 56px); box-sizing: border-box; }
.hws-snoer::before {
	content: ""; position: absolute; pointer-events: none; box-sizing: border-box;
	border: var(--cord) solid var(--blauw);
}
.hws-snoer--rechts::before {
	top: 0; bottom: 0; left: 0; right: var(--inzet);
	border-left: 0; border-radius: 0 var(--bocht) var(--bocht) 0;
}
.hws-snoer--links { margin-top: calc(var(--cord) * -1); }
.hws-snoer--rechts::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: calc(var(--inzet) + var(--bocht)); height: var(--cord); background: #fff;
}
.hws-snoer--links::before {
	top: 0; bottom: 0; left: var(--inzet); right: calc(var(--inzet) + var(--bocht));
	border-right: 0; border-radius: var(--bocht) 0 0 var(--bocht);
}
.hws-snoer--eind { margin-top: calc(var(--cord) * -1); padding-bottom: clamp(32px, 4vw, 56px); }
.hws-snoer--eind::before {
	top: 0; bottom: 56px; left: calc(var(--inzet) + var(--bocht)); right: var(--inzet);
	border-left: 0; border-bottom: 0; border-radius: 0 var(--bocht) 0 0;
}
.hws-stekker {
	position: absolute; right: calc(var(--inzet) - 15px); bottom: -2px; width: 40px; height: 62px;
	background: no-repeat center / contain url("assets/stekker.svg");
}

/* Diensten */
.hws-diensten { display: grid; gap: 0; margin-top: 8px; }
.hws-dienst {
	display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 8px 40px;
	align-items: baseline; padding: 24px 0; border-top: 2px solid #d9dee8;
}
.hws-dienst > * { margin: 0; }
.hws-dienst h3 a { color: var(--inkt); text-decoration: none; }
.hws-dienst h3 a:hover { color: var(--blauw); text-decoration: underline; text-underline-offset: 5px; }
.hws-dienst p a { font-weight: 700; white-space: nowrap; }

/* Apparaten aan het snoer */
.hws-apparaten {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
	border-bottom: var(--cord) solid var(--blauw); margin: 32px 0 0;
	list-style: none; padding: 0;
}
.hws-apparaten a { display: block; text-align: center; color: var(--inkt); text-decoration: none; font-weight: 700; line-height: 1.2; }
.hws-apparaten a:hover { color: var(--blauw); }
.hws-apparaten img { display: block; width: 100%; max-width: 132px; height: auto; margin: 10px auto 0; }

/* Over Geert */
.hws-geert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hws-geert > * { margin: 0; }
.hws-geert-tijden .hws-spreuk { margin-top: 28px; }
.hws-spreuk { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; font-style: italic; line-height: 1.15; color: var(--blauw); margin: 0; }

/* Tijden */
.hws-tijden { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hws-tijden td { padding: .4em 0; border-bottom: 2px solid #d9dee8; }
.hws-tijden td:last-child { text-align: right; font-weight: 600; }
.wp-block-table.hws-tijdblok { margin: 0; }
.wp-block-table.hws-tijdblok td { border: 0; border-bottom: 2px solid #d9dee8; padding: .45em 0; }
.wp-block-table.hws-tijdblok td:last-child { text-align: right; font-weight: 600; }
.wp-block-table.hws-tijdblok table { max-width: 26rem; }

/* Slotvlak */
.hws-slot { background: var(--blauw); color: #fff; padding: clamp(32px, 5vw, 64px) var(--inzet); }
.hws-slot-raster { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.hws-slot h2 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.hws-slot p { margin: .35em 0 0; }
.hws-slot .wp-block-buttons { margin: 0; gap: 12px; }
.hws-slot a { color: #fff; }

/* Tekstpagina's */
.hws-inhoud { padding: var(--binnen) var(--inzet); }
.hws-inhoud-kolom { max-width: 44rem; margin-inline: auto; }
.hws-inhoud-kolom--links { margin-inline: 0; }
.hws-inhoud h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 1.4em; }
.hws-inhoud h2:first-child { margin-top: 0; }
.hws-inhoud li { margin-bottom: .35em; }
.hws-tweedeling { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.hws-tweedeling > * { margin: 0; }
.hws-gegevens { background: var(--koel); border-radius: 12px; padding: 28px; }
.hws-gegevens h2 { font-size: 1.6rem; margin-top: 0; }
.hws-gegevens p { margin-bottom: .6em; }
.hws-gegevens .hws-groot { font-size: 1.4rem; font-weight: 800; font-style: italic; }
details.wp-block-details { border-top: 2px solid #d9dee8; padding: 14px 0; }
details.wp-block-details summary { font-weight: 700; cursor: pointer; }
details.wp-block-details p { margin: .6em 0 0; }

/* Formulier */
.hws-formulier form { display: grid; gap: 20px; }
.hws-keuzes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hws-keuzes legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.hws-keuze input { position: absolute; opacity: 0; }
.hws-keuze span { display: block; padding: .5em 1em; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--blauw); color: var(--blauw); font-weight: 600; cursor: pointer; }
.hws-keuze input:checked + span { background: var(--blauw); color: #fff; }
.hws-keuze input:focus-visible + span { outline: 3px solid var(--inkt); outline-offset: 2px; }
.hws-velden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.hws-velden p { margin: 0; }
.hws-breed { grid-column: 1 / -1; }
.hws-verborgen { position: absolute; left: -9999px; }
.hws-velden label { display: block; font-weight: 600; margin-bottom: 4px; }
.hws-velden input, .hws-velden select, .hws-velden textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--inkt);
	padding: .65em .8em; border: 2px solid #9aa3b5; border-radius: 8px; background: #fff;
}
.hws-velden input:focus, .hws-velden select:focus, .hws-velden textarea:focus { border-color: var(--blauw); outline: 2px solid var(--blauw); outline-offset: 0; }
.hws-velden textarea::placeholder { color: var(--staal); }
.hws-akkoord { margin: 0; }
.hws-akkoord label { display: flex; gap: 10px; align-items: flex-start; }
.hws-akkoord input { margin-top: .35em; width: 20px; height: 20px; flex: none; }
.hws-verstuur { justify-self: start; font-size: 1.1rem; }
.hws-melding { padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.hws-melding--goed { background: #e3f2e6; color: #1c5a2b; }
.hws-melding--fout { background: #fbe6e3; color: #8a2317; }

/* Voet */
.hws-voet { background: var(--inkt); color: #fff; padding: clamp(36px, 5vw, 64px) var(--inzet) 28px; }
.hws-voet a { color: #fff; }
.hws-voet-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px 48px; }
.hws-voet-raster > * { margin: 0; }
.hws-voet h2 { color: #fff; font-size: 1.15rem; font-style: normal; margin: 0 0 .5em; }
.hws-voet p { margin: 0 0 .3em; font-size: 1rem; }
.hws-voet .hws-spreuk { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.hws-voet-onder { margin-top: 32px; padding-top: 16px; border-top: 1px solid #5c5757; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (max-width: 960px) {
	.hws-hero-raster, .hws-geert, .hws-tweedeling { grid-template-columns: minmax(0, 1fr); }
	.hws-hero-foto { max-width: 560px; }
	.hws-dienst { grid-template-columns: minmax(0, 1fr); }
	.hws-voet-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	:root { --cord: 6px; --bocht: 36px; --inzet: 16px; }
	body { font-size: 17px; }
	.admin-bar .hws-kop { top: 0; position: relative; }
	.hws-kop { padding-block: 10px; gap: 10px; }
	.hws-kop .hws-knop-klein { display: none; }
	.hws-snoer { padding: 44px 34px; }
	.hws-snoer--eind { padding-bottom: 28px; }
	.hws-stekker { right: calc(var(--inzet) - 12px); width: 30px; height: 46px; }
	.hws-snoer--eind::before { bottom: 44px; }
	.hws-apparaten { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
	.hws-velden { grid-template-columns: minmax(0, 1fr); }
	.hws-knop-groot .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
	.hws-hero .wp-block-button, .hws-slot .wp-block-button { width: 100%; }
	.hws-hero .wp-block-button__link, .hws-slot .wp-block-button__link { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Latere aanpassingen */
html body h1,html body h2,html body h3{font-weight:700}
html body h1{font-size:clamp(2rem,3.6vw,2.9rem);line-height:1.12;margin-bottom:.5em}
html body h2{font-size:clamp(1.6rem,2.6vw,2.1rem)}
html body h3{font-size:clamp(1.25rem,1.8vw,1.4rem)}
html body .hws-paginakop h1{font-size:clamp(2rem,3.6vw,2.9rem)}
html body .hws-slot h2{font-size:clamp(1.6rem,2.8vw,2.2rem)}
html body .hws-inhoud h2{font-size:clamp(1.5rem,2.4vw,1.9rem)}
html body .hws-spreuk{font-size:clamp(1.25rem,2vw,1.5rem);font-weight:700}
html body .hws-hero-tekst>p{font-size:clamp(1.05rem,1.5vw,1.2rem);line-height:1.5}
html body .hws-hero .wp-block-button__link,html body .hws-slot .wp-block-button__link{font-size:1.05rem;padding:.8em 1.4em;font-stretch:100%}
html body .hws-rail{width:100%;max-width:1560px}
html body .hws-hero{padding:0}
html body .hws-hero>.hws-rail{max-width:none}
html body .hws-hero-raster{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:0;align-items:stretch;min-height:clamp(380px,38vw,540px)}
html body .hws-hero-tekst{align-self:center;box-sizing:border-box;padding:clamp(32px,4vw,64px) clamp(24px,4vw,64px) clamp(32px,4vw,64px) var(--inzet)}
html body .hws-hero-foto{position:relative;margin:clamp(24px,3vw,40px) var(--inzet) clamp(24px,3vw,40px) 0;max-width:none;overflow:hidden;border-radius:12px}
html body .hws-hero-foto img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-fit:cover;object-position:35% 60%}
html body .hws-hero+.hws-snoer{margin-top:0}
html body .hws-kop{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
html body .hws-kop>*{margin:0}
html body .hws-kop-rechts{display:contents}
html body .hws-kop-rechts>*{margin:0}
html body .hws-kop .wp-block-navigation{justify-self:center}
html body .hws-kop .hws-knop-klein{justify-self:end;justify-content:flex-end}
html body .hws-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center}
html body .hws-intro>*{margin:0}
html body .hws-intro-foto{margin:0!important}
html body .hws-intro-foto img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
html body .hws-blok{margin-top:clamp(48px,6vw,80px)}
html body .hws-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:32px;margin-top:24px}
html body .hws-items>*{margin:0}
html body .hws-item>*{margin-top:0}
html body .hws-item img{display:block;width:72px;height:auto;margin-bottom:12px}
html body .hws-item h3{margin-bottom:.3em}
html body .hws-item p{margin:0}
html body .hws-twee{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);background:var(--koel);border-radius:12px;padding:clamp(24px,4vw,48px)}
html body .hws-twee>*{margin:0}
html body .hws-kolom>*{margin-top:0}
html body .hws-kolom h2{margin-top:0;margin-bottom:.7em}
html body .hws-kolom ul{padding-left:1.2em;margin:0}
html body .hws-stappen{list-style:none;counter-reset:s;padding:0;margin:0}
html body .hws-stappen li{counter-increment:s;position:relative;padding-left:48px;margin-bottom:16px;min-height:32px}
html body .hws-stappen li::before{content:counter(s);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:var(--blauw);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
html body .hws-vragen{max-width:44rem}
html body .hws-vragen h2{margin-top:0}
html body .hws-blokken{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.2vw,28px);margin-top:24px}
html body .hws-kaart{position:relative;display:flex;flex-direction:column;background:var(--koel);border-radius:12px;overflow:hidden;margin:0!important}
html body .hws-kaart>*{margin:0}
html body .hws-kaart-foto{margin:0!important;overflow:hidden}
html body .hws-kaart-foto img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .25s ease}
html body .hws-kaart h3{padding:20px 24px 0;margin-bottom:.35em}
html body .hws-kaart h3 a{color:var(--inkt);text-decoration:none}
html body .hws-kaart h3 a::after{content:"";position:absolute;inset:0}
html body .hws-kaart>p{padding:0 24px;margin:0 0 .8em}
html body .hws-kaart .hws-kaart-meer{margin-top:auto;padding-bottom:22px;font-weight:700;color:var(--blauw)}
html body .hws-kaart:hover .hws-kaart-foto img{transform:scale(1.03)}
html body .hws-kaart:hover h3 a{color:var(--blauw)}
html body .hws-kaart:focus-within{outline:3px solid var(--blauw);outline-offset:2px}
html body .hws-paginakop+.hws-snoer--eind::before{left:0}
html body .hws-paginakop+.hws-snoer--eind{margin-top:0}
html body img[src*="wasmachine-badkamer"]{object-position:50% 78%}
html body img[src*="inbouw-keuken-bosch"]{object-position:25% 50%}

html body .hws-hero-foto{margin-bottom:clamp(24px,3vw,40px)!important}
@media (max-width:960px){html body .hws-hero-raster{grid-template-columns:minmax(0,1fr);min-height:0}html body .hws-hero-tekst{padding-right:var(--inzet)}html body .hws-hero-foto{max-width:none;margin:0 var(--inzet) clamp(24px,5vw,40px) var(--inzet)}html body .hws-hero-foto img{position:static;height:auto;aspect-ratio:16/10}}
@media (max-width:900px){html body .hws-blokken{grid-template-columns:minmax(0,1fr)}}
@media (max-width:800px){html body .hws-intro,html body .hws-twee{grid-template-columns:minmax(0,1fr)}html body .hws-intro-foto{order:-1}}
@media (max-width:720px){html body .hws-kop{grid-template-columns:1fr auto}html body .hws-kop .wp-block-navigation{justify-self:end}}
@media (prefers-reduced-motion:reduce){html body .hws-kaart-foto img{transition:none}}
html body .hws-voet-raster{grid-template-columns:1.2fr 1fr 1fr 1fr}
html body .hws-linkraster{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 28px;margin:20px 0 0;padding:0;list-style:none}
html body .hws-linkraster li{margin:0}
html body .hws-linkraster a{font-weight:600}
@media (max-width:980px){html body .hws-voet-raster{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){html body .hws-voet-raster{grid-template-columns:minmax(0,1fr)}}
html body .hws-kopcontact{margin-top:.6em;font-weight:600}
html body .hws-aanvraagblok{scroll-margin-top:90px}
html body .hws-belbalk{display:none}
@media (max-width:800px){
html body{padding-bottom:64px}
html body .hws-belbalk{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid #d9dde5;box-shadow:0 -2px 10px rgba(0,0,0,.08);padding-bottom:env(safe-area-inset-bottom)}
html body .hws-belbalk a{display:flex;align-items:center;justify-content:center;min-height:56px;font-weight:700;color:var(--wp--preset--color--stekker);text-decoration:none}
html body .hws-belbalk a:first-child{background:var(--wp--preset--color--stekker);color:#fff}
}
