/*
 * straq Design/Pro: stijl uit het design (artifact), bovenop Astra.
 * Waarden: kleuren, lettertypen en knoppen uit het design. Opbouw van header/footer
 * staat in de Astra Header/Footer Builder (Customizer), niet hier.
 */

@font-face {
	font-family: "Nasalization";
	src: url("../fonts/nasalization.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--straq-ink: #0b0b0b;
	--straq-paper: #fcfcfc;
	--straq-band: #f4f3f0;
	--straq-mute: #6b716e;
	--straq-soft: #424946;
	--straq-line: #e4e3df;
	--straq-line-2: #cfd0cc;
	--straq-head: "Nasalization", "Audiowide", Arial, sans-serif;
	--straq-body: "Inter", "Helvetica Neue", Arial, sans-serif;

	/* Astra-kleurenpalet laten wijzen naar de design-kleuren */
	--ast-global-color-0: #0b0b0b;
	--ast-global-color-1: #424946;
	--ast-global-color-2: #0b0b0b;
	--ast-global-color-3: #424946;
	--ast-global-color-4: #f4f3f0;
	--ast-global-color-5: #fcfcfc;
	--ast-global-color-6: #e4e3df;
	--ast-global-color-7: #cfd0cc;
	--ast-global-color-8: #0b0b0b;
}

/* Lettertypes */
body,
button,
input,
select,
textarea {
	font-family: var(--straq-body);
	letter-spacing: -0.015em;
	-webkit-font-smoothing: antialiased;
}

body {
	background: var(--straq-paper);
	color: var(--straq-ink);
}

h1,
h2,
h3,
h4,
.entry-title {
	font-family: var(--straq-head);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: var(--straq-ink);
}

/* Knoppen: 4px radius, 48px hoog */
.wp-block-button__link,
.button,
button[type="submit"],
.ast-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
}

/* Header: rustig, wit, lijn onderaan */
#masthead .main-header-bar,
#masthead .ast-primary-header-bar {
	background: var(--straq-paper);
	border-bottom: 1px solid var(--straq-line);
}

#masthead .main-header-menu .menu-link,
#masthead .ast-header-search,
#masthead .ast-site-header-cart a {
	color: var(--straq-ink);
	font-family: var(--straq-body);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
}

#masthead .site-primary-header-wrap {
	min-height: 88px;
}

/* Header op hetzelfde raster als de rest van het design (1450px, 52px rand) */
#masthead .site-primary-header-wrap.ast-container {
	width: min(1450px, calc(100% - 104px));
	max-width: none;
	margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
}

/* Zoek- en winkelmand-icoon als knop met rand (zoals de design-knoppen) */
#masthead .ast-header-search .ast-search-icon,
#masthead .ast-site-header-cart .ast-site-header-cart-li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--straq-line-2);
	border-radius: 4px;
}

/* Icoon-knoppen: zelfde outline-iconen als in het design (Astra levert een gevuld tasje en een dikker vergrootglas) */
#masthead .ast-header-search .ast-search-icon .ast-icon,
#masthead .ast-site-header-cart .ast-addon-cart-wrap .ast-icon {
	display: none;
}

#masthead .ast-header-search .ast-search-icon a,
#masthead .ast-site-header-cart .ast-site-header-cart-li > a {
	position: relative;
}

#masthead .ast-header-search .ast-search-icon a::before,
#masthead .ast-site-header-cart .ast-addon-cart-wrap::before,
#masthead .straq-menu-btn svg {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
}

#masthead .ast-header-search .ast-search-icon a::before,
#masthead .ast-site-header-cart .ast-addon-cart-wrap::before {
	background-color: currentColor;
	-webkit-mask: var(--straq-ico) center / contain no-repeat;
	mask: var(--straq-ico) center / contain no-repeat;
}

#masthead .ast-header-search .ast-search-icon a {
	--straq-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
	color: inherit;
}

#masthead .ast-site-header-cart .ast-addon-cart-wrap {
	--straq-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5h13l-1 11.5h-11z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E");
	display: flex;
}

/* Teller alleen tonen als er iets in het mandje zit (het design heeft geen teller) */
#masthead .ast-site-header-cart i.astra-icon[data-cart-total="0"]::after {
	display: none;
}

/* Rechterkant van de header: drie knoppen van 48px, gelijke tussenruimte, op één lijn.
   Astra geeft het mandje eigen padding (.4em) en het icoon eigen breedte; die halen we weg. */
