/**
 * Bulk Material Handling Landing Page Styles
 *
 * Page-specific stylesheet for page-templates/bulk-material-handling.php.
 *
 * Layout strategy (mirrors full-width.php conventions):
 *   - The page sits in <main class="col-12 main-full"> inside #content
 *     (which is .container-fluid in header.php), giving true edge-to-edge bleed.
 *   - Full-bleed sections use Bootstrap's `row no-gutters`.
 *   - Constrained sections wrap their content in the theme's `.container`
 *     (max-width 1500px at xl per styles.scss).
 *
 * Tokens mirror the theme palette so this page composes cleanly with the
 * global theme CSS.
 *
 * @package Greenfield
 * @since   1.0.0
 */

:root {
	--gp-green: #007934;
	--gp-green-dark: #1a5632;
	--gp-green-darker: #0d3a22;
	--gp-red: #cc3333;
	--gp-text: #1f2933;
	--gp-text-muted: #4a5560;
	--gp-light-grey: #f3f3f3;
	--gp-border: #e2e6ea;
	--gp-white: #ffffff;
	--gp-black: #000000;
}

/* ==========================================================================
   Page wrapper
   ========================================================================== */

.bmh-page {
	font-family: 'Nunito Sans', sans-serif;
	color: var(--gp-text);
	background-color: var(--gp-white);
	padding-top: 5rem;
}

.bmh-page * { box-sizing: border-box; }

.bmh-page img { max-width: 100%; display: block; }

.bmh-page h1,
.bmh-page h2,
.bmh-page h3,
.bmh-page h4 {
	font-weight: 900;
	margin: 0;
}

/* Theme's .container already handles responsive max-widths; just add a
   little extra page padding on small screens. */
.bmh-page .container { padding-left: 1.25rem; padding-right: 1.25rem; }

/* ==========================================================================
   Buttons (extends Bootstrap .btn)
   ========================================================================== */

.bmh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.85rem 1.6rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 0;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bmh-btn--solid,
.bmh-btn--solid:not(:disabled):not(.disabled) {
	background-color: var(--gp-green-dark);
	color: var(--gp-white);
	border-color: var(--gp-green-dark);
}

.bmh-btn--solid:hover,
.bmh-btn--solid:focus {
	background-color: var(--gp-green-darker);
	border-color: var(--gp-green-darker);
	color: var(--gp-white);
}

.bmh-btn--ghost {
	background-color: var(--gp-white);
	color: var(--gp-green-dark);
	border-color: var(--gp-green-dark);
}

.bmh-btn--ghost:hover,
.bmh-btn--ghost:focus {
	background-color: var(--gp-green-dark);
	color: var(--gp-white);
}

/* ==========================================================================
   Hero (full-bleed: row no-gutters)
   ========================================================================== */

.bmh-hero {
	background-color: var(--gp-white);
	min-height: 480px;
}

.bmh-hero__copy-col {
	display: flex;
	align-items: center;
	padding: 4rem 2rem 4rem 6vw;
}

.bmh-hero__copy {
    max-width: 730px;
    margin-left: auto;
    width: 100%;
}

.bmh-hero__copy > * {
    max-width: 560px;
}

.bmh-hero__title {
	font-size: 3rem;
	line-height: 1.2;
	margin-bottom: 1.25rem !important;
	text-transform: uppercase;
}

.bmh-hero__title-top { display: block; color: var(--gp-green-dark); }
.bmh-hero__title-bottom { display: block; color: var(--gp-text); }

.bmh-hero__lead {
	font-size: 1.1rem;
	color: var(--gp-text-muted);
	margin-bottom: 2rem;
}

.bmh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.bmh-hero__collage-col {
	overflow: hidden;
}

