/**
 * Home page styles — matches home_rcc_industrial_pivot/code.html precisely.
 * Loaded only on the front page (see functions.php).
 */

.rcc-section {
	padding-block: var(--wp--preset--spacing--xl);
}
.rcc-container {
	max-width: var(--wp--custom--container--max);
	margin-inline: auto;
	padding-inline: var(--wp--custom--container--gutter);
	width: 100%;
}
.rcc-bg-surface {
	background-color: var(--wp--preset--color--surface);
}
.rcc-bg-surface-container-low {
	background-color: var(--wp--preset--color--surface-container-low);
}
.rcc-border-y {
	border-top: 1px solid var(--wp--preset--color--outline-variant);
	border-bottom: 1px solid var(--wp--preset--color--outline-variant);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.rcc-hero-section {
	position: relative;
	min-height: 819px;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.rcc-hero__bg-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
}
.rcc-hero__bg-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rcc-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 10;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--surface) 0%,
		color-mix(in srgb, var(--wp--preset--color--surface) 80%, transparent) 50%,
		transparent 100%
	);
}
.rcc-hero__content-wrap {
	position: relative;
	z-index: 20;
	width: 100%;
}
.rcc-hero__content {
	max-width: 42rem; /* max-w-2xl */
}
.rcc-badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	color: #ffffff;
	background-color: var(--wp--preset--color--primary-container);
	padding: 4px 8px;
	margin-bottom: var(--wp--preset--spacing--md);
	border-radius: var(--wp--custom--radius--default);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.rcc-hero__actions {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--md);
}
@media (min-width: 640px) {
	.rcc-hero__actions {
		flex-direction: row;
	}
}
.rcc-hero__actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--sm);
	padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--xl);
	border-radius: var(--wp--custom--radius--xl);
}
.rcc-hero__trust {
	margin-top: var(--wp--preset--spacing--xl);
	padding-top: var(--wp--preset--spacing--lg);
	border-top: 1px solid var(--wp--preset--color--outline-variant);
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--md);
}
.rcc-hero__trust p {
	margin: 0;
	font-style: italic;
}

/* ---------------------------------------------------------------------- */
/* Section headers (heading + subheading + link, row layout)               */
/* ---------------------------------------------------------------------- */
.rcc-section-header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--md);
	margin-bottom: var(--wp--preset--spacing--xl);
}
@media (min-width: 768px) {
	.rcc-section-header {
		flex-direction: row;
		align-items: flex-end;
	}
}
.rcc-section-header h2 {
	margin: 0 0 var(--wp--preset--spacing--xs);
}
.rcc-section-header p {
	margin: 0;
}
.rcc-inline-link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--xs);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	white-space: nowrap;
}
.rcc-inline-link:hover {
	text-decoration: underline;
}
.rcc-inline-link .material-symbols-outlined {
	font-size: 16px;
}

/* ---------------------------------------------------------------------- */
/* Product bento grid                                                      */
/* ---------------------------------------------------------------------- */
.rcc-bento-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--container--gutter);
}
@media (min-width: 768px) {
	.rcc-bento-grid {
		/*
		 * minmax(0, 1fr), not a bare 1fr: a bare `1fr` track has an
		 * implicit min-width of `auto` (its content's min-content size),
		 * not 0 — so the first card's longest unbreakable word
		 * ("Conditioner"/"Enhancer" in its heading) forced that column
		 * wider than an even quarter-share, producing 4 unequal columns
		 * and pushing the row past the viewport at tablet widths.
		 * minmax(0, 1fr) removes that implicit floor so all 4 columns
		 * share the row evenly, as intended.
		 */
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.rcc-bento-card {
	margin: 0;
	border: 1px solid var(--wp--preset--color--outline-variant);
	background-color: var(--wp--preset--color--surface-container-lowest);
	padding: var(--wp--preset--spacing--lg);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: border-color 0.3s ease;
}
.rcc-bento-card:hover {
	border-color: var(--wp--preset--color--primary);
}
.rcc-bento-card__icon {
	margin-bottom: var(--wp--preset--spacing--lg);
}
.rcc-bento-card__icon .material-symbols-outlined {
	color: var(--wp--preset--color--primary);
	font-size: 36px;
}
.rcc-bento-card h3 {
	margin: 0 0 var(--wp--preset--spacing--sm);
}
.rcc-bento-card p.rcc-bento-card__desc {
	margin: 0 0 var(--wp--preset--spacing--xl);
	flex-grow: 1;
}
.rcc-bento-card__spec {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--xs);
	border-top: 1px solid var(--wp--preset--color--outline-variant);
	padding-top: var(--wp--preset--spacing--md);
}
.rcc-bento-card__spec-label {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 10px;
	color: var(--wp--preset--color--outline);
	text-transform: uppercase;
	margin: 0;
}
.rcc-bento-card__spec-value {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--data-mono);
	margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Performance process (6 steps)                                           */
/* ---------------------------------------------------------------------- */
.rcc-process-header {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--xl);
}
.rcc-process-header p {
	margin: 0;
}
.rcc-process-header h2 {
	margin: 0;
}
.rcc-process-steps {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--md);
}
/*
 * 1024px, not 768px: each of the 6 steps has a min-width: 140px floor (see
 * .rcc-process-step below). 6 steps + 5 gaps need ~920px, which doesn't
 * fit this container between 768–1023px (confirmed ~720–850px available
 * there), so forcing a single non-wrapping row in that range pushed the
 * row — and the page — wider than the viewport. At 1024px+ the container
 * is wide enough (~976px+) for all 6 to fit on one row without shrinking
 * below their floor. Below 1024px it now falls back to the existing
 * wrap layout above (already the approved mobile treatment), just applied
 * up to a wider point than before.
 */
