/*
Theme Name: Safari Rent
Theme URI: https://safarirent.com
Author: Safari Car Rental
Description: A custom theme for Safari Car Rental, built around the Ecalypse Rental plugin. Uses the plugin's shortcodes ([carrental_cars], [carrental_book_box], etc.) inside page templates rather than deep plugin hooks, so it stays compatible across plugin updates.
Version: 1.6.0
Requires PHP: 7.4
Text Domain: safari-rent
*/

/* =========================================================
   DESIGN TOKENS
   "Asphalt & Headlights" — a dark, road-trip-at-dusk identity.
   A dashed route line with waypoint markers is the throughline
   signature element, running from the hero through each section.
   ========================================================= */

:root {
	/* Color */
	--sr-asphalt: #1B1F23;         /* base dark surface */
	--sr-asphalt-raised: #22272C;  /* cards/panels on dark */
	--sr-stone: #F5F1E8;           /* warm off-white, text on dark */
	--sr-stone-dim: #C9C3B6;       /* secondary text on dark */
	--sr-marigold: #E8A33D;        /* primary accent — headlight glow */
	--sr-marigold-dim: #B87F2C;    /* marigold, pressed/hover state */
	--sr-clay: #B5502F;            /* secondary accent, used sparingly */
	--sr-olive: #6B7A3F;           /* availability / success */
	--sr-line: rgba(245, 241, 232, 0.14); /* hairline dividers on dark */
	--sr-line-strong: rgba(245, 241, 232, 0.28);

	/* Type */
	--sr-font-display: 'Big Shoulders Display', 'Archivo Black', 'Arial Narrow', sans-serif;
	--sr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--sr-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

	/* Scale */
	--sr-radius: 4px;
	--sr-radius-lg: 8px;
	--sr-container: 1180px;
	--sr-space-1: 8px;
	--sr-space-2: 16px;
	--sr-space-3: 24px;
	--sr-space-4: 40px;
	--sr-space-5: 64px;
	--sr-space-6: 96px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--sr-stone);
	color: var(--sr-asphalt);
	font-family: var(--sr-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.sr-container {
	max-width: var(--sr-container);
	margin: 0 auto;
	padding: 0 var(--sr-space-3);
}

h1, h2, h3, h4 {
	font-family: var(--sr-font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 1.05;
	margin: 0 0 var(--sr-space-2);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }

p {
	margin: 0 0 var(--sr-space-2);
	max-width: 60ch;
}

/* Post-listing thumbnail, sat between the date and the excerpt paragraph.
   Matches the paragraph's own max-width (60ch) so the image reads as part
   of the same text column rather than spanning wider than the copy. */
.sr-post-card__thumb {
	display: block;
	max-width: 60ch;
	margin: 0 0 var(--sr-space-2);
	border-radius: var(--sr-radius-lg);
	overflow: hidden;
}

.sr-post-card__thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.sr-eyebrow {
	font-family: var(--sr-font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sr-marigold);
}

/* =========================================================
   SIGNATURE ELEMENT — the dashed route line + waypoint markers
   ========================================================= */

.sr-route {
	position: relative;
	width: 100%;
	height: 40px;
	overflow: visible;
}

.sr-route::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background-image: repeating-linear-gradient(
		to right,
		var(--sr-marigold) 0,
		var(--sr-marigold) 10px,
		transparent 10px,
		transparent 22px
	);
	transform: translateY(-50%);
}

.sr-waypoint {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--sr-stone);
	border: 3px solid var(--sr-marigold);
	transform: translate(-50%, -50%);
}

.sr-route--dark::before {
	background-image: repeating-linear-gradient(
		to right,
		var(--sr-asphalt) 0,
		var(--sr-asphalt) 10px,
		transparent 10px,
		transparent 22px
	);
}

.sr-route--dark .sr-waypoint {
	background: var(--sr-asphalt);
	border-color: var(--sr-marigold);
}

/* =========================================================
   HEADER
   ========================================================= */

.sr-header {
	background: var(--sr-asphalt);
	color: var(--sr-stone);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--sr-line);
	transition: background-color 0.25s ease;
}

/* Applied by assets/js/main.js once the page has scrolled past a small
   threshold - a semi-transparent version of the asphalt base color. */
