/*
Theme Name: Oddesigns
Theme URI: https://www.oddesigns.nl
Author: Oddesigns
Author URI: https://www.oddesigns.nl
Description: Eigen thema voor Oddesigns: strak, snel en zonder pagebuilder. Pagina's bouw je in de blokeditor met de Oddesigns-patronen.
Version: 1.0.4
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: oddesigns
*/

/* ------------------------------------------------------------------ */
/* Basis                                                               */
/* ------------------------------------------------------------------ */
:root {
	--blauw: #4d91ce;
	--blauw-donker: #2f74b5;
	--blauw-licht: #eef5fb;
	--inkt: #0f1720;
	--grijs: #5b6674;
	--lijn: #e3e8ee;
	--grijs-licht: #f4f6f8;
	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 18px;
	--schaduw: 0 1px 2px rgba(15, 23, 32, .06), 0 12px 32px -12px rgba(15, 23, 32, .18);
	--kop-hoogte: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: #fff;
	color: var(--inkt);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; height: auto; }

a { text-underline-offset: .18em; text-decoration-thickness: 1px; }

:focus-visible { outline: 3px solid var(--blauw); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 1000; top: 1rem; left: 1rem;
	padding: .75rem 1rem; background: #fff; color: var(--inkt);
	border-radius: 8px; box-shadow: var(--schaduw);
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sectie { padding-block: clamp(3rem, 8vw, 6rem); }
.sectie-licht { background: var(--grijs-licht); }
.sectie-kop { margin: 0 0 2rem; }

/* Knoppen buiten de editor (thema-templates) */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.wp-element-button:hover { transform: translateY(-1px); }
a.wp-element-button:not(.wp-block-button__link) {
	background: var(--blauw-donker);
	color: #fff;
	border-radius: 999px;
	padding: .85em 1.6em;
	font-weight: 600;
	font-size: 1rem;
	border: 2px solid transparent;
}
a.wp-element-button:not(.wp-block-button__link):hover { background: var(--inkt); color: #fff; }
a.wp-element-button.knop-lijn { background: transparent; color: var(--inkt); border-color: var(--inkt); }
a.wp-element-button.knop-lijn:hover { background: var(--inkt); color: #fff; }
a.wp-element-button.knop-lijn-wit { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
a.wp-element-button.knop-lijn-wit:hover { background: #fff; color: var(--inkt); border-color: #fff; }

/* ------------------------------------------------------------------ */
/* Kop en menu                                                         */
/* ------------------------------------------------------------------ */
.site-kop {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-kop { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-kop { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-kop { top: 0; } }
.site-kop.is-gescrold { border-color: var(--lijn); box-shadow: 0 6px 24px -18px rgba(15,23,32,.35); }

.site-kop-binnen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--kop-hoogte);
}
.site-logo { display: block; flex-shrink: 0; line-height: 0; }
.site-logo img { width: 154px; height: auto; }

.hoofdnavigatie { display: flex; align-items: center; gap: 1.75rem; }
.hoofdnavigatie .menu { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.hoofdnavigatie .menu > li { position: relative; }
.hoofdnavigatie .menu a {
	display: block;
	padding: .55rem .8rem;
	color: var(--inkt);
	text-decoration: none;
	font-weight: 500;
	font-size: .98rem;
	border-radius: 999px;
	transition: background-color .15s, color .15s;
}
.hoofdnavigatie .menu a:hover { background: var(--grijs-licht); }
.hoofdnavigatie .menu .current-menu-item > a,
.hoofdnavigatie .menu .current-menu-ancestor > a,
.hoofdnavigatie .menu .current-menu-parent > a { color: var(--blauw-donker); }

.hoofdnavigatie .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: -.5rem;
	min-width: 260px;
	list-style: none;
	margin: 0;
	padding: .5rem;
	background: #fff;
	border: 1px solid var(--lijn);
	border-radius: 14px;
	box-shadow: var(--schaduw);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.hoofdnavigatie .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.hoofdnavigatie .menu > li:hover > .sub-menu,
.hoofdnavigatie .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hoofdnavigatie .sub-menu a { border-radius: 8px; padding: .6rem .8rem; }
.submenu-toggle { display: none; }
.kop-knop { padding: .65em 1.3em !important; font-size: .95rem !important; }

.menu-knop {
	display: none;
	width: 44px; height: 44px;
	border: 0; padding: 0;
	background: transparent;
	cursor: pointer;
	border-radius: 999px;
}
.menu-knop-streepjes { display: grid; gap: 6px; width: 22px; margin: auto; }
.menu-knop-streepjes i { display: block; height: 2px; background: var(--inkt); border-radius: 2px; transition: transform .2s; }
.menu-knop[aria-expanded="true"] .menu-knop-streepjes i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-knop[aria-expanded="true"] .menu-knop-streepjes i:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
	.menu-knop { display: block; }
	.hoofdnavigatie {
		position: fixed;
		inset: var(--kop-hoogte) 0 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		padding: 1.5rem var(--gutter) 2rem;
		background: #fff;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s, visibility .2s;
	}
	.admin-bar .hoofdnavigatie { top: calc(var(--kop-hoogte) + 46px); }
	/* backdrop-filter maakt van de kop een containing block voor position:fixed: uit bij open menu */
	.menu-open .site-kop { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
	.menu-open .hoofdnavigatie { opacity: 1; visibility: visible; }
	.menu-open { overflow: hidden; }
	.hoofdnavigatie .menu { flex-direction: column; gap: 0; }
	.hoofdnavigatie .menu > li { border-bottom: 1px solid var(--lijn); display: flex; flex-wrap: wrap; align-items: center; }
	.hoofdnavigatie .menu > li > a { flex: 1; font-size: 1.25rem; font-weight: 600; padding: 1rem 0; border-radius: 0; }
	.hoofdnavigatie .menu a:hover { background: transparent; color: var(--blauw-donker); }
	.hoofdnavigatie .sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		border: 0;
		box-shadow: none;
		padding: 0 0 1rem;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.hoofdnavigatie .sub-menu a { padding: .55rem 0; color: var(--grijs); }
	.hoofdnavigatie .is-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: block;
		width: 44px; height: 44px;
		border: 0;
		background: transparent;
		cursor: pointer;
		position: relative;
	}
	.submenu-toggle::after {
		content: "";
		position: absolute;
		inset: 0;
		margin: auto;
		width: 9px; height: 9px;
		border-right: 2px solid var(--inkt);
		border-bottom: 2px solid var(--inkt);
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s;
	}
	.is-open > .submenu-toggle::after { transform: translateY(2px) rotate(-135deg); }
	.kop-knop { justify-content: center; font-size: 1.05rem !important; padding: 1em !important; }
}

/* ------------------------------------------------------------------ */
/* Pagina-kop                                                          */
/* ------------------------------------------------------------------ */
.pagina-kop {
	padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2rem, 5vw, 3.5rem);
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(77,145,206,.16), transparent 60%),
		#fff;
}
.pagina-kop h1 { margin: 0; max-width: 18ch; }
.pagina-kop-smal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.pagina-kop-intro {
	margin: 1.25rem 0 0;
	max-width: 46rem;
	font-size: var(--wp--preset--font-size--intro);
	color: var(--grijs);
	line-height: 1.55;
}
.kop-label {
	margin: 0 0 1rem;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--blauw-donker);
}
.kop-label a { color: inherit; text-decoration: none; }
.kop-label a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Inhoud uit de blokeditor                                            */
/* ------------------------------------------------------------------ */
.inhoud {
	padding-inline: var(--gutter);
	padding-bottom: clamp(3rem, 8vw, 6rem);
}
.inhoud-home { padding-bottom: 0; }
.inhoud > .alignfull { margin-inline: calc(-1 * var(--gutter)); max-width: none; width: auto; }
.inhoud > * + * { margin-block-start: var(--wp--style--block-gap, 1.25rem); }
.inhoud > .alignfull + .alignfull { margin-block-start: 0; }
.inhoud > :first-child { margin-top: 0; }
.inhoud > .alignfull:last-child { margin-bottom: calc(-1 * clamp(3rem, 8vw, 6rem)); }
.inhoud-home > .alignfull:last-child { margin-bottom: 0; }
.inhoud h2 { margin-top: 2.5rem; }
.inhoud h3 { margin-top: 2rem; }
.inhoud p, .inhoud li { color: #26313d; }
.inhoud .wp-block-column > :first-child,
.inhoud .wp-block-group > :first-child { margin-top: 0; }

.bericht-hoofdbeeld, .project-hoofdbeeld { margin: 0 auto 2.5rem; }
.bericht-hoofdbeeld img { border-radius: var(--radius); display: block; width: 100%; }
.project-bekijk { margin-top: 2.5rem; }

/* ------------------------------------------------------------------ */
/* Portfolio                                                           */
/* ------------------------------------------------------------------ */
.project-raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
	gap: clamp(1.25rem, 3vw, 2.25rem);
}
.project-kaart {
	display: block;
	color: inherit;
	text-decoration: none;
}
.project-kaart[hidden] { display: none; }
.project-beeld,
.project-hoofdbeeld {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: var(--grijs-licht);
	border: 1px solid var(--lijn);
	box-shadow: var(--schaduw);
}
.project-beeld { aspect-ratio: 3 / 2.1; }
.scherm-balk {
	display: flex;
	gap: 6px;
	align-items: center;
	height: 30px;
	padding-inline: 12px;
	background: #fff;
	border-bottom: 1px solid var(--lijn);
}
.scherm-balk i { width: 9px; height: 9px; border-radius: 50%; background: #dfe4ea; }
.project-beeld img {
	display: block;
	width: 100%;
	height: calc(100% - 30px);
	object-fit: cover;
	object-position: top center;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.project-hoofdbeeld img { display: block; width: 100%; }
.project-kaart:hover .project-beeld img { transform: scale(1.035); }
.project-tekst { padding: 1rem .25rem 0; }
.project-tekst h3 { margin: 0; font-size: 1.15rem; }
.project-kaart:hover h3 { color: var(--blauw-donker); }
.project-tekst p { margin: .2rem 0 0; color: var(--grijs); font-size: .95rem; }

.project-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.project-filter button {
	font: inherit;
	font-size: .95rem;
	font-weight: 500;
	padding: .5rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--lijn);
	background: #fff;
	color: var(--inkt);
	cursor: pointer;
}
.project-filter button:hover { border-color: var(--inkt); }
.project-filter button.is-actief { background: var(--inkt); border-color: var(--inkt); color: #fff; }

/* ------------------------------------------------------------------ */
/* Blog                                                                */
/* ------------------------------------------------------------------ */
.bericht-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2rem; }
.bericht-kaart { display: block; color: inherit; text-decoration: none; }
.bericht-beeld { aspect-ratio: 3/2; overflow: hidden; border-radius: 14px; margin-bottom: 1rem; }
.bericht-beeld img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bericht-kaart time { font-size: .85rem; color: var(--grijs); }
.bericht-kaart h2 { font-size: 1.3rem; margin: .25rem 0 .5rem; }
.bericht-kaart:hover h2 { color: var(--blauw-donker); }
.bericht-kaart p { margin: 0; color: var(--grijs); }
.nav-links { display: flex; gap: .5rem; margin-top: 3rem; }
.nav-links .page-numbers { padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--lijn); text-decoration: none; color: var(--inkt); }
.nav-links .current { background: var(--inkt); color: #fff; border-color: var(--inkt); }

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */
.contact-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-lijst li { color: var(--inkt) !important; }
.contact-lijst span {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--grijs);
	margin-bottom: .2rem;
}
.contact-lijst a { color: var(--inkt); font-weight: 600; }

/* Contact Form 7 */
.wpcf7 form { display: grid; gap: 1.1rem; }
.wpcf7 p { margin: 0; }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	margin-top: .4rem;
	font: inherit;
	font-weight: 400;
	padding: .85rem 1rem;
	border: 1px solid #cfd7e0;
	border-radius: 12px;
	background: #fff;
	color: var(--inkt);
	transition: border-color .15s, box-shadow .15s;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--blauw);
	box-shadow: 0 0 0 4px rgba(77,145,206,.2);
}
.wpcf7 .wpcf7-list-item { margin: 0 1rem 0 0; }
.wpcf7 .wpcf7-list-item label { font-weight: 400; }
.wpcf7 input[type="submit"] {
	justify-self: start;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--blauw-donker);
	border: 0;
	border-radius: 999px;
	padding: .9em 1.8em;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--inkt); }
