/**
 * Template parts — header & footer (ported from prototype parts/header.css + parts/footer.css).
 * Loaded with core/template-part.
 */

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	box-shadow: 0 1px 8px rgb(0 0 0 / 0.04);
}

@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens */
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header > * {
	margin-block: 0;
}

/* Top utility bar */
.site-header__topbar {
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: var(--wp--custom--line-height--body-sm);
}

.site-header__topbar > .wp-block-group {
	min-height: 2.5rem;
	row-gap: 0.25rem;
	padding-block: 0.375rem;
}

.site-header__topbar p {
	margin: 0;
	white-space: nowrap;
}

.site-header__topbar a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wp--custom--transition);
}

.site-header__hotline a {
	color: var(--wp--preset--color--on-dark);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.site-header__hotline a:hover,
.site-header__online a:hover {
	color: var(--wp--preset--color--brand-green);
}

.site-header__hotline .material-symbols-outlined {
	color: var(--wp--preset--color--brand-green);
}

.site-header__location,
.site-header__fsma {
	color: var(--wp--preset--color--on-dark-muted);
}

.site-header__fsma {
	font-size: var(--wp--preset--font-size--label-sm);
	font-weight: 700;
}

.site-header__online {
	font-size: var(--wp--preset--font-size--label-md);
	font-weight: 600;
}

.site-header__topbar .material-symbols-outlined {
	font-size: 1rem;
}

/* Main bar */
/* The translucent blur sits on a pseudo-element: backdrop-filter on the bar
   itself would become the containing block of the fixed mobile-menu overlay. */
.site-header__main {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.site-header__main::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(255 255 255 / 0.95);
	backdrop-filter: blur(24px);
}

.site-header__main > .wp-block-group {
	min-height: 5.25rem;
	gap: var(--wp--preset--spacing--lg);
}

@media (max-width: 1024px) {
	.site-header__main .wp-block-navigation {
		order: 3;
	}

	.site-header__actions {
		margin-left: auto;
	}
}

@media (max-width: 767px) {
	.site-header__location {
		display: none;
	}
}

@media (max-width: 639px) {
	.site-header__fsma {
		display: none !important;
	}

	/* CTA keeps only its icon */
	.site-header__actions .wp-block-button__link {
		gap: 0;
		padding-inline: 0.625rem;
		font-size: 0;
	}

	.site-header__actions .wp-block-button__link .material-symbols-outlined {
		font-size: 1.25rem;
	}
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer > * {
	margin-block: 0;
}

.site-footer__columns {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: var(--wp--custom--line-height--body-sm);
}

.site-footer__columns h2 {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--title-md);
	line-height: var(--wp--custom--line-height--title-md);
	font-weight: 700;
}

.site-footer__columns strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wp--custom--transition);
}

.site-footer__columns a:hover,
.site-footer__bottom a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__columns p {
	margin-block: 0 var(--wp--preset--spacing--md);
}

.site-footer__hours {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--label-sm);
}

/* FSMA pill with green "active" dot */
.site-footer__pill {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--sm);
	width: fit-content;
	padding: 0.375rem 0.875rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--label-sm);
	font-weight: 700;
}

.site-footer__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--cta);
}

.site-footer__phones {
	line-height: 2;
}

.site-footer__phones .material-symbols-outlined {
	color: var(--wp--preset--color--secondary-text);
}

.site-footer__phones strong {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--title-md);
}

.site-footer__company-id {
	font-size: var(--wp--preset--font-size--label-sm);
}

.site-footer__bottom {
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--legal);
	font-size: var(--wp--preset--font-size--legal);
	line-height: var(--wp--custom--line-height--legal);
	font-weight: 500;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--md);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 639px) {
	.site-footer__bottom > .wp-block-group {
		flex-direction: column;
		text-align: center;
	}

	.site-footer__legal-links {
		justify-content: center;
	}
}
