/*
Theme Name: EA Airport
Description: Lichtgewicht, snel thema voor eindhoven-airport.com. Meertalig via Polylang (nl, nl-be, de), structured data (Organization, WebSite, BreadcrumbList, FAQPage) en optimaal voor SEO/GEO. Werkt samen met de plugin EA Parking Compare.
Version: 2.1.6
Requires at least: 6.4
Requires PHP: 8.0
Author: Vlijmscherp
Text Domain: ea-airport
License: GPL-2.0-or-later
*/

/* ------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */
:root {
	--blue: #1d6fd8;          /* primaire actie */
	--blue-ink: #155bb5;      /* links op wit (contrast AA) */
	--blue-soft: #e8f1fc;
	--ink: #1e2a33;
	--ink-2: #4a5763;
	--sand: #f7f4f0;          /* zachte sectie-achtergrond */
	--line: #e8e4df;
	--white: #ffffff;
	--go: #23a665;            /* vinkjes, beschikbaar */
	--sign: #ffc83d;          /* het "P"-bord: merkteken */
	--night: #17232d;         /* donkere sectie, footer */

	--radius-l: 24px;
	--radius: 20px;
	--radius-s: 12px;
	--pill: 999px;
	--shadow: 0 4px 10px rgba(23, 35, 45, .07);
	--shadow-l: 0 18px 50px rgba(23, 35, 45, .18);

	--f: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--measure: 68ch;
	--wrap: 1180px;
	--gutter: 16px;

	/* Plugin-koppeling */
	--ea-theme-accent: var(--blue);
	--ea-theme-accent-ink: var(--white);
	--ea-theme-ink: var(--ink);
	--ea-theme-muted: var(--ink-2);
	--ea-theme-line: var(--line);
	--ea-theme-soft: var(--sand);
	--ea-theme-ok: var(--go);
	--ea-theme-link: var(--blue-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0; background: var(--white); color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: .5rem 1rem; border-radius: var(--pill); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Knoppen (ook voor plugin) */
.btn, .ea-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: 0 1.5rem; border-radius: var(--pill);
	font: 700 1rem/1 var(--f); text-decoration: none; cursor: pointer;
	border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary, .ea-btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover, .ea-btn--primary:hover { background: var(--blue-ink); color: var(--white); filter: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sign); color: var(--ink); font-weight: 900; font-size: 1.25rem; }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; line-height: 1.1; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .55rem .85rem; border-radius: var(--pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { background: var(--sand); }
.nav .current-menu-item > a, .nav .current-page-ancestor > a, .nav .current-menu-ancestor > a { background: var(--blue-soft); color: var(--blue-ink); }
.header-cta { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--pill); font-weight: 700; font-size: .9rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: .4rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); min-width: 190px; }
.lang ul a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang ul a:hover, .lang .is-current a { background: var(--sand); }
.lang ul a span { color: var(--ink-2); font-weight: 700; }
.menu-toggle { display: none; }
@media (min-width: 1100px) { .header-cta { display: inline-flex; min-height: 42px; padding: 0 1.1rem; } }
@media (max-width: 899px) {
	.menu-toggle { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); font: 700 .95rem var(--f); color: var(--ink); cursor: pointer; }
	.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
	.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bars::before { top: -5px; } .menu-toggle__bars::after { top: 5px; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow); }
	.site-header.is-open .nav { display: block; }
	.nav ul { flex-direction: column; }
	.nav a { padding: .8rem .9rem; font-size: 1.05rem; }
	.lang { order: 3; }
}

/* ------------------------------------------------------------------
   Hero met boekingskaart
   ------------------------------------------------------------------ */
.hero {
	position: relative; color: var(--white); isolation: isolate;
	padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
	background: var(--night);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 24, 33, .55), rgba(14, 24, 33, .25) 45%, rgba(14, 24, 33, .6)); }
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 6.5vw, 4.4rem); font-weight: 800; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__lede { margin: -.25rem 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 52ch; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.booking { width: min(100%, 720px); background: var(--white); color: var(--ink); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: clamp(1.1rem, 3vw, 1.75rem); text-align: left; }
.booking .ea-compare { margin: 0; }
.booking .ea-compare__form { background: transparent; border: 0; padding: 0; box-shadow: none; }
.booking__trust { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .92rem; color: var(--ink-2); }
.booking__trust li { display: flex; align-items: center; gap: .4rem; }
.booking__trust li::before { content: "✓"; color: var(--go); font-weight: 900; }

/* ------------------------------------------------------------------
   Kruimelpad
   ------------------------------------------------------------------ */
.crumbs { font-size: .9rem; color: var(--ink-2); padding-top: 1.25rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Content
   ------------------------------------------------------------------ */
.content { padding-block: 1.5rem 4rem; }
.entry { max-width: var(--measure); }
.page-wide .entry { max-width: none; }
.page-wide .entry > :where(p, ul:not(.ea-links), ol, h2, h3, h4, blockquote, .ea-tldr, .ea-table__updated, .wp-block-details) { max-width: var(--measure); }
.page-wide .entry > .wp-block-details { margin-inline: 0; }
.entry h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; margin: .75rem 0 1.25rem; text-wrap: balance; }
.entry h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 800; margin: 3rem 0 1rem; text-wrap: balance; }
.entry h3 { font-size: 1.25rem; font-weight: 800; margin: 2rem 0 .5rem; letter-spacing: -.01em; }
.entry p, .entry ul, .entry ol { margin: 0 0 1.1rem; }
.entry li + li { margin-top: .4rem; }
.entry ul:not([class*="ea-"]):not(.booking__trust) { padding-left: 1.25rem; }

