/* =============================================================
   PERKEO THEME — MAIN STYLESHEET
   Kleurenpalet: Perkeo groen (#3d7a3d), zwart nav/footer, wit
   ============================================================= */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
	--black:       #111111;
	--green:       #3d7a3d;   /* Perkeo brand green  */
	--green-dark:  #2d5c2d;
	--green-light: #4f9e4b;
	--green-pale:  #e4f2e4;
	--white:       #ffffff;
	--gray-100:    #f7f7f7;
	--gray-200:    #ebebeb;
	--gray-400:    #aaaaaa;
	--gray-600:    #666666;
	--text:        #1f1f1f;

	--font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	--radius:      6px;
	--radius-lg:   12px;
	--shadow:      0 2px 16px rgba(0, 0, 0, 0.09);
	--shadow-lg:   0 6px 32px rgba(0, 0, 0, 0.14);
	--transition:  0.22s ease;
	--nav-height:  82px;
	--container:   1280px;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font);
	color: var(--text);
	background: var(--green);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
address { font-style: normal; }

/* Screen-reader only */
.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─── Layout ────────────────────────────────────────────────── */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; padding: 2.5rem 0 4rem; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 2rem;
}

/* White "card" wrapper used for most content blocks */
.content-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

/* ─── Typography ─────────────────────────────────────────────── */
.page-title {
	font-size: 2rem;
	font-weight: 800;
	color: var(--black);
	margin-bottom: 1.25rem;
	line-height: 1.15;
}

.section-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 1.75rem;
	text-align: center;
	text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.entry-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.entry-content h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.entry-content p  { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin: 0.75rem 0 0.75rem 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a  { color: var(--green); text-decoration: underline; }
.entry-content a:hover { color: var(--green-dark); }
.entry-content img { border-radius: var(--radius); margin: 1rem 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.75rem 1.6rem;
	border-radius: var(--radius);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	border: 2px solid transparent;
	transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
	text-decoration: none;
	cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
	background: var(--green);
	color: var(--white);
	border-color: var(--green);
}
.btn--primary:hover {
	background: var(--green-dark);
	border-color: var(--green-dark);
	color: var(--white);
}

.btn--outline {
	background: transparent;
	color: var(--white);
	border-color: rgba(255,255,255,0.7);
}
.btn--outline:hover {
	background: var(--white);
	border-color: var(--white);
	color: var(--green-dark);
}

.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

/* ─── HEADER / NAVIGATION ────────────────────────────────────── */
.site-header {
	background: var(--black);
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--nav-height);
	box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-height);
	gap: 2rem;
}

/* Logo */
.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-image { height: 52px; width: auto; object-fit: contain; }
.nav-logo-text {
	color: var(--white);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* Desktop menu */
.nav-menu { display: flex; align-items: center; gap: 0.15rem; }
.nav-menu li { position: relative; }

.nav-menu li a {
	display: block;
	padding: 0.55rem 1rem;
	color: var(--white);
	font-size: 1.0625rem;   /* ~17px — slightly larger than perkeo-werk.de */
	font-weight: 500;
	border-radius: var(--radius);
	transition: background var(--transition), color var(--transition);
	white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a,
.nav-menu li.current-menu-ancestor > a {
	background: rgba(255, 255, 255, 0.13);
	color: var(--white);
}

/* Dropdown */
.nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 210px;
	background: var(--black);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
	z-index: 200;
	border: 1px solid rgba(255,255,255,0.06);
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav-menu .sub-menu li a {
	padding: 0.6rem 1.1rem;
	font-size: 0.9rem;
	border-radius: 0;
	border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-menu .sub-menu li:last-child a { border-bottom: none; }

/* Hamburger */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 44px;
	height: 44px;
	gap: 5px;
	border-radius: var(--radius);
	transition: background var(--transition);
	flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--white);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HOMEPAGE HERO ──────────────────────────────────────────── */
.hero-section {
	text-align: center;
	padding: 3.5rem 0 2.5rem;
}
.hero-logo {
	max-height: 110px;
	width: auto;
	margin: 0 auto 2rem;
	filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
}
.hero-logo-placeholder {
	color: var(--white);
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 2rem;
}
.hero-intro {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 2rem 2.5rem;
	max-width: 820px;
	margin: 0 auto;
	font-size: 1.05rem;
	box-shadow: var(--shadow);
}

/* ─── HOMEPAGE VIDEO ─────────────────────────────────────────── */
.video-section { padding: 0 0 2.5rem; }

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--black);
}
.video-wrapper iframe,
.video-wrapper video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.video-placeholder {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 4rem 2rem;
	text-align: center;
	color: var(--gray-600);
	box-shadow: var(--shadow);
}
.video-placeholder svg { margin: 0 auto 1rem; color: var(--gray-400); }
.video-placeholder p { font-size: 1rem; margin-bottom: 0.4rem; }
.video-placeholder small { font-size: 0.82rem; color: var(--gray-400); }

