/* ==========================================================================
   Turbo Reman Center: components shared by the home page and the subpages
   ========================================================================== */

/* Shared section heads ---------------------------------------------------- */

.section-head {
	max-width: 68ch;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head__title {
	font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.25rem);
}

.section-head__text {
	margin-top: 16px;
	color: var(--c-muted);
	font-size: 1.0625rem;
}

.section-head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 16px 24px;
	max-width: none;
}

/* Proof strip ------------------------------------------------------------- */

.proof {
	background: var(--c-dark);
	color: var(--c-on-dark);
}

.proof__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 6px;
	padding: 24px 12px;
	border-left: 1px solid var(--c-dark-3);
}

.proof__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.proof__value {
	color: var(--c-red-on-dark);
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.proof__label {
	color: var(--c-on-dark-muted);
	font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
	line-height: 1.35;
}

@media (max-width: 559px) {
	.proof__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.proof__item:nth-child(3) {
		grid-column: 1 / -1;
		padding-left: 0;
		border-top: 1px solid var(--c-dark-3);
		border-left: 0;
	}
}

@media (min-width: 900px) {
	.proof__item {
		padding: 34px clamp(24px, 4vw, 56px);
	}

	.proof__item:first-child {
		padding-left: 0;
	}
}

/* Intros ------------------------------------------------------------------ */

.intro {
	padding-block: var(--space-section);
}

.intro__title {
	max-width: 21ch;
	font-size: clamp(2.125rem, 1.35rem + 2.6vw, 3.375rem);
}

.intro__body > p {
	max-width: 60ch;
	margin: 20px 0 28px;
	font-size: 1.0625rem;
}

.intro--injectors {
	background: var(--c-surface);
}

.intro__split {
	display: grid;
	gap: 36px;
	align-items: center;
}

.intro__product img {
	width: 100%;
	mix-blend-mode: multiply;
}

@media (min-width: 1024px) {
	.intro__split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		gap: clamp(40px, 6vw, 88px);
	}
}

/* Round buttons of the photo and video dialogs ---------------------------- */

.modal-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.14);
	color: var(--c-white);
	transition: background-color 0.15s ease, transform 0.16s var(--ease-out);
}

.modal-btn .icon {
	width: 22px;
	height: 22px;
}

.modal-btn:active {
	transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
	.modal-btn:hover {
		background: rgb(255 255 255 / 0.26);
	}

	.reel-modal__link:hover {
		color: var(--c-white);
	}
}

.reel-modal :focus-visible,
.media-modal :focus-visible {
	outline-color: var(--c-white);
}

/* Video facade ------------------------------------------------------------ */

.video-facade {
	position: relative;
	aspect-ratio: var(--ratio, 16 / 9);
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-dark);
	box-shadow: var(--shadow-2);
}

.video-facade__link,
.video-facade iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-facade__link {
	display: grid;
	place-items: center;
	color: var(--c-white);
}

.video-facade__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease-out);
}

.video-facade__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgb(10 10 10 / 0.45), rgb(10 10 10 / 0.1));
}

.video-facade__play {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--c-red);
	box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.6);
	transition: transform 0.2s var(--ease-out), background-color 0.15s ease;
}

.video-facade__play .icon {
	width: 32px;
	height: 32px;
	margin-left: 4px;
}

@media (max-width: 639px) {
	.video-facade__play {
		width: 64px;
		height: 64px;
	}

	.video-facade__play .icon {
		width: 26px;
		height: 26px;
		margin-left: 3px;
	}
}

.video-facade__link:active .video-facade__play {
	transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
	.video-facade__link:hover .video-facade__play {
		background: var(--c-red-600);
		transform: scale(1.04);
	}

	.video-facade__link:hover .video-facade__poster {
		transform: scale(1.02);
	}
}

/* Brands ------------------------------------------------------------------ */

/* A shop photo under a dark veil (like the closing band), with the logos on white cards. */
.brands {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--space-section);
	background: var(--c-dark);
}

.brands__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 45% 40%;
}