.wpcf7-not-valid-tip { font-size: .85rem; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 12px; padding: .9rem 1rem; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-voet {
	background: var(--inkt);
	color: #c4ccd5;
	padding-top: clamp(3.5rem, 8vw, 6rem);
}
.site-voet a { color: #fff; text-decoration: none; }
.site-voet a:hover { color: var(--blauw); }
.site-voet h2, .site-voet h3 { color: #fff; }

.voet-oproep {
	padding-bottom: clamp(3rem, 7vw, 5rem);
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.voet-oproep h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--extra-groot);
	letter-spacing: -.035em;
	line-height: 1.05;
	max-width: 16ch;
}
.voet-oproep p { margin: 1.25rem 0 0; font-size: 1.15rem; }
.voet-knoppen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.site-voet .voet-knoppen a.wp-element-button:not(.knop-lijn-wit) { background: var(--blauw-donker); }
.site-voet .voet-knoppen a.wp-element-button:not(.knop-lijn-wit):hover { background: #fff; color: var(--inkt); }

.voet-kolommen {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 2.5rem;
	padding-block: 3.5rem;
}
@media (max-width: 760px) { .voet-kolommen { grid-template-columns: 1fr; gap: 2rem; } }
.voet-kolom h3 { margin: 0 0 1rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #8b96a3; font-weight: 600; }
.voet-kolom p { margin: 0 0 1rem; line-height: 1.7; }
.voet-kolom .voet-kop-tweede { margin-top: 2rem; }
.voet-logo { display: inline-block; line-height: 0; margin-bottom: 1rem; }
.voet-logo img { width: 160px; }
.voet-merk p { max-width: 32ch; }
.voet-menu, .voet-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.voet-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.voet-social a {
	display: inline-block;
	padding: .4rem .9rem;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	font-size: .9rem;
}
.voet-social a:hover { border-color: var(--blauw); }

.voet-onderbalk {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid rgba(255,255,255,.1);
	font-size: .88rem;
	color: #8b96a3;
}
.voet-onderbalk p { margin: 0; }
.onderbalk-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-voet .onderbalk-menu a { color: #8b96a3; }
.site-voet .onderbalk-menu a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* Verschijnen bij scrollen (alleen met JS en zonder reduced motion)   */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
	.js .od-verschijn { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
	.js .od-verschijn.is-zichtbaar { opacity: 1; transform: none; }
}
