/* Header and footer styles are centralized here so partials stay lightweight. */

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
	background: #e0e1dd;
	color: #1d274d;
	padding: 3rem clamp(0.9rem, 2vw, 2rem) 2rem;
}

.site-footer-inner {
	max-width: 1100px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	align-items: start;
}

.site-footer-col h3 {
	font-size: 0.75rem;
	font-weight: 700;
	color: #1d274d;
	margin: 0 0 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.site-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer-col ul li {
	list-style: none;
	margin-bottom: 0.35rem;
}

.site-footer-col a {
	color: #2a5b84;
	text-decoration: underline;
	font-size: 0.8rem;
}

.site-footer-col a:hover,
.site-footer-col a:focus-visible {
	color: #1d274d;
}

.site-footer-social {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.site-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #2a5b84;
	line-height: 0;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
	color: #1d274d;
}

.site-footer-social img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.site-footer-copy {
	max-width: 1100px;
	margin: 2rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(29, 39, 77, 0.2);
	font-size: 0.8rem;
	color: #1d274d;
	opacity: 0.75;
}

.site-cookie-notice {
	position: fixed;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	width: min(42rem, calc(100vw - 1.5rem));
	padding: 1rem 1rem 0.9rem;
	border: 1px solid rgba(29, 39, 77, 0.18);
	border-radius: 0.85rem;
	background: rgba(224, 225, 221, 0.98);
	box-shadow: 0 16px 40px rgba(29, 39, 77, 0.18);
	z-index: 80;
	backdrop-filter: blur(10px);
}

.site-cookie-notice p {
	margin: 0;
	font-size: 0.9rem;
	color: #1d274d;
}

.site-cookie-notice-actions {
	margin-top: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.site-cookie-notice a {
	font-size: 0.85rem;
	color: #2a5b84;
}

.site-cookie-notice button {
	margin: 0;
	padding-inline: 1.15rem;
	white-space: nowrap;
}

.site-launch-offer-open {
	overflow: hidden;
}

.site-launch-offer {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(29, 39, 77, 0.45);
	z-index: 95;
	backdrop-filter: blur(2px);
}

.site-launch-offer-card {
	width: min(34rem, calc(100vw - 1.5rem));
	margin: 0;
	padding: 1rem 1rem 0.75rem;
	border: 1px solid rgba(29, 39, 77, 0.18);
	border-radius: 0.9rem;
	background: #fff;
	box-shadow: 0 20px 46px rgba(29, 39, 77, 0.28);
	text-align: left;
	animation: launch-offer-in 0.22s ease-out;
}

.site-launch-offer-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	color: #1d274d;
}

.site-launch-offer-card p {
	margin: 0 0 0.75rem;
	color: #1d274d;
	font-size: 0.95rem;
	line-height: 1.45;
}

.site-launch-offer-card p:last-child {
	margin-bottom: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.site-launch-offer-code {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 0.35rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.98rem;
	letter-spacing: 0.03em;
	background: #e0e1dd;
	color: #1d274d;
	border: 1px solid rgba(29, 39, 77, 0.16);
	font-weight: 700;
}

.site-launch-offer-card button {
	margin: 0;
	padding-inline: 1.2rem;
	white-space: nowrap;
}

@keyframes launch-offer-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 720px) {
	.site-footer-inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-cookie-notice {
		bottom: 0.75rem;
	}
}

@media (max-width: 420px) {
	.site-footer-inner {
		grid-template-columns: 1fr;
	}

	.site-cookie-notice-actions {
		align-items: stretch;
	}

	.site-cookie-notice button {
		width: 100%;
	}

	.site-launch-offer-card p:last-child {
		justify-content: stretch;
	}

	.site-launch-offer-card button {
		width: 100%;
	}
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
	padding: 0.75rem clamp(0.9rem, 2vw, 2rem);
}

.site-header-nav {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-header-left,
.site-header-right {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-header-left {
	justify-content: flex-start;
}

.site-header-right {
	justify-content: flex-end;
}

.site-header-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

.site-header-menu > li {
	position: relative;
	display: flex;
	align-items: center;
	list-style: none;
}

.site-header-menu > li > a {
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 400;
	color: inherit;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	gap: 0.35rem;
}

.site-header-menu > li > a::after {
	content: "\25be";
	font-size: 0.7rem;
	opacity: 0.75;
}

.site-header-submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	list-style: none;
	margin: 0;
	padding: 0.85rem 0.4rem 0.4rem;
	width: max-content;
	min-width: 10rem;
	max-width: min(42rem, 90vw);
	text-align: left;
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: 0.5rem;
	background: var(--pico-background-color);
	box-shadow: 0 8px 24px color-mix(in srgb, #000 12%, transparent);
	z-index: 50;
}

.site-header-menu > li:hover > .site-header-submenu,
.site-header-menu > li:focus-within > .site-header-submenu {
	display: flex;
	flex-direction: column;
}

.site-header-submenu li {
	list-style: none;
	text-align: left;
}

.site-header-submenu a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-decoration: none;
	color: inherit;
	padding: 0.45rem 0.55rem;
	border-radius: 0.35rem;
	white-space: nowrap;
	text-align: left;
}

.site-header-submenu a:hover,
.site-header-submenu a:focus-visible {
	background: color-mix(in srgb, var(--pico-primary) 12%, transparent);
}

/* Override Pico nav centering for dropdown content. */
.site-header-nav .site-header-submenu,
.site-header-nav .site-header-submenu li,
.site-header-nav .site-header-submenu a,
.site-header-nav .site-header-submenu span {
	text-align: left !important;
}

.site-header-nav .site-header-submenu li,
.site-header-nav .site-header-submenu a {
	width: 100%;
}

.site-header-nav .site-header-submenu a {
	justify-content: flex-start !important;
	margin-inline: 0 !important;
}

.site-header-brand {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	line-height: 0;
}

.site-header-brand img {
	display: block;
	width: min(100%, 334px);
	height: auto;
}

.site-header-social {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.site-header-social a {
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.site-header-social img {
	width: 22px;
	height: 22px;
}

.site-header-language {
	position: relative;
}

.site-header-language summary {
	list-style: none;
	cursor: pointer;
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 0.3rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.78rem;
	white-space: nowrap;
}

.site-header-language summary::-webkit-details-marker {
	display: none;
}

.site-header-language ul {
	position: absolute;
	right: 0;
	top: calc(100% + 0.35rem);
	margin: 0;
	padding: 0.35rem;
	display: block;
	list-style: none;
	min-width: 7.5rem;
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: 0.5rem;
	background: var(--pico-background-color);
	box-shadow: 0 8px 24px color-mix(in srgb, #000 12%, transparent);
	z-index: 50;
}

.site-header-language ul li {
	display: block;
}

.site-header-language a {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 0.25rem 0.45rem;
	font-size: 0.85rem;
	border-radius: 0.35rem;
}

.site-header-language a:hover,
.site-header-language a:focus-visible {
	background: color-mix(in srgb, var(--pico-primary) 12%, transparent);
}

.site-mobile-menu,
.site-mobile-spacer {
	display: none;
}

.site-mobile-menu summary {
	list-style: none;
	cursor: pointer;
	width: 2.3rem;
	height: 2.3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.35rem;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	line-height: 1;
	font-size: 1.4rem;
	background: transparent;
}

.site-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.site-mobile-menu summary::before {
	content: "\2630";
}

.site-mobile-menu[open] summary::before {
	content: "\2715";
	font-size: 1.2rem;
}

.site-mobile-panel {
	display: none;
}

.site-mobile-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.site-mobile-links li {
	list-style: none;
	display: block;
}

.site-mobile-links a {
	display: block;
	text-decoration: none;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 500;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 980px) {
	.site-header-nav {
		justify-content: space-between;
	}

	.site-mobile-menu,
	.site-mobile-spacer {
		display: block;
	}

	.site-header-left,
	.site-header-right {
		display: none;
	}

	.site-header-brand {
		flex: 0 0 auto;
	}

	.site-header-brand img {
		width: min(100%, 300px);
	}

	.site-mobile-spacer {
		width: 2.3rem;
		height: 2.3rem;
	}

	.site-mobile-menu[open] .site-mobile-panel {
		display: block;
		position: fixed;
		inset: 0;
		padding: 6rem 1.5rem 2rem;
		background: #2a5b84;
		color: #fff;
		z-index: 45;
		overflow-y: auto;
	}

	.site-mobile-menu[open] summary {
		position: fixed;
		top: 0.75rem;
		left: clamp(0.9rem, 2vw, 2rem);
		z-index: 60;
		background: #2a5b84;
		color: #fff;
		border-color: rgba(255, 255, 255, 0.55);
	}

	.site-mobile-links {
		max-width: 26rem;
		margin-inline: auto;
	}
}
