/*
Theme Name: Redu
Theme URI: https://www.administratiekantoorredu.nl/
Author: Redu administratie en belastingadvies
Description: Thema voor Redu, gebouwd op de uitstraling van Blue Diamond. Donkerblauw en oranje, geschikt voor PHP 8.5.
Version: 1.2.4
Requires at least: 6.9
Requires PHP: 8.2
Text Domain: redu
*/

:root {
	--navy: #001870;
	--navy-deep: #001050;
	--ink: #1a2333;
	--muted: #4e5968;
	--orange: #e07030;
	--paper: #ffffff;
	--wash: #eef1f8;
	--line: #d5dce8;
	--serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
	--sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.55;
	font-weight: 400;
}

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

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 500;
	font-optical-sizing: auto;
	color: var(--navy);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

h1 { font-weight: 600; }

a { color: var(--navy); }
a:hover { color: var(--navy-deep); }

:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	background: var(--navy);
	color: #fff;
	padding: 0.55rem 0.9rem;
	text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.wrap.narrow,
.narrow { width: min(44rem, calc(100% - 3rem)); }

.site-header { border-bottom: 3px solid var(--navy); }

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1rem 0 0.95rem;
}

.header-end {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;
}

.header-contact {
	margin: 0;
	font-size: 0.9rem;
}

.header-contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	text-decoration: none;
}

.header-contact a + a { margin-left: 1.25rem; }
.header-contact a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img,
.custom-logo { height: 72px; width: auto; max-width: min(280px, 46vw); }

.nav-toggle {
	display: none;
	background: transparent;
	color: var(--navy);
	border: 1px solid var(--navy);
	font: 600 1rem/1 var(--sans);
	padding: 0.55rem 0.8rem;
	cursor: pointer;
}

.site-nav > .menu {
	display: flex;
	gap: 1.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li { position: relative; }

.site-nav a {
	color: var(--navy);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
	text-decoration: underline;
	text-underline-offset: 0.28em;
}

.site-nav .sub-menu {
	display: none;
	position: absolute;
	z-index: 20;
	top: calc(100% - 2px);
	left: 0;
	min-width: 16.5rem;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	flex-direction: column;
	gap: 0;
	background: #fff;
	border: 1px solid var(--line);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: flex; }

.site-nav .sub-menu a {
	display: block;
	padding: 0.42rem 1rem;
	font-weight: 500;
}

.opening {
	position: relative;
	overflow: hidden;
	padding: 4.6rem 0 3.4rem;
}

.opening-bg { position: absolute; inset: 0; z-index: 0; }

.opening-bg span {
	position: absolute;
	inset: 0;
	background-position: center 35%;
	background-size: cover;
	opacity: 0;
	filter: saturate(0.55);
	animation: opening-fade 36s infinite;
}

.opening-bg span:nth-child(1) { animation-delay: 0s; }
.opening-bg span:nth-child(2) { animation-delay: 12s; }
.opening-bg span:nth-child(3) { animation-delay: 24s; }

.opening::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(255, 255, 255, 0.72);
}

.opening .wrap { position: relative; z-index: 2; }

@keyframes opening-fade {
	0%, 22% { opacity: 1; }
	33%, 100% { opacity: 0; }
}

.opening h1 {
	margin: 0 0 0.9rem;
	font-size: clamp(2.35rem, 4.2vw, 3.45rem);
	font-weight: 600;
	max-width: 16ch;
}

.lead {
	max-width: 36rem;
	margin: 0 0 1.45rem;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 500;
	font-size: 1.22rem;
	line-height: 1.4;
	color: var(--navy);
}

.opening-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.4rem;
	margin: 0 0 1.35rem;
}

.opening-places {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	max-width: 38rem;
}

.opening-places a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}
.opening-places a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.button,
.wpcf7 input[type="submit"],
.search-form button,
.cookie-bar button {
	display: inline-block;
	border: 0;
	background: var(--orange);
	color: #fff;
	font: 600 1rem/1 var(--sans);
	text-decoration: none;
	padding: 0.85rem 1.2rem;
	cursor: pointer;
}