@media (min-width: 1024px) {
	.rcc-process-steps {
		flex-wrap: nowrap;
	}
}
.rcc-process-step {
	margin: 0;
	position: relative;
	flex: 1;
	text-align: center;
	padding: var(--wp--preset--spacing--md);
	min-width: 140px;
}
.rcc-process-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -12px;
	width: 24px;
	height: 1px;
	background: var(--wp--preset--color--outline-variant);
	display: none;
}
/* Kept in lockstep with the flex-wrap breakpoint above: the connector
   line only makes sense once the steps are actually in a single row. */
@media (min-width: 1024px) {
	.rcc-process-step:not(:last-child)::after {
		display: block;
	}
}
.rcc-process-step__number {
	width: 48px;
	height: 48px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin: 0 auto var(--wp--preset--spacing--md);
	border-radius: var(--wp--custom--radius--lg);
}
.rcc-process-step p {
	margin: 0 0 var(--wp--preset--spacing--xs);
}
.rcc-process-step__desc {
	font-size: 12px;
	color: var(--wp--preset--color--on-surface-variant);
}

/* ---------------------------------------------------------------------- */
/* Authority highlights                                                    */
/* ---------------------------------------------------------------------- */
.rcc-authority {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--xl);
}
@media (min-width: 768px) {
	.rcc-authority {
		flex-direction: row;
	}
}
.rcc-authority__media,
.rcc-authority__content {
	margin: 0;
	flex: 1;
	width: 100%;
}
.rcc-authority__media-inner {
	position: relative;
}
.rcc-authority__decor {
	position: absolute;
	top: -16px;
	left: -16px;
	width: 96px;
	height: 96px;
	background-color: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
	z-index: -1;
}
.rcc-authority__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--outline-variant);
	filter: grayscale(100%);
	transition: filter 0.5s ease;
}
.rcc-authority__media:hover img {
	filter: grayscale(0%);
}
.rcc-authority__content > * {
	margin: 0 0 var(--wp--preset--spacing--md);
}
.rcc-authority__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--md);
	padding-top: var(--wp--preset--spacing--md);
}
@media (min-width: 640px) {
	.rcc-authority__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.rcc-authority__item {
	margin: 0;
	display: flex;
	/*
	 * Explicit column, rather than relying on the wrap this item inherits
	 * from WordPress's is-layout-flex class: without this, the icon and
	 * text-group are just two row-direction flex children that only
	 * "stack" because each description happens to be too long to fit
	 * beside the icon, forcing a wrap. That's fragile — "Proven
	 * Performance"'s description was 1px short of that threshold, so it
	 * stayed inline next to the icon instead of stacking beneath it like
	 * the other three. Column makes the stacked layout unconditional.
	 */
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--sm);
}
.rcc-authority__item .material-symbols-outlined {
	color: var(--wp--preset--color--primary);
}
.rcc-authority__item p {
	margin: 0;
}
.rcc-authority__item-title {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--label-caps);
	font-weight: 700;
	color: var(--wp--preset--color--on-surface);
}
.rcc-authority__item-desc {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--on-surface-variant);
}

