/* ==========================================================================
   Homepage sections. Loaded on the front page only.
   ========================================================================== */

/* ------------------------------------------------------------- 3. Hero */

.wt-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(28rem, 68vh, 40rem);
	background: var(--wt-navy-charcoal);
	color: var(--wt-text-on-dark);
	overflow: hidden;
	isolation: isolate;
}

.wt-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.wt-hero__media img,
.wt-hero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A slow, restrained zoom. Disabled entirely under reduced motion by base.css
   and by the JS guard in media.js. */
.wt-hero__media img {
	animation: wt-slow-zoom 24s ease-in-out infinite alternate;
}

@keyframes wt-slow-zoom {
	from { transform: scale(1); }
	to   { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
	.wt-hero__media img {
		animation: none;
	}
}

/* The overlay preserves text contrast without hiding the work in the photo. */
.wt-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		100deg,
		var(--wt-scrim-hero-strong) 0%,
		var(--wt-scrim-hero-medium) 38%,
		var(--wt-scrim-hero-light) 72%,
		var(--wt-scrim-hero-soft) 100%
	);
}

.wt-hero__inner {
	position: relative;
	padding-block: clamp(5rem, 10vw, 8rem);
	max-width: 46rem;
}

.wt-hero__title {
	color: var(--wt-white);
	font-size: clamp(2.75rem, 5.8vw, 5.4rem);
	line-height: 0.98;
	letter-spacing: -0.025em;
	margin-bottom: var(--wt-space-4);
}

.wt-hero__text {
	font-size: clamp(1.05rem, 1.4vw, 1.3rem);
	color: var(--wt-text-on-dark);
	margin-bottom: var(--wt-space-6);
}

@media (max-width: 767px) {
	.wt-hero {
		min-height: 37rem;
		align-items: flex-end;
	}

	.wt-hero__media img {
		object-position: 64% center;
	}

	.wt-hero__overlay {
		background: linear-gradient(
			0deg,
			var(--wt-scrim-hero-strong) 0%,
			var(--wt-scrim-hero-medium) 52%,
			var(--wt-scrim-hero-soft) 100%
		);
	}

	.wt-hero__inner {
		padding-block: 8rem 5.5rem;
	}

	.wt-hero__title {
		font-size: clamp(2.6rem, 13vw, 4rem);
	}
}

/* --------------------------------------------------------- 4. Tire finder */

.wt-finder {
	position: relative;
	margin-top: calc(var(--wt-space-8) * -1);
	z-index: 2;
}

.wt-finder__panel {
	background: var(--wt-white);
	border: 1px solid var(--wt-border);
	border-radius: 1.25rem;
	box-shadow: var(--wt-shadow-lg);
	overflow: hidden;
}

.wt-finder__panel::before {
	content: "FIND THE RIGHT TIRE";
	display: block;
	padding: 0.8rem var(--wt-space-5);
	background: var(--wt-navy);
	color: var(--wt-white);
	font-family: var(--wt-font-display);
	font-size: var(--wt-text-sm);
	font-weight: var(--wt-weight-bold);
	letter-spacing: var(--wt-tracking-wider);
}

.wt-finder__tablist {
	display: flex;
	border-bottom: 1px solid var(--wt-border);
	background: var(--wt-off-white);
	overflow-x: auto;
}

.wt-finder__tab {
	flex: 1 1 auto;
	min-width: max-content;
	padding: var(--wt-space-4) var(--wt-space-5);
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	font-family: var(--wt-font-display);
	font-size: var(--wt-text-md);
	font-weight: var(--wt-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wt-text-muted);
	cursor: pointer;
	white-space: nowrap;
}

.wt-finder__tab[aria-selected="true"] {
	background: var(--wt-white);
	color: var(--wt-navy);
	border-bottom-color: var(--wt-accent);
}

.wt-finder__panel-body {
	padding: var(--wt-space-5);
}

.wt-finder__panel-body[hidden] {
	display: none;
}

.wt-finder__row {
	display: grid;
	gap: var(--wt-space-4);
	grid-template-columns: 1fr;
	align-items: end;
}

