/*
Theme Name: Event Portal Theme
Author: Event Portal 2.0
Description: Professioneel mobile-first festival- en campingtheme voor Event Portal 2.0. Presentatielaag zonder bedrijfs- of financiële logica.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: event-portal-theme
Tags: accessibility-ready, block-styles, custom-logo, custom-menu, featured-images, full-width-template, wide-blocks

Bestandsversie: 1.0.0
Fase: 11 - definitieve toegankelijke release
*/

:root {
	--ept-night: #10142f;
	--ept-night-soft: #202354;
	--ept-ink: #171a35;
	--ept-muted: #626781;
	--ept-teal: #007d78;
	--ept-teal-dark: #005a57;
	--ept-mint: #32d6bd;
	--ept-coral: #ed4f72;
	--ept-coral-dark: #c72f56;
	--ept-orange: #ff823b;
	--ept-yellow: #ffd34f;
	--ept-purple: #713bc7;
	--ept-blue: #4978f2;
	--ept-sand: #fff7e7;
	--ept-sky: #eefaff;
	--ept-white: #ffffff;
	--ept-border: #d9d9e8;
	--ept-shadow: 0 22px 55px rgba(25, 25, 68, .13);
	--ept-shadow-small: 0 10px 28px rgba(25, 25, 68, .11);
	--ept-radius: 24px;
	--ept-radius-small: 15px;
	--ept-content: 1180px;
	--ept-narrow: 900px;
	--ept-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
	margin: 0;
	background: linear-gradient(180deg, #f8fafb 0%, #eef4f4 100%);
	background-size: auto;
	color: var(--ept-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

body::before {
	content: "";
	position: fixed;
	z-index: -1;
	inset: 0;
	background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.42), rgba(255,255,255,.7));
	pointer-events: none;
}

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

a {
	color: var(--ept-teal-dark);
	text-decoration-thickness: .11em;
	text-underline-offset: .2em;
}

a:hover { color: var(--ept-coral-dark); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 4px solid var(--ept-yellow);
	outline-offset: 3px;
}

button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
	color: var(--ept-ink);
	font-family: var(--ept-heading);
	line-height: 1.08;
	letter-spacing: -.035em;
}

h1 { font-size: clamp(40px, 7vw, 78px); }
h2 { font-size: clamp(29px, 4vw, 46px); }
h3 { font-size: clamp(21px, 2.7vw, 29px); }

.site-shell {
	width: min(calc(100% - 36px), var(--ept-content));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--ept-white);
	color: var(--ept-ink);
	box-shadow: var(--ept-shadow);
}

/* Header: donkere festivalnacht met lichtslinger. */
.site-header {
	position: relative;
	z-index: 40;
	border-bottom: 4px solid var(--ept-yellow);
	background:
		linear-gradient(105deg, rgba(113,59,199,.92), rgba(16,20,47,.97) 46%, rgba(0,125,120,.92));
	box-shadow: 0 8px 30px rgba(16,20,47,.22);
}

.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -12px;
	height: 20px;
	background:
		radial-gradient(circle at 16px 4px, var(--ept-coral) 0 4px, transparent 4.6px) 0 0 / 64px 20px repeat-x,
		radial-gradient(circle at 48px 4px, var(--ept-mint) 0 4px, transparent 4.6px) 0 0 / 64px 20px repeat-x;
	pointer-events: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 88px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
}

.site-branding::before {
	content: "";
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border: 3px solid rgba(255,255,255,.8);
	border-radius: 50% 50% 44% 56%;
	background:
		linear-gradient(145deg, var(--ept-yellow) 0 45%, var(--ept-orange) 46% 68%, var(--ept-coral) 69%);
	box-shadow: 0 0 0 5px rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.2);
	transform: rotate(-8deg);
}

.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 58px; width: auto; }

.site-title {
	margin: 0;
	font-family: var(--ept-heading);
	font-size: clamp(21px, 3vw, 31px);
	font-weight: 900;
	letter-spacing: -.045em;
}

