/*
Theme Name: Inu no Kai
Theme URI: https://www.inunokai.nl
Description: Child theme of Twenty Twenty-Five for Inu no Kai — a charity organising fun dog events to support Japanese dog breeds (Shiba Inu & Akita Inu). Warm, Shiba-inspired brand palette, editorial typography and a modern image-led design.
Author: Inu no Kai
Template: twentytwentyfive
Version: 2.0.4
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: inunokai
*/

/* =========================================================
   1. Base refinements
   ========================================================= */
:root {
	--ink-soft: rgba(42, 37, 33, 0.7);
	--shadow-sm: 0 4px 14px rgba(42, 37, 33, 0.08);
	--shadow-md: 0 14px 34px rgba(42, 37, 33, 0.12);
	--shadow-lg: 0 30px 60px rgba(42, 37, 33, 0.20);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

::selection { background: var(--wp--preset--color--accent-2); color: #fff; }

/* Eyebrow / kicker label */
.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-2);
}

/* =========================================================
   2. Buttons
   ========================================================= */
.wp-block-button__link,
.wp-element-button {
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.015em;
	padding: 0.88rem 2.1rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	box-shadow: 0 6px 18px rgba(200, 64, 46, 0.26);
}
.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(200, 64, 46, 0.38);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	box-shadow: none;
	border-width: 1.5px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	box-shadow: none;
	transform: translateY(-2px);
}
.is-style-donate .wp-block-button__link {
	box-shadow: 0 6px 18px rgba(200, 64, 46, 0.32);
}

/* =========================================================
   3. Sticky, blurred site header
   ========================================================= */

/*
 * TWO bugs fixed here:
 *
 * 1. Sticky: the template-part wrapper is exactly the header's height, so
 *    position:sticky on the inner element has no travel room and unsticks
 *    immediately. Fix: make the outer wrapper sticky instead.
 *
 * 2. Chrome backdrop-filter bug: backdrop-filter on an ancestor creates a
 *    containing block for position:fixed descendants (Chromium #840649).
 *    The nav overlay is position:fixed inside .site-header — so if
 *    backdrop-filter lives on .site-header it traps the overlay inside the
 *    ~60 px header bar instead of covering the full viewport.
 *    Fix: move backdrop-filter to a ::before pseudo-element on the outer
 *    sticky wrapper. Pseudo-elements have no children, so fixed descendants
 *    of the real element tree are never contained.
 */
header.wp-block-template-part:has(.site-header) {
	position: sticky;
	top: 0;
	z-index: 100;
}
/* Frosted-glass layer — pseudo-element so it can't trap fixed children */
header.wp-block-template-part:has(.site-header)::before {
	content: "";
	position: absolute;
	inset: 0;
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	background-color: rgba(252, 247, 240, 0.82);
	transition: background-color 0.3s ease;
	pointer-events: none;
}
/* Darken glass when scrolled — detected via .is-scrolled on the inner element */
header.wp-block-template-part:has(.site-header.is-scrolled)::before {
	background-color: rgba(252, 247, 240, 0.96);
}
header.wp-block-template-part:has(.site-header.is-scrolled) {
	box-shadow: 0 6px 24px rgba(42, 37, 33, 0.10);
}

/* Inner element: transparent — visuals live on the ::before pseudo above */
.site-header {
	position: relative;
	background-color: transparent !important;
}
/* Brand logo lockup */
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo:hover { text-decoration: none; }
.brand-logo img { display: block; height: 72px; width: auto; flex: none; }
/* Nav link underline animation */
.site-header .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 3px;
}
.site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 2px;
	background: var(--wp--preset--color--accent-2);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.site-header .wp-block-navigation-item:hover .wp-block-navigation-item__content::after,
.site-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* =========================================================
   4. Hero Split — typography-forward, left text / right image
   ========================================================= */
