/* =========================================================================
   Murugan PVC Pipes — Site footer v4
   Hand-written, fully scoped to .mpp-foot. Loaded site-wide (the footer is
   shared by every page), after assets/home.css.
   Tokens are declared locally so this file does not depend on home-v4.css,
   which only loads on the front page.
   ========================================================================= */

.mpp-foot {
	--f-ink: #0E2233;
	--f-ink-deep: #081726;
	--f-hydro: #1D5B7C;
	--f-aqua: #3E9A9E;
	--f-aqua-lt: #5FB8B0;
	--f-grad: linear-gradient(120deg, #1D5B7C 0%, #3E9A9E 100%);
	--f-body: rgba(255, 255, 255, .68);
	--f-strong: rgba(255, 255, 255, .92);
	--f-line: rgba(255, 255, 255, .1);
	--f-gutter: clamp(20px, 5vw, 40px);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--f-ink);
	color: var(--f-body);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

/* :where() keeps this reset at zero specificity, so the single-class
   component rules below still win (a plain `.mpp-foot h2` selector would
   outrank `.mpp-foot__h` and quietly drop its padding/margin). */
.mpp-foot :where(h2, h3, p, ul, li, figure, address) {
	margin: 0;
	padding: 0;
}

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

.mpp-foot img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mpp-foot svg {
	flex: none;
}

.mpp-foot a {
	text-decoration: none;
}

/* Gradient hairline along the very top edge */
.mpp-foot::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--f-grad);
	z-index: 2;
}

/* Ambient glow */
.mpp-foot__glow {
	position: absolute;
	z-index: -1;
	width: 40rem;
	height: 40rem;
	right: -14rem;
	top: -18rem;
	border-radius: 50%;
	filter: blur(90px);
	background: radial-gradient(circle, rgba(62, 154, 158, .38), transparent 70%);
	pointer-events: none;
}

.mpp-foot__pattern {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .04;
	background-image:
		linear-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .9) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(110% 80% at 80% 0%, #000 20%, transparent 75%);
	mask-image: radial-gradient(110% 80% at 80% 0%, #000 20%, transparent 75%);
	pointer-events: none;
}

.mpp-foot__wrap {
	position: relative;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: var(--f-gutter);
}

/* ---------- Main grid ---------- */

.mpp-foot__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.5fr;
	gap: clamp(30px, 3.4vw, 56px);
	padding-block: clamp(46px, 5.4vw, 76px) clamp(34px, 3.6vw, 52px);
}

/* ---------- Brand column ---------- */

.mpp-foot__logo {
	display: inline-block;
}

.mpp-foot__logo img {
	height: 52px;
	width: auto;
}

.mpp-foot__blurb {
	margin-top: 20px;
	max-width: 38ch;
	font-size: 14.5px;
	line-height: 1.72;
	color: var(--f-body);
	overflow-wrap: anywhere;
}

.mpp-foot__social {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mpp-foot__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid var(--f-line);
	color: var(--f-strong);
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.mpp-foot__social a:hover {
	background: var(--f-grad);
	border-color: transparent;
	color: #fff;
	transform: translateY(-3px);
}

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

/* ---------- Column headings ---------- */

.mpp-foot__h {
	position: relative;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	padding-bottom: 14px;
	margin-bottom: 20px;
}

.mpp-foot__h::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 30px;
	height: 2px;
	border-radius: 2px;
	background: var(--f-grad);
}

/* ---------- Link lists ---------- */

.mpp-foot__links {
	display: grid;
	gap: 4px;
}

/* padding-block (rather than list gap) so the whole row is tappable — the
   link text alone is only ~21px tall, well under a comfortable touch target. */
.mpp-foot__links a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding-block: 8px;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--f-body);
	transition: color .25s ease, gap .25s ease;
}

.mpp-foot__links a::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--f-aqua);
	opacity: .55;
	flex: none;
	transition: opacity .25s ease, transform .25s ease;
}

.mpp-foot__links a:hover {
	color: #fff;
	gap: 13px;
}

.mpp-foot__links a:hover::before {
	opacity: 1;
	transform: scale(1.35);
}

.mpp-foot__links a[aria-current="page"] {
	color: var(--f-aqua-lt);
	font-weight: 600;
}

/* ---------- About list ---------- */

.mpp-foot__about {
	display: grid;
	gap: 14px;
}

