/* Homepage sections. Tokens (colors, type) come from style.css. 8px rhythm. */

[hidden] {
	display: none !important;
}

.home .cr-main {
	padding-bottom: 0;
}

/* --- Shared section chrome ------------------------------------------------- */

/* Section rhythm is a phone value; the roomier one is added once there is
   room for it. Every rule in this file is written for a phone first. */
.cr-section {
	padding: 3rem 0;
}

.cr-section--tint {
	background-color: var(--cr-neutral-light);
	border-block: 1px solid var(--cr-border);
}

.cr-section__head {
	max-width: 40rem;
	margin-bottom: 2.5rem;
}

.cr-section__head h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	letter-spacing: -0.01em;
}

.cr-section__head p {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	color: var(--cr-text-muted);
}

.cr-icon {
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
	color: var(--cr-primary);
}

.cr-button {
	min-height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cr-button--light {
	background: var(--cr-white);
	color: var(--cr-primary-dark);
}

.cr-button--light:hover,
.cr-button--light:focus {
	background: var(--cr-primary-light);
	color: var(--cr-primary-dark);
}

.cr-button--ghost {
	border-color: rgba(255, 255, 255, 0.6);
	color: var(--cr-white);
	background: transparent;
}

.cr-button--ghost:hover,
.cr-button--ghost:focus {
	background: rgba(255, 255, 255, 0.14);
	color: var(--cr-white);
}

/* Stacked actions are the phone default, so each button is a full width target
   and the pair reads as one column. The side by side row is added at 48rem. */
.cr-hero__actions .cr-button,
.cr-cta__actions .cr-button {
	flex: 1 1 100%;
}

/* --- Hero ------------------------------------------------------------------ */

.cr-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cr-primary-dark);
	color: var(--cr-white);
	padding: 3rem 0 2.5rem;
}

.cr-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.cr-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(11, 46, 73, 0.92) 0%, rgba(11, 46, 73, 0.7) 55%, rgba(11, 46, 73, 0.35) 100%);
}

.cr-hero__copy {
	max-width: 42rem;
}

.cr-hero__eyebrow {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #A9CFE6;
}

.cr-hero h1 {
	margin: 0 0 1rem;
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--cr-white);
}

.cr-hero__lead {
	max-width: 34rem;
	margin: 0 0 2rem;
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.86);
}

.cr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

/* --- Search widget --------------------------------------------------------- */

.cr-search {
	position: relative;
	top: 100px;
	display: grid;
	gap: 1rem;
	margin-top: 2.5rem;
	padding: 1.25rem;
	background: var(--cr-white);
	color: var(--cr-text);
	border-radius: 0.5rem;
}

.cr-search__places {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
}

.cr-search__places .cr-field {
	flex: 1 1 14rem;
}

/* One column on a phone, because two date fields side by side leaves each one
   too narrow to show a full date. The two and four column layouts are added
   once there is the width for them. */
.cr-search__when {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

.cr-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cr-primary-dark);
}

.cr-field input,
.cr-field select {
	width: 100%;
	height: 3rem;
}

.cr-search__submit {
	grid-column: 1 / -1;
}

.cr-search__toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	font-size: 0.875rem;
}

.cr-search.is-enhanced .cr-search__toggle {
	display: flex;
}

.cr-search__toggle input {
	width: 1.25rem;
	height: 1.25rem;
	padding: 0;
}

.cr-search__error {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cr-danger);
}

@media (min-width: 26rem) {
	.cr-search__when {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.cr-search__when {
		grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
		align-items: end;
	}

	.cr-search__submit {
		grid-column: auto;
		padding-inline: 2rem;
	}
}

/* --- Trust bar ------------------------------------------------------------- */

.cr-trust {
	border-bottom: 1px solid var(--cr-border);
}

.cr-trust ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.5rem;
	margin: 0;
	padding: 1.25rem 0;
	list-style: none;
}

.cr-trust li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--cr-primary-dark);
}

/* --- Fleet ----------------------------------------------------------------- */