/* Kort antwoord (GEO) */
.ea-tldr { background: var(--blue-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.ea-tldr p { margin: 0; }
.ea-tldr strong:first-child { display: block; font-size: 1.05rem; font-weight: 800; color: var(--blue-ink); margin-bottom: .3rem; }

/* FAQ (core Details-blok) */
.entry .wp-block-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0; margin: 0 0 .6rem; transition: box-shadow .15s; }
.entry .wp-block-details[open] { box-shadow: var(--shadow); }
.entry summary { cursor: pointer; list-style: none; position: relative; padding: 1.1rem 3.25rem 1.1rem 1.25rem; font-weight: 700; font-size: 1.05rem; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.entry details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.entry details > :not(summary) { margin: 0; padding: 0 1.25rem 1.15rem; }
@media (prefers-reduced-motion: reduce) { .entry summary::after { transition: none; } }

/* Volle breedte (secties) */
.entry > .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.page-wide .entry > .alignfull { margin-left: calc(50% - 50vw); }

/* USP-kaarten */
.ea-usps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 2.5rem; padding: 0; list-style: none; }
.ea-usps li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.ea-usps li strong { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 800; margin-bottom: .35rem; }
.ea-usps li strong::before { content: "✓"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--go); color: var(--white); font-size: .95rem; }
.ea-usps li span { color: var(--ink-2); font-size: .98rem; }

/* Stappen (donkere sectie) */
.ea-steps-section { background: var(--night); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0; margin: 3rem 0; }
.ea-steps-section > * { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.ea-steps-section h2 { color: var(--white); text-align: center; margin-top: 0; }
.ea-steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin-top: 2rem; list-style: none; counter-reset: step; }
.ea-steps li { margin: 0; padding: 0 0 0 1.25rem; border-left: 1px solid rgba(255, 255, 255, .18); counter-increment: step; }
.ea-steps li strong { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: .4rem; }
.ea-steps li strong::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sign); color: var(--ink); font-weight: 900; font-size: .95rem; flex: none; }
.ea-steps li span { color: rgba(255, 255, 255, .78); font-size: .98rem; }

/* Sectie op zand */
.ea-sand { background: var(--sand); padding: clamp(2.5rem, 6vw, 4rem) 0; margin: 3rem 0; }
.ea-sand > * { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.ea-sand > h2 { margin-top: 0; }

/* Linkkaarten */
.ea-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding: 0; list-style: none; margin: 1.25rem 0 2.5rem; }
.ea-links li { margin: 0; }
.ea-links a { display: block; height: 100%; padding: 1.35rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink-2); transition: border-color .15s, transform .15s; }
.ea-links a strong { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.ea-links a strong::after { content: ""; width: 9px; height: 9px; border: solid var(--blue); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); flex: none; }
.ea-links a:hover { border-color: var(--blue); }

