/*
 * Header layout + CTA polish.
 * Design language is unchanged — this only fixes alignment, spacing and height.
 */

:root {
	--qoi-header-height: 76px;
	--qoi-logo-width: 40px;
}

/* One clean horizontal row, vertically centred. */
body header.sticky > div,
body header:not(.sticky):first-of-type > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--qoi-header-height);
	padding-top: 0;
	padding-bottom: 0;
	flex-wrap: nowrap;
}

/* Logo block */
body header a[aria-label$="home"] {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	flex-shrink: 0;
	line-height: 1.15;
}

body header a[aria-label$="home"] > span:first-child {
	width: var(--qoi-logo-width);
	height: var(--qoi-logo-width);
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

body header a[aria-label$="home"] img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Navigation: single row, no wrapping */
body header nav[aria-label="Main"] {
	align-items: center;
	gap: 0.125rem;
	flex-wrap: nowrap;
	margin-left: auto;
}

body header nav[aria-label="Main"] > a,
body header nav[aria-label="Main"] > div > a {
	display: inline-flex;
	align-items: center;
	height: 2.5rem;
	padding-left: 0.625rem;
	padding-right: 0.625rem;
	white-space: nowrap;
	line-height: 1;
}

@media (min-width: 1200px) {
	body header nav[aria-label="Main"] > a,
	body header nav[aria-label="Main"] > div > a {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}
}

/* Action area (CTA + WhatsApp + mobile menu button) */
body header nav[aria-label="Main"] ~ div,
body header > div > div:last-child {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-shrink: 0;
	margin-left: 0.5rem;
}

/* Header buttons: premium, compact, perfectly centred */
body header > div > div:last-child > a {
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.625rem;
	padding: 0 1.25rem;
	border-radius: 0.625rem;
	font-size: 0.9rem;
	line-height: 1;
	white-space: nowrap;
	transition:
		background-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

body header > div > div:last-child > a.hidden {
	display: none;
}

@media (min-width: 640px) {
	body header > div > div:last-child > a.hidden {
		display: inline-flex;
	}
}

body header > div > div:last-child > a svg {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
}

body header > div > div:last-child > a:hover {
	transform: translateY(-1px);
}

body header > div > div:last-child > a:focus-visible {
	outline: 2px solid var(--primary, #0f6b4f);
	outline-offset: 2px;
}

/* Mobile menu toggle stays square and centred */
body header > div > div:last-child > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.625rem;
	height: 2.625rem;
	flex: 0 0 auto;
	border-radius: 0.625rem;
}

@media (min-width: 1024px) {
	body header > div > div:last-child > button {
		display: none;
	}
}

/* Mobile menu panel */
body header nav[aria-label="Mobile"] a {
	display: block;
}

body header nav[aria-label="Mobile"] .qoi-mobile-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.75rem;
	margin-top: 0.75rem;
	padding: 0 1.25rem;
	border-radius: 0.625rem;
	background: var(--primary, #0f6b4f);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

/* Pricing: offer presentation (only rendered when an offer is active) */
.qoi-price-was {
	text-decoration: line-through;
	opacity: 0.6;
	font-size: 1.125rem;
	margin-right: 0.35rem;
}

.qoi-offer-badge {
	display: inline-flex;
	align-items: center;
	margin-left: 0.5rem;
	padding: 0.15rem 0.5rem;
	border-radius: 9999px;
	background: var(--gold, #c8a24a);
	color: #1b1405;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}
