/* ==========================================================================
   Photographic inner-page heroes

   Mirrors the homepage hero's moving-photo composition while keeping inner
   pages shorter and giving every primary route its own imagery.
   ========================================================================== */

.wt-page-hero--photo {
	min-height: clamp(25rem, 42vw, 31rem);
	padding-block: clamp(2.75rem, 5vw, 4.75rem);
	background: var(--wt-navy-charcoal);
	align-items: center;
}

.wt-page-hero--photo::before {
	z-index: 0;
	opacity: 0.18;
	mask-image: linear-gradient(90deg, var(--wt-graphite), transparent 74%);
}

.wt-page-hero--photo::after {
	z-index: 0;
	opacity: 0.5;
}

.wt-page-hero__media,
.wt-page-hero__photo-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.wt-page-hero__media {
	z-index: -2;
	overflow: hidden;
}

.wt-page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	animation: wt-page-photo-drift 18s ease-in-out infinite alternate;
}

.wt-page-hero__photo-overlay {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(3, 16, 28, 0.97) 0%, rgba(5, 23, 38, 0.91) 38%, rgba(5, 22, 37, 0.62) 68%, rgba(4, 17, 29, 0.74) 100%),
		linear-gradient(0deg, rgba(3, 15, 26, 0.68), transparent 54%);
}

.wt-page-hero--photo .wt-page-hero__inner {
	z-index: 2;
	padding-block: 0;
	padding-inline-end: clamp(20rem, 34vw, 32rem);
}

.wt-page-hero--photo .wt-breadcrumbs,
.wt-page-hero--photo .wt-page-hero__eyebrow,
.wt-page-hero--photo .wt-page-hero__title,
.wt-page-hero--photo .wt-page-hero__lead,
.wt-page-hero--photo .wt-page-hero__actions {
	max-width: 46rem;
}

.wt-page-hero--photo .wt-page-hero__title {
	text-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.5);
}

.wt-page-hero--photo .wt-page-hero__lead {
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 0.15rem 0.9rem rgba(0, 0, 0, 0.6);
}

.wt-page-hero--photo.wt-page-hero--about {
	min-height: clamp(22rem, 36vw, 26rem);
}

.wt-page-hero__visuals {
	position: absolute;
	z-index: 1;
	inset-block-start: 50%;
	inset-inline-end: clamp(1rem, 4vw, 4.75rem);
	width: clamp(18rem, 28vw, 27rem);
	height: clamp(20rem, 30vw, 25rem);
	pointer-events: none;
	transform: translateY(-50%);
}

.wt-page-hero__visual-card {
	position: absolute;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 1.2rem;
	background: var(--wt-navy-900);
	box-shadow:
		0 1.4rem 3.2rem rgba(0, 0, 0, 0.42),
		0 0 1.5rem rgba(235, 108, 20, 0.13);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.wt-page-hero__visual-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wt-page-hero__visual-card figcaption {
	position: absolute;
	inset-inline: 0.55rem;
	inset-block-end: 0.55rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--wt-radius-pill);
	background: rgba(4, 20, 34, 0.88);
	color: var(--wt-white);
	font-size: 0.68rem;
	font-weight: var(--wt-weight-bold);
	letter-spacing: 0.07em;
	text-align: center;
	text-transform: uppercase;
}

.wt-page-hero__visual-card--one {
	inset-block-start: 0;
	inset-inline-end: 0;
	width: 72%;
	aspect-ratio: 4 / 3;
	animation: wt-page-card-float-one 6s ease-in-out infinite alternate;
}

.wt-page-hero__visual-card--two {
	inset-inline-start: 0;
	inset-block-end: 0;
	width: 61%;
	aspect-ratio: 1;
	transform: rotate(-4deg);
	animation: wt-page-card-float-two 7.5s ease-in-out infinite alternate;
}

.wt-page-hero__visual-card--two img {
	object-position: 64% center;
}

.wt-page-hero--used-tires .wt-page-hero__visual-card--one img,
.wt-page-hero--tire-guide .wt-page-hero__visual-card--one img {
	object-position: 50% center;
}

.wt-page-hero--contact .wt-page-hero__media img {
	object-position: 62% center;
}