.site-title a { color: #fff; text-decoration: none; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.site-description { margin: 2px 0 0; color: #dce5ff; font-size: 13px; }

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	min-height: 46px;
	border: 2px solid rgba(255,255,255,.38);
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-weight: 850;
}

.site-navigation ul {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 9px 15px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 820;
	text-decoration: none;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
	border-color: rgba(255,255,255,.45);
	background: linear-gradient(135deg, var(--ept-coral-dark), var(--ept-purple));
	color: #fff;
	box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.site-main {
	position: relative;
	min-height: 64vh;
	padding: clamp(48px, 7vw, 96px) 0;
}

.page-header,
.entry-content,
.entry-footer,
.archive-content {
	width: min(100%, var(--ept-narrow));
	margin-inline: auto;
}

.entry-content > :where(.alignwide) {
	width: min(100vw - 32px, var(--ept-content));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content > :where(.alignfull) {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.page-title, .entry-title { margin-top: 0; }

.entry-card {
	position: relative;
	padding: clamp(22px, 5vw, 48px);
	border: 1px solid rgba(113,59,199,.16);
	border-radius: var(--ept-radius);
	background: rgba(255,255,255,.94);
	box-shadow: var(--ept-shadow);
}

.entry-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	right: 28px;
	height: 7px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--ept-coral), var(--ept-yellow), var(--ept-mint), var(--ept-purple));
}

.has-event-portal .entry-card {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.has-event-portal .entry-card::before { display: none; }
.has-event-portal .page-header,
.has-event-portal .entry-content { width: 100%; max-width: none; }

/* Iedere portaalpagina begint met een echte festivalhero. */
.has-event-portal .page-header {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(250px, 36vw, 390px);
	padding: clamp(28px, 6vw, 62px);
	margin-bottom: 32px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 30px;
	background:
		linear-gradient(90deg, rgba(16,20,47,.83), rgba(16,20,47,.18) 72%),
		url("assets/images/festival-horizon.svg") center 47% / cover no-repeat;
	box-shadow: 0 26px 60px rgba(30,21,70,.26);
}

.has-event-portal .page-header::before {
	content: "EVENT PORTAL • FESTIVAL HUB";
	position: absolute;
	top: 24px;
	left: clamp(28px, 6vw, 62px);
	padding: 7px 12px;
	border: 1px solid rgba(255,255,255,.42);
	border-radius: 999px;
	background: rgba(16,20,47,.42);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}

.has-event-portal .page-header::after {
	content: "";
	position: absolute;
	right: -20px;
	top: -20px;
	width: 230px;
	height: 150px;
	background: url("assets/images/camping-doodles.svg") center / contain no-repeat;
	pointer-events: none;
}

.has-event-portal .page-title {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0;
	color: #fff;
	font-size: clamp(43px, 7vw, 82px);
	line-height: .98;
	text-shadow: 0 5px 20px rgba(0,0,0,.38);
}

/* Frontpage hero. */
.front-hero {
	position: relative;
	display: grid;
	align-content: end;
	min-height: clamp(430px, 65vw, 650px);
	overflow: hidden;
	padding: clamp(34px, 7vw, 82px);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 34px;
	background:
		linear-gradient(90deg, rgba(16,20,47,.9), rgba(16,20,47,.18) 75%),
		url("assets/images/festival-horizon.svg") center / cover no-repeat;
	box-shadow: 0 30px 75px rgba(30,21,70,.31);
}

.front-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(16,20,47,.75) 100%);
	pointer-events: none;
}

.front-hero::after {
	content: "";
	position: absolute;
	right: -25px;
	top: 20px;
	width: 430px;
	height: 230px;
	background: url("assets/images/camping-doodles.svg") center / contain no-repeat;
	pointer-events: none;
}

