/* Homepage "24/7 Indoor Shooting Range" section (template-parts/home/book-time.php). */
.range-feature {
	--range-panel-bg: #1b1b1b;
	--range-accent: #c8352f;
	--range-button: #a6272a;
	--range-button-hover: #bd0000;
	--range-text: #c9c9c9;

	/* Same dimensions as the Landsborough Auctions section below it (auction-feature.css):
	   two equal halves, height set by the photo at 3:2 (or by the text, if that is taller). */
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	background: var(--range-panel-bg);
}

.range-feature__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.range-feature__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.range-feature__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	/* Mirror of the auction panel padding (the wide side is on the outer edge). */
	padding: 48px clamp(24px, 5.7vw, 120px) 48px clamp(20px, 3vw, 64px);
	color: #fff;
}

.range-feature__rule {
	display: block;
	width: 50px;
	height: 3px;
	margin-bottom: 22px;
	background: var(--range-accent);
}

.range-feature__title {
	margin: 0 0 26px;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: clamp(2rem, 3.6vw, 3.4rem);
	font-weight: 600;
	line-height: 1.12;
	color: #fff;
	text-transform: none;
	text-wrap: balance;
}

.range-feature__text {
	max-width: 32em;
	margin-bottom: 32px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	color: var(--range-text);
}

.range-feature__text p {
	margin: 0;
}

.range-feature__button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	border-radius: 3px;
	background: var(--range-button);
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.range-feature__button:hover,
.range-feature__button:focus-visible {
	background: var(--range-button-hover);
	color: #fff;
	text-decoration: none;
}

.range-feature__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.range-feature__button svg {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.range-feature__button:hover svg {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.range-feature__button,
	.range-feature__button svg {
		transition: none;
	}
}

/* Phones: photo on top, panel below. */
@media (max-width: 767px) {
	.range-feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.range-feature__panel {
		padding: 40px 20px;
	}
}
