/* =============================================================================
 * erp-supply.css — the `/supply` page.
 *
 * The source added `/supply` on its 2026-10-23 redesign: the distributor pitch
 * that used to BE its homepage now lives on its own page, and the homepage is
 * order-first (see erp-procure.css).
 *
 * Unlike the shopping homepage, the source ships NO separate stylesheet for
 * this page — every `.supply-*` / `.collections-section` rule is inside its
 * compiled `app.css`. These are those rules, extracted and reformatted; values
 * are the source's.
 *
 * Scoping note: the source's `body.page-supply` sets the page background, and
 * `.supply-page` the text colour. `erp_supply_body_class()` adds `page-supply`
 * so both keep matching.
 *
 * ⚠️ `.collections-section` is NOT supply-only in the source's CSS — it is a
 * shared component. It is kept here because /supply is currently the only page
 * that renders it; if another template starts using it, move it to erp-layout.
 *
 * @package erppeptide
 * ========================================================================== */

/* -------------------------------------------------------------- page shell */

body.page-supply {
	background: #f6f4ee;
	padding-top: 0;
}

.supply-page { color: #282828; }

.supply-page .container { max-width: 1320px; }

.supply-page .section-heading {
	max-width: 820px;
	margin: 0 auto 36px;
	text-align: center;
}

.supply-page .section-heading h2 { font-size: 2.6rem; margin-bottom: .9rem; }
.supply-page .section-heading p { color: #333; line-height: 1.7; }

.supply-page .media-card {
	background: linear-gradient(135deg, rgba(10, 26, 59, .08), rgba(10, 26, 59, .02));
	border: 1px dashed #e4e1d9;
	border-radius: 18px;
	min-height: 180px;
	position: relative;
	overflow: hidden;
}

.supply-page .media-card img { width: 100%; height: auto; display: block; }

.supply-page .card-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px dashed #e4e1d9;
	background: rgba(10, 26, 59, .08);
}

/* Our addition: the source leaves `.card-icon` as an empty dashed box on every
   card. We put the section's bootstrap-icon glyph inside it, because an empty
   placeholder square reads as a broken image on a live store. Same box, same
   dimensions — only the glyph is new. */
.supply-page .card-icon {
	display: grid;
	place-items: center;
	color: #0a1a3b;
	font-size: 1.25rem;
}

.supply-community .card-icon {
	border-color: rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .14);
	color: #fff;
	flex-shrink: 0;
}

/* -------------------------------------------------------------------- hero */

.supply-hero {
	padding: 0 0 70px;
	background: none;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.supply-hero .container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
	width: 100%;
}

