/*
 * Gastvrij Advies: aanvullende stijlen.
 * Kleuren, lettertypen en maten staan in theme.json. Hier staat alleen
 * wat theme.json niet kan: blokstijlen, de keuzetabs en kleine details.
 */

:root {
	--ga-navy: var(--wp--preset--color--navy, #14213D);
	--ga-navy-diep: var(--wp--preset--color--navy-diep, #0E1830);
	--ga-navy-licht: var(--wp--preset--color--navy-licht, #24365E);
	--ga-amber: var(--wp--preset--color--amber, #FFA600);
	--ga-amber-zacht: var(--wp--preset--color--amber-zacht, #FFF1D6);
	--ga-mist: var(--wp--preset--color--mist, #EEF1F6);
	--ga-grijs: var(--wp--preset--color--grijs, #4A5468);
	--ga-grijs-licht: var(--wp--preset--color--grijs-licht, #C9D2E3);
	--ga-lijn: var(--wp--preset--color--lijn, #D5DAE3);
	--ga-radius: 12px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Koppen: Archivo iets breder gezet. Dat geeft het uithangbord-karakter. */
h1, h2,
.wp-block-heading.ga-breed {
	font-stretch: 112%;
	text-wrap: balance;
}

h3, h4 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* Zichtbare focus voor iedereen die met het toetsenbord werkt. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--ga-amber);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Header ---------- */

.ga-header {
	position: sticky;
	top: 0;
	z-index: 50;
	transition: box-shadow 0.2s ease;
}

.admin-bar .ga-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.ga-header.is-gescrold {
	box-shadow: 0 8px 24px rgba(14, 24, 48, 0.28);
}

.ga-logo {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ga-logo a {
	text-decoration: none;
	color: inherit;
}

.ga-header .wp-block-navigation a {
	text-decoration: none;
}

.ga-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--ga-amber);
}

.ga-header .wp-block-navigation .wp-block-navigation-item.ga-nav-knop > a {
	background: var(--ga-amber);
	color: var(--ga-navy);
	border-radius: 6px;
	padding: 0.7rem 1.1rem;
	font-weight: 700;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.ga-header .wp-block-navigation .wp-block-navigation-item.ga-nav-knop > a:hover {
	background: #FFB830;
	text-decoration: none;
}

/* ---------- Knoppen ---------- */

.wp-block-button .wp-block-button__link {
	min-height: 48px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: currentColor;
	color: inherit;
}

.has-mist-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-wit-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.is-style-ga-kaart .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ga-navy);
	color: #fff;
	border-color: var(--ga-navy);
}

.wp-block-button__link.has-navy-background-color:hover {
	background-color: var(--ga-navy-licht) !important;
	border-color: var(--ga-navy-licht);
	color: #fff !important;
}

.ga-klein-onder-knop {
	margin-top: 0.75rem !important;
}

/* ---------- Hero ---------- */

.ga-hero h1 {
	color: #fff;
	font-size: clamp(2.6rem, 5.6vw, 5.25rem);
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

.ga-hero .ga-ondertitel {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-stretch: 108%;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

@media (min-width: 782px) {
	.ga-hero .wp-block-columns {
		align-items: center;
	}
}

/* ---------- Knelpunten ---------- */

.ga-knelpunten {
	border-top: 2px solid var(--ga-navy);
}

.ga-knelpunt {
	border-bottom: 1px solid var(--ga-lijn);
	padding-block: 1.75rem !important;
}

.ga-knelpunt h3 {
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	font-stretch: 108%;
}

.ga-knelpunt a {
	font-weight: 700;
	text-underline-offset: 4px;
	text-decoration-color: var(--ga-amber);
	text-decoration-thickness: 2px;
}

@media (min-width: 900px) {
	.ga-knelpunten {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(2rem, 5vw, 5rem);
	}
}

/* ---------- Kaarten (blokstijl) ---------- */

.is-style-ga-kaart,
.is-style-ga-kaart-uitgelicht {
	border-radius: var(--ga-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem) !important;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.is-style-ga-kaart {
	background: #fff;
	color: var(--ga-navy);
	border: 1px solid var(--ga-lijn);
}

.is-style-ga-kaart-uitgelicht {
	background: var(--ga-navy);
	color: #fff;
	box-shadow: 0 24px 48px -24px rgba(14, 24, 48, 0.55);
}

.is-style-ga-kaart > .wp-block-buttons,
.is-style-ga-kaart-uitgelicht > .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 1rem;
}

.is-style-ga-kaart-uitgelicht .is-style-ga-prijs {
	color: var(--ga-amber);
}

.is-style-ga-kaart-uitgelicht p:not(.is-style-ga-prijs):not(.is-style-ga-stempel),
.is-style-ga-kaart-uitgelicht li {
	color: #E4E9F2;
}

.is-style-ga-kaart p.ga-duur,
.is-style-ga-kaart-uitgelicht p.ga-duur {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-top: 0.25rem;
}

.is-style-ga-kaart p.ga-duur {
	color: var(--ga-grijs);
}

.is-style-ga-kaart-uitgelicht p.ga-duur {
	color: var(--ga-grijs-licht) !important;
}

.is-style-ga-kaart h3,
.is-style-ga-kaart-uitgelicht h3 {
	margin-top: 0.25rem;
}

.is-style-ga-prijs {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 110%;
	font-size: clamp(1.9rem, 3vw, 2.4rem);
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0;
}

.is-style-ga-stempel {
	align-self: flex-start;
	display: inline-block;
	border: 2px solid var(--ga-amber);
	color: var(--ga-amber);
	border-radius: 999px;
	padding: 0.2rem 0.8rem;
	font-size: 0.875rem;
	font-weight: 700;
	transform: rotate(-3deg);
	margin-bottom: 0.25rem;
}

.is-style-ga-kaart .is-style-ga-stempel {
	color: #8A5A00;
	border-color: #B37400;
}

/* ---------- Belofte (amber lijn bovenaan) ---------- */

.is-style-ga-belofte {
	border-top: 3px solid var(--ga-amber);
	padding-top: 1.25rem !important;
}

/* ---------- Lijsten ---------- */

.is-style-ga-vinkjes {
	list-style: none;
	padding-left: 0 !important;
	display: grid;
	gap: 0.6rem;
}

.is-style-ga-vinkjes li {
	position: relative;
	padding-left: 1.9rem;
	line-height: 1.45;
}

.is-style-ga-vinkjes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--ga-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.is-style-ga-labels {
	list-style: none;
	padding-left: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.is-style-ga-labels li {
	background: var(--ga-mist);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* ---------- Stappen (genummerde lijst) ---------- */

ol.ga-stappen {
	list-style: none;
	counter-reset: ga-stap;
	padding-left: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: 2rem;
}

ol.ga-stappen > li {
	counter-increment: ga-stap;
	border-top: 3px solid var(--ga-navy);
	padding-top: 1.25rem;
	color: var(--ga-grijs);
	line-height: 1.5;
}

ol.ga-stappen > li:last-child {
	border-top-color: var(--ga-amber);
}

ol.ga-stappen > li::before {
	content: counter(ga-stap, decimal-leading-zero);
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 112%;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--ga-navy);
	margin-bottom: 0.75rem;
}

ol.ga-stappen > li strong {
	display: block;
	color: var(--ga-navy);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3rem;
	margin-bottom: 0.35rem;
}

/* ---------- Keuzeblok met tabs ---------- */

.ga-keuze__tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 1rem;
	max-width: 900px;
	margin-block: 2rem 2.5rem;
}

.ga-keuze__tab {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.4rem 1.5rem;
	border-radius: var(--ga-radius);
	border: 2px solid var(--ga-navy);
	background: #fff;
	color: var(--ga-navy);
	min-height: 44px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ga-keuze__tab:hover {
	background: var(--ga-amber-zacht);
}

.ga-keuze__tab[aria-selected="true"] {
	background: var(--ga-navy);
	color: #fff;
}

.ga-keuze__tab:focus-visible {
	outline: 3px solid var(--ga-amber);
	outline-offset: 3px;
}

.ga-keuze__tab-titel {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-stretch: 108%;
	font-size: 1.4rem;
	line-height: 1.15;
}

.ga-keuze__tab-uitleg {
	font-size: 1rem;
	opacity: 0.85;
}

.ga-keuze.is-actief .ga-keuze__paneel[hidden] {
	display: none !important;
}

.ga-keuze.is-actief .ga-keuze__paneel-kop {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ga-keuze__paneel + .ga-keuze__paneel {
	margin-top: 3rem;
}

.ga-keuze.is-actief .ga-keuze__paneel + .ga-keuze__paneel {
	margin-top: 0;
}

.ga-keuze__paneel .wp-block-columns {
	align-items: stretch !important;
}

.ga-keuze__paneel .wp-block-column > .wp-block-group {
	height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	.ga-keuze.is-actief .ga-keuze__paneel:not([hidden]) {
		animation: ga-in 0.28s ease-out;
	}
}

@keyframes ga-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Vragen (details) ---------- */

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--ga-navy);
	flex: none;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	color: var(--ga-grijs);
	margin-top: 0.75rem;
}

.ga-vragen .wp-block-details:last-of-type {
	border-bottom: 1px solid var(--ga-lijn);
}

/* ---------- Foto-plek ---------- */

.ga-fotoplek img {
	border-radius: var(--ga-radius);
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--ga-mist);
}

/* ---------- Tabel ---------- */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--ga-lijn);
	padding: 0.9rem 0.75rem 0.9rem 0;
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	border-bottom: 2px solid var(--ga-navy);
	font-family: var(--wp--preset--font-family--display);
}

.wp-block-table .has-fixed-layout td:nth-child(3),
.wp-block-table .has-fixed-layout th:nth-child(3) {
	white-space: nowrap;
}

/* ---------- Tekstpagina's (voorwaarden, gegevensbeleid) ---------- */

.ga-tekstpagina h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: 2.5rem;
}

.ga-concept {
	background: var(--ga-amber-zacht);
	border-radius: 8px;
	padding: 0.9rem 1.1rem !important;
	font-weight: 600;
}

/* ---------- Footer ---------- */

.ga-footer a {
	color: inherit;
	text-decoration: none;
}

.ga-footer a:hover {
	text-decoration: underline;
	text-decoration-color: var(--ga-amber);
	text-underline-offset: 4px;
}

.ga-footer .ga-footer-kop {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0;
	color: #fff;
}

/* ---------- Diversen ---------- */

.ga-gedempt {
	color: var(--ga-grijs);
}

.has-navy-background-color .ga-gedempt,
.has-navy-diep-background-color .ga-gedempt {
	color: var(--ga-grijs-licht);
}

/* Smalle intro's links uitlijnen met de brede kolom in plaats van te centreren. */
.is-layout-constrained > .ga-sectie-intro,
.is-layout-constrained > .ga-keuze__tabs {
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
	margin-right: auto !important;
}

.ga-sectie-intro {
	max-width: 46rem;
}

/* Secties sluiten naadloos op elkaar aan. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-block-post-content > .alignfull {
	margin-block: 0 !important;
}

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

.ga-linklijst {
	list-style: none;
	padding-left: 0 !important;
	display: grid;
	gap: 0.45rem;
}

/* ---------- Hero met video ---------- */
/* Video en stilstaand beeld komen uit functions.php. Navy laag erover houdt de tekst leesbaar. */

.ga-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.ga-hero > .ga-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	max-width: none !important;
	margin: 0 !important;
}

.ga-hero__media img,
.ga-hero__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ga-hero__video {
	opacity: 0;
	transition: opacity 0.8s ease;
}

.ga-hero__video.is-klaar {
	opacity: 1;
}

.ga-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 33, 61, 0.82);
}

@media (min-width: 782px) {
	.ga-hero__media::after {
		background: linear-gradient(90deg, rgba(20, 33, 61, 0.92) 0%, rgba(20, 33, 61, 0.8) 55%, rgba(20, 33, 61, 0.6) 100%);
	}
}

.ga-hero > .ga-hero__pauze {
	position: absolute;
	right: clamp(1rem, 3vw, 2rem);
	bottom: 1rem;
	margin: 0 !important;
	max-width: none !important;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #fff;
	background: rgba(14, 24, 48, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	cursor: pointer;
}

.ga-hero > .ga-hero__pauze[hidden] {
	display: none;
}

.ga-hero__pauze:hover {
	background: rgba(14, 24, 48, 0.8);
}

.ga-hero__pauze:focus-visible {
	outline: 3px solid var(--ga-amber);
	outline-offset: 2px;
}

.ga-hero__pauze-icoon {
	display: inline-block;
	box-sizing: border-box;
	width: 0.65rem;
	height: 0.7rem;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.ga-hero__pauze.is-gepauzeerd .ga-hero__pauze-icoon {
	width: 0;
	height: 0;
	border-right: 0;
	border-left: 0.6rem solid currentColor;
	border-top: 0.35rem solid transparent;
	border-bottom: 0.35rem solid transparent;
}

/* ---------- Foto's ---------- */

.ga-foto {
	margin: 0;
}

.ga-foto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--ga-radius);
	background: var(--ga-mist);
}

.has-navy-background-color .ga-foto img {
	background: var(--ga-navy-licht);
	box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
}

/* Op een telefoon staat de foto onder de tekst. Lager houden scheelt scrollen. */
@media (max-width: 781px) {
	.ga-kop-met-foto .ga-foto img {
		aspect-ratio: 16 / 9 !important;
	}
}
