/* ─────────────────────────────────────────────────────────
   Phoenix Header  v1.25.1
   Four-breakpoint responsive header:
     Desktop ≥ 1400  |  Laptop 1024–1399  |  Tablet 768–1023  |  Mobile ≤ 767
   ───────────────────────────────────────────────────────── */

/* === Reset & base === */
.phx-hdr,
.phx-hdr *,
.phx-hdr *::before,
.phx-hdr *::after {
	box-sizing: border-box;
}

/* Prevent horizontal scroll caused by the 100vw breakout */
html:has(.phx-hdr),
body:has(.phx-hdr) {
	overflow-x: hidden;
}

/* Full-viewport-width breakout — breaks out of ANY Elementor container
   (boxed sections, columns, flexbox containers) to span edge-to-edge. */
.phx-hdr {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	z-index: 999;
	font-family: inherit;
	padding: 0;
}

/* Also widen the Elementor widget wrapper so it doesn't clip */
.elementor-widget-phoenix-header,
.elementor-widget-phoenix-header > .elementor-widget-container {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════ */
.phx-hdr-topbar {
	width: 100%;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}
.phx-hdr-topbar-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 30px;
}
.phx-hdr-topbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
.phx-hdr-topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.phx-hdr-topbar-item:hover {
	opacity: 0.85;
	color: inherit;
	text-decoration: none;
}
.phx-hdr-topbar-sep {
	opacity: 0.5;
	user-select: none;
}
.phx-hdr-topbar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
}
.phx-hdr-topbar-icon svg {
	width: 14px;
	height: 14px;
}
.phx-hdr-topbar-icon--phone {
	background: #25D366;
	color: #fff;
}
.phx-hdr-topbar-icon--email {
	background: #F26522;
	color: #fff;
}
.phx-hdr-topbar-icon--clock {
	background: transparent;
	border: 1.5px solid #25D366;
	color: #25D366;
}
.phx-hdr-topbar-icon--clock svg {
	width: 13px;
	height: 13px;
}

/* Emergency pill */
.phx-hdr-emergency {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1.5px solid #25D366;
	border-radius: 30px;
	padding: 6px 18px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.phx-hdr-emergency:hover {
	background: #25D366;
	color: #fff;
	text-decoration: none;
}
.phx-hdr-emergency .phx-hdr-topbar-icon {
	width: auto;
	height: auto;
	border: none;
}
.phx-hdr-emergency .phx-hdr-topbar-icon svg {
	width: 16px;
	height: 16px;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.phx-hdr-navbar {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	position: relative;
	z-index: 2;
}
.phx-hdr-navbar-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	min-height: 65px;
	gap: 20px;
}

/* Logo — vertical offset controlled by Elementor slider */
.phx-hdr-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	position: relative;
	z-index: 3;
	/* margin-top set by Elementor control, default -25px */
}
.phx-hdr-logo img {
	width: 200px;
	height: auto;
	display: block;
}
.phx-hdr-logo-text {
	font-size: 22px;
	font-weight: 800;
	color: #222;
}

/* ═══════════════════════════════════════════════════════════
   WP NAV MENU — desktop horizontal
   ═══════════════════════════════════════════════════════════ */
.phx-hdr-nav {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}
.phx-hdr-no-menu {
	font-size: 13px;
	color: #999;
	margin: 0;
}

/* Top-level <ul> */
.phx-hdr-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.phx-hdr-menu > li {
	position: relative;
}
.phx-hdr-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #222;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 6px;
	transition: color .2s;
}
.phx-hdr-menu > li > a:hover {
	color: #F26522;
	text-decoration: none;
}
/* WP current-menu-item highlight */
.phx-hdr-menu > li.current-menu-item > a,
.phx-hdr-menu > li.current-menu-ancestor > a,
.phx-hdr-menu > li.current_page_item > a {
	color: #F26522;
}

/* Dropdown caret for items with children */
.phx-hdr-menu > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.5;
	margin-left: 4px;
	transition: transform .2s;
}

/* ── Dropdown sub-menu ── */
.phx-hdr-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(0,0,0,0.12);
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, visibility .2s, transform .2s;
	z-index: 100;
}
.phx-hdr-menu > li:hover > .sub-menu,
.phx-hdr-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.phx-hdr-menu .sub-menu li {
	margin: 0;
}
.phx-hdr-menu .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.phx-hdr-menu .sub-menu a:hover {
	background: #fef5f0;
	color: #F26522;
	text-decoration: none;
}
.phx-hdr-menu .sub-menu .current-menu-item > a {
	color: #F26522;
}

/* Actions (right side) */
.phx-hdr-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* WhatsApp circle */
.phx-hdr-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	text-decoration: none;
	flex-shrink: 0;
	transition: transform .2s, box-shadow .2s;
}
.phx-hdr-wa:hover {
	transform: scale(1.08);
	box-shadow: 0 2px 8px rgba(37,211,102,0.4);
	color: #fff;
	text-decoration: none;
}
.phx-hdr-wa svg {
	width: 22px;
	height: 22px;
}