.button:hover,
.wpcf7 input[type="submit"]:hover,
.search-form button:hover { background: #c45e22; color: #fff; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
}

.frame {
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: inset 0 3px 0 var(--navy);
}

.facts {
	background: var(--wash);
	padding: 1.35rem 0;
}

.facts-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.8rem;
}

.facts article {
	display: flex;
	flex-direction: column;
	padding: 1.15rem 1.05rem 1.2rem;
}
.facts article > a { margin-top: auto; }

.facts h2 { margin: 0.7rem 0 0.35rem; font-size: 1.22rem; }
.facts p { margin: 0 0 0.75rem; font-size: 0.92rem; line-height: 1.45; }
.facts a { font-weight: 600; font-size: 0.92rem; }

.icon {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
	stroke: var(--navy);
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon-inline {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	vertical-align: -0.15em;
	flex: 0 0 auto;
}

.noab-mark { display: block; width: 72px; height: auto; }
.facts .noab-mark { width: 2.4rem; margin-bottom: 0.1rem; }

.services { padding: 3.1rem 0 3.8rem; }
.services > .wrap > h2 { margin: 0 0 1.1rem; font-size: clamp(1.85rem, 3vw, 2.35rem); }

.service-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
}

.service-list article { padding: 1.1rem 1.1rem 1.15rem; }
.service-list .icon { margin-bottom: 0.65rem; }
.service-list h3 { margin: 0 0 0.3rem; font-size: 1.28rem; }
.service-list h3 a { text-decoration: none; }
.service-list h3 a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.service-list p { margin: 0; font-size: 0.95rem; line-height: 1.5; }

.page-sheet { padding: 2.8rem 0 4rem; }
.page-heading h1 { margin: 0 0 1.15rem; font-size: clamp(2.05rem, 3.5vw, 2.75rem); }

.entry-content > *:first-child { margin-top: 0; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin: 0 0 0.9rem; max-width: 40rem; font-size: 1rem; line-height: 1.55; }
.legacy-col p { max-width: none; }
.entry-content .tagline {
	margin: 0 0 1.35rem;
	max-width: 38rem;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 500;
	font-size: 1.28rem;
	line-height: 1.4;
	color: var(--navy);
}
.entry-content .tagline strong { font-weight: 500; }
.entry-content br { display: none; }
.entry-content div[style*="height:"] { display: none !important; }
.entry-content [style*="text-align: center"] { text-align: left !important; }
.entry-content h3 { margin: 1.15rem 0 0.35rem; font-size: 1.28rem; }
.entry-content .fancy-link,
.entry-content a[style] {
	float: none !important;
	color: var(--navy) !important;
	font-weight: 600;
}
.entry-content .fancy-link { display: block; margin-top: 0.75rem; font-size: 0.95rem; }
.entry-content img.homeicon,
.entry-content div.homeicon { display: none; }
.entry-content ul,
.entry-content ol { padding-left: 1.2rem; }
.entry-content li { margin: 0.25rem 0; }
.entry-content img { height: auto; }

.entry {
	margin: 0 0 0.75rem;
	padding: 1rem 1.05rem 1.05rem;
	border: 1px solid var(--line);
	box-shadow: inset 0 3px 0 var(--navy);
}
.entry h2 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.entry p { font-size: 0.95rem; }
.entry h2 a { text-decoration: none; }
.entry h2 a:hover { text-decoration: underline; }
.meta { margin: 0 0 0.8rem; color: var(--muted); }

.office-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin: 0 0 2.5rem;
}

.office { padding: 1.1rem 1.1rem 1.2rem; }
.office h2 {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
}
.office p { margin: 0; font-size: 0.95rem; }

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.7fr);
	gap: 1.5rem;
	align-items: start;
}