.bmh-hero__collage {
	max-width: 90%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	height: 100%;
	min-height: 460px;
	clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.bmh-hero__tile {
	position: relative;
	overflow: hidden;
	min-height: 220px;
}

.bmh-hero__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ==========================================================================
   Section helpers
   ========================================================================== */

.bmh-section { padding: 4rem 0; }

.bmh-section__heading { margin-bottom: 2.5rem; }
.bmh-section__heading--center { text-align: center; }

.bmh-section__heading h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	letter-spacing: 0.04em;
	color: var(--gp-green-dark);
	text-transform: uppercase;
}

.bmh-section__rule {
	display: block;
	width: 44px;
	height: 3px;
	background: var(--gp-green-dark);
	margin: 0.9rem auto 0;
}

.bmh-section__sub {
	color: var(--gp-text-muted);
	max-width: 720px;
	margin: 0.75rem auto 0;
}

/* ==========================================================================
   Problems Solved
   ========================================================================== */

.bmh-problems { background-color: var(--gp-white); }

.bmh-problems__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.25rem;
}

.bmh-problem-card {
	background-color: var(--gp-light-grey);
	padding: 1.75rem 1.25rem;
	text-align: center;
}

.bmh-problem-card__icon {
	margin-bottom: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 44px;
}

.bmh-problem-card__icon img {
	width: auto;
	height: 44px;
	max-width: 100%;
	object-fit: contain;
}

.bmh-problem-card__title {
	font-size: 1.6rem;
	margin-bottom: 0.65rem !important;
	color: var(--gp-text);
}

.bmh-problem-card p {
	font-size: 1.1rem;
	color: var(--gp-text-muted);
	margin: 0;
}

/* ==========================================================================
   Industries
   ========================================================================== */

.bmh-industries { background-color: var(--gp-white); padding-top: 0; }

.bmh-industries__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.bmh-industry-card {
	position: relative;
	height: 260px;
	overflow: hidden;
	display: block;
	color: var(--gp-white);
	transition: transform 0.25s ease;
	text-decoration: none;
}

.bmh-industry-card:hover { transform: translateY(-3px); color: var(--gp-white); }

.bmh-industry-card__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
}

.bmh-industry-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13, 58, 34, 0.92) 0%, rgba(13, 58, 34, 0.65) 45%, rgba(13, 58, 34, 0.1) 100%);
	display: flex;
	align-items: flex-end;
	padding: 1.25rem;
	z-index: 1;
}

.bmh-industry-card__inner { width: 100%; text-align: center; }

.bmh-industry-card__icon {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 0.4rem;
	min-height: 32px;
}

.bmh-industry-card__icon img {
	width: auto;
	height: 32px;
	max-width: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.bmh-industry-card h3 {
	color: var(--gp-white);
	font-size: 1.6rem;
	letter-spacing: 0.04em;
	margin-bottom: 0.6rem;
	text-transform: uppercase;
}

.bmh-industry-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: var(--gp-white);
	text-transform: uppercase;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	padding-top: 0.55rem;
	width: 100%;
	justify-content: center;
}

/* ==========================================================================
   Solution Categories
   ========================================================================== */

.bmh-solutions { background-color: var(--gp-white); }

.bmh-solutions__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.bmh-solution-card {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 1rem;
	background-color: var(--gp-light-grey);
	padding: 1rem;
}

.bmh-solution-card__media {
	width: 100%;
	height: 100%;
	min-height: 130px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.bmh-solution-card__body h3 {
	font-size: 1.2rem;
	color: var(--gp-green-dark);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.5rem;
	line-height: 1.25;
}

.bmh-solution-card__body ul {
	list-style: disc;
	padding-left: 1.1rem;
	margin: 0 0 0.75rem;
	color: var(--gp-text-muted);
	font-size: 1.1rem;
	line-height: 1.45;
}

.bmh-solution-card__body ul li { margin-bottom: 0.15rem; }

.bmh-solution-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gp-green-dark);
	text-decoration: none;
}

.bmh-solution-card__link:hover { color: var(--gp-green-darker); }