/* CTA button */
.phx-hdr-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #F26522;
	color: #fff;
	padding: 12px 24px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: 0.03em;
	transition: background .2s, transform .2s;
	border: none;
	cursor: pointer;
}
.phx-hdr-cta:hover {
	background: #d4551a;
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}
.phx-hdr-cta-icon {
	display: inline-flex;
	align-items: center;
	font-size: 15px;
}
.phx-hdr-cta-arrow {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Hamburger */
.phx-hdr-burger {
	display: none; /* shown via breakpoint */
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
.phx-hdr-burger span {
	display: block;
	width: 24px;
	height: 2.5px;
	background: #222;
	border-radius: 2px;
	transition: transform .3s, opacity .3s;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════════════════════════ */
.phx-mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	max-width: 400px;
	height: 100vh;
	height: 100dvh;
	background: #fff;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	transition: right .35s cubic-bezier(.4,0,.2,1);
	box-shadow: -4px 0 20px rgba(0,0,0,0.15);
	overflow-y: auto;
}
.phx-mobile-menu.phx-open {
	right: 0;
}

/* Backdrop */
.phx-mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.phx-mobile-backdrop.phx-open {
	opacity: 1;
	visibility: visible;
}

/* Mobile menu top bar */
.phx-mobile-menu-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 2px solid #F26522;
	flex-shrink: 0;
	background: #fff;
}
.phx-hdr-logo--mobile {
	margin-top: 0;
}
.phx-hdr-logo--mobile img {
	width: 140px;
	height: auto;
}
.phx-mobile-menu-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.phx-hdr-wa--mobile {
	width: 36px;
	height: 36px;
}
.phx-hdr-wa--mobile svg {
	width: 20px;
	height: 20px;
}
.phx-mobile-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	color: #222;
	border-radius: 50%;
	transition: background .2s;
}
.phx-mobile-close:hover {
	background: #f5f5f5;
}
.phx-mobile-close svg {
	width: 22px;
	height: 22px;
}

/* ═══════════════════════════════════════════════════════════
   WP NAV MENU — mobile vertical
   ═══════════════════════════════════════════════════════════ */
.phx-mobile-nav {
	flex: 1;
	overflow-y: auto;
}
.phx-mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}
.phx-mobile-menu-list li {
	margin: 0;
}
.phx-mobile-menu-list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #222;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
	transition: background .15s, color .15s;
}
.phx-mobile-menu-list > li > a:hover {
	background: #fef5f0;
	color: #F26522;
	text-decoration: none;
}
.phx-mobile-menu-list > li.current-menu-item > a,
.phx-mobile-menu-list > li.current_page_item > a {
	color: #F26522;
}
/* Dropdown arrow for items with children in mobile */
.phx-mobile-menu-list > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
	opacity: 0.4;
	margin-left: auto;
}
/* Mobile sub-menu */
.phx-mobile-menu-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.phx-mobile-menu-list .sub-menu a {
	display: block;
	padding: 12px 24px 12px 40px;
	font-size: 15px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	border-bottom: 1px solid #f5f5f5;
	transition: background .15s, color .15s;
}
.phx-mobile-menu-list .sub-menu a:hover {
	background: #fef5f0;
	color: #F26522;
	text-decoration: none;
}
.phx-mobile-menu-list .sub-menu .current-menu-item > a {
	color: #F26522;
}

/* Mobile CTA */
.phx-mobile-menu-bottom {
	padding: 16px;
	flex-shrink: 0;
}
.phx-hdr-cta--mobile {
	width: 100%;
	justify-content: center;
	padding: 14px 20px;
	font-size: 15px;
	border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

/* ── Laptop: 1024–1399px ── */
@media (max-width: 1399px) {
	.phx-hdr-topbar-inner {
		padding: 8px 24px;
	}
	.phx-hdr-navbar-inner {
		padding: 0 24px;
	}
	.phx-hdr-menu > li > a {
		padding: 8px 10px;
		font-size: 14px;
	}
	.phx-hdr-cta {
		padding: 10px 20px;
		font-size: 13px;
	}
}

/* ── Tablet: 768–1023px ── */
@media (max-width: 1024px) {
	.phx-hdr-topbar-inner {
		padding: 8px 20px;
	}
	.phx-hdr-topbar {
		font-size: 13px;
	}
	.phx-hdr-emergency {
		font-size: 12px;
		padding: 5px 14px;
	}
	.phx-hdr-navbar-inner {
		padding: 0 20px;
		min-height: 60px;
	}
	.phx-hdr-menu > li > a {
		padding: 8px 8px;
		font-size: 14px;
	}
	/* Hide desktop nav and CTA — both move into the hamburger menu */
	.phx-hdr-nav {
		display: none;
	}
	.phx-hdr-cta:not(.phx-hdr-cta--mobile) {
		display: none;
	}
	.phx-hdr-burger {
		display: flex;
	}
}

/* ── Mobile: ≤ 767px ── */
@media (max-width: 767px) {
	/* Top bar stacks vertically */
	.phx-hdr-topbar-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 10px 16px;
	}
	.phx-hdr-topbar-left {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.phx-hdr-topbar-sep {
		display: none;
	}
	.phx-hdr-topbar-right {
		margin-top: 4px;
	}
	.phx-hdr-emergency {
		padding: 4px 12px;
		font-size: 12px;
	}

	/* Navbar simplifies */
	.phx-hdr-navbar-inner {
		padding: 0 12px;
		min-height: 55px;
	}
	.phx-hdr-nav {
		display: none; /* hidden on mobile, shown in overlay */
	}
	.phx-hdr-cta:not(.phx-hdr-cta--mobile) {
		display: none; /* hidden, shown inside mobile menu */
	}
	.phx-hdr-burger {
		display: flex;
	}
	.phx-hdr-wa {
		width: 38px;
		height: 38px;
	}
	.phx-hdr-wa svg {
		width: 20px;
		height: 20px;
	}
}

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
	.phx-hdr-topbar,
	.phx-hdr-burger,
	.phx-mobile-menu,
	.phx-mobile-backdrop {
		display: none !important;
	}
}
