/*
 * Centella theme — base stylesheet.
 *
 * Palette verified against the live centella.nl homepage's rendered <style>
 * override (Joomla template params), not just the theme's code-level
 * fallback defaults — the two differ (e.g. headings/buttons were
 * reconfigured on the live site to #5f5f9a instead of the code defaults).
 * No external fonts are loaded (avoids an extra third-party request under GDPR);
 * a refined system-font stack stands in for the old "Syntax" font.
 */

/* ---------- Design tokens ---------- */
:root {
	--color-ink: #2b2b2b;
	--color-ink-light: #6b6b6b;
	--color-bg: #ffffff;
	--color-bg-alt: #f4f6f7;
	--color-primary: #5f5f9a;
	--color-primary-dark: #47476f;
	--color-accent: #a6022b;
	--color-accent-dark: #7d0120;
	--color-button: #5f5f9a;
	--color-button-hover: #47476f;
	--color-nav-bg: rgba(19, 6, 99, 0.5);
	--color-nav-border: #0099ff;
	--color-footer-bg: #a5c677;
	--color-border: #e2e6ea;
	--color-warning: #ff0000;

	--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--container-width: 1440px;
	--container-narrow: 780px;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 4px 20px rgba(19, 6, 99, 0.08);
	--transition: 180ms ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-ink);
	background: var(--color-bg);
}

/* Sticky footer: keeps the footer pinned to the bottom of the viewport
   on short pages, without affecting normal flow on long pages. */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#primary {
	flex: 1 0 auto;
}

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

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
	color: var(--color-primary);
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 2.5vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

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

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--color-primary);
	color: #fff;
	padding: 12px 20px;
	z-index: 10000;
	transition: top var(--transition);
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.container.narrow {
	max-width: var(--container-narrow);
}

.site-main {
	display: block;
}

.section-title {
	text-align: center;
	margin-bottom: 1.2em;
}

.section-cta {
	text-align: center;
	margin-top: 2em;
}

/* ---------- Buttons ---------- */
.button,
button,
input[type="submit"],
.wp-block-button__link {
	display: inline-block;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	border: 0;
	background: var(--color-button);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: background var(--transition), transform var(--transition);
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--color-button-hover);
	color: #fff;
	transform: translateY(-1px);
}

.button-secondary {
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
	box-shadow: none;
}

.button-secondary:hover {
	background: var(--color-primary);
	color: #fff;
}

.button-primary {
	background: var(--color-accent);
}

.button-primary:hover {
	background: var(--color-accent-dark);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg-alt);
	font-family: inherit;
	font-size: 1rem;
	color: var(--color-ink);
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--color-button);
	outline-offset: 1px;
}

/* ---------- Header banner ---------- */
.site-header-banner {
	position: relative;
	width: 100%;
	/* Scales up on larger screens (e.g. wide desktop monitors) instead of
	   staying capped at a small fixed height regardless of viewport size. */
	max-height: clamp(220px, 18vw, 500px);
	overflow: hidden;
}

.site-header-banner img.banner-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 860px) {
	.site-header-banner {
		max-height: none;
	}
}

/* Product highlights: anchored to the bottom of the nav bar so they can
   grow upward over the banner image without ever pushing the bar itself
   taller — the bar's height stays fixed, the images just overlap it. */
.banner-product-row {
	position: absolute;
	right: 12px;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	gap: 10px;
	z-index: 3;
}

.banner-product {
	display: block;
	transition: transform var(--transition);
}

.banner-product:hover {
	transform: translateY(-3px) scale(1.05);
}

.banner-product img {
	display: block;
	height: 167px;
	width: auto;
}

@media (max-width: 860px) {
	.banner-product-row {
		display: none;
	}
}

/* ---------- Header ---------- */
.site-header {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header.has-banner {
	background: transparent;
	border-bottom: 0;
	position: relative;
}

.site-header.has-banner .site-header-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: var(--color-nav-bg);
}

@media (max-width: 860px) {
	.site-header.has-banner .site-header-bar {
		position: static;
		background: var(--color-primary-dark);
	}
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

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

.site-title-link {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--color-primary);
}

.main-navigation {
	flex: 1 1 auto;
}

#primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: flex-start;
	gap: 0;
}

#primary-menu li {
	position: relative;
	border-right: 1px solid var(--color-nav-border);
}

#primary-menu li:last-child {
	border-right: 0;
}

#primary-menu a {
	display: block;
	padding: 6px;
	color: #fff;
	font-size: 15px;
	font-weight: normal;
	line-height: 14px;
	border-radius: 0;
}

#primary-menu a:hover,
#primary-menu li.current-menu-item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

#primary-menu .sub-menu a {
	color: var(--color-ink);
}

#primary-menu .sub-menu a:hover {
	color: #fff;
	background: var(--color-primary);
}

#primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

#primary-menu li.has-dropdown:hover > .sub-menu,
#primary-menu li.has-dropdown.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 8px;
}

.menu-toggle-bar {
	width: 26px;
	height: 3px;
	background: #fff;
	border-radius: 2px;
}