.contact-aside { padding: 1.1rem 1.1rem 1.2rem; }
.contact-aside h2 { margin: 0 0 0.7rem; font-size: 1.3rem; }
.contact-aside p { margin: 0 0 0.8rem; font-size: 0.95rem; }
.contact-aside a { display: inline-flex; align-items: center; gap: 0.35rem; }

.wpcf7 { margin-top: 1.6rem; max-width: 46rem; }
.wpcf7 form p { margin: 0 0 1rem; max-width: none; }
.wpcf7 label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.wpcf7 .form-note { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.wpcf7 .form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem 1rem;
}
.wpcf7 .form-grid > p { margin: 0; }
.wpcf7 .form-span { grid-column: 1 / -1; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.search-form input[type="search"] {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.75rem 0.8rem;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
	font: 400 1rem/1.4 var(--sans);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: 2px solid var(--navy);
	outline-offset: 1px;
	border-color: var(--navy);
}

.wpcf7 textarea { min-height: 9rem; resize: vertical; }
.wpcf7 input[type="submit"] { width: auto; margin-top: 0.2rem; }
.wpcf7-not-valid-tip { display: block; margin-top: 0.3rem; color: #9a3412; font-size: 0.95rem; font-weight: 400; }
.wpcf7-response-output {
	margin: 1rem 0 0 !important;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line) !important;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #1f7a4d !important; color: #145c38; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { border-color: #9a3412 !important; color: #9a3412; }

.search-form {
	display: flex;
	gap: 0.6rem;
	align-items: flex-end;
	margin: 0 0 1.5rem;
}

.search-form label { flex: 1; }
.search-form button { height: 3rem; }

.newsletter-list section {
	margin: 0 0 0.85rem;
	padding: 0.95rem 1.05rem 0.35rem;
	border: 1px solid var(--line);
	box-shadow: inset 0 3px 0 var(--navy);
}
.newsletter-list h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.newsletter-list ul { list-style: none; margin: 0; padding: 0; }
.newsletter-list li { border-top: 1px solid var(--line); }
.newsletter-list a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0;
	font-size: 0.95rem;
	text-decoration: none;
}
.newsletter-list a:hover { text-decoration: underline; }

.entry-content {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.75rem;
	align-items: flex-start;
}

.entry-content > * { flex: 1 0 100%; }

.legacy-col {
	float: none;
	margin: 0 0 1.8rem;
}

.entry-content > .legacy-col-1-2 { flex: 1 1 calc(50% - 0.9rem); max-width: calc(50% - 0.9rem); }
.entry-content > .legacy-col-1-3 {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	flex: 1 1 calc(33.333% - 1.2rem);
	max-width: calc(33.333% - 1.2rem);
	margin: 0 0 0.85rem;
	padding: 1.05rem 1rem 1.1rem;
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: inset 0 3px 0 var(--navy);
}
.entry-content > .legacy-col-1-3 > .icon { margin-bottom: 0.65rem; }
.entry-content > .legacy-col-1-3 h3 { margin: 0 0 0.35rem; font-size: 1.22rem; }
.entry-content > .legacy-col-1-3 p {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
}
.entry-content > .legacy-col-1-3 > p:last-of-type { flex: 1; }
.entry-content > .legacy-col-1-3 .fancy-link { margin-top: auto; padding-top: 0.7rem; }
.entry-content > .legacy-col-2-3 { flex: 1 1 calc(66% - 0.9rem); max-width: calc(66% - 0.9rem); }
.entry-content > .legacy-col-1-4 { flex: 1 1 calc(25% - 1.4rem); max-width: calc(25% - 1.4rem); }
.entry-content > .legacy-col-3-4 { flex: 1 1 calc(75% - 0.5rem); max-width: calc(75% - 0.5rem); }
.legacy-clear { display: none; }
.legacy-divider { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.legacy-note { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--navy); }
.legacy-embed { margin: 1rem 0; aspect-ratio: 16 / 9; }
.legacy-embed iframe { width: 100%; height: 100%; border: 0; }

.pdf-frame { margin: 1.5rem 0 0; max-width: 46rem; }
.pdf-frame iframe {
	display: block;
	width: 100%;
	height: min(78vh, 920px);
	border: 1px solid var(--line);
	background: var(--wash);
}
.pdf-frame p { margin: 0.75rem 0 0; }
.legacy-code { overflow: auto; padding: 1rem; background: var(--wash); }

.site-footer {
	background: var(--navy);
	color: #f3f5fb;
	padding-top: 2.8rem;
	font-size: 0.95rem;
}

.site-footer a { color: #fff; }
.site-footer .icon { stroke: currentColor; }
.site-footer a,
.footer-line {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}
.footer-line { display: flex; margin: 0.28rem 0; }

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 0.9fr;
	gap: 2rem 2.4rem;
}

.footer-name {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.5rem;
	font-family: var(--serif);
	font-size: 1.2rem;
	color: #fff;
}

.site-footer p { margin: 0 0 0.8rem; }
.footer-docs ul { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.footer-docs li { margin: 0.3rem 0; }
.footer-docs .noab-mark { margin: 0.2rem 0 0.8rem; background: #fff; }

.footer-base {
	margin-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	padding: 0.9rem 0;
	font-size: 0.95rem;
}

.cookie-bar {
	position: sticky;
	bottom: 0;
	z-index: 30;
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	background: var(--navy);
	color: #fff;
	padding: 0.7rem 1.25rem;
	font-size: 0.98rem;
}

.cookie-bar p { margin: 0; }
.cookie-bar a { color: #fff; }
.cookie-bar button { background: #fff; color: var(--navy); }

#cookie-notice {
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.45;
	background: var(--navy) !important;
	color: #fff;
}

#cookie-notice .cookie-notice-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: min(1120px, calc(100% - 3rem));
	margin-inline: auto;
	padding: 0.9rem 0;
	text-align: left;
	background: transparent !important;
	color: #fff;
}

#cookie-notice .cn-text-container { display: block; margin: 0; flex: 1; }
#cookie-notice .cn-buttons-container { display: flex; gap: 0.5rem; margin: 0; }

#cookie-notice .cn-button,
#cookie-notice .button {
	margin: 0;
	width: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	box-shadow: none;
	font: 600 0.98rem/1 var(--sans);
	padding: 0.55rem 0.15rem;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

#cookie-notice #cn-accept-cookie {
	background: var(--orange);
	color: #fff;
	text-decoration: none;
	padding: 0.6rem 0.9rem;
}

#cookie-notice .cn-close-icon { filter: invert(1); }

body:has(#cookie-notice.cookie-notice-visible) .site-footer { padding-bottom: 5.5rem; }

@media (max-width: 900px) {
	.facts-grid,
	.service-list,
	.footer-grid,
	.contact-layout,
	.office-grid { grid-template-columns: 1fr; }

	.nav-toggle { display: inline-flex; align-self: flex-end; }
	.header-bar { align-items: flex-start; }
	.header-end { align-items: flex-end; flex: 1; }
	.header-contact { display: none; }
	.site-nav { display: none; width: 100%; }
	.site-nav.is-open { display: block; }
	.site-nav > .menu { flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 0.4rem 0 1rem; }
	.site-nav .sub-menu {
		position: static;
		display: flex;
		min-width: 0;
		border: 0;
		padding: 0.15rem 0 0.4rem 0.9rem;
	}
	.brand img,
	.custom-logo { height: 60px; }
	.entry-content > .legacy-col,
	.entry-content > .legacy-col-1-2,
	.entry-content > .legacy-col-1-3,
	.entry-content > .legacy-col-1-4,
	.entry-content > .legacy-col-2-3,
	.entry-content > .legacy-col-3-4 {
		flex: 1 0 100%;
		max-width: none;
		margin-right: 0;
	}

	#cookie-notice .cookie-notice-container { flex-direction: column; align-items: flex-start; }
	.wpcf7 .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.cookie-bar { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto; }
	.opening-bg span { animation: none; opacity: 0; }
	.opening-bg span:first-child { opacity: 1; }
}
