/*
Theme Name: Lukas
Theme URI: https://lukas-delft.nl
Author: Wijkgemeente Lukas
Description: Thema voor de protestantse wijkgemeente Lukas in Delft. Verhalen uit de gemeente, informatie over de eredienst en activiteiten, met agenda's op basis van Google Agenda.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lukas
*/

/* -------------------------------------------------- */
/* Design tokens                                       */
/* -------------------------------------------------- */
:root {
	--kleur-primair: #d2323a;
	--kleur-primair-donker: #a8262d;
	--kleur-accent: #39b54a;
	--kleur-goud: #f7b917;
	--kleur-taupe: #746a59;
	--kleur-tekst: #1a1a1a;
	--kleur-tekst-zacht: #55524f;
	--kleur-achtergrond: #ffffff;
	--kleur-licht: #f5f5f5;
	--kleur-rand: #e4e0da;
	--kleur-wit: #ffffff;

	--font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

	--container-max: 1180px;
	--radius: 12px;
	--radius-klein: 6px;
	--schaduw: 0 10px 30px -12px rgba(26, 20, 15, 0.25);
	--schaduw-klein: 0 2px 10px rgba(26, 20, 15, 0.08);
}

/* -------------------------------------------------- */
/* Reset & basis                                       */
/* -------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--kleur-tekst);
	background: var(--kleur-achtergrond);
	overflow-x: hidden;
}

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

a {
	color: var(--kleur-primair-donker);
}

a:hover {
	color: var(--kleur-primair);
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; }

button, input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

*:focus-visible {
	/* Donkerrood i.p.v. het logo-groen: groen haalt op wit maar ~2,7:1 non-text-contrast
	   (vereist 3:1 voor UI-indicators), dit donkerrood haalt ~7:1. */
	outline: 3px solid var(--kleur-primair-donker);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--kleur-primair);
	color: var(--kleur-wit);
	padding: 0.75em 1.25em;
	z-index: 1000;
	text-decoration: none;
	border-radius: 0 0 var(--radius-klein) 0;
}

.skip-link:focus {
	top: 0;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

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

/* -------------------------------------------------- */
/* Knoppen                                             */
/* -------------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	padding: 0.8em 1.5em;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button--primair {
	background: var(--kleur-primair);
	color: var(--kleur-wit);
}

.button--primair:hover {
	background: var(--kleur-primair-donker);
	color: var(--kleur-wit);
}

.button--outline {
	border-color: currentColor;
	color: var(--kleur-wit);
}

.button--outline:hover {
	background: rgba(255, 255, 255, 0.15);
	color: var(--kleur-wit);
}

.button--klein {
	padding: 0.5em 1.1em;
	font-size: 0.9rem;
}

/* -------------------------------------------------- */
/* Topbalk & header                                    */
/* -------------------------------------------------- */
.top-bar {
	background: var(--kleur-tekst);
	color: var(--kleur-licht);
	font-size: 0.85rem;
}

.top-bar .container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	justify-content: space-between;
	padding-block: 0.5em;
}

.top-bar a {
	color: var(--kleur-licht);
	text-decoration: none;
}

.top-bar a:hover {
	color: var(--kleur-goud);
}

.top-bar__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.25em;
}

.site-header {
	background: var(--kleur-wit);
	border-bottom: 1px solid var(--kleur-rand);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.9rem;
}

.branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.branding img {
	max-height: 48px;
	width: auto;
}

.branding__tekst {
	line-height: 1.2;
	min-width: 0;
	text-decoration: none;
	color: var(--kleur-tekst);
}

.branding__naam {
	display: block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--kleur-taupe);
}