/* ==========================================================================
   Why Greenfield
   ========================================================================== */

.bmh-why { background-color: var(--gp-white); border-top: 1px solid var(--gp-border); }

.bmh-why__grid {
	display: grid;
	grid-template-columns: 1.05fr 1.6fr 1fr;
	gap: 2.5rem;
	align-items: flex-start;
}

.bmh-why__intro h2 {
	font-size: 1.6rem;
	color: var(--gp-green-dark);
	text-transform: uppercase;
	margin-bottom: 0.9rem;
}

.bmh-why__intro p {
	color: var(--gp-text-muted);
	font-size: 1.1rem;
}

.bmh-why__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gp-green-dark);
	text-decoration: none;
}

.bmh-why__pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.bmh-why-pillar { text-align: center; }

.bmh-why-pillar__icon {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 0.6rem;
	min-height: 40px;
}

.bmh-why-pillar__icon img {
	width: auto;
	height: 40px;
	max-width: 100%;
	object-fit: contain;
}

.bmh-why-pillar h4 {
	font-size: 1.4rem;
	letter-spacing: 0.08em;
	color: var(--gp-text);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.bmh-why-pillar p { font-size: 1.1rem; color: var(--gp-text-muted); margin: 0; }

.bmh-why__checklist { list-style: none; margin: 0; padding: 0; }

.bmh-why__checklist li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--gp-text);
	font-size: 1.1rem;
	padding: 0.4rem 0;
	font-weight: 600;
}

.bmh-why__checklist i { color: var(--gp-green-dark); font-size: 1.05rem; }

/* ==========================================================================
   Bottom CTA (full-bleed: row no-gutters)
   ========================================================================== */

.bmh-cta {
	background-color: var(--gp-light-grey);
	padding: 3rem 0;
	background-size: cover;
	background-position: center;
}

.bmh-cta__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 2rem;
	align-items: center;
}

.bmh-cta__copy h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	color: var(--gp-green-dark);
	margin-bottom: 0.75rem;
	font-weight: 800;
}

.bmh-cta__copy p { color: var(--gp-text-muted); font-size: 1.1rem; margin: 0; max-width: 540px; }

.bmh-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
}

.bmh-cta__actions .bmh-btn { width: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199.98px) {
	.bmh-problems__grid { grid-template-columns: repeat(3, 1fr); }
	.bmh-solutions__grid { grid-template-columns: repeat(2, 1fr); }
	.bmh-why__grid { grid-template-columns: 1fr 1fr; }
	.bmh-why__checklist {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.25rem 1rem;
	}
}

@media (max-width: 991.98px) {
	.bmh-hero__copy-col { padding: 3rem 1.5rem; }
	.bmh-hero__collage { clip-path: none; min-height: 360px; max-width: 100%;  }
	.bmh-industries__grid { grid-template-columns: repeat(2, 1fr); }
	.bmh-why__pillars { grid-template-columns: repeat(3, 1fr); }
	.bmh-cta__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
	.bmh-section { padding: 2.75rem 0; }
	.bmh-problems__grid { grid-template-columns: repeat(2, 1fr); }
	.bmh-problems__grid .bmh-problem-card:last-child { grid-column: 1 / -1; }
	.bmh-solutions__grid { grid-template-columns: 1fr; }
	.bmh-solution-card { grid-template-columns: 1fr; }
	.bmh-solution-card__media { min-height: 180px; }
	.bmh-industries__grid { grid-template-columns: 1fr; }
	.bmh-why__grid { grid-template-columns: 1fr; }
	.bmh-why__pillars { grid-template-columns: 1fr; }
	.bmh-why__checklist { grid-template-columns: 1fr; }
	.bmh-hero__title { font-size: 1.9rem; }
	.bmh-page { padding-top: 4rem; }
}

@media (max-width: 419.98px) {
	.bmh-btn { width: 100%; }
	.bmh-hero__actions { flex-direction: column; }
}
