/* header.php — site header & nav */
/* ----------------------------------------------------------
   HEADER / NAVBAR
---------------------------------------------------------- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--color-white);
	height: 74px;
	display: flex;
	align-items: center;
	padding: 16px var(--section-px);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header__container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header__logo-img {
	height: 40px;
	width: auto;
	display: block;
}

/* -- NAV -- */
.nav {
	display: flex;
	align-items: center;
}

.nav__menu {
	display: flex;
	align-items: center;
	gap: 78px;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 74px;
	list-style: none;
}

.nav__link {
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: var(--lh-sm);
	letter-spacing: 0.5px;
	color: var(--color-text-dark);
	white-space: nowrap;
	transition: color 0.2s ease;
}
.nav__link:hover {
	color: var(--color-primary);
}

/* Primary nav: current page (WP adds .current-menu-item on <li>, aria-current on <a>) */
.nav__link[aria-current="page"],
.nav__list .current-menu-item > .nav__link {
	color: var(--color-primary);
}

.nav__cta {
	height: 42px;
	padding: 8px 16px;
}

.header__contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
	color: var(--color-text-dark);
	max-width: 220px;
}

.header__contact-line {
	margin: 0;
}

.header__contact-line--address {
	opacity: 0.85;
	white-space: normal;
}

.header__contact-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}
.header__contact-link:hover {
	color: var(--color-primary);
}

/* Hamburger — hidden on desktop */
.nav__hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	padding: 0;
	flex-shrink: 0;
}

.nav__hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-text-dark);
	border-radius: 2px;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}

.nav__hamburger--active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.nav__hamburger--active span:nth-child(2) {
	opacity: 0;
}
.nav__hamburger--active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.header {
		padding: 16px 32px;
		position: relative;
	}
	.header__container {
		position: relative;
	}
	.nav__hamburger {
		display: flex;
	}
	.nav__menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		position: absolute;
		top: 74px;
		left: 0;
		right: 0;
		background-color: var(--color-white);
		padding: 24px 20px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
		z-index: 99;
	}
	.nav__menu--open {
		display: flex;
	}
	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
}
