/*
Theme Name: H2O Design Studio
Theme URI: https://h2odesign.nl
Author: H2O Design Studio
Description: Strak, luxe blokthema voor H2O Design Studio – sanitair boutique in Groningen. Leisteenblauw, warme steentinten en het waterpeil uit het logo als grafisch motief.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: h2o-design
Tags: block-theme, full-site-editing, e-commerce
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* Kleine labels in hoofdletters */
.h2o-label {
	font-size: 11px !important;
	font-weight: 500;
	letter-spacing: 5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--tekst-zacht);
	margin: 0;
}
.h2o-label.is-light { color: var(--wp--preset--color--leisteen-licht); }

/* Tekstlink met pijl in hoofdletters */
.h2o-textlink a, a.h2o-textlink {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
}

/* ---------- Logo ---------- */
.h2o-logo { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.h2o-logo svg { display: block; }
.h2o-logo .h2o-logo__water { fill: var(--wp--preset--color--leisteen); }
.h2o-logo__divider { width: 1px; height: 30px; background: currentColor; opacity: .6; }
.h2o-logo__text { font-size: 10px; font-weight: 500; letter-spacing: 5px; line-height: 1.5; }
.is-dark-context .h2o-logo .h2o-logo__water,
.h2o-footer .h2o-logo .h2o-logo__water,
.home .h2o-header .h2o-logo .h2o-logo__water { fill: var(--wp--preset--color--leisteen-licht); }

/* ---------- Header ---------- */
.h2o-header { position: relative; z-index: 20; }
.h2o-header .wp-block-navigation { font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.h2o-header .wp-block-navigation a { text-decoration: none; }
.h2o-header .wp-block-button__link { padding: 12px 22px; font-size: 13px; }
.home .h2o-header {
	position: absolute; left: 0; right: 0; top: 0;
	background: transparent !important; color: #fff;
}
.home .h2o-header .wp-block-navigation__responsive-container-open,
.home .h2o-header .wp-block-navigation-item__content { color: #fff; }
.home .h2o-header .wp-block-button__link { background: transparent; border: 1px solid #fff; color: #fff; }
.home .h2o-header .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--diepte); }
.admin-bar.home .h2o-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.home .h2o-header { top: 46px; } }

/* ---------- Hero ---------- */
.h2o-hero { position: relative; overflow: hidden; }
.h2o-hero .wp-block-cover__inner-container { position: static; }
.h2o-hero__line {
	position: absolute; left: 0; right: 0; top: 52%; height: 1px;
	background: rgba(255,255,255,.45); pointer-events: none;
}
.h2o-hero__orb {
	position: absolute; right: 7%; top: 52%; transform: translateY(-50%);
	width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.75);
	border-radius: 50%; overflow: hidden; pointer-events: none;
}
.h2o-hero__orb::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
	background: var(--wp--preset--color--leisteen);
}
.h2o-hero__content { position: relative; z-index: 2; }
.h2o-hero__meta { border-top: 1px solid rgba(255,255,255,.3); padding-top: 22px; }
.h2o-hero__meta p { font-size: 12px !important; letter-spacing: 3px; text-transform: uppercase; color: #CFC9BF; margin: 0; }
.h2o-hero__meta a { color: #fff; text-decoration: none; }
.h2o-hero h1 em, .h2o-accent-light { font-style: normal; color: var(--wp--preset--color--leisteen-licht); }
.h2o-accent { font-style: normal; color: var(--wp--preset--color--leisteen); }
@media (max-width: 900px) {
	.h2o-hero__orb { width: 280px; height: 280px; right: -70px; }
}

/* ---------- Beeldtegels ---------- */
.h2o-tile { margin: 0 !important; }
.h2o-tile img { width: 100%; object-fit: cover; display: block; }
.h2o-tile--xl img { height: 720px; }
.h2o-tile--m img { height: 300px; }
.h2o-tile--l img { height: 420px; }
.h2o-tile--intro-s img { height: 380px; }
.h2o-tile--intro-l img { height: 520px; }
.h2o-tile--project img { height: 760px; }
.h2o-tile-caption { display: flex; justify-content: space-between; margin-top: 14px !important; }
.h2o-tile-caption p { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; }
.h2o-tile-caption p + p { color: var(--wp--preset--color--tekst-zacht); font-weight: 400; letter-spacing: 1px; }
@media (max-width: 900px) {
	.h2o-tile--xl img, .h2o-tile--intro-l img, .h2o-tile--project img { height: 420px; }
	.h2o-tile--l img, .h2o-tile--intro-s img { height: 320px; }
}

/* ---------- Merkenlijst ---------- */
.h2o-brands { border-top: 1px solid var(--wp--preset--color--diepte); }
.h2o-brand { border-bottom: 1px solid #D6D0C6; padding: 22px 0 !important; margin: 0 !important; }
.h2o-brand h3 { margin: 0; font-size: clamp(32px, 4vw, 56px) !important; line-height: 1; }
.h2o-brand p { margin: 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--wp--preset--color--tekst-zacht); text-align: right; }

/* ---------- Afwerkingen ---------- */
.h2o-swatch { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; }
.h2o-swatch--rvs { background: linear-gradient(135deg,#E4E6E7 0%,#A9AEB1 55%,#D3D6D8 100%); }
.h2o-swatch--chroom { background: linear-gradient(135deg,#F7F8F8 0%,#BFC4C7 50%,#EEF0F1 100%); }
.h2o-swatch--messing { background: linear-gradient(135deg,#E2CDA2 0%,#A88A55 55%,#D2B985 100%); }
.h2o-swatch--koper { background: linear-gradient(135deg,#D9A07F 0%,#96593A 55%,#C78B69 100%); }
.h2o-swatch--zwart { background: linear-gradient(135deg,#3A3936 0%,#141311 60%,#2B2A27 100%); }
.h2o-swatch-name { font-size: 12px !important; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; text-align: center; margin: 0; }

/* ---------- Werkwijze ---------- */
.h2o-steps { position: relative; }
.h2o-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--wp--preset--color--diepte); }
.h2o-step-dot {
	position: relative; width: 72px; height: 72px; border: 1px solid var(--wp--preset--color--diepte);
	border-radius: 50%; background: #fff; overflow: hidden; margin: 0 0 18px;
}
.h2o-step-dot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; background: var(--wp--preset--color--leisteen); }
.h2o-step-dot--1::after { height: 25%; }
.h2o-step-dot--2::after { height: 55%; }
.h2o-step-dot--3::after { height: 85%; }
@media (max-width: 781px) { .h2o-steps::before { display: none; } }

/* ---------- Producten ---------- */
.h2o-products { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: thin; }
.h2o-products > .wp-block-group { flex: 0 0 300px; margin: 0 !important; }
.h2o-product-img { background: var(--wp--preset--color--steen); height: 380px; margin: 0 0 14px !important; overflow: hidden; }
.h2o-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.h2o-products > .wp-block-group:hover .h2o-product-img img { transform: scale(1.03); }
.h2o-product-brand { font-size: 12px !important; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--wp--preset--color--leisteen); margin: 0 0 4px !important; }
.h2o-product-name { margin: 0 0 4px !important; line-height: 1.35; }
.h2o-product-price { font-weight: 600; margin: 0 !important; }

/* ---------- Afspraak-blok ---------- */
.h2o-cta { position: relative; overflow: hidden; }
.h2o-cta::before {
	content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
	width: 620px; height: 620px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; pointer-events: none;
}
.h2o-cta > * { position: relative; }
.h2o-cta a { color: #fff; }

/* ---------- Footer ---------- */
.h2o-footer a { color: #CFC9BF; text-decoration: none; }
.h2o-footer a:hover { color: #fff; }
.h2o-footer .h2o-footer__title { font-size: 11px !important; letter-spacing: 3px; text-transform: uppercase; color: #A39C91; margin-bottom: 8px; }
.h2o-footer p { margin: 0; }

/* ---------- Formulieren (planner & afspraak) ---------- */
.h2o-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.h2o-form input, .h2o-form textarea, .h2o-form select {
	font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; font-weight: 400;
	border: 0; border-bottom: 1px solid var(--wp--preset--color--diepte); padding: 10px 0; background: transparent; color: inherit; border-radius: 0;
}
.h2o-form input:focus, .h2o-form textarea:focus, .h2o-form select:focus { outline: 2px solid var(--wp--preset--color--leisteen); outline-offset: 2px; }

/* ---------- WooCommerce ---------- */
.woocommerce .wp-block-button__link, .wc-block-components-button { border-radius: 0 !important; }
.wc-block-components-product-price { font-weight: 600; }

/* Lichte knop op donkere achtergrond */
.h2o-btn-light .wp-block-button__link { background: var(--wp--preset--color--leisteen-licht); color: var(--wp--preset--color--diepte); }
.h2o-btn-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--diepte); }
.h2o-projects .wp-block-column:not(:has(.h2o-tile)) { padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.h2o-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(20,19,17,.85) 0%, rgba(20,19,17,.45) 55%, rgba(20,19,17,.2) 100%) !important; opacity: 1 !important; }
.h2o-hero .h2o-hero__line, .h2o-hero .h2o-hero__orb { max-width: none !important; margin: 0 !important; }
.h2o-hero h1 { max-width: 900px; }

.h2o-projects > .wp-block-columns { padding: 0 !important; margin: 0 !important; }
.h2o-projects .h2o-tile img { display: block; }
.has-diepte-background-color .h2o-textlink a, .is-dark-context .h2o-textlink a { color: var(--wp--preset--color--leisteen-licht); }
.h2o-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
	.h2o-header .wp-block-buttons { display: none; }
	.h2o-hero .h2o-hero__orb { top: 30%; width: 220px; height: 220px; right: -50px; }
	.h2o-hero .h2o-hero__line { top: 30%; }
	.h2o-cta::before { display: none; }
}
