/* ==========================================================================
   EuroLine — Shared components: header, footer, notices
   ========================================================================== */

/* Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #010101;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
/* 	max-width: calc(var(--container-width) + (var(--container-padding) * 2)); */
	margin-inline: auto;
	padding-inline: var(--container-padding);
	height: var(--header-height);
}

.site-header__logo img {
	height: 50px;
	width: auto;
}

@media (min-width: 1024px) {
	.site-header__logo img {
		height: 59px;
	}
}

.site-header__mobile-bar {
	display: flex;
	align-items: center;
	gap: 20px;
}

@media (min-width: 1024px) {
	.site-header__mobile-bar {
		display: contents;
	}
}

.site-header__phone--mobile {
	font-size: 16px;
	color: var(--color-neutral-200);
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.site-header__phone--mobile {
		display: none;
	}
}

.site-header__burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none;
	border: 0;
	padding: 0;
}

.site-header__burger-line {
	display: block;
	height: 2px;
	background: var(--color-text-inverse);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__burger[aria-expanded='true'] .site-header__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__burger[aria-expanded='true'] .site-header__burger-line:nth-child(2) {
	opacity: 0;
}

.site-header__burger[aria-expanded='true'] .site-header__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
	.site-header__burger {
		display: none;
	}
}

.site-header__nav {
	position: fixed;
	inset: var(--header-height) 0 0 0;
	background: #010101;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 32px var(--container-padding);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.site-header__nav.is-open {
	transform: translateX(0);
}

@media (min-width: 1024px) {
	.site-header__nav {
		/* Dissolve this wrapper so .site-nav and .site-header__actions become
		   direct flex items of .site-header__inner, spaced evenly from the
		   logo via its justify-content: space-between (matches Figma). */
		display: contents;
	}
}

.site-nav {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 1024px) {
	.site-nav {
		flex-direction: row;
		align-items: center;
		gap: 42px;
	}
}

.site-nav .menu-item>a {
	display: inline-flex;
	align-items: center;
	gap: 4.8px;
	font-size: var(--fs-h5);
	color: var(--color-text-inverse);
}

@media (min-width: 1024px) {
	.site-nav .menu-item>a {
		font-size: var(--fs-body-m);
		font-weight: 400;
	}
}

.site-nav .menu-item-has-children>a::after {
	content: '';
	width: 12px;
	height: 12px;
	background: url('../icons/chevron-down.svg') center / contain no-repeat;
	display: inline-block;
}

.site-nav .sub-menu {
	display: none;
	flex-direction: column;
	gap: 24px;
	padding-top: 12px;
	padding-left: 16px;
}

.site-nav .menu-item-has-children:hover .sub-menu,
.site-nav .menu-item-has-children:focus-within .sub-menu {
	display: flex;
}

@media (min-width: 1024px) {
	.site-nav .menu-item-has-children {
		position: relative;
	}

	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		background: #010101;
		min-width: 220px;
		padding: 16px;
		border-radius: 12px;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
	}
}

.site-nav .sub-menu a {
	color: var(--overlay-off-white-80);
	font-size: var(--fs-body-m);
}

.site-header__actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 32px;
}

@media (min-width: 1024px) {
	.site-header__actions {
		flex-direction: row;
		align-items: center;
		gap: 24px;
		margin-top: 0;
		justify-content: flex-end;
	}
}

.site-header__phone {
	color: var(--color-neutral-200);
	font-size: var(--fs-body-m);
	white-space: nowrap;
	flex-shrink: 0;
}

/* .btn--outline is hidden by default below 1024px (base.css), but inside the
   mobile nav panel it should show, same as the desktop top bar. */
.site-header__actions .btn--outline {
	display: inline-flex;
	width: fit-content;
}

/* Mobile nav panel only — hide the phone link and make the button full width;
   the desktop top bar keeps both, unaffected by this. */
.site-header__nav .site-header__actions .site-header__phone {
	display: none;
}

.site-header__nav .site-header__actions .btn--outline {
	width: 100%;
}

@media (min-width: 1024px) {
	.site-header__nav .site-header__actions .site-header__phone {
		display: block;
	}

	.site-header__nav .site-header__actions .btn--outline {
		width: fit-content;
	}
}

/* Footer
   ========================================================================== */

.site-footer {
	background: var(--color-neutral-950);
	color: var(--color-text-inverse);
	padding: 56px 0;
}

@media (min-width: 1024px) {
	.site-footer {
		padding: 80px 0;
	}
}

.site-footer__inner {
	max-width: calc(var(--container-width) + (var(--container-padding) * 2));
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.site-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 0.8px solid var(--overlay-off-white-15);
}

@media (min-width: 768px) {
	.site-footer__top {
		grid-template-columns: 1.6fr 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.site-footer__top {
		grid-template-columns: 456px 1fr 1fr 1fr;
		padding-bottom: 56px;
	}
}

.site-footer__logo {
	height: 83px;
	width: auto;
}

.site-footer__tagline {
	margin-top: 20px;
	font-size: 18px;
	line-height: 1.4;
}

.site-footer__serving {
	margin-top: 16px;
	font-size: var(--fs-body-s);
	color: var(--overlay-off-white-55);
}

.site-footer__heading {
	font-size: var(--fs-h5);
	font-weight: 600;
	color: var(--color-brand-primary);
	margin-bottom: 11px;
}

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.site-footer__list a {
	font-size: var(--fs-body-m);
	color: var(--overlay-off-white-80);
}

.site-footer__col--contact {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 1024px) {
	.site-footer__col--contact {
		align-items: flex-end;
		text-align: right;
	}
}

.site-footer__col--contact a,
.site-footer__col--contact p {
	font-size: var(--fs-body-m);
	color: var(--overlay-off-white-80);
	margin: 0;
}

.site-footer__social {
	display: flex;
	gap: 16px;
}

.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--color-bg-surface);
	border-radius: 4px;
}

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 28px;
}

@media (min-width: 1024px) {
	.site-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.site-footer__bottom p {
	font-size: 12px;
	color: var(--overlay-off-white-40);
}

/* Form notice
   ========================================================================== */

.form-notice {
	max-width: calc(var(--container-width) + (var(--container-padding) * 2));
	margin: 20px auto 0;
	padding: 16px var(--container-padding);
	border-radius: 12px;
	font-size: var(--fs-body-m);
}

.form-notice--success {
	background: #e7f6ec;
	color: #1b6e3c;
}

.form-notice--error {
	background: #fdeceb;
	color: #b3261e;
}