.wt-page-hero__visual-orbit {
	position: absolute;
	inset-inline-end: 3%;
	inset-block-end: 10%;
	display: grid;
	width: 4.8rem;
	aspect-ratio: 1;
	place-items: center;
	padding: 0.55rem;
	border: 2px solid var(--wt-orange-bright);
	border-radius: 50%;
	background: var(--wt-white);
	box-shadow: var(--wt-glow-orange);
	animation: wt-page-mark-orbit 9s linear infinite;
}

.wt-page-hero__visual-orbit img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@keyframes wt-page-photo-drift {
	from { transform: scale(1.03) translate3d(0, 0, 0); }
	to { transform: scale(1.11) translate3d(-1.5%, -0.8%, 0); }
}

@keyframes wt-page-card-float-one {
	from { transform: translate3d(0, -0.35rem, 0) rotate(2deg); }
	to { transform: translate3d(-0.8rem, 0.85rem, 0) rotate(-1deg); }
}

@keyframes wt-page-card-float-two {
	from { transform: translate3d(-0.25rem, 0.55rem, 0) rotate(-4deg); }
	to { transform: translate3d(0.7rem, -0.75rem, 0) rotate(1deg); }
}

@keyframes wt-page-mark-orbit {
	to { transform: rotate(360deg); }
}

@media (min-width: 768px) and (max-width: 1179px) {
	.wt-page-hero--photo .wt-page-hero__inner {
		padding-inline-end: 15.5rem;
	}

	.wt-page-hero__visuals {
		inset-inline-end: 1.25rem;
		width: 14.5rem;
		height: 17.5rem;
	}

	.wt-page-hero__visual-orbit {
		width: 3.4rem;
	}
}

@media (max-width: 767px) {
	.wt-page-hero--photo,
	.wt-page-hero--photo.wt-page-hero--about {
		min-height: 31rem;
		padding-block: 2rem 3.25rem;
		align-items: flex-end;
	}

	.wt-page-hero--photo .wt-page-hero__media img {
		object-position: 62% center;
	}

	.wt-page-hero--photo .wt-page-hero__photo-overlay {
		background:
			linear-gradient(0deg, rgba(3, 16, 28, 0.98) 0%, rgba(4, 20, 34, 0.9) 52%, rgba(5, 22, 37, 0.5) 100%),
			radial-gradient(circle at 82% 12%, rgba(235, 108, 20, 0.2), transparent 16rem);
	}

	.wt-page-hero--photo .wt-page-hero__inner {
		padding-block: 0;
		padding-inline-end: 0;
	}

	.wt-page-hero--photo .wt-breadcrumbs {
		margin-bottom: 0.85rem;
	}

	.wt-page-hero--photo .wt-page-hero__eyebrow {
		margin-bottom: 0.75rem;
	}

	.wt-page-hero--photo .wt-page-hero__title {
		font-size: clamp(2.25rem, 11.5vw, 3.6rem);
	}

	.wt-page-hero--photo .wt-page-hero__lead {
		font-size: 0.98rem;
	}

	.wt-page-hero--photo .wt-page-hero__actions {
		margin-top: 1.2rem;
	}

	.wt-page-hero__visuals {
		inset-block-start: 1.1rem;
		inset-inline-end: 0.85rem;
		width: 10.2rem;
		height: 11.8rem;
		transform: none;
		opacity: 0.96;
	}

	.wt-page-hero__visual-card {
		border-radius: 0.78rem;
		box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.44), var(--wt-glow-orange);
	}

	.wt-page-hero__visual-card figcaption {
		inset-inline: 0.3rem;
		inset-block-end: 0.3rem;
		padding: 0.25rem 0.35rem;
		font-size: 0.5rem;
	}

	.wt-page-hero__visual-orbit {
		width: 2.7rem;
		padding: 0.3rem;
	}

	.wt-page-hero--photo.wt-page-hero--about {
		min-height: 27rem;
	}
}

@media (max-width: 390px) {
	.wt-page-hero--photo,
	.wt-page-hero--photo.wt-page-hero--about {
		min-height: 32rem;
	}

	.wt-page-hero__visuals {
		width: 9rem;
		height: 10.7rem;
	}

	.wt-page-hero--photo .wt-page-hero__actions .wt-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wt-page-hero__media img,
	.wt-page-hero__visual-card,
	.wt-page-hero__visual-orbit {
		animation: none !important;
	}
}