@keyframes heroZoom {
	from { transform: scale(1.12); }
	to   { transform: scale(1); }
}
@keyframes heroFadeUp {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}
@keyframes heroFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes scrollCue {
	0%   { opacity: 0; transform: translate(-50%, 0); }
	40%  { opacity: 1; }
	80%  { opacity: 0; transform: translate(-50%, 12px); }
	100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Grid layout */
.hero-split {
	display: grid;
	grid-template-columns: 46fr 54fr;
	grid-template-rows: 92vh;
	overflow: hidden;
	position: relative;
}

/* Thin vermilion accent seam between panels */
.hero-split::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: calc(46% - 1px);
	width: 2px;
	background: var(--wp--preset--color--accent-2);
	opacity: 0.45;
	z-index: 10;
	pointer-events: none;
}

/* ---- Text panel ---- */
.hero-split__content {
	background-color: var(--wp--preset--color--base);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 5rem) clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 5rem);
	position: relative;
}

/* Japanese hi-no-maru circle watermark */
.hero-split__deco {
	position: absolute;
	top: -100px; right: -100px;
	width: 320px; height: 320px;
	border-radius: 50%;
	border: 56px solid var(--wp--preset--color--accent-1);
	opacity: 0.055;
	pointer-events: none;
}

.hero-split__content .kicker {
	animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
}

.hero-split__heading {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-weight: 700;
	font-size: clamp(2.6rem, 4vw + 0.5rem, 5.4rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--contrast);
	text-wrap: balance;
	margin: 1rem 0 1.5rem;
	animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

/* Italic accent colour on the breed name */
.hero-split__heading em {
	font-style: italic;
	color: var(--wp--preset--color--accent-2);
}

.hero-split__body {
	font-size: clamp(0.97rem, 0.8vw + 0.4rem, 1.1rem);
	line-height: 1.74;
	color: var(--ink-soft);
	max-width: 46ch;
	margin-bottom: 2.2rem;
	animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both;
}

.hero-split__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.54s both;
}

.hero-split__btn {
	display: inline-block;
	padding: 0.88rem 2.1rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.015em;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hero-split__btn--primary {
	background: var(--wp--preset--color--accent-2);
	color: #fff;
	box-shadow: 0 6px 18px rgba(200, 64, 46, 0.28);
}
.hero-split__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(200, 64, 46, 0.42);
	background: #b03527;
	color: #fff;
	text-decoration: none;
}

.hero-split__btn--outline {
	border: 1.5px solid rgba(42, 37, 33, 0.45);
	color: var(--wp--preset--color--contrast);
	background: transparent;
}
.hero-split__btn--outline:hover {
	transform: translateY(-2px);
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

/* Scroll cue — dark variant over cream bg */
.scroll-cue {
	position: absolute;
	left: 50%; bottom: 26px;
	transform: translateX(-50%);
	width: 26px; height: 42px;
	border: 2px solid rgba(42, 37, 33, 0.30);
	border-radius: 14px;
	z-index: 5;
}
.scroll-cue::before {
	content: "";
	position: absolute; left: 50%; top: 8px;
	width: 4px; height: 8px; border-radius: 2px;
	background: var(--wp--preset--color--contrast);
	transform: translateX(-50%);
	animation: scrollCue 1.8s ease-in-out infinite;
}

/* ---- Image panel ---- */
.hero-split__visual {
	position: relative;
	overflow: hidden;
	animation: heroFadeIn 1.3s ease 0s both;
}

.hero-split__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 25%;
	border-radius: 0 !important;
	animation: heroZoom 18s ease-out forwards;
}

.hero-split__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(204, 107, 51, 0.10) 0%, rgba(42, 37, 33, 0.06) 100%);
	pointer-events: none;
}

