/* =========================================================================
   Murugan PVC Pipes — Site header v4
   Hand-written, scoped to .mpp-head. Loaded site-wide (the header renders on
   every page), after assets/home.css.

   The utility bar, the sticky bar and the mobile drawer are SIBLINGS rather
   than children of one wrapper: `position: sticky` is constrained to its
   parent's box, so nesting the bar inside a short wrapper let it stick for
   only ~40px before scrolling away. Each root carries .mpp-head, so the
   shared tokens and descendant rules below apply to all of them.
   ========================================================================= */

.mpp-head {
	--h-ink: #0E2233;
	--h-ink-2: #132B3E;
	--h-hydro: #1D5B7C;
	--h-aqua: #3E9A9E;
	--h-aqua-lt: #5FB8B0;
	--h-mist: #DCE3E6;
	--h-paper: #F4F6F7;
	--h-muted: #54697A;
	--h-grad: linear-gradient(120deg, #1D5B7C 0%, #3E9A9E 100%);
	--h-gutter: clamp(20px, 5vw, 40px);
	--h-max: 1240px;
	--h-bar: 78px;

	font-family: Inter, "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.mpp-head *,
.mpp-head *::before,
.mpp-head *::after {
	box-sizing: border-box;
}

/* Zero-specificity reset so single-class component rules still win. */
.mpp-head :where(p, ul, li, h2, address) {
	margin: 0;
	padding: 0;
}

.mpp-head :where(ul) {
	list-style: none;
}

.mpp-head :where(a) {
	text-decoration: none;
}

.mpp-head :where(img) {
	display: block;
	max-width: 100%;
	height: auto;
}

.mpp-head :where(svg) {
	flex: none;
}

.mpp-head .mpp-head__wrap {
	width: 100%;
	max-width: var(--h-max);
	margin-inline: auto;
	padding-inline: var(--h-gutter);
}

/* Anchor links (#products, #contact) must clear the sticky bar. */
html {
	scroll-padding-top: 96px;
}

/* =========================================================================
   UTILITY BAR
   ========================================================================= */

.mpp-head--util {
	position: relative;
	background: var(--h-ink);
	color: rgba(255, 255, 255, .62);
	font-size: 12.5px;
	line-height: 1.4;
}

.mpp-head--util .mpp-head__wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 42px;
}

.mpp-head__util-group {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.mpp-head__util-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, .62);
	min-width: 0;
	transition: color .25s ease;
}

.mpp-head__util-item svg {
	width: 14px;
	height: 14px;
	color: var(--h-aqua-lt);
	opacity: .85;
}

a.mpp-head__util-item:hover {
	color: #fff;
}

.mpp-head__util-item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpp-head__util-label {
	color: rgba(255, 255, 255, .4);
}

.mpp-head__util-social {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mpp-head__util-social a {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .07);
	color: rgba(255, 255, 255, .75);
	transition: background-color .25s ease, color .25s ease;
}

.mpp-head__util-social a:hover {
	background: var(--h-grad);
	color: #fff;
}

.mpp-head__util-social svg {
	width: 13px;
	height: 13px;
}

/* =========================================================================
   STICKY BAR
   ========================================================================= */

.mpp-head--bar {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--h-mist);
	transition: box-shadow .3s ease, background-color .3s ease;
}

.mpp-head--bar.is-stuck {
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 1px 0 rgba(19, 43, 62, .06), 0 18px 40px -28px rgba(19, 43, 62, .55);
}

.mpp-head--bar .mpp-head__wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: var(--h-bar);
	transition: height .3s ease;
}

/* .mpp-head--bar.is-stuck .mpp-head__wrap {
	height: 66px;
} */

/* Logo */
.mpp-head__logo {
	display: inline-flex;
	align-items: center;
	flex: none;
}

.mpp-head__logo img {
	height: 50px;
	width: auto;
	transition: height .3s ease;
}

/* .mpp-head--bar.is-stuck .mpp-head__logo img {
	height: 42px;
} */

/* Primary nav */
.mpp-head__nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-inline: auto;
}

.mpp-head__nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--h-ink-2);
	white-space: nowrap;
	transition: color .25s ease;
}

.mpp-head__nav a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--h-grad);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.mpp-head__nav a:hover {
	color: var(--h-hydro);
}

.mpp-head__nav a:hover::after {
	transform: scaleX(1);
}

.mpp-head__nav a[aria-current="page"] {
	color: var(--h-hydro);
}

.mpp-head__nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

/* Right-hand actions */
.mpp-head__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.mpp-head__call {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--h-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 12px 26px -14px rgba(29, 91, 124, .9);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), filter .25s ease, box-shadow .25s ease;
}

.mpp-head__call:hover {
	color: #fff;
	transform: translateY(-2px);
	filter: brightness(1.07);
}

.mpp-head__call svg {
	width: 15px;
	height: 15px;
}

/* Hamburger */
.mpp-head__toggle {
	display: none;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--h-mist);
	border-radius: 14px;
	background: #fff;
	color: var(--h-ink-2);
	cursor: pointer;
	transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.mpp-head__toggle:hover {
	border-color: var(--h-aqua);
	color: var(--h-hydro);
}

.mpp-head__toggle-bars {
	display: block;
	position: relative;
	width: 20px;
	height: 14px;
}

.mpp-head__toggle-bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .2s ease, top .3s ease;
}

.mpp-head__toggle-bars span:nth-child(1) {
	top: 0;
}

.mpp-head__toggle-bars span:nth-child(2) {
	top: 6px;
}