/* ─── FOLDERS GRID ───────────────────────────────────────────── */
.folders-section { padding: 0 0 3rem; }

.folders-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 210px, 1fr ) );
	gap: 1.5rem;
	margin-bottom: 2.25rem;
}

.folders-more { text-align: center; }

/* Folder card */
.folder-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	transition: transform var(--transition), box-shadow var(--transition);
}
.folder-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.folder-card__cover {
	background: var(--gray-100);
	overflow: hidden;
	aspect-ratio: 3 / 4;
}
.folder-card__cover a { display: block; height: 100%; }
.folder-card__image,
.folder-card__cover a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}
.folder-card:hover .folder-card__image { transform: scale(1.04); }

.folder-card__no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--gray-400);
}

.folder-card__body {
	padding: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	flex: 1;
}
.folder-card__title {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--black);
}
.folder-card__year {
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--gray-400);
	flex-shrink: 0;
}
.folder-card__description {
	font-size: 0.83rem;
	color: var(--gray-600);
	line-height: 1.5;
}
.folder-card .btn { margin-top: auto; align-self: flex-start; }

/* ─── PAGE HEADER ────────────────────────────────────────────── */
.page-header { margin-bottom: 0; }
.page-intro { margin-top: 0.75rem; }
.page-content { margin-top: 0; }

/* ─── STORE LOCATOR ──────────────────────────────────────────── */
.store-locator {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 1.5rem;
	align-items: start;
	margin-bottom: 2rem;
}

.store-map {
	width: 100%;
	height: 540px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--gray-200);
}

.store-list {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
	max-height: 580px;
	display: flex;
	flex-direction: column;
}

.store-search {
	padding: 1rem;
	border-bottom: 1px solid var(--gray-200);
	flex-shrink: 0;
}
.store-filter-input {
	width: 100%;
	padding: 0.6rem 0.9rem;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius);
	font-family: var(--font);
	font-size: 0.9rem;
	background: var(--gray-100);
	transition: border-color var(--transition), background var(--transition);
}
.store-filter-input:focus {
	outline: none;
	border-color: var(--green);
	background: var(--white);
	box-shadow: 0 0 0 3px rgba(61,122,61,0.12);
}

.store-cards { overflow-y: auto; flex: 1; }

.store-card {
	padding: 1rem 1.15rem;
	border-bottom: 1px solid var(--gray-200);
	cursor: pointer;
	transition: background var(--transition);
}
.store-card:last-child { border-bottom: none; }
.store-card:hover,
.store-card.is-active { background: var(--green-pale); }

.store-card__name { font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 0.35rem; }
.store-card__address { font-size: 0.82rem; color: var(--gray-600); line-height: 1.5; margin-bottom: 0.3rem; }
.store-card__phone,
.store-card__email,
.store-card__website,
.store-card__hours { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 0.2rem; }
.store-card a { color: var(--green); }
.store-card a:hover { color: var(--green-dark); text-decoration: underline; }

.store-empty { padding: 1.5rem; color: var(--gray-600); font-size: 0.9rem; }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
	align-items: start;
}

.contact-form .page-title { margin-bottom: 1.5rem; }

.contact-info h2 {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--green-pale);
}
.contact-info__item { margin-bottom: 1.5rem; }
.contact-info__item h3 {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--green);
	margin-bottom: 0.4rem;
}
.contact-info__item a { color: var(--green); }
.contact-info__item a:hover { text-decoration: underline; color: var(--green-dark); }

.notice {
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius);
	font-size: 0.9rem;
}
.notice--warning {
	background: #fff8e1;
	border-left: 3px solid #f9a825;
	color: #795548;
}

