/*
Theme Name: Schoorl Gastvrij
Theme URI:
Author: Schoorl & AMV Support
Description: Custom theme voor Schoorl & AMV Support — een initiatief van inwoners van Schoorl, Groet en Bergen (NH) ter ondersteuning van alleenstaande minderjarige vluchtelingen.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.7
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: schoorl-gastvrij
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
	/* Old Lace — warm gold accent */
	--color-old-lace-50: #fef5e6;
	--color-old-lace-100: #fdecce;
	--color-old-lace-200: #fbd99d;
	--color-old-lace-300: #fac56b;
	--color-old-lace-400: #f8b23a;
	--color-old-lace-500: #f69f09;
	--color-old-lace-600: #c57f07;
	--color-old-lace-700: #945f05;
	--color-old-lace-800: #624004;
	--color-old-lace-900: #312002;
	--color-old-lace-950: #221601;

	/* Steel Blue — primary brand blue */
	--color-steel-blue-50: #edf3f7;
	--color-steel-blue-100: #dbe7f0;
	--color-steel-blue-200: #b8cee0;
	--color-steel-blue-300: #94b6d1;
	--color-steel-blue-400: #709dc2;
	--color-steel-blue-500: #4d85b3;
	--color-steel-blue-600: #3d6a8f;
	--color-steel-blue-700: #2e506b;
	--color-steel-blue-800: #1f3547;
	--color-steel-blue-900: #0f1b24;
	--color-steel-blue-950: #0b1319;

	/* Honeydew — green accent */
	--color-honeydew-50: #eef9eb;
	--color-honeydew-100: #ddf4d7;
	--color-honeydew-200: #bce9af;
	--color-honeydew-300: #9add88;
	--color-honeydew-400: #79d260;
	--color-honeydew-500: #57c738;
	--color-honeydew-600: #469f2d;
	--color-honeydew-700: #347722;
	--color-honeydew-800: #235016;
	--color-honeydew-900: #11280b;
	--color-honeydew-950: #0c1c08;

	/* Soft Fawn — warm secondary */
	--color-soft-fawn-50: #faf4ea;
	--color-soft-fawn-100: #f6e8d5;
	--color-soft-fawn-200: #ecd1ac;
	--color-soft-fawn-300: #e3bb82;
	--color-soft-fawn-400: #d9a459;
	--color-soft-fawn-500: #d08d2f;
	--color-soft-fawn-600: #a67126;
	--color-soft-fawn-700: #7d551c;
	--color-soft-fawn-800: #533813;
	--color-soft-fawn-900: #2a1c09;
	--color-soft-fawn-950: #1d1407;

	/* Palm Leaf — logo green */
	--color-palm-leaf-50: #f3f5ef;
	--color-palm-leaf-100: #e7ebe0;
	--color-palm-leaf-200: #cfd8c0;
	--color-palm-leaf-300: #b7c4a1;
	--color-palm-leaf-400: #9eb082;
	--color-palm-leaf-500: #869d62;
	--color-palm-leaf-600: #6b7d4f;
	--color-palm-leaf-700: #515e3b;
	--color-palm-leaf-800: #363f27;
	--color-palm-leaf-900: #1b1f14;
	--color-palm-leaf-950: #13160e;

	/* Rich Cerulean */
	--color-rich-cerulean-50: #ecf3f8;
	--color-rich-cerulean-100: #dae6f1;
	--color-rich-cerulean-200: #b4cee4;
	--color-rich-cerulean-300: #8fb5d6;
	--color-rich-cerulean-400: #699cc9;
	--color-rich-cerulean-500: #4483bb;
	--color-rich-cerulean-600: #366996;
	--color-rich-cerulean-700: #294f70;
	--color-rich-cerulean-800: #1b354b;
	--color-rich-cerulean-900: #0e1a25;
	--color-rich-cerulean-950: #09121a;

	/* Light Blue */
	--color-light-blue-50: #ecf6f8;
	--color-light-blue-100: #d9ecf2;
	--color-light-blue-200: #b4d9e4;
	--color-light-blue-300: #8ec6d7;
	--color-light-blue-400: #68b3ca;
	--color-light-blue-500: #42a0bd;
	--color-light-blue-600: #358097;
	--color-light-blue-700: #286071;
	--color-light-blue-800: #1b404b;
	--color-light-blue-900: #0d2026;
	--color-light-blue-950: #09161a;

	/* Ivory Mist */
	--color-ivory-mist-50: #fdf7e7;
	--color-ivory-mist-100: #fceecf;
	--color-ivory-mist-200: #f8dea0;
	--color-ivory-mist-300: #f5cd70;
	--color-ivory-mist-400: #f2bc40;
	--color-ivory-mist-500: #eeac11;
	--color-ivory-mist-600: #bf890d;
	--color-ivory-mist-700: #8f670a;
	--color-ivory-mist-800: #5f4507;
	--color-ivory-mist-900: #302203;
	--color-ivory-mist-950: #211802;

	--color-lilac-50: #f3eef8;
	--color-lilac-100: #e7ddf1;
	--color-lilac-200: #cfbbe3;
	--color-lilac-300: #b799d5;
	--color-lilac-400: #9f77c7;
	--color-lilac-500: #8755b9;
	--color-lilac-600: #6c4494;
	--color-lilac-700: #51336f;
	--color-lilac-800: #36224a;
	--color-lilac-900: #1b1125;
	--color-lilac-950: #120b1a;

	/* Semantic tokens */
	--color-primary: var(--color-steel-blue-600);
	--color-primary-dark: var(--color-steel-blue-800);
	--color-primary-light: var(--color-steel-blue-100);
	--color-secondary: var(--color-palm-leaf-700);
	--color-secondary-light: var(--color-palm-leaf-100);
	--color-accent: var(--color-soft-fawn-400);
	--color-accent-light: var(--color-old-lace-50);
	--color-bg: #ffffff;
	--color-bg-warm: var(--color-old-lace-50);
	--color-bg-cool: var(--color-steel-blue-50);
	--color-text: var(--color-steel-blue-900);
	--color-text-light: var(--color-steel-blue-600);
	--color-text-muted: var(--color-steel-blue-400);
	--color-border: var(--color-steel-blue-100);

	/* Typography */
	--font-heading: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;

	/* Spacing */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;

	/* Layout */
	--container-max: 1200px;
	--header-height: 80px;
	--border-radius: 8px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.7;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin-top: 0;
	color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
	margin-top: 0;
	margin-bottom: var(--space-sm);
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--color-primary-dark);
}

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