/* The shop photo drifts ~50px against the scroll: depth behind the cards, no text moves. Scroll-driven,
   so it runs off the main thread; only where the browser supports it and never with reduced motion. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.brands__bg {
			scale: 1.1;
			animation: trc-drift linear both;
			animation-timeline: view();
		}
	}
}

@keyframes trc-drift {
	from {
		translate: 0 -3.5%;
	}

	to {
		translate: 0 3.5%;
	}
}

.brands::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgb(12 12 12 / 0.9) 0%, rgb(12 12 12 / 0.74) 45%, rgb(12 12 12 / 0.88) 100%);
}

.brands .section-head__title {
	color: var(--c-white);
}

.brands__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
}

@media (min-width: 768px) {
	.brands__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

.brand-card {
	display: grid;
	grid-template-rows: 1fr auto;
	height: 100%;
	min-height: 150px;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-white);
	box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.8);
	color: var(--c-ink);
	text-decoration: none;
	transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.brand-card__logo {
	display: grid;
	place-items: center;
	padding: 24px 16px 12px;
}

.brand-card__logo img {
	width: min(var(--logo-w, 160px), 82%);
	height: auto;
}

.brand-card__name {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
}

.brand-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 14px;
	border-top: 1px solid var(--c-line);
	color: var(--c-text);
	font-size: 0.9375rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.brand-card__go {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-red);
	color: var(--c-white);
	transition: background-color 0.15s ease, transform 0.25s var(--ease-out);
}

.brand-card__go .icon {
	width: 16px;
	height: 16px;
}

@media (min-width: 1024px) {
	.brand-card {
		min-height: 190px;
	}

	.brand-card__logo {
		padding: 32px 24px 16px;
	}

	.brand-card__meta {
		padding: 14px 20px 16px;
	}
}

.brand-card:active {
	transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
	.brand-card:hover {
		color: var(--c-ink);
		box-shadow: 0 26px 48px -22px rgb(0 0 0 / 0.9);
		transform: translateY(-3px);
	}

	.brand-card:hover .brand-card__go {
		background: var(--c-red-600);
		transform: translateX(3px);
	}
}

/* Review photo or video, large. */
.media-modal {
	width: fit-content;
	max-width: 94vw;
	max-height: none;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
	color: var(--c-white);
	transition:
		opacity 0.22s var(--ease-out),
		transform 0.22s var(--ease-out),
		overlay 0.22s allow-discrete,
		display 0.22s allow-discrete;
}

.media-modal[open] {
	opacity: 1;
	transform: scale(1);
}

@starting-style {
	.media-modal[open] {
		opacity: 0;
		transform: scale(0.96);
	}
}

.media-modal::backdrop {
	background: rgb(6 6 6 / 0);
	transition:
		background-color 0.22s ease,
		overlay 0.22s allow-discrete,
		display 0.22s allow-discrete;
}

.media-modal[open]::backdrop {
	background: rgb(6 6 6 / 0.9);
}

@starting-style {
	.media-modal[open]::backdrop {
		background: rgb(6 6 6 / 0);
	}
}

.media-modal__stage {
	display: grid;
	place-items: center;
}

.media-modal__media {
	display: block;
	width: auto;
	max-width: min(94vw, 1200px);
	height: auto;
	max-height: calc(100dvh - 128px);
	border-radius: var(--radius-lg);
	background: #000;
}

.media-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
}

.media-modal__caption {
	min-width: 0;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.media-modal__controls {
	display: flex;
	flex: none;
	gap: 8px;
}

.media-modal__controls [hidden] {
	display: none;
}

.icon--flip {
	transform: rotate(180deg);
}

/* Production film --------------------------------------------------------- */

.film {
	padding-block: var(--space-section);
}

.film__title {
	margin-bottom: clamp(28px, 3.5vw, 44px);
	text-align: center;
	text-wrap: balance;
}

/* The film in a thin Signal Red frame with a faint red edge light and a little red light peeking out below.
   Kept quiet: a lit screen, not a halo. Negative spread pulls the light in so it never fogs the white page. */
.film__player {
	max-width: 1120px;
	margin-inline: auto;
	border: 2px solid var(--c-red);
	box-shadow:
		0 0 8px rgb(229 39 39 / 0.14),
		0 18px 36px -22px rgb(160 20 20 / 0.3),
		0 24px 48px -32px rgb(20 20 20 / 0.35);
	transition: box-shadow 0.5s var(--ease-out);
}

@media (max-width: 639px) {
	.film__player {
		box-shadow:
			0 0 6px rgb(229 39 39 / 0.12),
			0 12px 24px -16px rgb(160 20 20 / 0.26),
			0 16px 32px -22px rgb(20 20 20 / 0.3);
	}
}

@media (hover: hover) and (pointer: fine) {
	.film__player:hover {
		box-shadow:
			0 0 10px rgb(229 39 39 / 0.2),
			0 20px 40px -22px rgb(160 20 20 / 0.36),
			0 24px 48px -32px rgb(20 20 20 / 0.38);
	}
}

/* Closing call to action -------------------------------------------------- */

.cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--c-dark);
	color: var(--c-white);
}

