/**
 * Footer component styles.
 * Alleen geladen omdat de footer op elke pagina staat (zie inc/enqueue.php).
 *
 * Footer-specifieke tokens staan hier bewust lokaal (niet in global.css),
 * want ze worden alleen door dit component gebruikt.
 */

.site-footer {
	background-color: #2f363e;
	color: #fff;
	padding-top: 4rem;
	padding-bottom: 3rem;
}

@media ( min-width: 768px ) {
	.site-footer {
		padding-top: 5rem;
		padding-bottom: 4rem;
	}
}

/* ---------- Nieuwsbrief ---------- */

.footer-newsletter {
	border-bottom: 1px solid rgb( 255 255 255 / 0.1 );
	padding-bottom: 3rem;
	margin-bottom: 3rem;
}

.footer-newsletter-inner {
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
}

.footer-newsletter-title {
	font-family: var( --font-family-serif );
	font-size: 1.5rem;
	color: #fff;
	margin: 0 0 0.75rem;
}

@media ( min-width: 768px ) {
	.footer-newsletter-title {
		font-size: 1.875rem;
	}
}

.footer-newsletter-text {
	font-family: var( --font-family-base );
	font-size: 0.875rem;
	color: rgb( 255 255 255 / 0.7 );
	margin: 0 0 1.5rem;
}

.footer-newsletter-form .gform_wrapper form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 28rem;
	margin: 0 auto;
}

@media ( min-width: 640px ) {
	.footer-newsletter-form .gform_wrapper form {
		flex-direction: row;
	}
}

.footer-newsletter-form .gform_wrapper .gfield_label {
	position: absolute;
	left: -9999px;
}

.footer-newsletter-form .gform_wrapper input[type="email"],
.footer-newsletter-form .gform_wrapper input[type="text"] {
	height: 48px;
	border-radius: 0;
	background: rgb( 255 255 255 / 0.05 );
	border: 1px solid rgb( 255 255 255 / 0.2 );
	color: #fff;
	padding: 0 1rem;
	width: 100%;
	font-family: var( --font-family-base );
	text-align: left;
}

.footer-newsletter-form .gform_wrapper input[type="email"]::placeholder,
.footer-newsletter-form .gform_wrapper input[type="text"]::placeholder {
	color: rgb( 255 255 255 / 0.5 );
}

.footer-newsletter-form .gform_wrapper .gform_footer {
	margin: 0;
	padding: 0;
}

/* Dekt oude (gform_button) en nieuwe (gform-button) GF-markup; !important overrulet GF's eigen theme-CSS. */
.footer-newsletter-form .gform_wrapper .gform_button,
.footer-newsletter-form .gform_wrapper .gform-button {
	height: 48px !important;
	border-radius: 0 !important;
	background-color: #cb2b2b !important;
	color: #fff !important;
	padding: 0 2.75rem 0 1.5rem !important;
	border: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
	text-align: center !important;
	white-space: nowrap;
	font-family: var( --font-family-base );
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.footer-newsletter-form .gform_wrapper .gform_button:hover,
.footer-newsletter-form .gform_wrapper .gform_button:focus,
.footer-newsletter-form .gform_wrapper .gform-button:hover,
.footer-newsletter-form .gform_wrapper .gform-button:focus {
	background-color: rgb( 203 43 43 / 0.9 ) !important;
}

/* Pijltje als ::after op de veld-div i.p.v. op de <input> (submit-inputs negeren background-image in sommige browsers). */
.footer-newsletter-form .gform_wrapper .gfield--type-submit,
.footer-newsletter-form .gform_wrapper .gfield_submit_container {
	position: relative;
}

.footer-newsletter-form .gform_wrapper .gfield--type-submit::after,
.footer-newsletter-form .gform_wrapper .gfield_submit_container::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.25rem;
	width: 16px;
	height: 16px;
	transform: translateY( -50% );
	background-color: #fff;
	-webkit-mask-image: url( "../../../assets/icons/arrow-right.svg" );
	mask-image: url( "../../../assets/icons/arrow-right.svg" );
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	pointer-events: none;
}

.footer-newsletter-form .gform_confirmation_message {
	color: #fff;
}

/* ---------- Hoofdgrid ---------- */

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

@media ( min-width: 768px ) {
	.footer-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 1024px ) {
	.footer-grid {
		grid-template-columns: repeat( 4, 1fr );
	}
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.footer-logo-image {
	max-height: 64px;
	width: auto;
	filter: brightness( 0 ) invert( 1 );
}

@media ( max-width: 768px ) {
	.footer-logo-image {
		max-height: 56px;
	}
}

.footer-tagline {
	font-family: var( --font-family-base );
	font-size: 0.875rem;
	color: rgb( 255 255 255 / 0.7 );
	margin: 1rem 0 1.5rem;
}

.footer-socials {
	display: flex;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgb( 255 255 255 / 0.2 );
	color: rgb( 255 255 255 / 0.7 );
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social-link svg {
	width: 16px;
	height: 16px;
}

.footer-social-link:hover,
.footer-social-link:focus {
	color: #fff;
	border-color: rgb( 255 255 255 / 0.4 );
}

.footer-column-title {
	font-family: var( --font-family-serif );
	font-size: 1.125rem;
	color: #fff;
	margin: 0 0 1.25rem;
}

.footer-quick-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-quick-links a {
	font-family: var( --font-family-base );
	font-size: 0.875rem;
	color: rgb( 255 255 255 / 0.7 );
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-quick-links a:hover,
.footer-quick-links a:focus,
.footer-quick-links .current-menu-item > a {
	color: #fff;
}

.footer-office {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: rgb( 255 255 255 / 0.7 );
}

.footer-office-line {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
}

.footer-office-line svg {
	width: 16px;
	height: 16px;
	margin-top: 0.15rem;
	flex-shrink: 0;
}

.footer-office-line a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-office-line a:hover,
.footer-office-line a:focus {
	color: #fff;
}

.footer-office-line .break-all {
	word-break: break-all;
}

/* ---------- Onderbalk ---------- */

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding-top: 2rem;
	border-top: 1px solid rgb( 255 255 255 / 0.1 );
	font-family: var( --font-family-base );
	font-size: 0.75rem;
	color: rgb( 255 255 255 / 0.5 );
}

@media ( min-width: 768px ) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

.footer-copyright {
	margin: 0;
}

.footer-legal-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-legal-links a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
	color: #fff;
}