/* Mobile — image on top, text below */
@media (max-width: 860px) {
	.hero-split {
		grid-template-columns: 1fr;
		grid-template-rows: min(58vw, 380px) auto;
		min-height: auto;
	}
	.hero-split__visual { grid-row: 1; }
	.hero-split__content { grid-row: 2; padding: 2.5rem 1.5rem 3rem; }
	.hero-split::after { display: none; }
	.hero-split .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-split__img,
	.hero-split__visual { animation: none; }
	.hero-split__content .kicker,
	.hero-split__heading,
	.hero-split__body,
	.hero-split__actions { animation: none; opacity: 1; transform: none; }
}

/* =========================================================
   5. Scroll reveal
   ========================================================= */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger children when desired: parent stays put, children fade up in sequence */
.reveal.reveal-stagger { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; }
.reveal-stagger.is-visible > * { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.38s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal-stagger.is-visible > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =========================================================
   6. Cards
   ========================================================= */
.is-style-card {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
	height: 100%;
}
.is-style-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.is-style-card figure { margin: 0 !important; overflow: hidden; }
.is-style-card figure img { width: 100%; height: 230px; object-fit: cover; display: block; border-radius: 0 !important; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.is-style-card:hover figure img { transform: scale(1.05); }
.is-style-card .card-body { padding: 1.6rem 1.5rem 1.8rem; }

/* =========================================================
   7. Breed / feature image tiles
   ========================================================= */
.feature-tile { position: relative; overflow: hidden; border-radius: 22px; }
.feature-tile .wp-block-cover__image-background { transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.feature-tile:hover .wp-block-cover__image-background { transform: scale(1.06); }

/* =========================================================
   8. Stats band
   ========================================================= */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	text-align: center;
}
.stats-grid .stat-num {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-weight: 700;
	font-size: clamp(2.4rem, 1.4rem + 3vw, 3.6rem);
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
}
.stats-grid .stat-label {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: var(--ink-soft);
	font-weight: 600;
	letter-spacing: 0.02em;
}
@media (max-width: 781px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* =========================================================
   9. Gallery hover
   ========================================================= */
.wp-block-gallery.is-style-zoom figure { overflow: hidden; border-radius: 14px; }
.wp-block-gallery.is-style-zoom img {
	transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
}
.wp-block-gallery.is-style-zoom figure:hover img { transform: scale(1.08); }

/* =========================================================
   10. Section rhythm & misc
   ========================================================= */
.wp-block-cover { border-radius: 0; }
figure.wp-block-image img { border-radius: 16px; }
.has-display-font-size { line-height: 1.02; letter-spacing: -0.02em; }

/* Quote styling */
.wp-block-quote {
	border-left: 4px solid var(--wp--preset--color--accent-2);
	padding-left: 1.4rem;
	font-style: normal;
}

/* Mobile nav tweaks */
@media (max-width: 600px) {
	.brand-logo img { height: 56px; }
}

/* =========================================================
   11. Editorial atmosphere — paper grain & Japanese sensibility
   ========================================================= */
/* Subtle paper grain over the whole page (sits under the header, ignores clicks) */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: 0.04;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wp-block-cover__inner-container { position: relative; z-index: 3; }

/* Kicker with a short vermilion rule — editorial label */
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	font-weight: 700;
	font-size: 0.74rem;
	color: var(--wp--preset--color--accent-2);
}
.kicker::before {
	content: "";
	width: 34px; height: 2px;
	background: var(--wp--preset--color--accent-2);
	display: inline-block;
}
.kicker.is-centered { justify-content: center; }

/* Editorial lede paragraph */
.lede {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	font-weight: 400;
}

/* Section number tag (editorial) */
.sec-no {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-style: italic;
	color: var(--wp--preset--color--accent-1);
	font-size: 0.95rem;
	opacity: 0.8;
}

/* Big display headline tweak */
h1.has-display-font-size, .display-head {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.025em;
}

/* Feature tile caption block */
.feature-tile .wp-block-cover__inner-container { width: 100%; }
.feature-tile .tile-tag {
	display: inline-block;
	font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
	color: #ffe3d3; font-weight: 700; margin-bottom: 0.4rem;
}

/* Asymmetric portrait frame */
.portrait-frame { position: relative; }
.portrait-frame::before {
	content: "";
	position: absolute;
	inset: 14px -14px -14px 14px;
	border: 2px solid var(--wp--preset--color--accent-2);
	border-radius: 18px;
	z-index: 0;
}
.portrait-frame img { position: relative; z-index: 1; border-radius: 18px; }

/* Refine outline buttons on dark */
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1.5px; }

/* =========================================================
   12. Legibility safety net for text over photos
   ========================================================= */
.wp-block-cover h2,
.wp-block-cover .has-text-color {
	text-shadow: 0 2px 22px rgba(20, 14, 10, 0.45);
}
.feature-tile h3,
.feature-tile p,
.feature-tile .tile-tag {
	text-shadow: 0 2px 14px rgba(20, 14, 10, 0.55);
}

/* =========================================================
   13. Evenementenpagina
   ========================================================= */

/* ---- Page header ---- */
.evt-pg-header {
	background-color: var(--wp--preset--color--base);
	overflow: hidden;
	padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
	border-bottom: 2px solid var(--wp--preset--color--base-2);
}
.evt-pg-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 5vw, 5rem);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
}
.evt-pg-header__title {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-weight: 700;
	font-size: clamp(3.4rem, 6vw + 1rem, 8rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--contrast);
	margin: 0.75rem 0 1.2rem;
}
.evt-pg-header__title em {
	font-style: italic;
	color: var(--wp--preset--color--accent-2);
}
.evt-pg-header__sub {
	font-size: clamp(0.97rem, 0.8vw + 0.3rem, 1.1rem);
	line-height: 1.72;
	color: var(--ink-soft);
	max-width: 52ch;
}
.evt-pg-header__deco {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(9rem, 18vw, 22rem);
	line-height: 0.85;
	color: var(--wp--preset--color--base-2);
	letter-spacing: -0.06em;
	user-select: none;
	pointer-events: none;
	margin-right: clamp(1rem, 3vw, 4rem);
	flex: none;
}