.mpp-head__toggle-bars span:nth-child(3) {
	top: 12px;
}

.mpp-head__toggle[aria-expanded="true"] .mpp-head__toggle-bars span:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.mpp-head__toggle[aria-expanded="true"] .mpp-head__toggle-bars span:nth-child(2) {
	opacity: 0;
}

.mpp-head__toggle[aria-expanded="true"] .mpp-head__toggle-bars span:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

/* =========================================================================
   MOBILE DRAWER
   ========================================================================= */

.mpp-head--scrim {
	position: fixed;
	inset: 0;
	z-index: 70;
	background: rgba(9, 24, 36, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}

.mpp-head--scrim.is-open {
	opacity: 1;
	visibility: visible;
}

.mpp-head--drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 71;
	width: min(380px, 88vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -30px 0 70px -30px rgba(9, 24, 36, .6);
	transform: translateX(102%);
	visibility: hidden;
	transition: transform .38s cubic-bezier(.2, .7, .2, 1), visibility .38s;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mpp-head--drawer.is-open {
	transform: none;
	visibility: visible;
}

.mpp-head__drawer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px var(--h-gutter);
	border-bottom: 1px solid var(--h-mist);
}

.mpp-head__drawer-top img {
	height: 42px;
	width: auto;
}

.mpp-head__close {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--h-mist);
	border-radius: 12px;
	background: #fff;
	color: var(--h-ink-2);
	cursor: pointer;
	flex: none;
	transition: border-color .25s ease, color .25s ease;
}

.mpp-head__close:hover {
	border-color: var(--h-aqua);
	color: var(--h-hydro);
}

.mpp-head__close svg {
	width: 19px;
	height: 19px;
}

.mpp-head__drawer-nav {
	padding: 8px var(--h-gutter);
}

.mpp-head__drawer-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 0;
	border-bottom: 1px solid var(--h-mist);
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--h-ink-2);
	transition: color .25s ease, padding-left .25s ease;
}

.mpp-head__drawer-nav a svg {
	width: 16px;
	height: 16px;
	color: var(--h-mist);
	transition: color .25s ease, transform .25s ease;
}

.mpp-head__drawer-nav a:hover,
.mpp-head__drawer-nav a[aria-current="page"] {
	color: var(--h-hydro);
	padding-left: 6px;
}

.mpp-head__drawer-nav a:hover svg,
.mpp-head__drawer-nav a[aria-current="page"] svg {
	color: var(--h-aqua);
	transform: translateX(3px);
}

.mpp-head__drawer-foot {
	margin-top: auto;
	padding: 22px var(--h-gutter) 28px;
	background: var(--h-paper);
	border-top: 1px solid var(--h-mist);
}

.mpp-head__drawer-contact {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
}

.mpp-head__drawer-contact a,
.mpp-head__drawer-contact p {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 13.8px;
	line-height: 1.55;
	color: var(--h-muted);
	overflow-wrap: anywhere;
}

.mpp-head__drawer-contact svg {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: var(--h-aqua);
}

.mpp-head__drawer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 15px 22px;
	border-radius: 999px;
	background: var(--h-grad);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 14px 28px -14px rgba(29, 91, 124, .9);
}

.mpp-head__drawer-cta:hover {
	color: #fff;
	filter: brightness(1.07);
}

.mpp-head__drawer-cta svg {
	width: 16px;
	height: 16px;
}

.mpp-head__drawer-social {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.mpp-head__drawer-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--h-mist);
	color: var(--h-ink-2);
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.mpp-head__drawer-social a:hover {
	background: var(--h-grad);
	border-color: transparent;
	color: #fff;
}

.mpp-head__drawer-social svg {
	width: 17px;
	height: 17px;
}

/* Lock the page behind the open drawer. */
body.mpp-nav-open {
	overflow: hidden;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Tighten the row before dropping the nav. Measured widths at full size:
   logo 178 + nav 537 + actions 181 + gaps 40 + gutters 80 = 1016px minimum,
   so trimming the padding here keeps the real nav down to 1000px instead of
   handing 1024px laptops a hamburger and an empty middle. */
@media (max-width: 1180px) {
	.mpp-head__nav a {
		padding: 10px 10px;
		font-size: 12.5px;
		letter-spacing: .04em;
	}

	.mpp-head__nav a::after {
		left: 10px;
		right: 10px;
	}

	.mpp-head__call {
		padding: 11px 18px;
		font-size: 13.5px;
	}
}

/* Nav collapses into the drawer. */
@media (max-width: 1000px) {

	.mpp-head__nav {
		display: none;
	}

	.mpp-head__toggle {
		display: grid;
	}

	.mpp-head__actions {
		margin-left: auto;
	}
}

@media (max-width: 900px) {
	.mpp-head--util {
		display: none;
	}
}

/* Below this the phone pill crowds the logo — the drawer carries the CTA. */
@media (max-width: 560px) {
	.mpp-head {
		--h-bar: 68px;
	}

	.mpp-head__call {
		display: none;
	}

	.mpp-head__logo img {
		height: 42px;
	}

	.mpp-head--bar.is-stuck .mpp-head__logo img {
		height: 38px;
	}

	.mpp-head--bar.is-stuck .mpp-head__wrap {
		height: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.mpp-head *,
	.mpp-head *::before,
	.mpp-head *::after {
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
	}

	.mpp-head__call:hover {
		transform: none;
	}

	html {
		scroll-behavior: auto;
	}
}