.sr-header--scrolled {
	background-color: #1b1f23e3;
	backdrop-filter: blur(6px);
}

.sr-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sr-space-2) 0;
	gap: var(--sr-space-3);
}

.sr-logo {
	font-family: var(--sr-font-display);
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--sr-stone);
	display: flex;
	align-items: center;
	gap: 10px;
}

.sr-logo__accent {
	color: var(--sr-marigold);
}

.sr-logo__img {
	max-height: 44px;
	width: auto;
	display: block;
}

.sr-logo--has-image .sr-logo__text {
	font-size: 1.1rem;
}

.sr-nav ul {
	list-style: none;
	display: flex;
	gap: var(--sr-space-4);
	margin: 0;
	padding: 0;
}

.sr-nav a {
	font-family: var(--sr-font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sr-stone-dim);
	transition: color 0.15s ease;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.sr-nav a:hover,
.sr-nav .current-menu-item > a,
.sr-nav .current_page_item > a,
.sr-nav .current-menu-ancestor > a,
.sr-nav .current_page_ancestor > a,
.sr-nav a.sr-nav__active {
	color: var(--sr-marigold);
	border-bottom-color: var(--sr-marigold);
}

.sr-header__cta {
	font-family: var(--sr-font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--sr-marigold);
	color: var(--sr-stone);
	padding: 10px 20px;
	border-radius: var(--sr-radius);
	white-space: nowrap;
	transition: background 0.15s ease;
}

.sr-header__cta:hover {
	background: var(--sr-stone);
}

.sr-menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--sr-line-strong);
	border-radius: var(--sr-radius);
	color: var(--sr-stone);
	padding: 8px 12px;
	font-size: 1.1rem;
	cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */

.sr-hero {
	background: var(--sr-asphalt);
	color: var(--sr-stone);
	padding: var(--sr-space-6) 0 var(--sr-space-5);
	position: relative;
	overflow: hidden;
}

.sr-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 900px 500px at 85% 0%, rgba(232, 163, 61, 0.16), transparent 70%);
	pointer-events: none;
	z-index: 2;
}

/* Optional background image(s), set via Customize > Safari Rent Settings >
   Hero background images. With 2+ images set, .sr-hero-bg__slide elements
   crossfade via assets/js/hero-carousel.js; with exactly one, it's just a
   static background (no JS needed, no fade). */
.sr-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.sr-hero-bg__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: opacity 1.2s ease;
}

.sr-hero-bg__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27,31,35,0.55), rgba(27,31,35,0.82));
	z-index: 1;
}

.sr-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--sr-space-5);
	align-items: end;
	position: relative;
	z-index: 3;
}

.sr-hero__eyebrow-row {
	display: flex;
	align-items: center;
	gap: var(--sr-space-2);
	margin-bottom: var(--sr-space-2);
}

.sr-hero h1 {
	margin-bottom: var(--sr-space-2);
}

.sr-hero h1 em {
	font-style: normal;
	color: var(--sr-marigold);
}

.sr-hero p.sr-lede {
	font-size: 1.15rem;
	color: var(--sr-stone-dim);
	max-width: 46ch;
}

.sr-hero__stats {
	display: flex;
	gap: var(--sr-space-4);
	margin-top: var(--sr-space-4);
	font-family: var(--sr-font-mono);
}

.sr-hero__stat b {
	display: block;
	font-family: var(--sr-font-display);
	font-size: 1.8rem;
	color: var(--sr-marigold);
	line-height: 1;
}

.sr-hero__stat span {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sr-stone-dim);
}

/* Booking widget card wrapping the plugin's [carrental_book_box] shortcode.
   Transparent by request - sits directly on the hero background/carousel
   rather than a light card, so it doesn't box off part of the hero. */
.sr-book-widget {
	color: var(--sr-stone);
	padding: var(--sr-space-3) 0;
}

.sr-book-widget__label {
	font-family: var(--sr-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sr-marigold);
	margin-bottom: 12px;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.sr-section {
	padding: var(--sr-space-5) 0;
}

.sr-section--raised {
	background: var(--sr-asphalt-raised);
}

.sr-section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--sr-space-3);
	margin-bottom: var(--sr-space-4);
	flex-wrap: wrap;
}

.sr-section__head p {
	color: #55524A;
}

