/*
Theme Name: CP Painting GP
Template: generatepress
Description: Child theme voor cp-painting.be volgens de Netwires-werkwijze.
Version: 1.0.0
Author: Netwires
*/

/* ==== Zelf-gehoste fonts (Google-subsets, zie assets/fonts) ================ */
@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/lora-400-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/lora-400-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Lora';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/lora-italic-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Lora';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/lora-italic-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('assets/fonts/figtree-300-900-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('assets/fonts/figtree-300-900-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Great Vibes';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/great-vibes-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Great Vibes';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/great-vibes-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Logofont Bachelorette (subset uit de referentie-HTML, U+0020-007E).
   LET OP vóór livegang: commerciële webfontlicentie regelen (Måns Grebäck,
   design guide §3.1) — de personal-use-versie mag niet op de live site. */
@font-face {
	font-family: 'Bachelorette';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/bachelorette.woff2') format('woff2');
	unicode-range: U+0020-007E;
}

/* ==== Designtokens (design guide §2.1) ====================================== */
:root {
	--paper: #FBF9F5;
	--linen: #F1ECE3;
	--ink: #2E2B26;
	--muted: #6E675C;
	--green: #4A5A47;
	--green-deep: #3A4838;
	--clay: #C9A285;
	--line: #E3DCCF;
	--radius: 18px;
	--radius-sm: 3px;
}

/* ==== Layout ================================================================ */
/* Footer altijd tegen de onderkant, ook op korte pagina's. */
body {
	display: flex;
	flex-direction: column;
	min-height: 100svh;
}
body.admin-bar {
	min-height: calc(100svh - 32px);
}
body > .site-footer {
	margin-top: auto;
}
/* In een flex-body slorpen GP's auto-margins op .grid-container de vrije
   ruimte op en krimpt #page naar inhoudsbreedte (boxed secties op brede
   schermen). Volle breedte forceren; max-width centreert waar nodig.
   Dubbele klasse nodig om GP's .container.grid-container{width:auto} te
   verslaan. */
body > .site.grid-container {
	width: 100%;
}

/* 404: GP's eigen fallback (entry-title "Oops!" + zoekformulier, zonder
   .no-results-klasse) volledig uit; het 404-element (scripts/24) hangt op
   generate_after_header buiten #page en toont de nette variant. */
.error404 #page {
	display: none;
}

/* Ankernavigatie: secties niet onder de sticky header laten verdwijnen. */
html {
	scroll-padding-top: 110px;
}

/* ==== Header (sticky, states op GB-klassen; rest via global classes) ======== */
.gb-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 249, 245, .94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(6px);
}
body.admin-bar .gb-site-header {
	top: 32px;
}
/* Logo: embleem altijd gecentreerd bóven het woordmerk (design guide §4). */
.cp-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	row-gap: 12px;
	text-decoration: none;
}
.cp-logo-embleem {
	height: 32px;
	width: auto;
	display: block;
}
.cp-logo-tekst {
	font-family: 'Bachelorette', 'Great Vibes', cursive;
	font-weight: 400;
	font-size: 1.45rem;
	letter-spacing: .02em;
	line-height: 1;
	color: #807160;
}
.cp-logo-footer .cp-logo-embleem {
	height: 42px;
}
.cp-logo-footer .cp-logo-tekst {
	font-size: 1.7rem;
	color: #DDD6BE;
}

/* ==== Fluent Forms in de huisstijl ========================================= */
.cp-form .ff-el-form-control {
	width: 100%;
	font: inherit;
	font-size: .95rem;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--paper);
	color: var(--ink);
	height: auto;
}
.cp-form .ff-el-form-control:focus {
	outline: 2px solid var(--green);
	outline-offset: 1px;
	border-color: var(--green);
	box-shadow: none;
}
.cp-form textarea.ff-el-form-control {
	min-height: 130px;
	resize: vertical;
}
.cp-form .ff-el-input--label label {
	font-size: .88rem;
	font-weight: 600;
	margin-bottom: 7px;
	color: var(--ink);
}
.cp-form .ff-el-group {
	margin-bottom: 18px;
}
.cp-form .ff-btn-submit {
	width: 100%;
	background: var(--green);
	color: #fff;
	padding: 14px 28px;
	border-radius: 3px;
	font-family: 'Figtree', sans-serif;
	font-weight: 600;
	font-size: .95rem;
	border: none;
	cursor: pointer;
	transition: none;
}
.cp-form .ff-btn-submit:hover {
	background: var(--green-deep);
}
.cp-form .ff-message-success {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 3px;
	color: var(--ink);
	box-shadow: none;
}
.cp-form .ff-el-tc label {
	font-size: .85rem;
	font-weight: 400;
	color: var(--muted);
}