.mpp-foot__about li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.62;
	color: var(--f-body);
}

.mpp-foot__about svg {
	width: 17px;
	height: 17px;
	margin-top: 2px;
	color: var(--f-aqua-lt);
}

/* ---------- Contact list ---------- */

.mpp-foot__contact {
	display: grid;
	gap: 16px;
}

.mpp-foot__row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14.3px;
	line-height: 1.6;
	color: var(--f-body);
	font-style: normal;
	transition: color .25s ease;
}

/* The email address is one long unbreakable token — let it wrap rather than
   widen the column on narrow screens. */
.mpp-foot__row>span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.mpp-foot__about li>span {
	min-width: 0;
	overflow-wrap: anywhere;
}

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

.mpp-foot__ico {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid var(--f-line);
	color: var(--f-aqua-lt);
	flex: none;
	transition: background-color .25s ease, color .25s ease;
}

a.mpp-foot__row:hover .mpp-foot__ico {
	background: var(--f-grad);
	color: #fff;
}

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

.mpp-foot__row b {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .42);
	margin-bottom: 3px;
}

.mpp-foot__cta {
	margin-top: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--f-grad);
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 14px 28px -14px rgba(62, 154, 158, .9);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), filter .25s ease;
}

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

.mpp-foot__cta svg {
	width: 16px;
	height: 16px;
	transition: transform .25s ease;
}

.mpp-foot__cta:hover svg {
	transform: translateX(3px);
}

/* ---------- Bottom bar ---------- */

.mpp-foot__bar {
	position: relative;
	background: var(--f-ink-deep);
	border-top: 1px solid rgba(255, 255, 255, .07);
}

.mpp-foot__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 20px;
	font-size: 12.8px;
	color: rgba(255, 255, 255, .5);
}

.mpp-foot__bar a {
	color: rgba(255, 255, 255, .72);
	transition: color .25s ease;
}

.mpp-foot__bar-inner p a {
	display: inline-block;
	padding-block: 6px;
}

.mpp-foot__bar a:hover {
	color: var(--f-aqua-lt);
}

.mpp-foot__top-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--f-line);
	font-weight: 600;
	transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.mpp-foot__top-link svg {
	width: 14px;
	height: 14px;
	transition: transform .25s ease;
}

.mpp-foot__top-link:hover {
	border-color: var(--f-aqua);
	background: rgba(62, 154, 158, .12);
	color: #fff;
}

.mpp-foot__top-link:hover svg {
	transform: translateY(-2px);
}

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

/* The floating WhatsApp button is fixed at the bottom-right of the viewport.
   Once the container stops being centred with wide margins it lands on top of
   the right-hand item in the bottom bar, so reserve that corner. */
@media (max-width: 1320px) {
	.mpp-foot__bar-inner {
		padding-right: 76px;
	}
}

@media (max-width: 1080px) {
	.mpp-foot__grid {
		grid-template-columns: 1fr 1fr;
		gap: clamp(30px, 4vw, 44px);
	}

	/* Brand block keeps the full width above the three link columns */
	.mpp-foot__col--brand {
		grid-column: 1 / -1;
	}

	/* About Us is the tallest column, so it takes the right-hand track for both
	   remaining rows; Explore and Contact then stack down the left. Without
	   this, Contact lands on a row of its own and leaves half the row empty. */
	.mpp-foot__col--about {
		grid-column: 2;
		grid-row: span 2;
	}

	.mpp-foot__blurb {
		max-width: 60ch;
	}
}

@media (max-width: 760px) {
	.mpp-foot__grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	/* Undo the two-column placement above — there is no second track here. */
	.mpp-foot__col--about {
		grid-column: 1;
		grid-row: auto;
	}

	.mpp-foot__h {
		margin-bottom: 12px;
	}

	.mpp-foot__links a {
		padding-block: 10px;
	}

	.mpp-foot__bar-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		text-align: left;
		/* Stacked and left-aligned here, so nothing sits under the bubble. */
		padding-right: 0;
	}

	.mpp-foot__top-link {
		order: 3;
	}
}

@media (max-width: 480px) {
	.mpp-foot__logo img {
		height: 44px;
	}

	.mpp-foot__cta {
		width: 100%;
	}
}

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

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

	.mpp-foot__social a:hover,
	.mpp-foot__cta:hover,
	.mpp-foot__top-link:hover svg {
		transform: none;
	}
}
