/* AH Bouw — glass, motion and component utilities. Tokens live in theme.json. */
:root { --ah-red: var(--wp--preset--color--red, #E3241A); --ah-line: var(--wp--preset--color--gray-900, #262626); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* Glass */
.glass {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(24px) saturate(140%);
	backdrop-filter: blur(24px) saturate(140%);
	border-radius: 24px;
}
.glass--dark { background: rgba(10, 10, 10, .45); border-color: rgba(255, 255, 255, .2); border-radius: 16px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass, .glass--dark { background: rgba(20, 20, 20, .92); }
}

/* Header */
header.wp-block-template-part { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.ah-header { padding-top: 16px; }
body.admin-bar header.wp-block-template-part { top: 32px; }
main.wp-block-group:not(.ah-home) { padding-top: 160px !important; }
.ah-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 24px; border-radius: 18px; }
.ah-logo { font-weight: 900; font-size: 22px; letter-spacing: -.03em; text-transform: uppercase; text-decoration: none; color: #fff; }
.ah-logo span, .ah-red { color: var(--ah-red); }
.ah-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 600; font-size: 15px; }
.ah-nav a { color: var(--wp--preset--color--gray-300); text-decoration: none; padding: 12px 0; }
.ah-nav a:hover, .ah-nav a[aria-current="page"] { color: #fff; }
.ah-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 12px; background: #fff; color: #0A0A0A !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.ah-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ah-red); animation: ah-blink 1.6s ease-in-out infinite; }

/* Eyebrow label with red bar */
.ah-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--gray-300); }
.ah-eyebrow::before { content: ""; width: 40px; height: 3px; background: var(--ah-red); flex: none; }

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: transform .25s, box-shadow .25s; min-height: 44px; }
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(227, 36, 26, .45); }
.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; box-shadow: none; }