.branding__tagline {
	display: block;
	font-size: 0.8rem;
	color: var(--kleur-tekst-zacht);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-cta {
	display: none;
}

.menu-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 1px solid var(--kleur-rand);
	border-radius: var(--radius-klein);
	background: var(--kleur-wit);
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	height: 2px;
	background: var(--kleur-tekst);
	margin-inline: 8px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.primary-navigation {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	background: var(--kleur-wit);
	border-bottom: 1px solid var(--kleur-rand);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.primary-navigation.is-open {
	max-height: 70vh;
	overflow-y: auto;
}

.primary-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0.5rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
}

.primary-navigation a {
	display: block;
	padding: 0.75em 0;
	text-decoration: none;
	color: var(--kleur-tekst);
	font-weight: 500;
	border-bottom: 1px solid var(--kleur-licht);
}

.primary-navigation .cta-mobiel {
	display: block;
	margin: 0.75em 1.25rem 1.25rem;
	color: var(--kleur-wit);
	text-align: center;
}

@media (min-width: 860px) {
	.menu-toggle { display: none; }

	.header-cta { display: inline-flex; }

	.header-actions .cta-mobiel { display: none; }

	.primary-navigation {
		position: static;
		max-height: none;
		overflow: visible;
		border: none;
		background: none;
	}

	.primary-navigation ul {
		flex-direction: row;
		align-items: center;
		gap: 1.75rem;
		padding: 0;
	}

	.primary-navigation a {
		border: none;
		padding: 0.4em 0;
	}

	.primary-navigation .cta-mobiel {
		display: none;
	}
}

/* -------------------------------------------------- */
/* Hero                                                */
/* -------------------------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--kleur-primair) 0%, var(--kleur-primair-donker) 55%, #7c1b20 100%);
	color: var(--kleur-wit);
	padding-block: clamp(3rem, 8vw, 6rem);
}

.hero__inner {
	max-width: 720px;
}

.hero p.hero__intro {
	font-size: 1.15rem;
	opacity: 0.95;
	max-width: 55ch;
}

.hero__accent {
	/* Puur decoratief (aria-hidden) — goud als tekstkleur haalt hier maar 2,44:1
	   contrast, ver onder de eis; als klein vlak is het geen tekst en geldt die eis niet. */
	display: block;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--kleur-goud);
	margin: 0.9rem 0 1.4rem;
}