#masthead .site-header-primary-section-right {
	align-items: center;
	gap: 10px;
}

#masthead .site-header-primary-section-right > .ast-builder-layout-element,
#masthead .site-header-primary-section-right > .straq-menu-btn-wrap,
#masthead .site-header-primary-section-right > .straq-contact-btn-wrap {
	display: flex;
	align-items: center;
	flex: 0 0 auto; /* niet laten krimpen: anders breekt "Menu" af op twee regels */
	height: 48px;
	margin: 0;
	padding: 0;
}

/* Smal scherm: geen plek voor de contactknop naast zoeken, winkelmand en Menu */
@media (max-width: 640px) {
	#masthead .site-header-primary-section-right > .straq-contact-btn-wrap {
		display: none;
	}
}

#masthead .ast-header-woo-cart .ast-site-header-cart,
#masthead .ast-header-woo-cart .ast-site-header-cart-li {
	display: flex;
	align-items: center;
	margin: 0;
	line-height: 0;
}

#masthead .ast-site-header-cart .ast-site-header-cart-li > a {
	display: flex !important;
	width: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	box-sizing: border-box;
}

#masthead .ast-site-header-cart .ast-addon-cart-wrap {
	color: inherit; /* Astra kleurt het tasje donker; het volgt nu de knopkleur (wit op de hero) */
	padding: 0;
	margin: 0;
	align-items: center;
	justify-content: center;
}

/* het icoon-element zelf neemt geen ruimte meer in; alleen de teller (bij gevulde mand) hangt rechtsboven */
#masthead .ast-site-header-cart i.astra-icon {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 0;
	height: 0;
	padding: 0;
}

/* Menu-knop rechts, zelfde rand en hoogte als de icoon-knoppen */
#masthead .straq-menu-btn-wrap {
	display: flex;
	align-items: center;
}

#masthead .straq-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 20px;
	border: 1px solid var(--straq-line-2);
	border-radius: 4px;
	background: transparent;
	color: var(--straq-ink);
	font-family: var(--straq-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
}

#masthead .straq-menu-btn svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

/* Pro: groene contactknop tussen zoeken en winkelmand */
#masthead .site-header-primary-section-right {
	align-items: center;
}

#masthead .site-header-primary-section-right .ast-header-search { order: 1; }
#masthead .site-header-primary-section-right .straq-contact-btn-wrap { order: 2; }
#masthead .site-header-primary-section-right .ast-header-woo-cart { order: 3; }
#masthead .site-header-primary-section-right .straq-menu-btn-wrap { order: 4; }

#masthead .straq-contact-btn-wrap {
	display: flex;
	align-items: center;
}

#masthead .straq-contact-btn {
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 22px;
	border-radius: 4px;
	background: #0f9136;
	color: #fff;
	font-family: var(--straq-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s;
}

#masthead .straq-contact-btn:hover,
#masthead .straq-contact-btn:focus-visible {
	background: #0c7a2d;
	color: #fff;
}

/* Astra's outline-stijl zet een eigen donkere rand om de winkelmand; wij tekenen de rand al op de knop */
#masthead .ast-site-header-cart.ast-menu-cart-outline .ast-addon-cart-wrap,
#masthead .ast-site-header-cart.ast-menu-cart-outline .ast-cart-menu-wrap {
	border: 0;
	box-shadow: none;
}

/* Homepage: geen lege strook tussen hero en footer */
body.home .site-content,
body.home .entry-content,
body.home article.page {
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Homepage: de strook onder de hero is zwart, zodat hij in de footer overloopt */
body.home,
body.home #page,
body.home .site-content,
body.home #primary,
body.home #main,
body.home .site-content > .ast-container,
body.home article.page,
body.home .entry-content {
	background-color: #0b0b0b;
}

/* Rolkeuze-balk (Architect / Vakman) */
.straq-aud {
	position: relative;
	z-index: 51;
	background: #0b0b0b;
	color: #fcfcfc;
}

.straq-aud__in {
	display: flex;
	height: 40px;
	width: min(1450px, calc(100% - 104px));
	margin: 0 auto;
}

.straq-aud a {
	display: flex;
	align-items: center;
	color: rgba(252, 252, 252, 0.55);
	font-size: 14px;
	letter-spacing: 0;
	text-decoration: none;
	transition: color 0.2s, background 0.2s;
}

.straq-aud a:hover,
.straq-aud a[aria-current="page"] {
	color: #fcfcfc;
}

.straq-aud__tab {
	padding: 0 24px;
}

.straq-aud__tab[aria-current="page"] {
	background: #424946;
}

.straq-aud__home {
	justify-content: center;
	width: 40px;
	margin-right: 4px;
}

.straq-aud__home svg {
	width: 17px;
	height: 17px;
}

/* Homepage: header transparant over de hero, wit */
body.straq-has-hero #masthead {
	position: absolute;
	top: 0; /* de pagina begint al onder de rolkeuze-balk */
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
}