/* ─── GRAVITY FORMS OVERRIDES ────────────────────────────────── */
.gform_wrapper .gfield { margin-bottom: 1.25rem; }
.gform_wrapper label.gfield_label {
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	display: block;
	color: var(--black);
}
.gform_wrapper .ginput_container input,
.gform_wrapper .ginput_container select,
.gform_wrapper .ginput_container textarea {
	width: 100%;
	padding: 0.7rem 1rem;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius);
	font-family: var(--font);
	font-size: 0.95rem;
	background: var(--white);
	transition: border-color var(--transition), box-shadow var(--transition);
}
.gform_wrapper .ginput_container input:focus,
.gform_wrapper .ginput_container select:focus,
.gform_wrapper .ginput_container textarea:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(61,122,61,0.12);
}
.gform_wrapper .gform_submit_button,
.gform_wrapper input[type="submit"].gform_button {
	background: var(--green);
	color: var(--white);
	border: none;
	padding: 0.8rem 2.2rem;
	border-radius: var(--radius);
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--transition);
}
.gform_wrapper .gform_submit_button:hover,
.gform_wrapper input[type="submit"].gform_button:hover { background: var(--green-dark); }
.gform_wrapper .validation_error {
	background: #fdecea;
	border: 1px solid #e57373;
	border-radius: var(--radius);
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: #c62828;
	margin-bottom: 1rem;
}
.gform_wrapper .gfield_error .ginput_container input,
.gform_wrapper .gfield_error .ginput_container textarea { border-color: #e53935; }
.gform_wrapper .gfield_description { font-size: 0.82rem; color: var(--gray-400); margin-top: 0.25rem; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
	background: var(--black);
	color: var(--white);
	padding: 4rem 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
	max-height: 56px;
	width: auto;
	margin-bottom: 1.25rem;
	filter: brightness(0) invert(1);
}
.footer-address {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.8;
}

.footer-heading {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 1.1rem;
}

.footer-menu { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-menu a {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	transition: color var(--transition);
}
.footer-menu a:hover { color: var(--white); }

.footer-contact-item { margin-bottom: 0.4rem; }
.footer-contact-item a {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
	padding: 1.25rem 0;
	text-align: center;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.3);
}

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 0.6rem;
	border-radius: var(--radius);
	font-size: 0.9rem;
	font-weight: 500;
	background: var(--white);
	color: var(--text);
	transition: background var(--transition), color var(--transition);
}
.pagination .current { background: var(--green); color: var(--white); }
.pagination a.page-numbers:hover { background: var(--green-pale); color: var(--green-dark); }

/* ─── BLOG / INDEX ───────────────────────────────────────────── */
.post-item { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--gray-200); }
.post-item:last-child { border-bottom: none; }
.post-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.35rem; }
.post-title a { color: var(--black); }
.post-title a:hover { color: var(--green); }
.post-meta { font-size: 0.82rem; color: var(--gray-400); margin-bottom: 0.75rem; }
.post-excerpt { font-size: 0.95rem; color: var(--gray-600); }

/* ─── 404 ────────────────────────────────────────────────────── */
.error-404 h1 { margin-bottom: 0.75rem; }
.error-404 p { color: var(--gray-600); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media ( max-width: 1100px ) {
	.store-locator { grid-template-columns: 1fr; }
	.store-map { height: 380px; }
	.store-list { max-height: 420px; }
	.contact-layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media ( max-width: 768px ) {
	:root { --nav-height: 68px; }
	.container { padding: 0 1.25rem; }
	.content-card { padding: 1.75rem 1.5rem; }
	.page-title { font-size: 1.65rem; }
	.section-title { font-size: 1.4rem; }

	/* Mobile nav */
	.nav-toggle { display: flex; }
	.nav-menu {
		display: none;
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		background: var(--black);
		flex-direction: column;
		align-items: stretch;
		padding: 0.75rem;
		gap: 0.2rem;
		box-shadow: 0 8px 24px rgba(0,0,0,0.4);
		max-height: calc( 100vh - var(--nav-height) );
		overflow-y: auto;
		z-index: 999;
	}
	.nav-menu.is-open { display: flex; }
	.nav-menu li a { font-size: 1.05rem; padding: 0.75rem 1rem; border-radius: var(--radius); }
	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: rgba(255,255,255,0.07);
		border-radius: var(--radius);
		margin: 0.2rem 0 0.2rem 1rem;
		display: none;
		border: none;
	}
	.nav-menu li.menu-item-has-children.is-open > .sub-menu { display: block; }

	.hero-logo { max-height: 76px; }
	.folders-grid { grid-template-columns: repeat( auto-fill, minmax( 155px, 1fr ) ); gap: 1rem; }
	.footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
	.site-content { padding: 1.5rem 0 3rem; }
}

@media ( max-width: 480px ) {
	.folders-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
	.contact-layout { gap: 1.5rem; }
}