@media (min-width: 640px) {
	.wt-finder__row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.wt-finder__row--4 {
		grid-template-columns: repeat(4, 1fr) auto;
	}

	.wt-finder__row--3 {
		grid-template-columns: repeat(3, 1fr) auto;
	}
}

/* ------------------------------------------------- V6 live size readout */

.wt-size-readout {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--wt-space-2) var(--wt-space-4);
	margin-bottom: var(--wt-space-4);
	padding: var(--wt-space-3) var(--wt-space-4);
	border: 2px dashed var(--wt-border-strong);
	border-radius: var(--wt-radius-lg);
	background: var(--wt-white);
	transition: border-color var(--wt-duration) var(--wt-ease),
	            background-color var(--wt-duration) var(--wt-ease);
}

.wt-size-readout[hidden] {
	display: none;
}

.wt-size-readout.is-partial {
	border-color: var(--wt-blue-bright);
	border-style: solid;
}

/* A complete size gets a solid orange frame and a soft glow: a small, clear
   reward for finishing the three fields. */
.wt-size-readout.is-complete {
	border-color: var(--wt-orange);
	border-style: solid;
	background: linear-gradient(120deg, var(--wt-white), var(--wt-surface-warm));
	box-shadow: 0 0 0 0.28rem var(--wt-orange-100);
}

.wt-size-readout__label {
	font-size: var(--wt-text-xs);
	font-weight: var(--wt-weight-bold);
	letter-spacing: var(--wt-tracking-wider);
	text-transform: uppercase;
	color: var(--wt-text-muted);
}

.wt-size-readout__value {
	display: inline-flex;
	align-items: baseline;
	gap: 0.1rem;
	font-family: var(--wt-font-display);
	font-size: clamp(1.5rem, 4.5vw, 2.1rem);
	font-weight: var(--wt-weight-bold);
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--wt-steel);
}

.wt-size-readout__part {
	min-width: 1.5ch;
	padding: 0.06em 0.16em;
	border-radius: 0.32rem;
	text-align: center;
	transition: color var(--wt-duration-fast) var(--wt-ease),
	            background-color var(--wt-duration-fast) var(--wt-ease);
}

.wt-size-readout__part.is-set {
	background: var(--wt-navy);
	color: var(--wt-white);
}

.wt-size-readout.is-complete .wt-size-readout__part.is-set {
	background: var(--wt-orange);
	color: var(--wt-accent-label);
}

.wt-size-readout__part.is-unsure {
	background: var(--wt-steel-100);
	color: var(--wt-text-muted);
}

.wt-size-readout__sep {
	color: var(--wt-steel);
}

.wt-size-readout__hint {
	flex: 1 1 100%;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-muted);
}

@media (max-width: 767px) {
	.wt-size-readout {
		gap: var(--wt-space-1) var(--wt-space-3);
		padding: var(--wt-space-3);
	}

	.wt-size-readout__hint {
		font-size: 0.74rem;
		line-height: 1.4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-size-readout,
	.wt-size-readout__part {
		transition: none !important;
	}
}

.wt-finder__help {
	margin-top: var(--wt-space-4);
	margin-bottom: 0;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-muted);
}

.wt-finder__note {
	margin-top: var(--wt-space-3);
	margin-bottom: 0;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-muted);
}

/* ------------------------------------------------------- 5. Trust bar */

.wt-trust {
	background: var(--wt-white);
	border-bottom: 1px solid var(--wt-border);
	padding-block: var(--wt-space-6);
}

.wt-trust__grid {
	display: grid;
	gap: var(--wt-space-5);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.wt-trust__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.wt-trust__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.wt-trust__item {
	display: flex;
	gap: var(--wt-space-3);
	align-items: flex-start;
}

.wt-trust__item {
	padding: var(--wt-space-4);
	border-radius: var(--wt-radius);
	background: var(--wt-off-white);
}

.wt-trust__item .wt-icon {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--wt-accent);
	flex: none;
}