.hero__acties {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* -------------------------------------------------- */
/* Secties                                             */
/* -------------------------------------------------- */
.section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--licht {
	background: var(--kleur-licht);
}

.section--donker {
	background: var(--kleur-tekst);
	color: var(--kleur-licht);
}

.section--donker h2 {
	color: var(--kleur-wit);
}

.section-header {
	max-width: 640px;
	margin-bottom: 2rem;
}

.section-header--centraal {
	margin-inline: auto;
	text-align: center;
}

.eyebrow {
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	color: var(--kleur-primair);
	margin-bottom: 0.5em;
}

.eyebrow--licht {
	/* Wit haalt overal in de hero-gradient (ook op het lichtste rode punt, ~4,9:1)
	   de vereiste 4,5:1 voor kleine, vette tekst; goud haalt daar maar 2,44:1. */
	color: var(--kleur-wit);
}

.section-footer {
	margin-top: 2rem;
	text-align: center;
}

/* -------------------------------------------------- */
/* Kaarten (verhalen)                                  */
/* -------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
}

@media (min-width: 700px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
	position: relative;
	background: var(--kleur-wit);
	border: 1px solid var(--kleur-rand);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--schaduw-klein);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
	box-shadow: var(--schaduw);
	transform: translateY(-3px);
}

.card__afbeelding {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--kleur-licht);
}

.card__afbeelding img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__inhoud {
	padding: 1.25rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.card__titel {
	font-size: 1.2rem;
	margin-bottom: 0.4em;
}

.card__titel a {
	color: var(--kleur-tekst);
	text-decoration: none;
}

.card__titel a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.card__titel a:hover {
	color: var(--kleur-primair-donker);
}

.card__excerpt {
	color: var(--kleur-tekst-zacht);
	font-size: 0.97rem;
	margin-bottom: 0;
}

.thema-badge {
	display: inline-block;
	align-self: flex-start;
	background: color-mix(in srgb, var(--kleur-goud) 15%, white);
	color: var(--kleur-primair-donker);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	margin-bottom: 0.75em;
	text-decoration: none;
	position: relative;
	z-index: 1;
}

.thema-pills {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	padding: 0;
	margin: 0 0 2rem;
}

.thema-pills a {
	display: inline-block;
	padding: 0.45em 1em;
	border-radius: 999px;
	border: 1px solid var(--kleur-rand);
	text-decoration: none;
	color: var(--kleur-tekst);
	font-size: 0.9rem;
}

.thema-pills a:hover,
.thema-pills .is-actief a {
	background: var(--kleur-primair);
	border-color: var(--kleur-primair);
	color: var(--kleur-wit);
}

/* -------------------------------------------------- */
/* Agenda                                              */
/* -------------------------------------------------- */
.agenda-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.agenda-item {
	display: flex;
	align-items: flex-start;
	gap: 1.1rem;
	background: var(--kleur-wit);
	border: 1px solid var(--kleur-rand);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	box-shadow: var(--schaduw-klein);
}

.agenda-item__datum {
	flex-shrink: 0;
	width: 64px;
	text-align: center;
	background: var(--kleur-primair);
	color: var(--kleur-wit);
	border-radius: var(--radius-klein);
	padding: 0.5em 0.25em;
}

.agenda-item__dag {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	font-family: var(--font-heading);
}

.agenda-item__maand {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.agenda-item__titel {
	margin: 0 0 0.2em;
	font-size: 1.05rem;
}

.agenda-item__meta {
	font-size: 0.9rem;
	color: var(--kleur-tekst-zacht);
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em 1em;
}

.agenda-leeg {
	color: var(--kleur-tekst-zacht);
	font-style: italic;
}

.agenda-fout {
	color: var(--kleur-tekst-zacht);
	background: var(--kleur-licht);
	border: 1px dashed var(--kleur-rand);
	border-radius: var(--radius-klein);
	padding: 1em 1.25em;
}

.twee-koloms {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 860px) {
	.twee-koloms { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------- */
/* CTA-banner                                          */
/* -------------------------------------------------- */
.cta-banner {
	background: linear-gradient(120deg, var(--kleur-accent), var(--kleur-goud));
	color: var(--kleur-tekst);
	text-align: center;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.cta-banner h2 {
	color: var(--kleur-tekst);
}

.cta-banner .button--primair {
	background: var(--kleur-tekst);
}

.cta-banner .button--primair:hover {
	background: #000;
}

/* -------------------------------------------------- */
/* Pagina- en berichtinhoud                            */
/* -------------------------------------------------- */
.pagina-header {
	background: var(--kleur-licht);
	padding-block: clamp(2rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--kleur-rand);
}

.pagina-header p {
	max-width: 60ch;
	color: var(--kleur-tekst-zacht);
	font-size: 1.05rem;
}

.archief-inhoud {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.inhoud-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 960px) {
	.inhoud-layout--met-sidebar { grid-template-columns: 2fr 1fr; }
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.3em; }

.entry-content blockquote {
	border-left: 4px solid var(--kleur-accent);
	margin: 1.5em 0;
	padding: 0.25em 1.25em;
	color: var(--kleur-tekst-zacht);
	font-style: italic;
}

.entry-meta {
	color: var(--kleur-tekst-zacht);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.gerelateerd {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--kleur-rand);
}

/* -------------------------------------------------- */
/* Widgets / sidebar                                   */
/* -------------------------------------------------- */
.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.05rem;
	margin-bottom: 0.75em;
}

/* -------------------------------------------------- */
/* Paginering & zoeken                                 */
/* -------------------------------------------------- */
.paginering {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.paginering .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4em;
	height: 2.4em;
	padding-inline: 0.5em;
	border: 1px solid var(--kleur-rand);
	border-radius: var(--radius-klein);
	text-decoration: none;
	color: var(--kleur-tekst);
}

.paginering .page-numbers.current {
	background: var(--kleur-primair);
	border-color: var(--kleur-primair);
	color: var(--kleur-wit);
}

.zoekformulier {
	display: flex;
	gap: 0.5rem;
	max-width: 420px;
	margin: 1.5rem 0;
}

.zoekformulier input[type="search"] {
	flex-grow: 1;
	padding: 0.7em 1em;
	border: 1px solid var(--kleur-rand);
	border-radius: var(--radius-klein);
}

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */
.site-footer {
	background: var(--kleur-tekst);
	color: #d9d5cf;
	padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
	.footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer h2 {
	color: var(--kleur-wit);
	font-size: 1.1rem;
}

.site-footer a {
	color: #d9d5cf;
}

.site-footer a:hover {
	color: var(--kleur-goud);
}

.footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 1.25rem;
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
}

/* -------------------------------------------------- */
/* 404                                                 */
/* -------------------------------------------------- */
.foutmelding {
	text-align: center;
	padding-block: clamp(3rem, 8vw, 6rem);
}

.foutmelding .zoekformulier {
	margin-inline: auto;
}
