/*!
Theme Name: ProVitalitas
Theme URI: https://mkweb.agency/
Author: mkweb.agency
Author URI: https://mkweb.agency/
Version: 2.0.0
*/
/* ==========================================================================
   Site Header
   Design reference: 1440px wide
   Fluid values are built with clamp(MIN, PREFERRED, MAX), where PREFERRED
   scales linearly between a 375px (mobile) and 1440px (desktop) viewport.
   Formula used for each value:
     slope     = (max - min) / (1440 - 375)
     preferred = (min - slope * 375)px + (slope * 100)vw
   ========================================================================== */

.site-header {
	position: relative;
	width: 100%;
	background-color: #05070a; /* dark photo/hero background sits behind the bar */
	overflow: hidden;
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(0.75rem, 0.3rem + 2.25vw, 3rem);

	max-width: 1440px;
	margin-inline: auto;

	/* 40px desktop -> 16px mobile, both axes */
	padding: clamp(0.75rem, 0.57rem + 0.75vw, 1.25rem) clamp(1rem, 0.47rem + 2.25vw, 2.5rem);

	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 5px;
}

/* -------------------- Branding / logo -------------------- */

.site-header__branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header__logo-box {
	display: flex;
	align-items: center;
	justify-content: center;

	/* 163px -> 120px */
	width: clamp(7.5rem, 6.55rem + 4.04vw, 10.19rem);
	/* 86px -> 56px */
	height: clamp(3.5rem, 2.84rem + 2.82vw, 5.38rem);

	background-color: #292d28;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;

	/* pull the box flush with the outer edges of the bar */
	margin: clamp(-0.75rem, -0.57rem - 0.75vw, -1.25rem) 0 clamp(-0.75rem, -0.57rem - 0.75vw, -1.25rem) clamp(-1rem, -0.47rem - 2.25vw, -2.5rem);
}

.site-header__logo-box img {
	/* 147px -> 100px */
	width: clamp(6.25rem, 5.22rem + 4.41vw, 9.19rem);
	/* 68px -> 46px */
	height: clamp(2.88rem, 2.39rem + 2.07vw, 4.25rem);
	object-fit: contain;
}

.site-header__title,
.site-header__description {
	/* visually hidden, kept for SEO/accessibility since the logo box already
	   communicates the brand visually */
	margin: 0;
}

/* -------------------- Navigation -------------------- */

.site-header__nav {
	display: flex;
	align-items: center;
}

.site-header__menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: clamp(1rem, 0.3rem + 3.01vw, 3rem);
}

.site-header__menu a {
	display: block;
	color: #292d28;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	line-height: 1.5;
	font-size: clamp(0.875rem, 0.74rem + 0.56vw, 1.25rem);
	text-decoration: none;
	white-space: nowrap;
}

.site-header__menu a:hover,
.site-header__menu a:focus {
	color: #e96a20;
}

.site-header__menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

.site-header__menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #292d28;
}

/* -------------------- Contact button -------------------- */

.site-header__contact {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	gap: 0.5rem;

	/* 24px/16px -> 16px/10px */
	padding: clamp(0.625rem, 0.54rem + 0.38vw, 0.875rem) clamp(1rem, 0.82rem + 0.75vw, 1.5rem);

	background-color: #e96a20;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

	color: #ffffff;
	font-family: "Inter", sans-serif;
	font-weight: 500;
	line-height: 1.5;
	font-size: clamp(0.875rem, 0.83rem + 0.19vw, 1rem);
	text-decoration: none;
	white-space: nowrap;

	transition: background-color 0.2s ease;
}

.site-header__contact:hover,
.site-header__contact:focus {
	background-color: #cf5c19;
	color: #ffffff;
}

.site-header__contact-icon {
	width: clamp(1.125rem, 1.05rem + 0.38vw, 1.375rem);
	height: clamp(1.125rem, 1.05rem + 0.38vw, 1.375rem);
	flex-shrink: 0;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Tablet: tighten gaps a bit sooner than the fluid clamp alone would */
@media (max-width: 900px) {
	.site-header__nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(320px, 80vw);
		height: 100vh;
		background-color: #ffffff;
		box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
		transform: translateX(100%);
		transition: transform 0.25s ease;
		z-index: 100;
	}

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

	.site-header__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		padding: 5rem 1.5rem 2rem;
	}

	.site-header__menu-toggle {
		display: flex;
	}
}

/* Small mobile: stack contact text-only button a bit tighter, shrink logo box */
@media (max-width: 480px) {
	.site-header__bar {
		gap: 0.75rem;
	}

	.site-header__contact-text {
		display: none;
	}

	.site-header__contact {
		padding: 0.625rem;
	}
}