/* ==========================================================================
   Utility
   ========================================================================== */

.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#main-content {
	flex: 1;
}


.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--space-md);
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
	height: var(--header-height);
}

.site-header .container {
	display: flex;
	align-items: center;
	height: 100%;
	gap: var(--space-lg);
}

.site-branding {
	flex-shrink: 0;
}

.site-branding a {
	display: flex;
	align-items: center;
}

.site-branding img {
	height: 52px;
	width: auto;
}

/* Main Navigation */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--space-xs);
}

.main-navigation li a {
	display: block;
	padding: var(--space-xs) var(--space-xs);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--color-steel-blue-700);
	border-radius: var(--border-radius);
	transition: color 0.2s ease, background-color 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.main-navigation li a:hover,
.main-navigation li a:focus,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
	color: var(--color-primary);
	background-color: var(--color-primary-light);
}

/* Submenu */
.main-navigation li.menu-item-has-children {
	position: relative;
}

.main-navigation li.menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.main-navigation li.menu-item-has-children > a::after {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -4px;
	flex-shrink: 0;
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: #ffffff;
	border-radius: var(--border-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	border: 1px solid var(--color-border);
	padding: var(--space-xs) 0;
	flex-direction: column;
	gap: 0;
	z-index: 100;
}

.main-navigation li.menu-item-has-children:hover > .sub-menu,
.main-navigation li.menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

.main-navigation .sub-menu li a {
	padding: var(--space-xs) var(--space-md);
	font-size: 0.9rem;
	text-transform: none;
	border-radius: 0;
	white-space: nowrap;
}

.main-navigation .sub-menu li a:hover,
.main-navigation .sub-menu li a:focus {
	background-color: var(--color-bg-cool);
}

/* Hamburger toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-xs);
	margin-left: auto;
}

.menu-toggle .hamburger {
	display: block;
	width: 26px;
	height: 3px;
	background-color: var(--color-primary-dark);
	border-radius: 2px;
	position: relative;
	transition: background-color 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
	content: '';
	display: block;
	width: 26px;
	height: 3px;
	background-color: var(--color-primary-dark);
	border-radius: 2px;
	position: absolute;
	left: 0;
	transition: transform 0.3s ease;
}

.menu-toggle .hamburger::before {
	top: -8px;
}

.menu-toggle .hamburger::after {
	top: 8px;
}

/* Active hamburger */
.menu-toggle[aria-expanded="true"] .hamburger {
	background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	background-color: var(--color-steel-blue-800);
}

.hero-section__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
}

