/* -------------------------------------------------------------------------
   Site header — matches Abu Dhabi Junk Removal reference
   ------------------------------------------------------------------------- */

:root {
	--header-green: #34A853;
	--header-green-hover: #34A853;
	--header-text: #3d4a54;
	--header-bg: #ffffff;
	--header-height: 72px;
	--header-max: 1200px;
	--header-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--header-bg);
	box-shadow: var(--header-shadow);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	max-width: var(--header-max);
	margin: 0 auto;
	padding: 0.65rem 1.5rem;
	min-height: var(--header-height);
}

/* Logo
   ------------------------------------------------------------------------- */

.site-header__logo {
	flex-shrink: 0;
}

.site-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-logo-link .custom-logo-link,
.site-logo-link .custom-logo {
	display: block;
}

.site-logo,
.site-logo-link img,
.custom-logo {
	height: 64px;
	width: auto;
	max-width: 300px;
	object-fit: contain;
}

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

.site-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.primary-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.15rem 1.35rem;
}

.primary-menu > .menu-item {
	position: relative;
}

.primary-menu > .menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.4rem 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--header-text);
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.primary-menu > .menu-item > a:hover,
.primary-menu > .menu-item.current-menu-item > a,
.primary-menu > .menu-item.current-menu-ancestor > a {
	color: var(--header-green);
}

.primary-menu .menu-parent-toggle {
	cursor: pointer;
}

/* Areas dropdown chevron */
.primary-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 0.15rem;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	vertical-align: middle;
}

/* Submenu */
.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	min-width: 180px;
	padding: 0.65rem 0;
	background: #fff;
	border: 1px solid #e6e9ec;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
	z-index: 20;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu,
.primary-menu .menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.primary-menu .sub-menu a {
	display: block;
	padding: 0.7rem 1.15rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #000000;
	white-space: nowrap;
}

.primary-menu .sub-menu a:hover {
	color: var(--header-green);
	background: rgba(124, 179, 66, 0.08);
}

/* Phone CTA
   ------------------------------------------------------------------------- */

.site-header__cta {
	flex-shrink: 0;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.25rem;
	background: var(--header-green);
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.15s ease;
}

.header-phone:hover {
	background: var(--header-green-hover);
	color: #ffffff;
}

.header-phone:active {
	transform: scale(0.98);
}

.header-phone__icon {
	flex-shrink: 0;
}

/* Mobile toggle
   ------------------------------------------------------------------------- */

.menu-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 8px;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.menu-toggle__bar {
	display: block;
	width: 24px;
	min-width: 24px;
	max-width: 24px;
	height: 3px;
	background: #111111;
	border-radius: 2px;
	flex-shrink: 0;
	opacity: 1;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__bar:nth-child(1),
.menu-toggle__bar:nth-child(2),
.menu-toggle__bar:nth-child(3) {
	width: 24px;
	height: 3px;
	background: #111111;
	opacity: 1;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* Content spacing
   ------------------------------------------------------------------------- */

.site-content {
	min-height: 40vh;
	margin-bottom: 0;
	padding-bottom: 0;
}

.content-area {
	max-width: var(--header-max);
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

/* Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.primary-menu {
		gap: 0.1rem 1rem;
	}

	.primary-menu > .menu-item > a {
		font-size: 0.875rem;
	}

	.header-phone {
		padding: 0.55rem 1rem;
		font-size: 0.8125rem;
	}

	.site-logo,
	.site-logo-link img,
	.custom-logo {
		height: 42px;
	}
}

@media (max-width: 900px) {
	.site-header__inner {
		position: relative;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		padding: 0.65rem 1rem;
	}

	.menu-toggle {
		display: flex;
		position: static;
		top: auto;
		right: auto;
		order: 2;
		margin-left: auto;
		align-items: center;
		align-self: center;
	}

	.site-header__logo {
		order: 1;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: auto;
		max-width: calc(100% - 3.5rem);
		margin: 0;
		align-self: center;
	}

	.site-logo-link {
		display: inline-flex;
		align-items: center;
		margin: 0;
	}

	.site-logo,
	.site-logo-link img,
	.custom-logo {
		display: block;
		height: 42px;
		width: auto;
	}

	/* Phone hidden by default; shows at top of drawer under the toggle */
	.site-header__cta {
		display: none;
		order: 4;
		width: 100%;
		justify-content: center;
		padding-top: 0.75rem;
	}

	.site-navigation.is-open ~ .site-header__cta {
		display: flex;
	}

	.site-navigation {
		order: 5;
		display: none;
		width: 100%;
		justify-content: stretch;
		padding: 0.35rem 0 0.75rem;
		border-top: 1px solid rgba(0, 0, 0, 0.06);
		margin-top: 0.65rem;
	}

	.site-navigation.is-open {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-menu > .menu-item > a {
		padding: 0.75rem 0.25rem;
		font-size: 1rem;
		white-space: normal;
	}

	.primary-menu .sub-menu,
	.primary-menu .menu-item-has-children:hover > .sub-menu,
	.primary-menu .menu-item-has-children:focus-within > .sub-menu,
	.primary-menu .menu-item-has-children.is-open > .sub-menu {
		position: static;
		left: auto;
		top: auto;
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		box-shadow: none;
		border: 0;
		border-radius: 0;
		background: transparent;
		min-width: 0;
		width: 100%;
		padding: 0 0 0.35rem 0.75rem;
		display: none;
	}

	.primary-menu .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.primary-menu .sub-menu a {
		color: #000000;
		padding: 0.55rem 0.25rem;
		white-space: normal;
	}

	.header-phone {
		width: 100%;
		justify-content: center;
		max-width: 320px;
	}
}
