/**
 * Core Values block styling.
 *
 * Relies on the global brand custom properties defined in
 * assets/css/custom-header.css (--dma-teal, --dma-teal-dark, --dma-red,
 * --dma-charcoal-64, --dma-font-primary, --dma-font-mono) — that stylesheet
 * is enqueued site-wide, not just for the header, so these are always
 * available. Deliberately reusing the single source of truth instead of
 * duplicating local hex copies, which is how the other block stylesheets
 * in this theme have drifted slightly out of sync with each other.
 */

.dma-cv-block {
	padding: clamp(64px, 9vw, 120px) 24px;
	background: #fff;
}

.dma-cv-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: center;
	gap: 64px;
}

/* ── Left column: headline / text / button ───────────────────────────── */
.dma-cv-content {
	min-width: 0;
}

.dma-cv-headline {
	font-family: var(--dma-font-primary);
	font-weight: 700;
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.1;
	color: var(--dma-teal);
	margin: 0 0 20px;
}

.dma-cv-text {
	font-size: 17px;
	line-height: 1.6;
	color: var(--dma-charcoal-64);
	margin: 0 0 32px;
}

.dma-cv-content .dma-button {
	font-size: 22px;
	padding: 4px 20px;
}

/* ── Right column: three line-icons, 2-up then 1 centered ─────────────────
   No card chrome — just an icon and a label floating on the page
   background. Two items on top with the third wrapped onto its own
   centered row underneath keeps the asymmetric, less "grid-like" feel
   from the card version. flex-wrap does the wrapping for free: two items
   at exactly half the row's width fill row one completely, so the third
   is pushed onto a new line, where justify-content:center holds it in the
   middle on its own. */
.dma-cv-items {
	min-width: 0;
	max-width: 460px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	row-gap: 48px;
	column-gap: 20px;
}

.dma-cv-item {
	flex: 0 0 calc(50% - 10px);
	max-width: calc(50% - 10px);
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

/* Icon and label are both the standard brand teal — same currentColor as
   the label text, so the icon actually matches the rest of the page
   instead of reading as a separate, darker shade. Fluid width (a
   percentage of the icon's own column, not the old fixed/card-relative px
   value) so it scales smoothly at any viewport with no breakpoint
   overrides needed. */
.dma-cv-item__icon {
	display: block;
	width: 62%;
	aspect-ratio: 1 / 1;
	color: var(--dma-teal);
}

.dma-cv-item__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	/* The render helper strips any hardcoded stroke color (same technique
	   as gbg_featured_svg()) so an uploaded icon can't clash with the
	   brand color — but that also strips the bundled placeholders' own
	   stroke="currentColor", leaving no stroke value at all (SVG's default
	   stroke, with no attribute and no CSS, is invisible "none"). This
	   reinstates it via CSS instead, inherited by every child path/rect
	   that doesn't set its own. */
	fill: none;
	stroke: currentColor;
}

.dma-cv-item__label {
	font-family: var(--dma-font-primary);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
	text-align: center;
	color: var(--dma-teal);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.dma-cv-inner {
		grid-template-columns: 1fr;
		gap: 48px;
		text-align: center;
	}
	.dma-cv-content .dma-button {
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.dma-cv-items {
		row-gap: 32px;
	}
	.dma-cv-item__label {
		font-size: 16px;
	}
}
