/**
 * Pool Ready Home - Header
 * Top bar, site header, primary navigation and the mobile menu drawer.
 */

/* ==========================================================================
   1. Top bar
   ========================================================================== */

.prh-topbar {
	/* background: #ECF1F5; */
	color: var(--prh-on-dark-70);
	position: relative;
}
.prh-topbar::before {
    content: "";
    width: 40%;
    height: 100%;
    background: #6AD1DD;
	left:0%;
    position: absolute;
    clip-path: polygon(0 1%, 100% 0%, 93% 100%, 0% 100%);
    z-index: -1;
}
.prh-topbar::after {
    content: "";
    width: 63%;
    height: 100%;
    background: #ECF1F5;
    position: absolute;
    right: 0%;
    clip-path: polygon(4% 1%, 100% 0%, 100% 100%, 0% 100%);
    z-index: -1;
    top: 0;
}
.prh-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--prh-space-4);
	height: var(--prh-topbar-height);
	font-size: var(--prh-fs-xs);
}

.prh-topbar__text {
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
	color: white;
}

.prh-topbar__follow {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--prh-space-3);
	color: var(--prh-navy-darker);
}

.prh-topbar__follow-label {
	white-space: nowrap;
}

.prh-topbar__socials {
	display: flex;
	align-items: center;
	gap: var(--prh-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.prh-topbar__socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: var(--prh-radius-circle);
	background: rgba(255, 255, 255, 0.12);
	color: var(--prh-navy-darker);
	transition: background-color var(--prh-transition);
}

.prh-topbar__socials a:hover {
	background: var(--prh-teal);
	color: var(--prh-white);
}

.prh-topbar__socials svg {
	width: 13px;
	height: 13px;
}

@media (max-width: 640px) {
	.prh-topbar__follow-label {
		display: none;
	}
}

/* ==========================================================================
   2. Site header
   ========================================================================== */

.prh-header {
	position: relative;
	z-index: var(--prh-z-header);
	background: var(--prh-white);
	box-shadow: var(--prh-shadow-sm);
}

.prh-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--prh-space-6);
	height: var(--prh-header-height);
}

/* Overlay variant: transparent, sits on top of the hero on the front page. */
.prh-header--overlay {
	position: absolute;
	top: var(--prh-topbar-height);
	left: 0;
	right: 0;
	background: transparent;
	box-shadow: none;
}

.prh-header--overlay a,
.prh-header--overlay .prh-branding__name {
	color: var(--prh-white);
}

/* Sticky variant: pinned to the top, turns solid white once scrolled. */
.prh-header--sticky {
	position: sticky;
	top: 0;
	background: transparent;
	box-shadow: none;
	transition: background-color var(--prh-transition), box-shadow var(--prh-transition);
}

.prh-header--sticky:not(.is-scrolled) a,
.prh-header--sticky:not(.is-scrolled) .prh-branding__name {
	color: var(--prh-white);
}

.prh-header--sticky:not(.is-scrolled) .prh-header__phone-icon {
	background: rgba(255, 255, 255, 0.15);
	color: var(--prh-white);
}

.prh-header--sticky:not(.is-scrolled) .prh-header__phone-label {
	color: var(--prh-on-dark-70);
}

.prh-header--sticky:not(.is-scrolled) .prh-header__phone-value {
	color: var(--prh-white);
}

.prh-header--sticky:not(.is-scrolled) .prh-menu-toggle {
	color: var(--prh-white);
}

.prh-header--sticky.is-scrolled {
	background: var(--prh-white);
	box-shadow: var(--prh-shadow-sm);
}

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

.prh-branding {
	display: flex;
	align-items: center;
	gap: var(--prh-space-2);
	flex-shrink: 0;
}

.prh-branding__logo {
	width: auto;
}

.prh-branding__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.prh-branding__name {
	color: var(--prh-ink);
	font-size: 1.375rem;
	font-weight: var(--prh-fw-bold);
}

.prh-branding__tagline {
	color: var(--prh-grey-500);
	font-size: var(--prh-fs-xs);
}

/* ------------------------------------------------------------------------
   Primary navigation
   ------------------------------------------------------------------------ */

.prh-nav {
	display: flex;
	align-items: center;
	gap: var(--prh-space-8);
}