/* Motion */
@keyframes ah-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ah-kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-2%, -1%); } }
@keyframes ah-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }
@keyframes ah-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.kb img, .kb .wp-block-cover__image-background { animation: ah-kenburns 26s ease-in-out infinite alternate; }
.rise { animation: ah-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.rise-2 { animation: ah-rise 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.pulse { animation: ah-pulse 5s ease-in-out infinite; }
.bw img { filter: grayscale(1) contrast(1.1); transition: filter .7s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.bw:hover img, .bw:focus-within img { filter: none; transform: scale(1.05); }

/* Footer */
.ah-footer { border-top: 1px solid var(--ah-line); color: var(--wp--preset--color--gray-400); font-size: 15px; }
.ah-footer a { color: var(--wp--preset--color--gray-300); text-decoration: none; }
.ah-footer a:hover { color: #fff; }
.ah-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Hero */
.ah-hero { overflow: hidden; }
.ah-hero .wp-block-cover__image-background { will-change: transform; }
.ah-hero h1 { margin: 22px 0 0; max-width: 100%; overflow-wrap: anywhere; }

/* Quick quote */
.ah-quote { padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ah-quote__title { margin: 0; font-size: 18px; font-weight: 700; }
.ah-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-chips button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font: 600 15px/1 var(--wp--preset--font-family--archivo); cursor: pointer; }
.ah-chips button[aria-pressed="true"] { background: #fff; color: #0A0A0A; border-color: #fff; }
.ah-chips button:focus-visible, .ah-row:focus-visible { outline: 2px solid var(--ah-red); outline-offset: 2px; }
.ah-quote__cta { display: flex; justify-content: center; align-items: center; min-height: 54px; text-decoration: none; }

/* Trust strip */
.ah-trust { border-block: 1px solid var(--ah-line); }
.ah-trust__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ah-trust__list li { padding: 28px 24px; display: grid; gap: 6px; border-left: 1px solid var(--ah-line); }
.ah-trust__list li:first-child { border-left: 0; padding-left: 0; }
.ah-trust__list span:last-child { color: var(--wp--preset--color--gray-400); font-size: 15px; }
.ah-trust__nr { color: var(--ah-red); font-size: 13px; font-weight: 700; }

/* Services */
.ah-label { margin: 0 0 36px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--gray-400); line-height: 1.4; }
.ah-services__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.ah-services__list { flex: 999 1 560px; min-width: 0; }
.ah-services__list nav { border-top: 1px solid #333; }
.ah-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0; border-bottom: 1px solid #333; text-decoration: none; color: var(--wp--preset--color--gray-500) !important; transition: color .3s, padding-left .4s cubic-bezier(.2, .7, .2, 1); }
.ah-row__name { display: flex; align-items: baseline; gap: 18px; font-size: clamp(34px, 5vw, 66px); font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; line-height: 1; }
.ah-row__nr { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ah-row__sub { font-size: 16px; color: var(--wp--preset--color--gray-400); }
.ah-row.is-active, .ah-row:hover, .ah-row:focus-visible { color: #fff !important; padding-left: 20px; }
.ah-row.is-active .ah-row__nr { color: var(--ah-red); }
.ah-services__preview { flex: 1 1 340px; min-width: 0; margin: 0; position: sticky; top: 120px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
.ah-services__preview img { display: block; width: 100%; height: 560px; object-fit: cover; }
.ah-services__preview figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 18px 20px; display: grid; gap: 6px; font-size: 17px; line-height: 1.45; }
.ah-services__preview .ah-label { margin: 0; color: var(--wp--preset--color--gray-300); font-size: 13px; }
@media (max-width: 781px) { .ah-services__preview { position: relative; top: 0; } .ah-services__preview img { height: 380px; } .ah-trust__list li { border-left: 0; padding-left: 0; border-top: 1px solid var(--ah-line); } }

/* Projects */
.ah-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.ah-tile { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); }
.ah-tile .wp-block-post-featured-image { margin: 0; }
.ah-tile .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.ah-tile__title { position: absolute; left: 14px; bottom: 14px; right: 14px; margin: 0; padding: 4px 16px; font-size: 17px !important; text-transform: none; letter-spacing: 0; }
.ah-tile__title a { text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.ah-project-query .wp-block-post-template { gap: 16px; }

/* Video frame */
.ah-phoneframe { box-sizing: border-box; width: min(100%, 360px); margin-inline: auto; padding: 10px; border-radius: 34px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
.ah-phoneframe video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; background: #111; }

/* White CTA band */
.ah-cta h2 { color: #0A0A0A; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Inner pages */
.ah-crumbs { font-size: 14px; color: var(--wp--preset--color--gray-400); margin-bottom: 24px; }
.ah-crumbs a { color: var(--wp--preset--color--gray-300); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ah-lead { font-size: 20px; max-width: 760px; }
.ah-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 40px; }
.ah-filter a, .ah-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); text-decoration: none; font-weight: 600; font-size: 15px; }
.ah-filter a[aria-current="page"] { background: #fff; color: #0A0A0A; }
.ah-faq { border-bottom: 1px solid var(--ah-line); padding: 8px 0; }
.ah-faq summary { cursor: pointer; font-weight: 700; font-size: 19px; min-height: 44px; display: flex; align-items: center; }
.ah-steps li, .ah-checks li { margin-bottom: 8px; }
.ah-form input, .ah-form textarea { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.ah-form input[type="submit"] { background: var(--ah-red); border: 0; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.wp-block-post-navigation-link a { display: inline-flex; min-height: 44px; align-items: center; }

/* Phones: compact header in the page flow (never covers content). */
@media (max-width: 781px) {
	header.wp-block-template-part { position: relative; }
	body.admin-bar header.wp-block-template-part { top: 0; }
	.ah-header { padding-top: 10px; }
	.ah-header__bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 8px 4px 16px; border-radius: 16px; }
	.ah-logo { font-size: 20px; align-self: center; }
	.ah-phone { padding: 0 14px; font-size: 14px; }
	.ah-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; gap: 20px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
	.ah-nav a { padding: 12px 0; white-space: nowrap; }
	main.wp-block-group:not(.ah-home) { padding-top: 32px !important; }
	.ah-hero { padding-top: 64px !important; min-height: 0 !important; }
}

/* Inner-page titles: large, but every word always fits on one line. */
h1.wp-block-post-title, h1.ah-page-title { font-size: clamp(30px, 7.6vw, 96px) !important; hyphens: manual; overflow-wrap: normal; max-width: 100%; }

/* Over ons */
.ah-page-hero { overflow: hidden; }
.ah-page-hero .ah-page-title { margin: 22px 0 0; }
.ah-editorial .wp-block-post-content { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; counter-reset: ah-sec; }
.ah-editorial .wp-block-post-content > * { grid-column: 2; margin-top: 0; margin-bottom: 20px; max-width: 760px; }
.ah-editorial .wp-block-post-content > p:first-child { grid-column: 1 / -1; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; max-width: 980px; margin-bottom: 72px; }
.ah-editorial .wp-block-post-content > h2 { grid-column: 1; font-size: clamp(28px, 3.4vw, 44px); padding-top: 28px; border-top: 1px solid var(--ah-line); margin-top: 0; }
.ah-editorial .wp-block-post-content > h2 + * { padding-top: 34px; border-top: 1px solid var(--ah-line); }
.ah-editorial .wp-block-post-content > h2::before { counter-increment: ah-sec; content: counter(ah-sec, decimal-leading-zero); display: block; color: var(--ah-red); font-size: 14px; letter-spacing: 0; margin-bottom: 12px; }
.ah-editorial .wp-block-post-content > p { color: var(--wp--preset--color--gray-300); }
.ah-editorial .wp-block-post-content strong { color: #fff; }

/* Contact */
.ah-contact .ah-lead { color: var(--wp--preset--color--gray-300); }
.ah-contact .ah-lead { margin-left: 0 !important; max-width: 760px; padding-left: 0 !important; padding-right: 0 !important; }
.ah-contact .ah-lead > * { margin-left: 0 !important; }
.ah-contact-cards { display: grid; gap: 12px; }
.ah-card { display: grid; gap: 6px; padding: 22px 24px; border-radius: 20px; text-decoration: none; color: #fff !important; transition: transform .3s, border-color .3s; }
a.ah-card:hover, a.ah-card:focus-visible { transform: translateY(-3px); border-color: rgba(255, 255, 255, .45); }
.ah-card__label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-red); }
.ah-card__value { font-size: 22px; font-weight: 800; line-height: 1.25; }
.ah-card__hint { font-size: 15px; color: var(--wp--preset--color--gray-400); }

/* Contact Form 7, everywhere */
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 p { margin: 0; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7 textarea, .wpcf7 select {
	width: 100%; box-sizing: border-box; min-height: 52px; padding: 14px 16px; border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 16px; }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 ::placeholder { color: var(--wp--preset--color--gray-400); opacity: 1; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--ah-red); outline-offset: 1px; border-color: transparent; }
.wpcf7 input[type="submit"] { width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--ah-red); color: #fff; font: 800 16px/1 var(--wp--preset--font-family--archivo); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { box-shadow: 0 14px 34px rgba(227, 36, 26, .45); }
.wpcf7-response-output { margin: 8px 0 0 !important; border-radius: 12px; padding: 12px 16px !important; }

@media (max-width: 781px) {
	.ah-editorial .wp-block-post-content { grid-template-columns: 1fr; }
	.ah-editorial .wp-block-post-content > * { grid-column: 1 !important; }
	.ah-editorial .wp-block-post-content > h2 + * { padding-top: 0; border-top: 0; }
	.ah-page-hero { padding-top: 72px !important; min-height: 380px !important; }
	.ah-contact .wp-block-column { flex-basis: 100% !important; }
}

/* Diensten overview: photo cards (bento) */
.ah-diensten .ah-lead { margin-left: 0 !important; max-width: 760px; padding: 0 !important; color: var(--wp--preset--color--gray-300); font-size: 19px; }
.ah-dienst-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 16px; margin-top: 56px; }
.ah-dcard { position: relative; display: block; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: #fff !important; }
.ah-dcard:first-child { grid-column: span 2; grid-row: span 2; }
.ah-dcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-dcard__body { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.ah-dcard__nr { color: var(--ah-red); font-size: 13px; font-weight: 700; }
.ah-dcard__name { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.1; letter-spacing: -.02em; }
.ah-dcard:first-child .ah-dcard__name { font-size: clamp(22px, 3.6vw, 48px); }
.ah-total h2 { font-size: clamp(26px, 4.4vw, 52px) !important; }
.ah-total__text { flex: 1 1 560px !important; }
@media (min-width: 1024px) { .ah-dcard:last-child { grid-column: 1 / -1; } }
.ah-dcard__text { font-size: 15px; line-height: 1.45; color: var(--wp--preset--color--gray-300); }
.ah-dcard__more { font-size: 14px; font-weight: 700; }
.ah-dcard:not(:first-child) .ah-dcard__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ah-dcard:hover .ah-dcard__body, .ah-dcard:focus-visible .ah-dcard__body { transform: translateY(-6px); }
.ah-dcard:focus-visible { outline: 2px solid var(--ah-red); outline-offset: 3px; }
.ah-total { border-radius: 28px; gap: 32px; }
.ah-total__text { max-width: 640px; flex: 1 1 260px; min-width: 0; }
.ah-dcard { min-width: 0; }
.ah-dienst-cards { width: 100%; box-sizing: border-box; }
.ah-dcard__name { overflow-wrap: break-word; hyphens: auto; }
.ah-total h2 { margin: 12px 0; }
@media (max-width: 1023px) { .ah-dienst-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ah-dcard:first-child { grid-row: span 1; } }
@media (max-width: 781px) {
	.ah-dienst-cards { grid-template-columns: 1fr; grid-auto-rows: 340px; }
	.ah-dcard:first-child { grid-column: auto; grid-row: span 1; }
	.ah-total { padding: 28px !important; }
}

/* Hero photos: dark behind the headline, lighter on the right so the work shows. */
.ah-hero .wp-block-cover__background, .ah-page-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .62) 45%, rgba(10, 10, 10, .28) 100%) !important;
	opacity: 1 !important;
}
.ah-hero::after, .ah-page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(0deg, #0A0A0A 0%, transparent 100%); pointer-events: none; z-index: 1; }
.ah-hero .wp-block-cover__inner-container, .ah-page-hero .wp-block-cover__inner-container { z-index: 2; }
.ah-hero .wp-block-cover__image-background { object-position: 60% 30%; }
@media (max-width: 781px) {
	.ah-hero .wp-block-cover__background, .ah-page-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .75) 60%, rgba(10, 10, 10, .9) 100%) !important; }
	.ah-hero .wp-block-cover__image-background { object-position: 55% 0%; inset: 0 0 auto 0 !important; height: 500px !important; max-height: 500px !important; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
	.ah-hero { background: #0A0A0A; }
}