.cta__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, var(--c-red) 0%, rgb(229 39 39 / 0.9) 22%, rgb(12 12 12 / 0.86) 68%, rgb(12 12 12 / 0.92) 100%);
}

.cta__inner {
	display: grid;
	gap: 32px;
	align-items: center;
	padding-block: clamp(72px, 9vw, 128px);
}

.cta__title {
	max-width: 15ch;
	color: var(--c-white);
	font-size: clamp(2.375rem, 1.5rem + 3vw, 4rem);
	line-height: 0.98;
}

.cta__body p {
	max-width: 52ch;
	margin: 20px 0 30px;
	color: rgb(255 255 255 / 0.92);
	font-size: 1.125rem;
	line-height: 1.55;
}

.cta__product {
	justify-self: center;
	width: min(80%, 380px);
}

.cta__product img {
	width: 100%;
	filter: drop-shadow(0 30px 34px rgb(0 0 0 / 0.5));
}

@media (min-width: 1024px) {
	.cta__inner {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
	}

	.cta__product {
		width: 100%;
		max-width: 420px;
		margin-block: -40px;
	}
}

/* Articles ---------------------------------------------------------------- */

.articles {
	padding-block: var(--space-section);
	background: var(--c-surface);
}

.articles__list {
	display: grid;
	gap: 28px 24px;
	list-style: none;
}

@media (min-width: 640px) {
	.articles__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.articles__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.article-card__link {
	display: block;
	color: var(--c-ink);
	text-decoration: none;
}

.article-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-line);
}

.article-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease-out);
}

.article-card__date {
	display: block;
	margin-top: 18px;
	color: var(--c-muted);
	font-size: 0.875rem;
}

.article-card__title {
	margin-top: 6px;
	font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
	line-height: 1.12;
	transition: color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.article-card__link:hover {
		color: var(--c-ink);
	}

	.article-card__link:hover .article-card__title {
		color: var(--c-red-600);
	}

	.article-card__link:hover img {
		transform: scale(1.03);
	}
}

/* Title band -------------------------------------------------------------- */

.page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--c-dark);
	color: var(--c-white);
}

.page-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgb(10 10 10 / 0.92) 0%, rgb(10 10 10 / 0.78) 55%, rgb(10 10 10 / 0.6) 100%),
		linear-gradient(0deg, rgb(10 10 10 / 0.5) 0%, rgb(10 10 10 / 0) 60%);
}

.page-hero__inner {
	padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px);
}

.page-hero__title {
	max-width: 22ch;
	margin-top: 14px;
	color: var(--c-white);
	font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);
	line-height: 0.98;
	text-wrap: balance;
}

.page-hero__lede {
	max-width: 56ch;
	margin-top: 16px;
	color: rgb(255 255 255 / 0.86);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.55;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	list-style: none;
	color: rgb(255 255 255 / 0.72);
	font-size: 0.875rem;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-inline: 8px;
	color: rgb(255 255 255 / 0.4);
}

.breadcrumbs a {
	color: rgb(255 255 255 / 0.86);
	text-decoration: none;
}

.breadcrumbs [aria-current="page"] {
	color: var(--c-white);
	font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
	.breadcrumbs a:hover {
		color: var(--c-white);
		text-decoration: underline;
		text-decoration-color: var(--c-red-on-dark);
		text-underline-offset: 0.25em;
	}
}

.page-hero :focus-visible {
	outline-color: var(--c-white);
}

/* Call card: phone, hours and the contact page, on Workshop Black (FAQ, shop filters). */
.help-card {
	display: grid;
	justify-items: start;
	gap: 6px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--c-dark);
	color: var(--c-on-dark-muted);
}

.help-card__label {
	color: var(--c-on-dark-muted);
	font-size: 0.9375rem;
	font-weight: 500;
}

.help-card__phone {
	color: var(--c-white);
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.05;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.help-card__hours {
	margin-bottom: 14px;
	font-size: 0.9375rem;
}

.help-card :focus-visible {
	outline-color: var(--c-white);
}

@media (hover: hover) and (pointer: fine) {
	.help-card__phone:hover {
		color: var(--c-white);
		text-decoration: underline;
		text-decoration-color: var(--c-red-on-dark);
		text-underline-offset: 0.18em;
	}
}