/* How it works — numbered only because it's a genuine sequence */
.sr-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sr-space-4);
	counter-reset: sr-step;
}

.sr-step {
	position: relative;
	padding-top: var(--sr-space-3);
	border-top: 2px solid var(--sr-asphalt);
}

.sr-step::before {
	counter-increment: sr-step;
	content: counter(sr-step, decimal-leading-zero);
	font-family: var(--sr-font-mono);
	font-size: 0.85rem;
	color: var(--sr-clay);
	display: block;
	margin-bottom: var(--sr-space-1);
}

.sr-step h3 {
	margin-bottom: 6px;
}

.sr-step p {
	color: #55524A;
	font-size: 0.95rem;
}

/* Fleet teaser cards */
.sr-fleet-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sr-space-3);
}

.sr-fleet-card {
	background: var(--sr-stone);
	border: 1px solid rgba(27,31,35,0.1);
	border-radius: var(--sr-radius-lg);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sr-fleet-card:hover,
.sr-fleet-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px -14px rgba(27,31,35,0.25);
}

.sr-fleet-card__img {
	position: relative;
	aspect-ratio: 16/10;
	background: linear-gradient(135deg, #2A2F35, #1B1F23);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sr-stone-dim);
	font-family: var(--sr-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	overflow: hidden;
}

.sr-fleet-card__img img {
	transition: transform 0.5s ease;
}

.sr-fleet-card:hover .sr-fleet-card__img img,
.sr-fleet-card:focus-visible .sr-fleet-card__img img {
	transform: scale(1.08);
}

/* "View details" pill, hidden until the card is hovered/focused - the
   interactive nudge that used to only exist as the whole-card link. */
.sr-fleet-card__view {
	position: absolute;
	left: var(--sr-space-2);
	bottom: var(--sr-space-2);
	font-family: var(--sr-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--sr-marigold);
	color: var(--sr-asphalt);
	padding: 8px 14px;
	border-radius: 999px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.sr-fleet-card:hover .sr-fleet-card__view,
.sr-fleet-card:focus-visible .sr-fleet-card__view {
	opacity: 1;
	transform: translateY(0);
}

.sr-fleet-card__body {
	padding: var(--sr-space-2) var(--sr-space-3) var(--sr-space-3);
}

.sr-fleet-card__body h3 {
	margin-bottom: 4px;
}

.sr-fleet-card__meta {
	font-family: var(--sr-font-mono);
	font-size: 0.8rem;
	color: #7A7669;
	margin-bottom: var(--sr-space-2);
}

.sr-fleet-card__price {
	font-family: var(--sr-font-mono);
	font-size: 1.3rem;
	color: var(--sr-clay);
}

.sr-fleet-card__price span {
	font-size: 0.75rem;
	color: #7A7669;
	text-transform: uppercase;
}

/* Scroll-reveal: applied to Fleet, Tours and (per-card) Testimonials
   markup by assets/js/front-page-fx.js, which adds .sr-reveal--in via
   IntersectionObserver as each element enters the viewport. --sr-reveal-delay
   is set inline per item for a staggered effect. Falls back to fully
   visible with no animation for reduced-motion users - see the
   prefers-reduced-motion block near the end of this file. */
.sr-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	transition-delay: var(--sr-reveal-delay, 0s);
}

.sr-reveal--in {
	opacity: 1;
	transform: none;
}

/* Fleet filter chips */
.sr-fleet-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: var(--sr-space-3);
}

.sr-fleet-filters__chip {
	font-family: var(--sr-font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: transparent;
	color: var(--sr-stone-dim);
	border: 1px solid var(--sr-line-strong);
	border-radius: 999px;
	padding: 8px 18px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sr-fleet-filters__chip:hover {
	border-color: var(--sr-marigold);
	color: var(--sr-stone);
}

.sr-fleet-filters__chip.is-active {
	background: var(--sr-marigold);
	border-color: var(--sr-marigold);
	color: var(--sr-asphalt);
}

.sr-fleet-card.sr-is-filtered-out {
	display: none;
}

/* =========================================================
   TOURS
   ========================================================= */

.sr-tours-actions {
	display: flex;
	align-items: center;
	gap: var(--sr-space-3);
}

.sr-tours-nav {
	display: flex;
	gap: 8px;
}

.sr-tours-nav__btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(27,31,35,0.15);
	background: transparent;
	color: var(--sr-asphalt);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sr-tours-nav__btn:hover {
	background: var(--sr-marigold);
	border-color: var(--sr-marigold);
	color: var(--sr-stone);
}

.sr-tours-track {
	display: flex;
	gap: var(--sr-space-3);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	/* Hide the scrollbar visually (still keyboard/wheel/touch scrollable) -
	   the prev/next buttons above are the primary, discoverable control. */
	scrollbar-width: none;
}

.sr-tours-track::-webkit-scrollbar {
	display: none;
}

.sr-tour-card {
	flex: 0 0 300px;
	scroll-snap-align: start;
	background: var(--sr-stone);
	border: 1px solid rgba(27,31,35,0.1);
	border-radius: var(--sr-radius-lg);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sr-tour-card:hover,
.sr-tour-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px -14px rgba(27,31,35,0.25);
}

.sr-tour-card__img {
	aspect-ratio: 16/10;
	background: linear-gradient(135deg, #2A2F35, #1B1F23);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sr-stone-dim);
	font-family: var(--sr-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	overflow: hidden;
}

.sr-tour-card__img img {
	transition: transform 0.5s ease;
}

.sr-tour-card:hover .sr-tour-card__img img,
.sr-tour-card:focus-visible .sr-tour-card__img img {
	transform: scale(1.08);
}

.sr-tour-card__body {
	padding: var(--sr-space-2) var(--sr-space-3) var(--sr-space-3);
}

.sr-tour-card__body h3 {
	margin-bottom: 6px;
}

.sr-tour-card__body p {
	color: #55524A;
	font-size: 0.9rem;
	max-width: none;
}

.sr-tour-card__link {
	font-family: var(--sr-font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sr-clay);
}

/* =========================================================
   TESTIMONIALS — endless marquee
   ========================================================= */

.sr-testimonials {
	overflow: hidden;
}

.sr-testimonials__viewport {
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.sr-testimonials__track {
	display: inline-flex;
	width: max-content;
	/* Roughly 6s per card feels unhurried without dragging - scales with
	   how many testimonials are actually configured. */
	animation: sr-marquee calc(var(--sr-testimonial-count, 4) * 6s) linear infinite;
}

.sr-testimonials__track:hover,
.sr-testimonials__track:focus-within {
	animation-play-state: paused;
}

.sr-testimonials__group {
	display: flex;
	gap: var(--sr-space-3);
	padding: 0 calc(var(--sr-space-3) / 2);
}

@keyframes sr-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.sr-testimonial-card {
	flex: 0 0 340px;
	margin: 0;
	background: var(--sr-asphalt-raised);
	color: var(--sr-stone);
	border-radius: var(--sr-radius-lg);
	padding: var(--sr-space-3);
	border: 1px solid var(--sr-line);
}

.sr-testimonial-card p {
	font-size: 1.02rem;
	color: var(--sr-stone);
	max-width: none;
	margin-bottom: var(--sr-space-2);
}

.sr-testimonial-card cite {
	display: block;
	font-family: var(--sr-font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	font-style: normal;
	color: var(--sr-marigold);
}

/* Buttons */
.sr-btn {
	display: inline-block;
	font-family: var(--sr-font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 12px 26px;
	border-radius: var(--sr-radius);
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sr-btn--primary {
	background: var(--sr-marigold);
	color: var(--sr-stone);
}

.sr-btn--primary:hover {
	background: var(--sr-marigold-dim);
}

.sr-btn--outline {
	background: transparent;
	color: var(--sr-asphalt);
	border: 1px solid var(--sr-asphalt);
}

.sr-btn--outline:hover {
	background: var(--sr-asphalt);
	color: var(--sr-stone);
}

.sr-btn--outline-light {
	background: transparent;
	color: var(--sr-stone);
	border: 1px solid var(--sr-line-strong);
}

.sr-btn--outline-light:hover {
	background: var(--sr-stone);
	color: var(--sr-asphalt);
}

/* Locations */
.sr-locations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--sr-space-3);
}

.sr-location-card {
	padding: var(--sr-space-3);
	border-radius: var(--sr-radius-lg);
	background: var(--sr-stone);
	border: 1px solid rgba(27,31,35,0.1);
}

.sr-location-card .sr-eyebrow {
	color: var(--sr-clay);
}

/* CTA band */
.sr-cta-band {
	background: var(--sr-clay);
	color: var(--sr-stone);
	padding: var(--sr-space-5) 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Background image layer for the parallax effect. Sized taller than the
   section (inset -18% top/bottom) and moved via transform by
   assets/js/front-page-fx.js as the section scrolls through the
   viewport, so it never runs out of image at the edges. Only present
   when a background image is actually set (see front-page.php) - a
   plain color-only band has no need for this layer. */
.sr-cta-band__bg {
	position: absolute;
	inset: -18% 0;
	background-size: cover;
	background-position: center;
	will-change: transform;
	z-index: 0;
}

.sr-cta-band__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(27,31,35,0.55), rgba(27,31,35,0.72));
	z-index: 1;
}

.sr-cta-band--has-image .sr-container {
	position: relative;
	z-index: 2;
}

.sr-cta-band h2 {
	margin-bottom: var(--sr-space-2);
}

.sr-cta-band p {
	max-width: 50ch;
	margin-left: auto;
	margin-right: auto;
	color: rgba(245,241,232,0.85);
}

/* =========================================================
   FOOTER
   ========================================================= */

.sr-footer {
	background: var(--sr-asphalt);
	color: var(--sr-stone-dim);
	padding-top: var(--sr-space-5);
}

.sr-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--sr-space-4);
	padding-bottom: var(--sr-space-4);
}

.sr-footer h4 {
	color: var(--sr-stone);
	font-size: 0.95rem;
	margin-bottom: var(--sr-space-2);
}

.sr-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sr-footer li {
	margin-bottom: 8px;
}

.sr-footer a:hover {
	color: var(--sr-marigold);
}

.sr-footer__bottom {
	border-top: 1px solid var(--sr-line);
	padding: var(--sr-space-2) 0 var(--sr-space-3);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--sr-font-mono);
	font-size: 0.75rem;
	flex-wrap: wrap;
	gap: 8px;
}

/* =========================================================
   GENERIC PAGE (plugin shortcode content lives here)
   ========================================================= */

.sr-page-header {
	background: var(--sr-asphalt);
	color: var(--sr-stone);
	padding: var(--sr-space-4) 0 var(--sr-space-3);
}

.sr-page-header h1 {
	margin-bottom: 0;
}

.sr-page-content {
	padding: var(--sr-space-4) 0 var(--sr-space-6);
}

/* Light-touch normalization so the plugin's own Bootstrap-based markup
   doesn't visually clash with the theme (the plugin renders its own
   buttons/forms via shortcodes; we only nudge color and font so it reads
   as one site rather than restyling its internals wholesale). */
.sr-page-content .btn-primary,
.sr-page-content input[type="submit"].btn,
.sr-book-widget .btn-primary,
.sr-book-widget input[type="submit"].btn {
	background-color: var(--sr-marigold) !important;
	border-color: var(--sr-marigold) !important;
	color: var(--sr-stone) !important;
	font-family: var(--sr-font-mono);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sr-page-content .btn-primary:hover,
.sr-book-widget .btn-primary:hover {
	background-color: var(--sr-marigold-dim) !important;
	border-color: var(--sr-marigold-dim) !important;
}

.sr-page-content a {
	color: var(--sr-clay);
}

/* The book_box widget has two tabs with different backgrounds behind
   them: Quick Book sits transparently on the dark hero (needs light
   text), while Manage Booking has the plugin's own light card background
   (needs dark text) - using one color for both made Manage Booking's
   text invisible. Split by tab rather than styling the whole widget the
   same. */
.sr-book-widget [data-tab-id="quick-book"] label,
.sr-book-widget [data-tab-id="quick-book"] .control-label {
	color: var(--sr-stone);
	border-radius: 12px;
}

.sr-book-widget [data-tab-id="manage-booking"] label,
.sr-book-widget [data-tab-id="manage-booking"] .control-label {
	color: var(--sr-asphalt);
	border-radius: 12px;
}

/* Widget corner radius: the outer tab container plus the content panel
   below it, so the rounding reads as one continuous shape. */
.sr-book-widget .carrental-custom-theme .tabs {
	border-radius: 12px;
	overflow: hidden;
}

.sr-book-widget .carrental-custom-theme .tabs-content {
	border-radius: 0 0 12px 12px !important;
}

/* Tabs: round the top corners of each tab, and swap which tab gets the
   orange background - the plugin's own default has the INACTIVE tab
   orange and the active tab light gray; flipped here so the active tab
   (the one you're looking at) is the one in the accent color. */
.sr-book-widget .carrental-custom-theme .tabs-navigation li {
	border-radius: 12px 12px 0 0;
	overflow: hidden;
}

.sr-book-widget .carrental-custom-theme .tabs-navigation-active a {
	background: var(--sr-marigold) !important;
	background-image: none !important;
	color: var(--sr-stone) !important;
}

.sr-book-widget .carrental-custom-theme .tabs-navigation-active a:hover {
	color: var(--sr-stone) !important;
}

.sr-book-widget .carrental-custom-theme .tabs-navigation-link a {
	background: #F5F5F5 !important;
	background-image: none !important;
	color: #656565 !important;
}

.sr-book-widget .carrental-custom-theme .tabs-navigation-link a:hover {
	color: #656565 !important;
}

/* Same light-touch normalization, scoped to the homepage's locations
   section, so the plugin's own [carrental_locations] output (address/hours
   cards, and its own embedded Google Map) reads as part of the page
   rather than a jarring style switch. */
.sr-locations-wrap {
	color: var(--sr-asphalt);
}

.sr-locations-wrap iframe {
	border-radius: var(--sr-radius-lg);
	margin-top: 8px;
}

.sr-locations-wrap .bordered-content-title {
	font-family: var(--sr-font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sr-clay);
	margin-bottom: var(--sr-space-2);
}

.sr-locations-wrap .list-item-branch-dail {
	background: var(--sr-stone);
	border: 1px solid rgba(27,31,35,0.1);
	border-radius: var(--sr-radius-lg);
	padding: var(--sr-space-3);
	margin-bottom: var(--sr-space-2);
}

.sr-locations-wrap .h4 {
	font-family: var(--sr-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7A7669;
	margin-bottom: 6px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
	.sr-hero__grid {
		grid-template-columns: 1fr;
	}

	.sr-steps,
	.sr-fleet-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sr-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.sr-nav,
	.sr-header__cta {
		display: none;
	}

	.sr-menu-toggle {
		display: block;
	}

	.sr-nav.sr-nav--open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--sr-asphalt);
		border-bottom: 1px solid var(--sr-line);
		padding: var(--sr-space-2);
	}

	.sr-nav--open ul {
		flex-direction: column;
		gap: var(--sr-space-2);
	}

	.sr-steps,
	.sr-fleet-grid,
	.sr-footer__grid {
		grid-template-columns: 1fr;
	}

	.sr-hero__stats {
		flex-wrap: wrap;
		gap: var(--sr-space-3);
	}

	/* Quick Book/Manage Booking widget shows above the hero headline/copy
	   on mobile only - desktop and tablet keep the copy-then-widget order
	   from the markup (handled by .sr-hero__grid going to a single column
	   at 900px, above). */
	.sr-hero__grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.sr-book-widget {
		order: -1;
	}

	.sr-tour-card,
	.sr-testimonial-card {
		flex-basis: 260px;
	}

	.sr-tours-actions {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: var(--sr-space-2);
	}
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.sr-fleet-card,
	.sr-tour-card {
		transition: none;
	}

	/* Scroll-reveal: show everything immediately rather than animating in
	   (assets/js/front-page-fx.js also skips the IntersectionObserver
	   entirely under this preference, so this is a CSS-only backstop). */
	.sr-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	/* Marquee: stop the animation and let people scroll the strip by hand
	   instead - the duplicate copy (aria-hidden) is hidden so there's
	   nothing to scroll past twice. */
	.sr-testimonials__track {
		animation: none;
	}

	.sr-testimonials__viewport {
		overflow-x: auto;
	}

	.sr-testimonials__group[aria-hidden="true"] {
		display: none;
	}

	/* Parallax: front-page-fx.js already skips applying transforms under
	   this preference; this just guarantees the layer sits at rest even
	   if a transform was set before the preference was detected. */
	.sr-cta-band__bg {
		transform: none !important;
	}
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
.sr-btn:focus-visible {
	outline: 3px solid var(--sr-marigold);
	outline-offset: 2px;
}