body.straq-has-hero #masthead .main-header-bar,
body.straq-has-hero #masthead .ast-primary-header-bar,
body.straq-has-hero #masthead .site-primary-header-wrap {
	background: transparent !important;
	border-bottom: 0;
}

body.straq-has-hero #masthead .main-header-menu .menu-link,
body.straq-has-hero #masthead .ast-header-search,
body.straq-has-hero #masthead .ast-site-header-cart a,
body.straq-has-hero #masthead .site-title a,
body.straq-has-hero #masthead .ast-header-search svg,
body.straq-has-hero #masthead .ast-site-header-cart svg {
	color: #fcfcfc;
	fill: #fcfcfc;
}

body.straq-has-hero #masthead .ast-header-search .ast-search-icon,
body.straq-has-hero #masthead .ast-site-header-cart .ast-site-header-cart-li > a,
body.straq-has-hero #masthead .straq-menu-btn {
	border-color: rgba(252, 252, 252, 0.4);
	background: rgba(252, 252, 252, 0.14);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

body.straq-has-hero #masthead .straq-menu-btn {
	color: #fcfcfc;
}

/* Logo: wit bestand; donker op lichte pagina's, wit over de hero */
.straq-logo {
	display: block;
	line-height: 0;
}

.straq-logo img {
	display: block;
	width: clamp(180px, 15vw, 206px);
	height: auto;
	filter: brightness(0);
}

/* Pro-logo is smaller in breedte maar even hoog als het Design-logo (449x132 tegen 573x132) */
.straq-logo--pro img {
	width: clamp(141px, 11.75vw, 161px);
}

body.straq-has-hero .straq-logo img {
	filter: none;
}

/* Sticky header die zwart wordt bij scrollen (class straq-scrolled komt uit header-scroll.js).
   Homepage: header ligt over de hero, dus fixed; --straq-hdr-top houdt hem onder de rolkeuze-balk
   zolang die in beeld is. Andere pagina's: gewoon sticky bovenaan. */
#masthead {
	position: sticky;
	top: 0;
	z-index: 50;
}

body.straq-has-hero #masthead {
	position: fixed;
	top: var(--straq-hdr-top, 0px);
	left: 0;
	right: 0;
}

#masthead .main-header-bar,
#masthead .ast-primary-header-bar {
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.straq-scrolled #masthead .main-header-bar,
body.straq-scrolled #masthead .ast-primary-header-bar,
body.straq-scrolled #masthead .site-primary-header-wrap {
	background: #0b0b0b !important;
	border-bottom: 1px solid #262a28;
}

body.straq-scrolled #masthead .main-header-menu .menu-link,
body.straq-scrolled #masthead .ast-header-search,
body.straq-scrolled #masthead .ast-site-header-cart a,
body.straq-scrolled #masthead .straq-menu-btn {
	color: #fcfcfc;
}

body.straq-scrolled #masthead .ast-header-search .ast-search-icon,
body.straq-scrolled #masthead .ast-site-header-cart .ast-site-header-cart-li > a,
body.straq-scrolled #masthead .straq-menu-btn {
	border-color: rgba(252, 252, 252, 0.4);
	background: transparent;
}

body.straq-scrolled .straq-logo img {
	filter: none;
}

/* Hero (Cover-blok met class "straq-hero") */
body.home .site-content > .ast-container,
body.home.ast-plain-container.ast-no-sidebar #primary {
	max-width: none;
	padding: 0;
	margin: 0; /* Astra zet hier 60px marge boven en onder; die willen we niet onder de hero */
}


body.home .entry-header {
	display: none;
}

/* Hoogte zoals in het design (600-800px), niet het hele scherm: minder leegte boven de kop.
   !important nodig: het blok heeft min-height als inline stijl (100vh). */
body .wp-block-cover.straq-hero {
	min-height: clamp(600px, 62vw, 800px) !important;
}

.straq-hero {
	color: #fcfcfc;
	padding: 0;
	background-color: #424946; /* zoals in het design, zolang er nog geen foto is */
	overflow: hidden;
	line-height: 1.2;
}