/* ---- Featured event ---- */
.evt-featured {
	background-color: var(--wp--preset--color--base-2);
}
.evt-featured__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.evt-featured__meta {
	padding: clamp(2.5rem, 4vw, 4.5rem) clamp(2rem, 3.5vw, 4rem) clamp(2.5rem, 4vw, 4.5rem) clamp(1.5rem, 4vw, 4.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.evt-featured__date {
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	margin: 0.8rem 0 1.4rem;
}
.evt-featured__day {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(5rem, 9vw, 9.5rem);
	line-height: 0.88;
	color: var(--wp--preset--color--accent-2);
	letter-spacing: -0.045em;
}
.evt-featured__date-detail {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
}
.evt-featured__month {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-weight: 700;
	font-size: clamp(1.6rem, 2.5vw, 2.6rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
}
.evt-featured__year {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.evt-featured__name {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-size: clamp(1.3rem, 1.8vw + 0.3rem, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 1.2rem;
}

/* Event metadata */
.evt-meta {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-bottom: 1.3rem;
}
.evt-meta__item {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
}
.evt-meta__item dt {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-2);
	min-width: 4.5rem;
	flex: none;
}
.evt-meta__item dd {
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}
.evt-featured__desc {
	font-size: 0.95rem;
	line-height: 1.72;
	color: var(--ink-soft);
	max-width: 48ch;
	margin-bottom: 1.8rem;
}
.evt-featured__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

/* Featured: image side */
.evt-featured__visual {
	position: relative;
	overflow: hidden;
	min-height: clamp(420px, 40vw, 580px);
}
.evt-featured__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 0 !important;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.evt-featured:hover .evt-featured__img { transform: scale(1.04); }
.evt-featured__badge {
	position: absolute;
	top: 1.4rem; left: 1.4rem;
	background: var(--wp--preset--color--accent-2);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.42rem 0.95rem;
	border-radius: 100px;
	z-index: 2;
}

/* ---- Upcoming events ---- */
.evt-upcoming {
	background-color: var(--wp--preset--color--base);
	padding: clamp(4rem, 7vw, 7rem) 0;
}
.evt-upcoming__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.evt-upcoming__header { margin-bottom: clamp(2rem, 3.5vw, 3.5rem); }
.evt-upcoming__title {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-size: clamp(1.7rem, 2vw + 0.5rem, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--contrast);
	margin: 0.5rem 0 0;
}
.evt-upcoming__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	grid-template-rows: auto auto;
	gap: 1.4rem;
}

/* Event card — base */
.evt-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.evt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Large card (spans both rows) */
.evt-card--large {
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
}
.evt-card__img-wrap {
	position: relative;
	overflow: hidden;
	height: 260px;
	flex: none;
}
.evt-card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	display: block;
}
.evt-card:hover .evt-card__img { transform: scale(1.06); }
.evt-card__date-badge {
	position: absolute;
	top: 1rem; left: 1rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: Platypi, serif;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	padding: 0.38rem 0.8rem;
	border-radius: 6px;
}
.evt-card__body {
	padding: 1.5rem 1.7rem 1.7rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.evt-card__title {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-size: clamp(1.05rem, 1.2vw + 0.2rem, 1.38rem);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-bottom: 0.35rem;
}
.evt-card__loc {
	font-size: 0.83rem;
	color: var(--ink-soft);
	font-weight: 500;
	margin-bottom: 0.85rem;
}
.evt-card__desc {
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--ink-soft);
	flex: 1;
	margin-bottom: 1.1rem;
}
.evt-card__link {
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent-2);
	text-decoration: none;
	letter-spacing: 0.01em;
}
.evt-card__link:hover { text-decoration: underline; }

/* Compact cards */
.evt-card--compact {
	display: grid;
	grid-template-columns: 4.5rem 1fr 6rem;
	gap: 1rem;
	align-items: center;
	padding: 1.15rem 1.3rem;
}
.evt-card__compact-date {
	text-align: center;
	border-right: 1.5px solid var(--wp--preset--color--base-2);
	padding-right: 1rem;
}
.evt-card__compact-day {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-style: italic;
	font-weight: 700;
	font-size: 2.1rem;
	line-height: 1;
	color: var(--wp--preset--color--accent-2);
	letter-spacing: -0.03em;
	display: block;
}
.evt-card__compact-month {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	color: var(--ink-soft);
	display: block;
	margin-top: 0.18rem;
}
.evt-card__compact-info {
	display: flex;
	flex-direction: column;
	gap: 0.22rem;
}
.evt-card--compact .evt-card__title { font-size: 0.95rem; margin-bottom: 0; }
.evt-card--compact .evt-card__loc { font-size: 0.78rem; margin-bottom: 0.35rem; }
.evt-card--compact .evt-card__link { font-size: 0.8rem; }
.evt-card__compact-img-wrap {
	width: 6rem; height: 4.4rem;
	border-radius: 10px;
	overflow: hidden;
	flex: none;
}
.evt-card__compact-img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.4s ease;
	display: block;
}
.evt-card--compact:hover .evt-card__compact-img { transform: scale(1.09); }