.cr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.cr-chip {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid var(--cr-border);
	border-radius: 0.25rem;
	color: var(--cr-primary-dark);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cr-chip:hover,
.cr-chip:focus-visible {
	border-color: var(--cr-primary);
	transform: translateY(-1px);
}

/* The filter is re-read on every choice, so pressing the chip is worth
   showing. transition-duration rather than a separate rule so the press still
   eases back out slowly and only the press itself is instant. */
.cr-chip:active {
	transform: translateY(0);
	transition-duration: 0.05s;
}

.cr-chip[aria-current="true"] {
	background: var(--cr-primary);
	border-color: var(--cr-primary);
	color: var(--cr-white);
}

.cr-vehicle-card[hidden] {
	display: none;
}

/* The chip's lift and press are movement, so they go for a reader who has asked
   for no movement. Its border and fill changes stay, because those are what
   tell the reader the chip is a control and which filter is the current one. */
@media (prefers-reduced-motion: reduce) {
	.cr-chip:hover,
	.cr-chip:active {
		transform: none;
	}

	.cr-chip:active {
		transition-duration: 0.15s;
	}
}

.cr-vehicle-card__thumb--empty {
	display: grid;
	place-items: center;
	background: var(--cr-primary-light);
}

.cr-vehicle-card__thumb--empty .cr-icon {
	width: 3rem;
	height: 3rem;
}

.cr-empty {
	max-width: 34rem;
	padding: 1.5rem;
	border-left: 3px solid var(--cr-primary);
	background: var(--cr-primary-light);
	border-radius: 0 0.25rem 0.25rem 0;
}

.cr-empty h3 {
	font-size: 1.125rem;
}

/* --- Why us ---------------------------------------------------------------- */

.cr-features {
	display: grid;
	gap: 2rem 3rem;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-feature {
	padding-top: 1.25rem;
	border-top: 1px solid var(--cr-border);
}

.cr-feature h3 {
	margin: 0.75rem 0 0.25rem;
	font-size: 1.125rem;
}

.cr-feature p {
	margin: 0;
	color: var(--cr-text-muted);
}

/* --- How it works ---------------------------------------------------------- */

.cr-steps {
	display: grid;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-step {
	position: relative;
	padding-left: 3.5rem;
}

.cr-step__num {
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--cr-primary);
	color: var(--cr-white);
	font-weight: 700;
}

.cr-step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 2.5rem;
	bottom: -2rem;
	width: 2px;
	background: var(--cr-border);
}

.cr-step h3 {
	margin-bottom: 0.25rem;
	font-size: 1.125rem;
}

.cr-step p {
	margin: 0;
	color: var(--cr-text-muted);
}

@media (min-width: 56rem) {
	.cr-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.cr-step {
		padding: 3.5rem 0 0;
	}

	.cr-step:not(:last-child)::before {
		left: 3rem;
		right: -1.5rem;
		top: 1.25rem;
		bottom: auto;
		width: auto;
		height: 2px;
	}
}

/* --- Feature (promo) ------------------------------------------------------- */

.cr-promo {
	display: grid;
	background: var(--cr-primary-dark);
	color: var(--cr-white);
}

.cr-promo__media {
	margin: 0;
	min-height: 16rem;
}

.cr-promo__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cr-promo__body {
	align-self: center;
	max-width: 40rem;
	padding: 3rem var(--cr-gutter);
}

.cr-promo h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	color: var(--cr-white);
}

.cr-promo p {
	margin-bottom: 1.5rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.0625rem;
}

@media (min-width: 56rem) {
	.cr-promo--image {
		grid-template-columns: 1.1fr 1fr;
	}

	.cr-promo__body {
		padding: 4rem;
	}

	.cr-promo:not(.cr-promo--image) .cr-promo__body {
		margin-inline: auto;
		padding-block: 4rem;
	}
}

/* --- Locations ------------------------------------------------------------- */

.cr-locations {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-location {
	padding-left: 1rem;
	border-left: 3px solid var(--cr-primary);
}

.cr-location h3 {
	font-size: 1.125rem;
}

.cr-location p {
	margin: 0 0 0.5rem;
}

.cr-location__meta {
	font-size: 0.875rem;
	color: var(--cr-text-muted);
}

/* --- Vehicle categories ---------------------------------------------------- */

.cr-categories {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-category {
	border: 1px solid var(--cr-border);
	border-radius: 0.5rem;
	background: var(--cr-white);
	overflow: hidden;
}

.cr-category a {
	display: grid;
	gap: 0.25rem;
	height: 100%;
	padding: 1rem;
	color: inherit;
	text-decoration: none;
}

.cr-category a:hover .cr-category__name {
	color: var(--cr-primary);
	text-decoration: underline;
}

.cr-category__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.375rem;
	margin-bottom: 0.5rem;
}

.cr-category__name {
	font-weight: 700;
}

.cr-category__count {
	font-size: var(--cr-font-size-sm);
	color: var(--cr-text-muted);
}

/* --- Business facts (About) ------------------------------------------------ */

.cr-facts {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--cr-border);
}

.cr-facts__list {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.cr-facts__item {
	display: grid;
	gap: 0.25rem;
	justify-items: start;
}

.cr-facts__value {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--cr-primary);
}

.cr-facts__label {
	font-size: var(--cr-font-size-sm);
	color: var(--cr-text-muted);
}

/* --- Services -------------------------------------------------------------- */

.cr-section .cr-features .cr-feature {
	border-top-color: var(--cr-border);
}