.straq-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(11, 11, 11, 0.78) 0%, rgba(11, 11, 11, 0.5) 34%, rgba(11, 11, 11, 0.08) 66%, rgba(11, 11, 11, 0) 100%), #0b0b0b;
}

/* Zijkanten van de hero liggen op hetzelfde raster als de header (1450px, 52px rand) */
body .wp-block-cover.straq-hero {
	padding: 0 max(52px, calc((100% - 1450px) / 2));
}

body .wp-block-cover.straq-hero .wp-block-cover__inner-container {
	position: relative; /* moet boven de donkere laag liggen; kolomregel positioneert hier tegen */
	z-index: 1;
	width: 100% !important; /* WP zet hier width:auto bij een eigen contentpositie; dan krimpt het blok en staan de 3 kolommen midden in beeld */
	max-width: none;
	margin: 0;
	padding: 145px 0 70px; /* waarden uit het design */
	color: #fcfcfc;
	/* tekstblok verticaal gecentreerd tussen die paddings, zoals in het design */
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

/* WordPress zet de inhoud van een Cover standaard linksonder; hier wil het design het gecentreerd */
body .wp-block-cover.straq-hero.has-custom-content-position {
	align-items: stretch;
}

/* Nasalization bestaat alleen in 400; een zwaarder gewicht geeft nep-vet, dus dat blokkeren we.
   !important nodig: Astra/het blok zetten gewicht en grootte zelf. */
body .wp-block-cover.straq-hero h1,
body .wp-block-cover.straq-hero h1.wp-block-heading {
	color: #fcfcfc;
	margin: 0 0 28px;
	font-weight: 400 !important;
	font-synthesis: none;
	font-size: clamp(40px, 5vw, 92px) !important;
}

/* Astra forceert donkere tekst in elk Cover-blok; deze selector is bewust specifieker */
body .wp-block-cover.straq-hero:not(.has-text-color.has-link-color) .wp-block-cover__inner-container p {
	color: #fcfcfc;
	max-width: 430px;
	font-weight: 300;
	line-height: 1.65;
}

/* Intro-tekst: compact, zoals in het design (Astra geeft alinea's veel marge en regelhoogte) */
body .wp-block-cover.straq-hero .wp-block-cover__inner-container > p {
	margin: 0;
	font-size: 16px !important; /* het blok heeft de grootte als inline stijl */
	font-weight: 300;
	line-height: 1.2 !important; /* in het design wint de algemene p-regel (1.2 !important) van 1.65 */
	max-width: 430px; /* breekt na "sterk", zoals in het design */
	letter-spacing: 0;
}

.straq-hero .wp-block-buttons {
	gap: 12px;
	margin-top: 34px;
}

.straq-hero .wp-block-button__link {
	color: #0b0b0b;
	font-size: 14px !important;
	line-height: 1.2;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	padding: 0 30px !important;
}

body .straq-hero .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
	background: rgba(252, 252, 252, 0.12);
	border: 1px solid rgba(252, 252, 252, 0.42);
	color: #fcfcfc;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* Onderregel: Natuur / Staal / Toepassing, rechtsonder */
.straq-hero .wp-block-columns {
	position: absolute;
	right: 0;
	bottom: clamp(28px, 4vw, 48px); /* zoals de onderregel in het design */
	width: min(480px, 40%);
	max-width: none;
	margin: 0;
	gap: 24px;
}

body .wp-block-cover.straq-hero:not(.has-text-color.has-link-color) .wp-block-column p {
	border-top: 1px solid rgba(252, 252, 252, 0.4);
	padding-top: 10px;
	max-width: none;
	color: rgba(252, 252, 252, 0.62);
	font-size: 13px !important;
	line-height: 1.3 !important;
}

body .wp-block-cover.straq-hero .wp-block-column p strong {
	color: #fcfcfc;
	font-weight: 400;
	font-size: 14px;
}

@media (max-width: 840px) {
	body .wp-block-cover.straq-hero {
		padding: 0 20px;
	}

	body .wp-block-cover.straq-hero .wp-block-cover__inner-container {
		padding-top: 120px;
		padding-bottom: 40px;
	}

	#masthead .site-primary-header-wrap.ast-container {
		width: calc(100% - 40px);
	}

	body .wp-block-cover.straq-hero .wp-block-columns {
		position: static;
		width: 100%;
		margin-top: 2rem;
	}
}