.front-hero > * { position: relative; z-index: 2; }
.front-hero__eyebrow {
	width: fit-content;
	margin: 0 0 13px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ept-yellow);
	color: var(--ept-night);
	font-size: 13px;
	font-weight: 950;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.front-hero h1 { max-width: 850px; margin: 0 0 18px; color: #fff; text-shadow: 0 5px 18px rgba(0,0,0,.35); }
.front-hero p { max-width: 730px; color: #fff; font-size: clamp(19px, 3vw, 25px); }
.front-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.theme-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 22px;
	border: 2px solid rgba(255,255,255,.2);
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ept-coral-dark), var(--ept-purple));
	color: #fff;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(237,79,114,.3);
	transition: transform .18s ease, box-shadow .18s ease;
}
.theme-button:hover, .theme-button:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(237,79,114,.38); }
.theme-button--secondary { border-color: rgba(255,255,255,.55); background: rgba(16,20,47,.42); color: #fff; backdrop-filter: blur(10px); }

.front-content { margin-top: 36px; }

/* Block styling. */
.wp-block-group.is-style-default,
.wp-block-columns > .wp-block-column {
	border-radius: var(--ept-radius);
}

.wp-block-button__link {
	border-radius: 999px !important;
	font-weight: 850;
	box-shadow: var(--ept-shadow-small);
}

/* Footer als festivalnacht. */
.site-footer {
	position: relative;
	margin-top: 60px;
	padding: 85px 0 36px;
	overflow: hidden;
	background:
		url("assets/images/camping-doodles.svg") right 30px bottom -20px / 430px auto no-repeat,
		linear-gradient(135deg, var(--ept-night), #241553 55%, #064c50);
	color: #fff;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 28px;
	background: linear-gradient(135deg, transparent 48%, var(--ept-yellow) 49% 55%, transparent 56%) 0 0 / 42px 28px repeat-x;
}

.site-footer__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; color: #e9eaff; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.site-footer a { padding: 8px 12px; border-radius: 999px; text-decoration: none; }
.site-footer a:hover { background: rgba(255,255,255,.13); color: var(--ept-yellow); }

.not-found { text-align: center; }

@keyframes ept-float {
	0%, 100% { transform: translateY(0) rotate(-1deg); }
	50% { transform: translateY(-7px) rotate(1deg); }
}

.front-hero::after,
.has-event-portal .page-header::after { animation: ept-float 6s ease-in-out infinite; }

@media (max-width: 860px) {
	.site-header__inner { flex-wrap: wrap; padding-block: 12px; }
	.menu-toggle { display: inline-flex; }
	.site-navigation { width: 100%; }
	.js .site-navigation:not(.is-open) { display: none; }
	.site-navigation ul { align-items: stretch; flex-direction: column; padding: 12px 0; }
	.site-navigation a { width: 100%; justify-content: center; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.08); }
	.site-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
	.site-shell { width: min(calc(100% - 20px), var(--ept-content)); }
	.site-description { display: none; }
	.site-branding::before { flex-basis: 38px; width: 38px; height: 38px; }
	.site-main { padding-top: 40px; }
	.has-event-portal .page-header { min-height: 270px; padding: 26px 22px; border-radius: 22px; }
	.has-event-portal .page-header::before { top: 18px; left: 22px; font-size: 10px; }
	.has-event-portal .page-header::after { width: 150px; height: 100px; }
	.has-event-portal .page-title { font-size: clamp(39px, 13vw, 58px); }
	.front-hero { min-height: 520px; padding: 30px 22px; border-radius: 24px; background-position: 64% center; }
	.front-hero::after { width: 250px; height: 150px; opacity: .55; }
	.front-hero__actions, .front-hero__actions .theme-button { width: 100%; }
	.site-footer { background-size: 300px auto, auto; }
}

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

@media (forced-colors: active) {
	.front-hero,
	.entry-card,
	.theme-button,
	.site-navigation a,
	.has-event-portal .page-header { border: 2px solid CanvasText; }
	.site-header, .site-footer { background: Canvas; color: CanvasText; }
	.site-title a, .site-navigation a, .site-footer a, .has-event-portal .page-title { color: CanvasText; }
}