.wt-trust__title {
	font-family: var(--wt-font-display);
	font-weight: var(--wt-weight-bold);
	font-size: var(--wt-text-md);
	color: var(--wt-navy);
	margin: 0 0 0.15rem;
}

.wt-trust__text {
	margin: 0;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-muted);
}

/* --------------------------------------------------- 7. New vs used paths */

.wt-paths {
	display: grid;
	gap: var(--wt-space-5);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.wt-paths {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wt-path {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 22rem;
	padding: var(--wt-space-6);
	border-radius: var(--wt-radius-lg);
	overflow: hidden;
	background: var(--wt-navy);
	color: var(--wt-white);
	isolation: isolate;
}

.wt-path__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wt-path:first-child .wt-path__media img {
	object-position: 78% center;
}

.wt-path:last-child .wt-path__media img {
	object-position: 42% center;
	filter: grayscale(0.45);
}

.wt-path__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.wt-path__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--wt-duration-slow) var(--wt-ease);
}

.wt-path:hover .wt-path__media img {
	transform: scale(1.04);
}

.wt-path::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, var(--wt-scrim-card-top) 0%, var(--wt-scrim-card-bottom) 78%);
}

.wt-path__title {
	color: var(--wt-white);
	margin-bottom: var(--wt-space-2);
}

.wt-path__text {
	color: var(--wt-text-on-dark);
	margin-bottom: var(--wt-space-5);
}

/* -------------------------------------------------------- 8. Brand strip */

.wt-brands__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wt-space-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.wt-brands__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.wt-brands__list {
		grid-template-columns: repeat(6, 1fr);
	}
}

.wt-brands__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wt-space-2);
	padding: var(--wt-space-4);
	background: var(--wt-white);
	border: 1px solid var(--wt-border);
	border-radius: var(--wt-radius);
	text-align: center;
}

.wt-brands__item img {
	max-height: 2.5rem;
	width: auto;
	object-fit: contain;
}

.wt-brands__name {
	font-family: var(--wt-font-display);
	font-weight: var(--wt-weight-bold);
	color: var(--wt-navy);
	font-size: var(--wt-text-base);
}

.wt-brands__stock {
	font-size: var(--wt-text-xs);
	color: var(--wt-text-muted);
}

/* A brand logo must never imply guaranteed stock. */
.wt-brands__note {
	margin-top: var(--wt-space-5);
	margin-bottom: 0;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-muted);
	text-align: center;
}

/* ---------------------------------------------------------- 9. Services */

.wt-service-card {
	display: flex;
	flex-direction: column;
	gap: var(--wt-space-3);
	padding: var(--wt-space-6);
	background: var(--wt-white);
	border: 1px solid var(--wt-border);
	border-radius: var(--wt-radius-lg);
	transition: border-color var(--wt-duration) var(--wt-ease),
	            box-shadow var(--wt-duration) var(--wt-ease),
	            transform var(--wt-duration) var(--wt-ease);
}

.wt-service-card::before {
	content: "";
	display: block;
	width: 3rem;
	height: 0.28rem;
	border-radius: var(--wt-radius-pill);
	background: linear-gradient(90deg, var(--wt-orange), var(--wt-red));
}

.wt-service-card:hover {
	transform: translateY(-3px);
	border-color: var(--wt-border-strong);
	box-shadow: var(--wt-shadow);
}

.wt-service-card__title {
	font-size: var(--wt-text-lg);
	margin: 0;
}

.wt-service-card__text {
	margin: 0;
	color: var(--wt-text-muted);
	font-size: var(--wt-text-sm);
}

.wt-service-card__link {
	margin-top: auto;
	font-weight: var(--wt-weight-bold);
	display: inline-flex;
	align-items: center;
	gap: var(--wt-space-2);
	text-decoration: none;
}

/* ------------------------------------------------------ 10. How it works */