/* ==== Golven (paden uit het ontwerp) ======================================= */
/* Een band steekt met een golf 55px boven en onder zichzelf uit, in zijn eigen
   kleur, over de buursectie heen. */
.cp-golf::before,
.cp-golf::after,
.cp-golf-onder::after,
.cp-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	height: 56px;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	pointer-events: none;
}
.cp-golf::before {
	top: -55px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23F1ECE3' d='M0 56 C 180 10, 360 6, 560 30 C 760 54, 900 44, 1080 22 C 1220 6, 1340 10, 1440 30 L 1440 56 Z'/%3E%3C/svg%3E");
}
.cp-golf::after,
.cp-golf-onder::after {
	bottom: -55px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23F1ECE3' d='M0 0 C 160 44, 340 50, 520 28 C 700 6, 880 10, 1040 32 C 1200 52, 1330 46, 1440 24 L 1440 0 Z'/%3E%3C/svg%3E");
}
.cp-footer::before {
	top: -55px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%233A4838' d='M0 56 C 180 10, 360 6, 560 30 C 760 54, 900 44, 1080 22 C 1220 6, 1340 10, 1440 30 L 1440 56 Z'/%3E%3C/svg%3E");
}
/* De golf van de footer steekt over de vorige sectie: nooit eronder wegvallen. */
.site-footer {
	position: relative;
	z-index: 2;
}

/* ==== Werkwijze: lijn achter de nummers ===================================== */
.cp-stappen::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 19px;
	height: 1px;
	background: #CFC5B2;
}
/* Op meerdere rijen klopt een doorlopende lijn niet meer. */
@media (max-width: 860px) {
	.cp-stappen::before {
		display: none;
	}
}

/* ==== Realisaties =========================================================== */
.cp-rkaart {
	transition: transform .35s ease, box-shadow .35s ease;
}
.cp-rkaart:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -20px rgba(46, 43, 38, .35);
}
.cp-rkaart img {
	transition: transform .6s ease;
}
.cp-rkaart:hover img {
	transform: scale(1.04);
}
.cp-rkaart-pijl {
	transition: transform .35s ease;
}
/* Geen teken: iOS maakt van U+2197 een emoji. Geen mask: Firefox toont dan de rand bij het draaien. */
.cp-rkaart-pijl::before {
	content: "";
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cp-rkaart:hover .cp-rkaart-pijl {
	transform: rotate(45deg);
}
/* Vaste kaartbreedte; de carousel knipt op .gb-query af, dus ruimte voor schaduw en hover.
   GB zet height:100% en display:block op het item: dan rekt de kaart niet mee met de hoogste. */
.cp-slider .gb-carousel-item {
	display: flex;
	height: auto;
	width: min(100%, 340px);
}
.cp-slider .gb-query {
	padding: 8px 4px 28px;
	margin: -8px -4px 0;
}
.cp-slider .gb-carousel-items {
	align-items: stretch;
}

/* ==== Reviews =============================================================== */
.cp-review-tekst::before {
	content: "\201C";
}
.cp-review-tekst::after {
	content: "\201D";
}
/* Zonder gepubliceerde reviews geen lege sectie. */
#reviews:not(:has(.cp-review)) {
	display: none;
}

/* ==== Detailpagina realisatie =============================================== */
.single-realisatie .entry-header {
	display: none;
}
/* Zelfde linkerrand als de paginakop (.cp-wrap). */
.single-realisatie .inside-article {
	padding-left: 24px;
	padding-right: 24px;
}
.single-realisatie .inside-article > .entry-content > p {
	max-width: 760px;
	color: var(--muted);
}
.single-realisatie .inside-article > .entry-content > p:first-child {
	font-family: 'Lora', serif;
	color: var(--ink);
	font-size: 1.25rem;
	line-height: 1.55;
}
.single-realisatie .cp-galerij-detail {
	margin-top: 40px;
	justify-content: center;
}
/* WordPress rekt de laatste rij uit; dan wordt één foto schermbreed. */
.single-realisatie .cp-galerij-detail.wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0;
}
/* Vorm vast in CSS: staande en liggende foto's in hetzelfde raster. */
.single-realisatie .cp-galerij-detail figure.wp-block-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
@media (max-width: 640px) {
	.single-realisatie .cp-galerij-detail.columns-3 figure.wp-block-image {
		width: calc(50% - 9px) !important;
	}
}