.hero-section__overlay {
	position: relative;
	z-index: 1;
	padding: var(--space-xl) var(--space-md);
	max-width: 800px;
}

.hero-section__title {
	color: #ffffff;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	margin-bottom: var(--space-sm);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hero-section__subtitle {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 400;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Section Base
   ========================================================================== */

.section {
	padding-block: var(--space-2xl);
}

.section--warm {
	background-color: var(--color-bg-warm);
}

.section--cool {
	background-color: var(--color-bg-cool);
}

.section__header {
	text-align: center;
	margin-bottom: var(--space-xl);
}

.section__title {
	position: relative;
	display: inline-block;
	margin-bottom: var(--space-sm);
}

.section__title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background-color: var(--color-accent);
	border-radius: 2px;
	margin: var(--space-sm) auto 0;
}

/* ==========================================================================
   Introduction Section
   ========================================================================== */

.intro-section {
	text-align: center;
}

.intro-section__content {
	max-width: 800px;
	margin-inline: auto;
	font-size: 1.15rem;
	color: var(--color-text);
	line-height: 1.8;
}

.intro-section__content p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Two-Column Cards
   ========================================================================== */

.cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-lg);
}

.card {
	background-color: #ffffff;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card__icon {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
}

.card--over-ons .card__icon {
	background: linear-gradient(135deg, var(--color-steel-blue-100), var(--color-steel-blue-200));
	color: var(--color-steel-blue-600);
}

.card--doe-mee .card__icon {
	background: linear-gradient(135deg, var(--color-palm-leaf-100), var(--color-palm-leaf-200));
	color: var(--color-palm-leaf-600);
}

.card__body {
	padding: var(--space-lg);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card__title {
	margin-bottom: var(--space-sm);
	color: var(--color-primary-dark);
}

.card__excerpt {
	color: var(--color-text-light);
	flex: 1;
	margin-bottom: var(--space-md);
}

.card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	color: var(--color-primary);
	transition: gap 0.2s ease;
}

.card__link:hover {
	gap: 0.75em;
}

.card__link::after {
	content: '\2192';
}

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */

.faq-accordion {
	max-width: 800px;
	margin-inline: auto;
}

.faq-item {
	border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
	border-top: 1px solid var(--color-border);
}

.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--space-md) var(--space-sm);
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--color-primary-dark);
	text-align: left;
	gap: var(--space-sm);
	transition: color 0.2s ease;
}

.faq-item__question:hover,
.faq-item__question:focus-visible {
	color: var(--color-primary);
}

.faq-item__question:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
	border-radius: 4px;
}

.faq-item__icon {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
	transform: rotate(180deg);
}

.faq-item__answer {
	overflow: hidden;
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

.faq-item__answer.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
}

.faq-item__answer > .faq-item__answer-inner {
	overflow: hidden;
}

.faq-item__answer-inner {
	padding: 0 var(--space-sm) var(--space-md);
	color: var(--color-text-light);
	line-height: 1.7;
}

.faq-item__answer-inner > *:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   News / Actueel Section
   ========================================================================== */

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

.news-card {
	background-color: #ffffff;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-card__image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.news-card:hover .news-card__image img {
	transform: scale(1.05);
}

