/*
Theme Name: Godding
Theme URI: https://www.godding.nu
Description: Child theme van Twenty Twenty-Five voor Godding storytelling & training. Kleuren, typografie en componenten volgen de Godding Styleguide.
Author: Godding
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: godding
*/

/* ---------------------------------------------------------------------------
 * Aanvullende stijlen die theme.json niet kan uitdrukken.
 * Kleuren komen uit de presets: --wp--preset--color--accent-1 (geel) enz.
 * ------------------------------------------------------------------------ */

:root {
	--godding-geel: var(--wp--preset--color--accent-1);
	--godding-nacht: var(--wp--preset--color--accent-3);
	--godding-lijn: var(--wp--preset--color--accent-6);
}

/* Zichtbare focus overal. */
:where(a, button, summary, input, textarea, select):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* Links: onderstreept, met een gele onderstreping op lichte achtergronden. */
:where(.wp-site-blocks) :where(p, li, dd) a:where(:not(.wp-element-button)) {
	text-decoration-color: var(--godding-geel);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
:where(.is-style-section-geel) :where(p, li) a:where(:not(.wp-element-button)) {
	text-decoration-color: currentColor;
}

/* ---------- Header ---------- */
.godding-contactbalk {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.godding-contactbalk a { text-decoration: none; }
.godding-contactbalk a:hover { text-decoration: underline; }
.godding-header {
	box-shadow: var(--wp--custom--header-lijn);
}

/* ---------- Sectiewoord: groot contourwoord achter een sectiekop ---------- */
.is-style-sectiewoord {
	color: transparent !important;
	-webkit-text-stroke: 1.5px rgba(36, 39, 49, 0.18);
	overflow-wrap: normal;
	word-break: keep-all;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
	user-select: none;
	margin-bottom: -0.32em !important;
}
.wp-block-column > .is-style-sectiewoord {
	font-size: clamp(40px, 5.5vw, 76px);
}
.is-style-section-nacht .is-style-sectiewoord,
.has-accent-3-background-color .is-style-sectiewoord {
	-webkit-text-stroke-color: rgba(255, 255, 255, 0.16);
}
@supports not (-webkit-text-stroke: 1px black) {
	.is-style-sectiewoord { color: rgba(36, 39, 49, 0.08) !important; }
}

/* ---------- Label (eyebrow) ---------- */
.is-style-label { color: var(--wp--preset--color--accent-4); }
.is-style-section-nacht .is-style-label { color: #c9cad0; }
.is-style-section-geel .is-style-label { color: var(--wp--preset--color--contrast); }

/* ---------- Afbeelding in boogvorm (portret) ---------- */
.wp-block-image.is-style-boog img {
	border-radius: 999px 999px 0 0;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
}

/* ---------- Lijst met vinkjes ---------- */
ul.is-style-vinkjes {
	list-style: none;
	padding-left: 0;
}
ul.is-style-vinkjes li {
	position: relative;
	padding-left: 2em;
	margin-bottom: 0.35em;
}
ul.is-style-vinkjes li::before {
	content: "";
	position: absolute;
	left: 0.1em;
	top: 0.5em;
	width: 0.75em;
	height: 0.4em;
	border-left: 3px solid var(--godding-geel);
	border-bottom: 3px solid var(--godding-geel);
	transform: rotate(-45deg);
}
.is-style-section-geel ul.is-style-vinkjes li::before { border-color: var(--wp--preset--color--contrast); }

/* ---------- Accordeon (core/details) ---------- */
.wp-block-details.is-style-accordeon {
	border-top: 1px solid var(--wp--preset--color--accent-2);
	padding-block: 0.9rem;
	margin-block-start: 0 !important;
}
.wp-block-details.is-style-accordeon:last-of-type { border-bottom: 1px solid var(--wp--preset--color--accent-2); }
.wp-block-details.is-style-accordeon > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--accent-4);
}
.wp-block-details.is-style-accordeon > summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-accordeon > summary::before {
	content: "";
	flex: none;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid var(--godding-geel);
	transition: transform 0.2s ease;
}
.wp-block-details.is-style-accordeon[open] > summary { color: var(--wp--preset--color--contrast); }
.wp-block-details.is-style-accordeon[open] > summary::before { transform: rotate(90deg); }
.wp-block-details.is-style-accordeon > :not(summary) {
	margin-left: calc(5px + 0.75rem);
	padding-left: 1.4rem;
	border-left: 1px solid var(--godding-lijn);
}
.wp-block-details.is-style-accordeon > summary + * { margin-top: 1rem; }
.is-style-section-nacht .wp-block-details.is-style-accordeon > summary { color: #c9cad0; }
.is-style-section-nacht .wp-block-details.is-style-accordeon[open] > summary { color: var(--wp--preset--color--base); }
.is-style-section-nacht .wp-block-details.is-style-accordeon { border-color: rgba(255, 255, 255, 0.2); }

/* ---------- Kaart ---------- */
.godding-kaart {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.godding-kaart > .wp-block-image,
.godding-kaart > .wp-block-post-featured-image { margin: 0 !important; }
.godding-kaart .godding-kaart__tekst {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.godding-kaart .godding-kaart__tekst > .wp-block-buttons,
.godding-kaart .godding-kaart__tekst > .wp-block-read-more {
	margin-top: auto !important;
	padding-top: var(--wp--preset--spacing--30);
}
.godding-kaart .wp-block-post-title a,
.godding-kaart h3 a { text-decoration: none; }
.godding-kaart .wp-block-post-title a:hover,
.godding-kaart h3 a:hover { text-decoration: underline; }
.godding-kaart h3 {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
}
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > .godding-kaart { width: 100%; }

/* Read more als knop */
.wp-block-read-more.godding-knop {
	display: inline-block;
	align-self: flex-start;
	background: var(--godding-geel);
	color: var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius-pil);
	padding: 0.75em 1.6em;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
}
.wp-block-read-more.godding-knop:hover { background: var(--wp--custom--geel-hover); }

/* ---------- Secties op pagina's sluiten op elkaar aan ---------- */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull:last-child { margin-block-end: 0; }

/* ---------- Hero ---------- */
.wp-block-cover.godding-hero {
	padding-left: 0;
	padding-right: 0;
}
.wp-block-cover.godding-hero.godding-hero > .wp-block-cover__inner-container {
	width: 100% !important;
	margin: 0;
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}
.wp-block-cover.godding-hero > .wp-block-cover__inner-container > .alignwide {
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto !important;
	margin-right: auto !important;
}
@media (max-width: 781px) {
	.wp-block-cover.godding-hero.is-light .godding-hero-tekst {
		background: rgba(255, 255, 255, 0.9);
		padding: var(--wp--preset--spacing--30);
	}
}
.godding-hero-tekst { max-width: 560px; }
/* Uitgelichte afbeeldingen in de pagina-hero: iets boven het midden, zodat gezichten in beeld blijven. */
.godding-hero > img.wp-block-cover__image-background:not([style*="object-position"]) { object-position: 50% 30%; }
.godding-hero .godding-hero-tekst p { font-weight: 600; }

/* ---------- Grote G als decoratie ---------- */
.godding-met-g {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.godding-met-g::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -6%;
	bottom: -30%;
	width: min(60vw, 620px);
	aspect-ratio: 831 / 741;
	background: url("assets/images/godding-background.svg") no-repeat center / contain;
	pointer-events: none;
}

/* ---------- Logo-rij ---------- */
.godding-logos .wp-block-image { margin: 0; }
.godding-logos img {
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s, opacity 0.2s;
	height: 64px !important;
	width: auto !important;
	max-width: 180px;
	object-fit: contain;
}
.godding-logos img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.godding-footer a { text-decoration: none; }
.godding-footer a:hover { text-decoration: underline; }
.godding-footer .godding-footer__menu {
	font-size: 15px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
.godding-footer .is-style-label { color: var(--godding-geel); }
.godding-footer__onder { color: #9a9ba1; }

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

/* ---------- Formulier ([godding_contact]) ---------- */
.godding-form { display: grid; gap: var(--wp--preset--spacing--30); }
.godding-form__veld { display: grid; gap: 6px; margin: 0; }
.godding-form label { font-weight: 700; font-size: 15px; }
.godding-form input,
.godding-form textarea {
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--godding-lijn);
	border-radius: 4px;
	padding: 0.7em 0.9em;
	width: 100%;
	box-sizing: border-box;
}
.godding-form input:focus,
.godding-form textarea:focus {
	outline: 3px solid var(--godding-geel);
	outline-offset: 0;
	border-color: var(--wp--preset--color--contrast);
}
.godding-form__honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.godding-form button { cursor: pointer; border: 0; }
.godding-form__melding { padding: 0.9em 1.1em; border-left: 4px solid; font-weight: 600; }
.godding-form__melding--ok { border-color: var(--godding-geel); background: var(--wp--preset--color--base); }
.godding-form__melding--fout { border-color: #b3261e; background: #fdecea; color: #5c1410; }

/* Labels, datums en categorieën in een donkere hero: wit. */
.godding-hero .wp-block-post-terms,
.godding-hero .wp-block-post-terms a,
.godding-hero .wp-block-post-date,
.godding-hero .wp-block-post-date a {
	color: var(--wp--preset--color--base);
}
.godding-hero .wp-block-post-terms {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Beeld van het werk bovenaan een case. */
.godding-case-beeld img { width: 100%; height: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }

/* ---------- Oude Divi-inhoud (vangnet uit Godding Core) ---------- */
.godding-legacy > * + * { margin-block-start: 1.2rem; }
.godding-legacy figure { margin: 2rem 0; }
.godding-legacy img { height: auto; max-width: 100%; }
.godding-legacy h2 { margin-top: 2.5rem; }
.godding-legacy h3 { margin-top: 2rem; }
.godding-legacy .wp-block-buttons { margin: 1.5rem 0; }