.wt-steps {
	counter-reset: wt-step;
	display: grid;
	gap: var(--wt-space-5);
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.wt-steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

.wt-steps__item {
	counter-increment: wt-step;
	padding-top: var(--wt-space-5);
	border-top: 3px solid var(--wt-orange);
}

.wt-steps__item::before {
	content: counter(wt-step, decimal-leading-zero);
	display: block;
	font-family: var(--wt-font-display);
	font-size: var(--wt-text-xl);
	font-weight: var(--wt-weight-bold);
	color: var(--wt-accent-text);
	margin-bottom: var(--wt-space-2);
}

.wt-steps__title {
	font-size: var(--wt-text-lg);
	margin-bottom: var(--wt-space-2);
}

.wt-steps__text {
	margin: 0;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-muted);
}

/* ----------------------------------------------------- 11. Why choose us */

.wt-why {
	display: grid;
	gap: var(--wt-space-7);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.wt-why {
		grid-template-columns: 1fr 1fr;
	}
}

.wt-why__list {
	display: grid;
	gap: var(--wt-space-5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wt-why__item {
	display: flex;
	gap: var(--wt-space-3);
}

.wt-why__item .wt-icon {
	color: var(--wt-orange);
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
	margin-top: 0.2rem;
}

.wt-why__media img {
	border-radius: var(--wt-radius-lg);
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 73% center;
	box-shadow: var(--wt-shadow-lg);
}

/* ----------------------------------------------------------- 12. Reviews */

.wt-review {
	display: flex;
	flex-direction: column;
	gap: var(--wt-space-4);
	padding: var(--wt-space-5);
	background: var(--wt-white);
	border: 1px solid var(--wt-border);
	border-radius: var(--wt-radius-lg);
}

.wt-review__text {
	margin: 0;
	font-size: var(--wt-text-md);
}

.wt-review__meta {
	margin-top: auto;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-muted);
}

.wt-review__author {
	display: block;
	font-weight: var(--wt-weight-bold);
	color: var(--wt-graphite);
}

/* Every review links to its original source. No rating markup is emitted. */
.wt-review__source {
	display: inline-flex;
	align-items: center;
	gap: var(--wt-space-2);
	font-size: var(--wt-text-sm);
}

/* ------------------------------------------------------ 13. Current offer */

.wt-offer {
	background: var(--wt-navy);
	color: var(--wt-white);
}

.wt-offer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wt-space-5);
	padding-block: var(--wt-space-7);
}

.wt-offer__text {
	font-family: var(--wt-font-display);
	font-size: var(--wt-text-xl);
	font-weight: var(--wt-weight-bold);
	color: var(--wt-white);
	margin: 0;
}

.wt-offer__terms {
	margin: var(--wt-space-2) 0 0;
	font-size: var(--wt-text-sm);
	color: var(--wt-text-on-dark-muted);
}

/* --------------------------------------------------- 15. Location & contact */

.wt-location {
	display: grid;
	gap: var(--wt-space-7);
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.wt-location {
		grid-template-columns: 1fr 1.15fr;
	}
}

.wt-location__map {
	border-radius: var(--wt-radius-lg);
	overflow: hidden;
	border: 1px solid var(--wt-border);
	min-height: 20rem;
	background: var(--wt-steel-100);
}

.wt-location__map iframe {
	width: 100%;
	height: 100%;
	min-height: 20rem;
	border: 0;
}

/* .wt-map-card and .wt-hours moved to components.css in V6: both are shared
   with the interior page aside and contact panel, which render on routes where
   this stylesheet is not loaded. */

.wt-location__details {
	display: grid;
	gap: var(--wt-space-4);
	margin: 0;
}

.wt-location__row {
	display: flex;
	gap: var(--wt-space-3);
	align-items: flex-start;
}

.wt-location__row .wt-icon {
	color: var(--wt-accent);
	flex: none;
	margin-top: 0.2rem;
}

.wt-location__label {
	display: block;
	font-size: var(--wt-text-xs);
	font-weight: var(--wt-weight-bold);
	letter-spacing: var(--wt-tracking-wide);
	text-transform: uppercase;
	color: var(--wt-text-muted);
}

/* .wt-hours is defined in components.css so the interior page aside can use it
   on routes where this stylesheet is not loaded. */