/* ---------------------------------------------------------------------- */
/* Performance visuals (2 image cards with gradient caption)               */
/* ---------------------------------------------------------------------- */
.rcc-visuals-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--container--gutter);
}
@media (min-width: 768px) {
	.rcc-visuals-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.rcc-visual-card {
	margin: 0;
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--wp--preset--color--outline-variant);
	overflow: hidden;
}
.rcc-visual-card__image {
	position: absolute;
	inset: 0;
	margin: 0;
}
.rcc-visual-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s ease;
}
.rcc-visual-card:hover .rcc-visual-card__image img {
	transform: scale(1.05);
}
.rcc-visual-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--wp--preset--color--on-background) 80%, transparent),
		transparent
	);
}
.rcc-visual-card__caption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: var(--wp--preset--spacing--lg);
}
.rcc-visual-card__caption p {
	color: #ffffff;
	margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Private label (full-bleed dark section)                                 */
/* ---------------------------------------------------------------------- */
.rcc-private-label-section {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--lg);
}
.rcc-private-label__bg-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
}
.rcc-private-label__bg-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rcc-private-label__overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.68);
}
.rcc-private-label__content-wrap {
	/*
	 * Only the block-gap-injected top margin needs zeroing here (this is a
	 * non-first in-flow child of the section, so WP's
	 * `.is-layout-flow > * + *` rule targets it even though the preceding
	 * siblings are position:absolute). A blanket `margin: 0` also wiped out
	 * the `margin-inline: auto` this element gets from the shared
	 * `.rcc-container` class (equal specificity, this rule wins by being
	 * later in source), which silently killed the centering of the
	 * 1280px-capped content box — invisible at narrow widths where the box
	 * nearly fills the viewport, but at wide viewports it left the content
	 * pinned to the left edge with a growing empty gap on the right.
	 * Resetting only margin-top preserves .rcc-container's horizontal
	 * centering while still neutralizing the block-gap margin.
	 */
	margin-top: 0;
	position: relative;
	z-index: 20;
	width: 100%;
}
.rcc-private-label__content {
	/*
	 * Centered content block: max-width caps it at 672px and
	 * margin-inline: auto centers that box within
	 * .rcc-private-label__content-wrap (which is itself centered within
	 * the viewport via the shared .rcc-container class — see that rule's
	 * comment above). Since the wrap is capped at the site's 1280px
	 * container max-width, this stays centered at the same relative
	 * position for any viewport, narrow or ultra-wide.
	 */
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
}
.rcc-private-label__content p,
.rcc-private-label__content h2 {
	color: #ffffff;
}
.rcc-private-label__list {
	margin: var(--wp--preset--spacing--xl) 0;
	text-align: center;
}
.rcc-private-label__item {
	padding: var(--wp--preset--spacing--md) 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rcc-private-label__item p {
	margin: 0;
}
.rcc-private-label__item p.rcc-private-label__item-label {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--label-caps);
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--primary-fixed);
	margin-bottom: var(--wp--preset--spacing--xs);
}
.rcc-private-label__content .wp-block-buttons {
	justify-content: center;
}
.rcc-private-label__content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--sm);
	padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--xl);
	border-radius: var(--wp--custom--radius--xl);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	margin-top: var(--wp--preset--spacing--md);
}
.rcc-private-label__content .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary-container);
}

/* ---------------------------------------------------------------------- */
/* Why RCC (4 feature cards)                                               */
/* ---------------------------------------------------------------------- */
.rcc-why-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--container--gutter);
}
@media (min-width: 768px) {
	.rcc-why-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
.rcc-why-card {
	margin: 0;
	padding: var(--wp--preset--spacing--lg);
	border-left: 2px solid var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--surface-container-low);
	transition: background-color 0.2s ease;
}
.rcc-why-card:hover {
	background-color: var(--wp--preset--color--surface-container-high);
}
.rcc-why-card .material-symbols-outlined {
	color: var(--wp--preset--color--primary);
	display: block;
	margin-bottom: var(--wp--preset--spacing--md);
	font-size: 28px;
}
.rcc-why-card h4 {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--body-sm);
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--on-surface);
	margin: 0 0 var(--wp--preset--spacing--sm);
}
.rcc-why-card p {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body-md);
	color: var(--wp--preset--color--on-surface-variant);
	margin: 0;
}
