/* Momentum Environmental - Disposal Facilities page (page-disposal-facilities.php)
   Prefix: mom-disp | mobile-first | breakpoints 640px, 1024px
   Card treatment mirrors the current mom-locs cards: map thumbnail on top,
   white details panel below, phone number as a pill with a Font Awesome icon. */

.mom-disp {
	margin: 0;
	padding: 0;
}

/* Divi adds side padding to sections below 1350px; remove it so the hero stays full width */
@media (max-width: 1350px) {
	.mom-disp section {
		padding-left: 0px !important;
		padding-right: 0px !important;
	}
}

/* Wide hero band: full-width image with the H1 sitting on a green fade */
.mom-disp-hero {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: #1c3f31;
	isolation: isolate;
}

.mom-disp-hero-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mom-disp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28, 63, 49, 0) 30%, rgba(28, 63, 49, 0.9) 100%);
}

.mom-disp-hero-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 28px;
}

.mom-disp-title {
	margin: 0;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 700;
	color: #ffffff;
}

/* Content container */
.mom-disp-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 72px;
}

/* Intro copy sits below the grid, full content width */
.mom-disp-intro {
	margin-top: 40px;
}

.mom-disp-lede {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: #3d4a44;
}

/* Grid */
.mom-disp-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

/* Card: map thumbnail on top, details panel below */
.mom-disp-card {
	position: relative; /* stretched-link anchor */
	display: flex;
	flex-direction: column;
	border: 1px solid #d9e2dc;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	color: #1c3f31;
	transition: box-shadow 220ms ease, border-color 220ms ease;
}

.mom-disp-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e6efe9;
	border-bottom: 1px solid #d9e2dc;
}

.mom-disp-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 320ms ease;
}

/* Darkened overlay so the white facility name reads over any map */
.mom-disp-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(28, 63, 49, 0.55);
	transition: background-color 220ms ease;
}

.mom-disp-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 22px;
}

/* Facility name centred over the thumbnail */
.mom-disp-card-title {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 700;
	text-align: center;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.mom-disp-card-permit {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: #5a7d3c;
}

.mom-disp-card-address {
	margin: 0 0 8px;
	font-style: normal;
	font-size: 15px;
	line-height: 1.5;
	color: #3d4a44;
}

/* Stretched link: the title anchor covers the whole card */
.mom-disp-card-link {
	color: inherit;
	text-decoration: none;
}

.mom-disp-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* Phone pill: sits above the stretched link so it stays independently tappable */
.mom-disp-card-phone {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: 4px;
	padding: 7px 14px 7px 12px;
	border: 1px solid #c6d9cd;
	border-radius: 999px;
	background: #eef5f0;
	color: #1c3f31;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

/* Font Awesome 7 phone icon (font-awesome is already enqueued by the child theme) */
.mom-disp-card-phone::before {
	content: "\f095";
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	font-size: 13px;
	line-height: 1;
	color: #5a7d3c;
}

.mom-disp-card-phone:hover,
.mom-disp-card-phone:focus-visible {
	background: #1c3f31;
	border-color: #1c3f31;
	color: #ffffff;
	text-decoration: none;
}

.mom-disp-card-phone:hover::before,
.mom-disp-card-phone:focus-visible::before {
	color: #8dc63f;
}

.mom-disp-card-cta {
	display: block;
	margin-top: auto;
	padding-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: #5a7d3c;
}

/* Hover and focus states for the whole card */
.mom-disp-card:hover,
.mom-disp-card:focus-within {
	border-color: #8dc63f;
	box-shadow: 0 6px 20px rgba(28, 63, 49, 0.12);
}

.mom-disp-card:hover .mom-disp-card-img,
.mom-disp-card:focus-within .mom-disp-card-img {
	transform: scale(1.04);
}

.mom-disp-card:hover .mom-disp-card-media::after,
.mom-disp-card:focus-within .mom-disp-card-media::after {
	background: rgba(28, 63, 49, 0.42);
}

.mom-disp-card:hover .mom-disp-card-cta,
.mom-disp-card:focus-within .mom-disp-card-cta {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mom-disp-card-link:focus-visible {
	outline: none;
}

.mom-disp-card:focus-within {
	outline: 3px solid #8dc63f;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.mom-disp-card,
	.mom-disp-card-img,
	.mom-disp-card-media::after,
	.mom-disp-card-phone {
		transition: none;
	}
	.mom-disp-card:hover .mom-disp-card-img,
	.mom-disp-card:focus-within .mom-disp-card-img {
		transform: none;
	}
}

@media (min-width: 640px) {
	.mom-disp-hero {
		height: 340px;
	}
	.mom-disp-hero-body {
		padding: 0 32px 36px;
	}
	.mom-disp-title {
		font-size: 44px;
	}
	.mom-disp-inner {
		padding: 56px 32px 96px;
	}
	.mom-disp-intro {
		margin-top: 48px;
	}
	.mom-disp-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.mom-disp-hero {
		height: 420px;
	}
	.mom-disp-title {
		font-size: 52px;
	}
	.mom-disp-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