@media (max-width: 991px) {
	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		flex-basis: 100%;
		order: 3;
		max-height: 0;
		overflow: hidden;
		transition: max-height var(--transition);
	}

	.main-navigation.is-open {
		max-height: 1000px;
	}

	#primary-menu {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 0;
	}

	#primary-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		display: none;
		background: var(--color-bg-alt);
	}

	#primary-menu li.has-dropdown.is-open > .sub-menu {
		display: block;
	}
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
	margin: 20px 0;
	font-size: 0.85rem;
	color: var(--color-ink-light);
}

.breadcrumb ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--color-border);
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
	background: var(--color-bg-alt);
	border-bottom: 3px solid var(--color-warning);
	padding: 14px 0;
	text-align: center;
	font-weight: 700;
	color: var(--color-warning);
}

/* ---------- Welcome section ---------- */
.welcome-section {
	padding: 48px 0;
}

.welcome-layout {
	display: grid;
	grid-template-columns: 3fr 9fr;
	gap: 40px;
	align-items: start;
}

.welcome-image-column img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.welcome-tagline {
	margin-top: 12px;
	font-style: italic;
	text-align: center;
	color: var(--color-ink-light);
}

.welcome-content-column .entry-title {
	color: var(--color-primary);
}

.welcome-content-column.full-width {
	grid-column: 1 / -1;
}

@media (max-width: 860px) {
	.welcome-layout {
		grid-template-columns: 1fr;
		text-align: center;
	}

	/* Without a featured image there's nothing to visually center against —
	   keep it left-aligned so it still lines up with the (left-aligned)
	   menu and footer instead of looking centered and out of place. */
	.welcome-content-column.full-width {
		text-align: left;
	}
}

/* ---------- Page header ---------- */
.page-header {
	margin: 32px 0;
}

.entry-header {
	margin-bottom: 24px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

/*
 * The block editor can add its own width constraints to top-level blocks
 * (e.g. a Group block's "content width" setting, or core's layout-support
 * defaults) as inline styles or utility classes. Override those within our
 * own content columns so text fills the actual column width instead of
 * looking narrower than the layout intends.
 */
.entry-content > *:not(.alignwide):not(.alignfull),
.welcome-content-column > *:not(.alignwide):not(.alignfull) {
	max-width: none !important;
}

/* ---------- Formulieren (Contact Form 7) ---------- */
.entry-content .wp-block-separator {
	margin-top: 56px;
	margin-bottom: 40px;
}

.entry-content .wpcf7 {
	margin-top: 32px;
}

/* ---------- News / posts ---------- */
.post-grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 24px 0;
}

.news-card {
	display: flex;
	flex-direction: column;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--color-border);
}

.news-card:last-child {
	border-bottom: 0;
}

.news-card-thumb img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.news-card-body {
	padding: 0;
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--color-ink-light);
	margin-bottom: 8px;
}

/* ---------- Verkooppunten (grouped by provincie) ---------- */
.verkooppunten-jumpnav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0;
	padding: 16px;
	position: sticky;
	top: 0;
	z-index: 10;
	/* A sticky bar needs an opaque background at every screen size —
	   otherwise the cards scrolling underneath show through and become
	   unreadable once it reaches the top and content scrolls past it. */
	background: var(--color-bg-alt);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.verkooppunten-jumpnav a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--color-border);
	color: var(--color-primary);
	font-weight: 600;
	font-size: 0.9rem;
}

.verkooppunten-jumpnav a:hover {
	background: var(--color-primary);
	color: #fff;
}

.verkooppunten-province {
	margin: 40px 0;
	scroll-margin-top: 16px;
}

.verkooppunten-province:first-of-type {
	margin-top: 24px;
}

.verkooppunten-province-title {
	color: var(--color-primary);
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.verkooppunten-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.verkooppunt-card {
	background: var(--color-bg-alt);
	border-radius: var(--radius);
	padding: 20px;
}

.verkooppunt-card-title {
	margin: 0 0 8px;
	font-size: 1.1rem;
	color: var(--color-primary);
}

.verkooppunt-card-content p {
	margin: 0 0 4px;
	font-size: 0.95rem;
}

.verkooppunt-province {
	color: var(--color-ink-light);
	font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */
.testimonial-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 12px;
}

/* ---------- Contact template ---------- */
.contact-layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
}

.contact-details {
	list-style: none;
	margin: 0;
	padding: 24px;
	background: var(--color-bg-alt);
	border-radius: var(--radius);
}

.contact-details li {
	margin-bottom: 10px;
}

@media (max-width: 780px) {
	.contact-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- Comments ---------- */
.comments-area {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}

.comment-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 40px;
	padding: 0;
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--color-border);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-footer-bg);
	color: #fff;
	margin-top: 60px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	padding-bottom: 24px;
}

.footer-widget-title {
	color: #fff;
	font-size: 1.05rem;
}

.footer-widgets a {
	color: #eef4e8;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.footer-navigation li {
	border-right: 1px solid #fff;
	border-top-right-radius: 10px;
	padding: 6px;
	font-size: 12px;
	line-height: 14px;
}

.footer-navigation li:last-child {
	border-right: 0;
}

.footer-navigation a {
	color: #fff;
	font-weight: normal;
}

.site-info {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.8);
	margin-left: auto;
}

.site-info-credit {
	margin-left: 4px;
}

.site-info-credit a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}

/* ---------- 404 / search ---------- */
.error-404,
.no-results {
	text-align: center;
	padding: 40px 0 80px;
}