.prh-nav__list {
	display: flex;
	align-items: center;
	gap: var(--prh-space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.prh-nav__list a {
	color: var(--prh-ink);
	font-size: var(--prh-fs-sm);
	font-weight: var(--prh-fw-medium);
	text-transform:uppercase;
}

.prh-header--overlay .prh-nav__list a {
	color: var(--prh-white);
}

.prh-nav__list > li {
	position: relative;
}

.prh-nav__list > li.menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.prh-nav__list > li.menu-item-has-children > a::after {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--prh-transition);
}

.prh-nav__list > li.menu-item-has-children:hover > a::after {
	transform: rotate(225deg);
}

.prh-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: 0;
	z-index: var(--prh-z-drawer);
	min-width: 220px;
	margin: 0;
	padding: var(--prh-space-2);
	border-radius: var(--prh-radius-md);
	background: var(--prh-white);
	box-shadow: var(--prh-shadow-lg);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--prh-transition), transform var(--prh-transition), visibility var(--prh-transition);
}

.prh-nav__list > li.menu-item-has-children:hover .sub-menu,
.prh-nav__list > li.menu-item-has-children:focus-within .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.prh-nav__list .sub-menu a {
	display: block;
	padding: var(--prh-space-2) var(--prh-space-3);
	border-radius: var(--prh-radius-sm);
	color: var(--prh-ink);
	white-space: nowrap;
}

.prh-nav__list .sub-menu a:hover {
	background: var(--prh-teal-10);
	color: var(--prh-teal);
}

/* ------------------------------------------------------------------------
   Header actions - phone + CTA + mobile toggle
   ------------------------------------------------------------------------ */

.prh-header__actions {
	display: flex;
	align-items: center;
	gap: var(--prh-space-5);
	flex-shrink: 0;
}

.prh-header__phone {
	display: flex;
	align-items: center;
	gap: var(--prh-space-3);
}

.prh-header__phone-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: var(--prh-radius-circle);
	background: var(--prh-teal-10);
	color: var(--prh-teal);
}

.prh-header--overlay .prh-header__phone-icon {
	background: rgba(255, 255, 255, 0.15);
	color: var(--prh-white);
}

.prh-header__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.prh-header__phone-label {
	color: var(--prh-grey-500);
	font-size: var(--prh-fs-xs);
}

.prh-header--overlay .prh-header__phone-label {
	color: var(--prh-on-dark-70);
}

.prh-header__phone-value {
	color: var(--prh-ink);
	font-weight: var(--prh-fw-semibold);
}

.prh-header--overlay .prh-header__phone-value {
	color: var(--prh-white);
}

.prh-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--prh-radius-sm);
	background: transparent;
	color: var(--prh-ink);
}

.prh-header--overlay .prh-menu-toggle {
	color: var(--prh-white);
}

.prh-menu-toggle__bars,
.prh-menu-toggle__bars::before,
.prh-menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--prh-transition), opacity var(--prh-transition);
}

.prh-menu-toggle__bars {
	position: relative;
}

.prh-menu-toggle__bars::before,
.prh-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.prh-menu-toggle__bars::before {
	top: -7px;
}

.prh-menu-toggle__bars::after {
	top: 7px;
}

.prh-nav.is-open ~ .prh-header__actions .prh-menu-toggle .prh-menu-toggle__bars,
.prh-menu-toggle[aria-expanded="true"] .prh-menu-toggle__bars {
	background: transparent;
}

.prh-menu-toggle[aria-expanded="true"] .prh-menu-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.prh-menu-toggle[aria-expanded="true"] .prh-menu-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}
.is-mobile{
	display: none;
}
/* ==========================================================================
   3. Mobile navigation drawer
   ========================================================================== */

@media (max-width: 1024px) {
	.prh-nav__cta {
		display: none;
	}

	.prh-menu-toggle {
		display: inline-flex;
	}

	.prh-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: var(--prh-z-drawer);
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: var(--prh-space-6);
		width: min(340px, 84vw);
		padding: calc(var(--prh-header-height) + var(--prh-space-6)) var(--prh-space-6) var(--prh-space-8);
		background: var(--prh-white);
		box-shadow: var(--prh-shadow-lg);
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform var(--prh-transition-slow);
	}

	.prh-nav.is-open {
		transform: translateX(0);
	}

	.prh-header--overlay .prh-nav a,
	.prh-nav a {
		color: var(--prh-ink);
	}

	.prh-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--prh-space-4);
		width: 100%;
	}

	.prh-nav__list .sub-menu {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		box-shadow: none;
		display: none;
		margin-top: var(--prh-space-2);
		padding-left: var(--prh-space-4);
	}

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

	.prh-nav__cta.is-mobile {
		display: block;
		width: 100%;
	}
}

.prh-nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: calc(var(--prh-z-drawer) - 1);
	background: rgba(11, 34, 48, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--prh-transition), visibility var(--prh-transition);
}

.prh-nav-backdrop.is-open {
	display: none;
}

@media (min-width: 1025px) {
	.prh-nav-backdrop {
		display: none;
	}
}