.supply-hero .hero-gif-shell {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.supply-hero .hero-gif { width: 100%; height: auto; display: block; }

.supply-hero .hero-copy {
	position: absolute;
	right: clamp(24px, 6vw, 64px);
	bottom: clamp(24px, 6vh, 60px);
	z-index: 1;
	max-width: 520px;
	text-align: right;
}

.supply-hero h1 { font-size: 3.2rem; margin-bottom: 1rem; color: #000; text-shadow: none; }
.supply-hero h2 { font-size: 1.6rem; margin-bottom: 1.5rem; color: rgba(255, 255, 255, .9); text-shadow: 0 3px 14px rgba(0, 0, 0, .5); }
.supply-hero .hero-body { color: rgba(255, 255, 255, .85); line-height: 1.7; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* --------------------------------------------------------------- sections */

.supply-products,
.supply-assurance,
.supply-community,
.supply-testing,
.supply-pricing { padding: 80px 0; }

.supply-products { background: #fff; }
.supply-products .section-note { font-weight: 600; color: #0a1a3b; }

.supply-products .product-intro { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.supply-products .product-intro h3 { font-size: 1.6rem; margin-bottom: .9rem; }
.supply-products .product-intro-body { color: #333; line-height: 1.7; }

.supply-products .product-media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 32px;
}

.supply-products .media-card--large { min-height: 240px; }
.supply-products .media-action { position: absolute; left: 24px; bottom: 24px; }
.supply-products .media-action .btn { border-radius: 999px; }

.supply-assurance { background: linear-gradient(180deg, #f6f4ee 0%, #fff 100%); }

.supply-assurance .assurance-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.supply-assurance .assurance-card {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
	border: 1px solid #e4e1d9;
	min-height: 280px;
	display: grid;
	gap: 12px;
	align-content: start;
}

.supply-assurance ul { padding-left: 1.1rem; color: #333; line-height: 1.7; }
.supply-assurance .assurance-note { margin-top: 1rem; font-weight: 600; color: #0a1a3b; }

.supply-community { background: #0a1a3b; color: #fff; }

.supply-community .community-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.supply-community .community-copy h2 { font-size: 2.4rem; color: #fff; }
.supply-community .community-copy p { color: rgba(255, 255, 255, .75); line-height: 1.7; }
.supply-community .community-links { display: grid; gap: 16px; }

.supply-community .community-link-card {
	display: flex;
	gap: 14px;
	align-items: center;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border-radius: 18px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .18);
	transition: transform .2s ease, box-shadow .2s ease;
}

.supply-community .community-link-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

/* The source's card markup has an h3 + p with default margins inside a flex
   row, which pushes the text off-centre against the icon. */
.supply-community .community-link-card h3 { font-size: 1.1rem; margin: 0 0 2px; color: #fff; }
.supply-community .community-link-card p { margin: 0; font-size: .9rem; }

.supply-testing { background: #fff; }
.supply-testing .testing-media { max-width: 760px; margin: 0 auto 28px; }

.supply-testing .testing-card {
	max-width: 820px;
	margin: 0 auto;
	background: #f6f4ee;
	border-radius: 20px;
	padding: 24px;
	border: 1px solid #e4e1d9;
}

.supply-testing .testing-note { font-weight: 600; color: #0a1a3b; }

.supply-pricing { background: #fff; }
.supply-pricing .pricing-media { max-width: 760px; margin: 0 auto 28px; }

.supply-pricing .pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.supply-pricing .pricing-card {
	border-radius: 16px;
	padding: 22px;
	border: 1px solid #e4e1d9;
	background: #f6f4ee;
	display: grid;
	gap: 10px;
	align-content: start;
}

.supply-pricing .pricing-footer { margin-top: 24px; text-align: center; font-weight: 600; color: #0a1a3b; }
.supply-pricing .distributor-block { margin-top: 50px; padding-top: 40px; border-top: 1px solid #e4e1d9; }
.supply-pricing .distributor-header { max-width: 720px; margin: 0 auto 28px; text-align: center; }

.supply-pricing .distributor-media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 28px;
}

.supply-pricing .distributor-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.supply-pricing .distributor-card {
	background: #f6f4ee;
	border-radius: 16px;
	padding: 20px;
	border: 1px solid #e4e1d9;
	display: grid;
	gap: 10px;
	align-content: start;
}

@media (max-width: 991px) {
	.supply-hero .hero-copy { right: clamp(20px, 5vw, 40px); }
	.supply-products .product-media,
	.supply-assurance .assurance-grid,
	.supply-pricing .pricing-grid { grid-template-columns: 1fr 1fr; }
	.supply-pricing .distributor-grid { grid-template-columns: 1fr 1fr; }
	.supply-products .product-media,
	.supply-pricing .distributor-media { grid-template-columns: 1fr; }
	.supply-community .community-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.supply-products .product-media,
	.supply-assurance .assurance-grid,
	.supply-pricing .pricing-grid,
	.supply-pricing .distributor-grid { grid-template-columns: 1fr; }
	.supply-hero { padding: 30px 0 60px; }
	.supply-hero .hero-copy {
		text-align: left;
		left: clamp(20px, 6vw, 36px);
		right: auto;
		bottom: clamp(20px, 6vh, 36px);
	}
	.supply-hero h1 { font-size: 2.4rem; }
	.supply-hero h2 { font-size: 1.3rem; }
	.supply-page .section-heading h2 { font-size: 2rem; }
	.supply-products,
	.supply-assurance,
	.supply-community,
	.supply-testing,
	.supply-pricing { padding: 50px 0; }
}

/* ------------------------------------------------- signature collections
 * A SHARED source component (`.collections-section`), currently only used by
 * /supply. Five portrait cards, background-image + gradient caption.
 * ---------------------------------------------------------------------- */

.collections-section { padding: 30px 0 90px; }
.collections-section .section-title { font-size: 2.4rem; }

.collections-section .collections-grid {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 16px;
	width: 100%;
}

.collections-section .collection-item {
	display: block !important;
	text-decoration: none;
	width: 100%;
	height: 100%;
}

.collections-section .collection-card {
	background: transparent;
	border-radius: 24px;
	padding: 0;
	height: 100%;
	box-shadow: 0 16px 24px rgba(10, 26, 59, .08);
	overflow: hidden;
}

.collections-section .collection-link { display: block; width: 100%; height: 100%; }

.collections-section .collection-image {
	border-radius: 24px;
	background: transparent;
	position: relative;
	overflow: hidden;
	padding: 0;
	aspect-ratio: 2/3;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.collections-section .collection-image .collection-placeholder {
	position: absolute;
	inset: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	color: #b8b2a6;
	font-size: 1.6rem;
	z-index: 1;
}

.collections-section .collection-name {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	margin: 0;
	font-size: 1.1rem;
	color: #fff;
	font-weight: 600;
	letter-spacing: .02em;
	text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
	background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .4) 50%, transparent 100%);
	z-index: 2;
}

.collections-section .collection-count { display: none; }

@media (max-width: 768px) {
	.collections-section { padding-bottom: 60px; }
	.collections-section .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.collections-section .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
	.collections-section .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