/* ---- Past events ---- */
.evt-past {
	background-color: var(--wp--preset--color--contrast);
	padding: clamp(4rem, 7vw, 7rem) 0;
}
.evt-past__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.evt-past__header { margin-bottom: 2.5rem; }
.evt-past__title {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-size: clamp(1.7rem, 2vw + 0.5rem, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--base);
	margin: 0.5rem 0 0;
}
.evt-past__strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
}
.evt-past__item {
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
}
.evt-past__img-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.evt-past__img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
	display: block;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	filter: sepia(25%) contrast(1.05) brightness(0.88);
}
.evt-past__item:hover .evt-past__img { transform: scale(1.07); filter: sepia(10%) contrast(1.05) brightness(0.95); }
.evt-past__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(42,37,33,0.88) 0%, rgba(42,37,33,0.05) 55%);
	pointer-events: none;
}
.evt-past__caption {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.evt-past__date {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	color: var(--wp--preset--color--accent-1);
}
.evt-past__name {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-size: clamp(0.9rem, 1.1vw + 0.1rem, 1.1rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

/* ---- Notify CTA ---- */
.evt-notify {
	background-color: var(--wp--preset--color--base-2);
	padding: clamp(4rem, 7vw, 7rem) 0;
	text-align: center;
}
.evt-notify__inner {
	max-width: 620px;
	margin: 0 auto;
	padding: 0 1.5rem;
}
.evt-notify__title {
	font-family: Platypi, "Iowan Old Style", Georgia, serif;
	font-size: clamp(1.8rem, 3vw + 0.5rem, 3.2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--wp--preset--color--contrast);
	margin: 0.7rem 0 1rem;
}
.evt-notify__title em {
	font-style: italic;
	color: var(--wp--preset--color--accent-2);
}
.evt-notify__sub {
	font-size: clamp(0.95rem, 0.8vw + 0.3rem, 1.08rem);
	line-height: 1.72;
	color: var(--ink-soft);
	margin-bottom: 2rem;
}

/* ---- Events responsive ---- */
@media (max-width: 900px) {
	.evt-pg-header__inner { grid-template-columns: 1fr; }
	.evt-pg-header__deco { display: none; }
	.evt-featured__inner {
		grid-template-columns: 1fr;
		grid-template-rows: 280px auto;
	}
	.evt-featured__visual { grid-row: 1; min-height: 0; }
	.evt-featured__meta { grid-row: 2; }
	.evt-upcoming__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
	.evt-card--large { grid-row: auto; }
	.evt-past__strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.evt-card--compact { grid-template-columns: 4rem 1fr; }
	.evt-card__compact-img-wrap { display: none; }
	.evt-past__strip { grid-template-columns: 1fr; }
}

/* =========================================================
   14. Mobile navigation — hamburger & overlay
   ========================================================= */

/* Prevent horizontal scroll without breaking position:sticky */
html { overflow-x: clip; }

/* ---- Hamburger button ---- */
.wp-block-navigation__responsive-container-open {
	color: #2A2521;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.wp-block-navigation__responsive-container-open svg {
	fill: currentColor;
	display: block;
	width: 26px;
	height: 26px;
}

/* ---- Close (×) button ---- */
.wp-block-navigation__responsive-container-close {
	color: #2A2521;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0.4rem;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.wp-block-navigation__responsive-container-close svg {
	fill: currentColor;
	display: block;
	width: 26px;
	height: 26px;
}

/* ---- Overlay background — hard value beats WP's background-color:inherit ---- */
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
	background-color: #FCF7F0 !important;
	color: #2A2521 !important;
}

/* ---- Overlay content: left-align and add breathing room ---- */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-left: 1.75rem !important;
	padding-right: 1.75rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 0 !important;
	width: 100%;
}

/* ---- Nav items ---- */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item {
	border-bottom: 1px solid #F1E4D2 !important;
	width: 100% !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	outline: none !important;
	box-shadow: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item:last-child {
	border-bottom: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
	font-family: Platypi, "Iowan Old Style", Georgia, serif !important;
	font-size: clamp(1.4rem, 5vw, 1.9rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: #2A2521 !important;
	padding: 0.9rem 0 !important;
	display: block;
	text-align: left !important;
	text-decoration: none;
	width: 100% !important;
	outline: none !important;
	box-shadow: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content:hover,
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content:active {
	color: #C8402E !important;
}
/* Suppress desktop underline animation inside overlay */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content::after {
	display: none !important;
}

/* =========================================================
   15. Header layout on small screens
   ========================================================= */
@media (max-width: 781px) {
	/* Prevent the logo row from wrapping */
	.site-header .alignwide {
		flex-wrap: nowrap !important;
		padding-left: 1rem;
		padding-right: 1rem;
	}
	/* Right group: nav + Doneer button — tight, no wrap */
	.site-header .wp-block-group:not(.alignwide) {
		flex-wrap: nowrap !important;
		gap: 0.5rem !important;
		align-items: center !important;
	}
	/* Scale down Doneer button so it fits next to the hamburger */
	.is-style-donate .wp-block-button__link {
		padding: 0.6rem 1rem !important;
		font-size: 0.82rem !important;
		letter-spacing: 0 !important;
		box-shadow: 0 4px 10px rgba(200, 64, 46, 0.26) !important;
	}
}

/* =========================================================
   16. Global small-screen polish
   ========================================================= */
@media (max-width: 600px) {
	/* Portrait frame offset border causes horizontal overflow on mobile */
	.portrait-frame::before { display: none; }

	/* Feature tiles — keep a comfortable tap height */
	.feature-tile .wp-block-cover { min-height: 280px !important; }

	/* Hero CTAs stack vertically */
	.hero-split__actions { flex-direction: column; }
	.hero-split__btn { text-align: center; width: 100%; box-sizing: border-box; }

	/* Reduce default WP column gap on phone */
	.wp-block-columns { gap: 1.25rem !important; }

	/* Stats already 2-col at 781px; keep numbers readable */
	.stats-grid .stat-num { font-size: clamp(2rem, 9vw, 3rem); }
}

/* =========================================================
   17. Doneren pagina
   ========================================================= */

/* Trust bullet list — used in hero left column */
.donate-trust {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.donate-trust li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--ink-soft);
}
.donate-trust__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	margin-top: 0.42em;
}
.donate-trust strong {
	color: var(--wp--preset--color--contrast);
}

/* Vertically centre the text column so the cream panel doesn't sit empty
   at the bottom next to the tall photo. */
.wp-block-column:has(.donate-trust) {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Ensure columns-based hero always stacks correctly on mobile */
@media (max-width: 780px) {
	.wp-block-columns.alignfull:has(.donate-trust) .wp-block-cover {
		min-height: 55vw !important;
	}
	.wp-block-column:has(.donate-trust) {
		justify-content: flex-start;
	}
	.wp-block-columns.alignfull:has(.donate-trust) .wp-block-column:first-child {
		padding-top: 5rem !important;
	}
}

/* GiveWP donation form — reserve space so the iframe doesn't push the page
   down when it resizes (~150px → ~1650px) a second after load. While loading
   we hold the final height and show a centred spinner; once the iframe has
   grown the .is-loading class is removed (see inunokai.js). */
.root-data-givewp-embed {
	display: block;
}
.root-data-givewp-embed.is-loading {
	position: relative;
	min-height: 1650px;
}
/* While loading, keep the iframe fully hidden so the visitor never sees it at
   a partial height (it starts at 150px and only resizes ~1.7s later). Only the
   spinner is visible; once the form has measured its real height we fade the
   whole form in at once (see inunokai.js → .is-loaded). The space stays
   reserved so the footer never jumps. */
.root-data-givewp-embed iframe {
	transition: opacity 0.3s ease;
}
.root-data-givewp-embed.is-loading iframe {
	opacity: 0 !important;
	pointer-events: none;
}
.root-data-givewp-embed.is-loading::after {
	content: "";
	position: absolute;
	top: 200px;
	left: 50%;
	width: 38px;
	height: 38px;
	margin-left: -19px;
	border-radius: 50%;
	border: 3px solid rgba(42, 37, 33, 0.15);
	border-top-color: var(--wp--preset--color--accent-1);
	animation: donate-spin 0.8s linear infinite;
}
@keyframes donate-spin {
	to { transform: rotate(360deg); }
}
@media (max-width: 600px) {
	.root-data-givewp-embed.is-loading {
		min-height: 1780px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.root-data-givewp-embed.is-loading::after { animation: none; }
}