/* Plugin-componenten in deze stijl */
.ea-compare__title { font-size: 1.3rem !important; font-weight: 800 !important; letter-spacing: -.01em; }
.ea-compare__group input, .ea-compare__group select { border-radius: var(--radius-s) !important; min-height: 50px !important; background-color: var(--sand) !important; border-color: transparent !important; }
.ea-compare__group input[type="date"], .ea-compare__group select { height: 50px !important; }
.ea-compare__group input:focus, .ea-compare__group select:focus { background-color: var(--white) !important; border-color: var(--blue) !important; outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.ea-compare__form .ea-btn--primary { min-height: 52px; font-size: 1.05rem; }
.ea-card { border-radius: var(--radius) !important; box-shadow: var(--shadow); }
.entry .ea-card__name { margin: 0; font-size: 1.3rem; font-weight: 800; }
.ea-badge { background: var(--blue-soft) !important; color: var(--blue-ink) !important; }
.ea-facts { border-radius: var(--radius) !important; background: var(--white) !important; box-shadow: var(--shadow); }
.entry .ea-facts__title { margin-top: 0; font-size: 1.35rem; }
.ea-table-wrap { border-radius: var(--radius) !important; box-shadow: var(--shadow); background: var(--white); }
.ea-table caption { background: var(--white) !important; font-size: 1.05rem; }
.ea-table thead th { text-transform: none !important; letter-spacing: 0 !important; font-size: .85rem !important; background: var(--sand); }
.ea-compare__results--standalone { margin-bottom: 1rem; }
.ea-compare__results--standalone .ea-compare__period { margin-top: 0; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); font-size: .95rem; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { color: var(--white); font-size: 1rem; font-weight: 800; letter-spacing: 0; margin: 0 0 .75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid .brand { color: var(--white); margin-bottom: .75rem; }
.footer-grid .brand small { color: rgba(255, 255, 255, .6); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-bottom p { margin: 0; max-width: 80ch; }

/* ------------------------------------------------------------------
   Verfijningen
   ------------------------------------------------------------------ */
/* Kaartenrasters: geen tekstbreedte-limiet en geen extra marge tussen items */
.page-wide .entry > .ea-usps { max-width: none; }
.ea-usps li + li, .ea-links li + li, .ea-steps li + li, .booking__trust li + li { margin-top: 0; }

/* Boekingskaart: twee kolommen, knop over de volle breedte */
.booking .ea-compare__form { grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) {
	.booking .ea-compare__form { grid-template-columns: 1fr 1fr; align-items: start; }
	.booking .ea-compare__title, .booking .ea-compare__msg, .booking .ea-compare__form > .ea-btn { grid-column: 1 / -1; }
}
.booking .ea-compare__form > .ea-btn { width: 100%; }

/* Mobiele header */
@media (max-width: 899px) {
	.site-header .wrap { gap: .5rem; min-height: 64px; }
	.brand { font-size: 1.02rem; }
	.lang ul { right: 0; }
}
@media (max-width: 420px) {
	.brand small { display: none; }
	.brand__mark { width: 32px; height: 32px; font-size: 1.1rem; }
	.menu-toggle { padding: .45rem .7rem; }
	.lang summary { padding: .4rem .6rem; }
}
.ea-card__usps li + li { margin-top: .3rem; }
.ea-card__price { gap: .5rem; }
.ea-btn { border-radius: var(--pill) !important; }
.entry .wp-block-details:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* ------------------------------------------------------------------
   Foto's
   ------------------------------------------------------------------ */
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .75); z-index: 1; }
.hero__credit a { color: inherit; text-decoration: none; }
.hero__credit a:hover { text-decoration: underline; }

.ea-photo { margin: 0 0 2rem; }
.ea-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.ea-photo figcaption { margin-top: .5rem; font-size: .85rem; color: var(--ink-2); }
.ea-photo__caption { color: var(--ink); }
.ea-photo__credit, .ea-photo__credit a { color: var(--ink-2); }
.page-wide .entry > .wp-block-shortcode .ea-photo, .page-wide .entry .ea-photo { max-width: var(--measure); }

/* Linkkaarten met foto */
.ea-links a:has(.ea-card-img) { padding: 0; overflow: hidden; }
.ea-links .ea-card-img { display: block; width: 100%; height: 160px; object-fit: cover; }
.ea-links a:has(.ea-card-img) strong, .ea-links a:has(.ea-card-img) > span { display: flex; padding: 0 1.5rem; }
.ea-links a:has(.ea-card-img) strong { margin-top: 1.1rem; }
.ea-links a:has(.ea-card-img) > span { display: block; padding-bottom: 1.35rem; }
.ea-credits { list-style: none; padding: 0 !important; margin: -1.5rem 0 2rem; font-size: .8rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.ea-credits a { color: var(--ink-2); }
/* Overlay sterker bij foto's, zodat de witte tekst altijd leesbaar is */
.hero__bg:has(img)::after { background: linear-gradient(180deg, rgba(12, 22, 32, .72) 0%, rgba(12, 22, 32, .5) 45%, rgba(12, 22, 32, .7) 100%); }
.hero__bg img { object-position: center 30%; }

/* ------------------------------------------------------------------
   Foto naast de intro (Uitgelichte afbeelding)
   ------------------------------------------------------------------ */
.has-side-photo .entry > h1 { max-width: var(--measure); }
.ea-side { float: right; width: min(440px, calc(100% - var(--measure) - 3rem)); margin: .35rem 0 2rem 3rem; }
.ea-side__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.ea-side figcaption { margin-top: .5rem; font-size: .78rem; color: var(--ink-2); }
.ea-side figcaption a { color: var(--ink-2); }
/* Brede blokken altijd onder de foto */
.has-side-photo .entry > :where(.ea-links, .ea-table-wrap, .ea-table__updated, .alignfull, .ea-facts, .ea-cta, .wp-block-table) { clear: both; }
@media (max-width: 1099px) {
	.ea-side { float: none; width: auto; max-width: var(--measure); margin: 0 0 1.75rem; }
	.ea-side__img { aspect-ratio: 16 / 10; }
}
/* Foto in eigen verhouding tonen (niets afsnijden, ook niet bij eigen uploads); extreem hoge foto's begrenzen */
.ea-side__img, .ea-side__img[style] { aspect-ratio: auto !important; max-height: 520px; object-fit: cover; }