.news-card__body {
	padding: var(--space-md);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-card__date {
	font-size: 0.85rem;
	color: var(--color-text-muted);
	margin-bottom: var(--space-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.news-card__title {
	font-size: 1.15rem;
	margin-bottom: var(--space-xs);
}

.news-card__title a {
	color: var(--color-primary-dark);
}

.news-card__title a:hover {
	color: var(--color-primary);
}

.news-card__excerpt {
	color: var(--color-text-light);
	font-size: 0.95rem;
	flex: 1;
	margin-bottom: var(--space-md);
}

.news-card__read-more {
	font-weight: 600;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	transition: gap 0.2s ease;
}

.news-card__read-more:hover {
	gap: 0.75em;
}

.news-card__read-more::after {
	content: '\2192';
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background-color: var(--color-steel-blue-900);
	color: var(--color-steel-blue-200);
	padding-block: var(--space-xl);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
}

.footer-column h3 {
	color: #ffffff;
	font-size: 1.1rem;
	margin-bottom: var(--space-md);
	position: relative;
	padding-bottom: var(--space-sm);
}

.footer-column h3::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	background-color: var(--color-accent);
	border-radius: 2px;
	position: absolute;
	bottom: 0;
	left: 0;
}

.footer-contact p {
	margin-bottom: var(--space-xs);
	font-size: 0.95rem;
}

.footer-contact .footer-text {
	font-style: italic;
	margin-bottom: var(--space-md);
}

.footer-contact a {
	color: var(--color-steel-blue-200);
	text-decoration: underline;
}

.footer-contact a:hover {
	color: #ffffff;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav li {
	margin-bottom: var(--space-xs);
}

.footer-nav a {
	color: var(--color-steel-blue-200);
	font-size: 0.95rem;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav a:hover {
	color: #ffffff;
	padding-left: 4px;
}

.footer-bottom {
	margin-top: var(--space-xl);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-steel-blue-700);
	text-align: center;
	font-size: 0.85rem;
	color: var(--color-steel-blue-400);
}

.footer-credit {
	color: var(--color-steel-blue-500);
	font-size: 0.8rem;
	margin-top: -0.5rem;
}

.footer-credit a {
	color: var(--color-steel-blue-300);
}

.footer-credit a:hover {
	color: var(--color-steel-blue-200);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post-content {
	max-width: 800px;
	margin-inline: auto;
	padding-block: var(--space-xl);
}

.single-post-content .entry-header {
	margin-bottom: var(--space-lg);
}

.single-post-content .entry-date {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.single-post-content .entry-featured-image {
	margin-bottom: var(--space-lg);
	border-radius: var(--border-radius);
	overflow: hidden;
}

.single-post-content .entry-content a,
.page-content .entry-content a,
.intro-section__content a,
.faq-item__answer-inner a,
.card__excerpt a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ==========================================================================
   Link Cards — select "Link Cards" style on a List block in the editor
   ========================================================================== */

p:has(+ .is-style-link-cards) {
	font-weight: 600;
	color: var(--color-primary-dark);
	margin-bottom: var(--space-xs);
}

.is-style-link-cards {
	list-style: none;
	padding: 0;
	margin: var(--space-xs) 0 var(--space-lg);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

.is-style-link-cards li {
	margin: 0;
	display: flex;
}

.is-style-link-cards li a {
	width: 100%;
}

.is-style-link-cards li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: var(--space-lg);
	border-radius: var(--border-radius);
	border-left: 4px solid var(--color-accent);
	color: var(--color-primary-dark);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.is-style-link-cards li:nth-child(4n+1) a { background-color: var(--color-steel-blue-50); border-left-color: var(--color-steel-blue-200); }
.is-style-link-cards li:nth-child(4n+2) a { background-color: var(--color-old-lace-50); border-left-color: var(--color-old-lace-200); }
.is-style-link-cards li:nth-child(4n+3) a { background-color: var(--color-honeydew-50); border-left-color: var(--color-honeydew-200); }
.is-style-link-cards li:nth-child(4n+4) a { background-color: var(--color-lilac-50); border-left-color: var(--color-lilac-200); }

.is-style-link-cards li a::after {
	content: '\2192';
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 1.2em;
	color: #ffffff;
	background-color: var(--color-primary);
	border-radius: 50%;
	flex-shrink: 0;
	transition: background-color 0.25s ease, translate 0.25s ease;
}

.is-style-link-cards li a:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.is-style-link-cards li:nth-child(4n+1) a:hover { border-left-color: var(--color-steel-blue-400); }
.is-style-link-cards li:nth-child(4n+2) a:hover { border-left-color: var(--color-old-lace-400); }
.is-style-link-cards li:nth-child(4n+3) a:hover { border-left-color: var(--color-honeydew-400); }
.is-style-link-cards li:nth-child(4n+4) a:hover { border-left-color: var(--color-lilac-400); }

.is-style-link-cards li a:hover::after {
	background-color: var(--color-primary-dark);
}

@media (min-width: 600px) {
	.is-style-link-cards:not(:has(li:nth-child(2))) {
		max-width: 50%;
	}

	.is-style-link-cards:has(li:nth-child(2)) {
		grid-template-columns: repeat(2, 1fr);
	}
}

.archive-link-section {
	padding-top: var(--space-lg);
	padding-bottom: var(--space-xl);
	text-align: center;
}

.archive-link-button {
	display: inline-block;
	padding: var(--space-sm) var(--space-lg);
	background-color: var(--color-primary);
	color: #ffffff;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.05rem;
	border-radius: var(--border-radius);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.archive-link-button:hover {
	background-color: var(--color-primary-dark);
	color: #ffffff;
}

.single-post-content .entry-content {
	font-size: 1.05rem;
}

.single-post-content .entry-content h2,
.single-post-content .entry-content h3,
.single-post-content .entry-content h4,
.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4 {
	color: var(--color-primary);
	margin-top: var(--space-lg);
}

.single-post-content .entry-content h4,
.page-content .entry-content h4 {
	margin-bottom: var(--space-xs);
}

.single-post-content .entry-content h2,
.single-post-content .entry-content h3,
.page-content .entry-content h2,
.page-content .entry-content h3 {
	padding-bottom: var(--space-xs);
	border-bottom: 2px solid var(--color-accent);
	display: inline-block;
}

.single-post-content .entry-content p {
	margin-bottom: var(--space-md);
}

.single-post-content .entry-content img {
	border-radius: var(--border-radius);
	margin-block: var(--space-md);
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	margin-bottom: var(--space-lg);
}

.back-link::before {
	content: '\2190';
}

/* ==========================================================================
   Page Template
   ========================================================================== */

.page-content {
	max-width: 800px;
	margin-inline: auto;
	padding-block: var(--space-xl);
}

.page-content .entry-header {
	margin-bottom: var(--space-lg);
}

/* Page Hero */
.page-hero {
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-color: var(--color-steel-blue-800);
}

.page-hero__title {
	color: #ffffff;
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0;
	text-align: center;
	padding: var(--space-xl) var(--space-md);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.page-content .entry-content p {
	margin-bottom: var(--space-md);
}

/* ==========================================================================
   Gravity Forms
   ========================================================================== */

.gform_wrapper.gform-theme--framework {
	--gf-ctrl-btn-bg-color-primary: var(--color-primary);
	--gf-ctrl-btn-bg-color-hover-primary: var(--color-primary-dark);
	--gf-ctrl-btn-border-color-primary: var(--color-primary);
	--gf-ctrl-btn-border-color-hover-primary: var(--color-primary-dark);
	--gf-ctrl-btn-color-primary: #ffffff;
	--gf-ctrl-btn-color-hover-primary: #ffffff;
	--gf-ctrl-btn-icon-color-hover-primary: #ffffff;
	--gf-ctrl-btn-radius: var(--border-radius);
	--gf-ctrl-btn-font-family: var(--font-heading);
	--gf-ctrl-btn-font-weight: 600;
	--gf-ctrl-btn-padding-block: 0.75rem;
	--gf-ctrl-btn-padding-inline: 2rem;
}

/* ==========================================================================
   Archive / Blog
   ========================================================================== */

.archive-header {
	text-align: center;
	padding-block: var(--space-xl);
	background-color: var(--color-bg-warm);
}



.archive-posts {
	padding-block: var(--space-xl);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
	.news-grid {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin-inline: auto;
	}

	.cards-grid {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin-inline: auto;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}
}

@media (max-width: 768px) {
	:root {
		--header-height: 64px;
	}

	.site-branding img {
		height: 40px;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		height: calc(100vh - var(--header-height));
		height: calc(100dvh - var(--header-height));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		background-color: #ffffff;
		border-bottom: 1px solid var(--color-border);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
		padding: var(--space-sm);
	}

	/*
	 * Lock page scroll while the mobile menu is open.
	 * Body is fixed (top offset set inline by JS) because iOS Safari ignores
	 * overflow: hidden once the page has been scrolled.
	 */
	html.menu-open {
		overflow: hidden;
		scroll-behavior: auto;
	}

	body.menu-open {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
		overflow: hidden;
	}

	body.menu-open .site-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation li a {
		padding: var(--space-sm) var(--space-md);
		border-radius: var(--border-radius);
	}

	.main-navigation .sub-menu {
		position: static;
		display: flex;
		box-shadow: none;
		border: none;
		padding: 0;
		min-width: 0;
	}

	.main-navigation .sub-menu li a {
		padding-left: calc(var(--space-md) + var(--space-sm));
		font-size: 0.9rem;
		border-radius: var(--border-radius);
	}

	.hero-section {
		min-height: 50vh;
	}

	.section {
		padding-block: var(--space-xl);
	}
}
