/* Renax-inspired homepage conversion path. */

.home-main {
	overflow: hidden;
	background: var(--at-white);
}

.home-hero {
	min-height: min(820px, 100svh);
}

.home-hero::after {
	background: linear-gradient(90deg, rgb(10 10 10 / 78%) 0%, rgb(10 10 10 / 48%) 48%, rgb(10 10 10 / 12%) 100%);
}

.home-hero__content {
	padding-bottom: 135px;
}

.home-hero h1 {
	max-width: 940px;
	font-size: clamp(3.4rem, 6.5vw, 5.65rem);
}

.home-hero__availability {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 28px 0 0;
	color: rgb(255 255 255 / 82%);
	font-size: .84rem;
}

.home-hero__availability span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--at-primary);
	box-shadow: 0 0 0 6px rgb(245 183 84 / 16%);
}

.home-booking {
	position: relative;
	z-index: 3;
	margin-top: -72px;
	padding-bottom: 96px;
	scroll-margin-top: 112px;
}

.home-booking__panel {
	padding: 34px 36px 26px;
	border: 1px solid rgb(27 27 27 / 7%);
	border-radius: 20px 20px 20px 0;
	background: var(--at-white);
	box-shadow: 0 24px 60px rgb(27 27 27 / 13%);
}

.home-booking__header {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	column-gap: 56px;
	align-items: end;
	margin-bottom: 26px;
}

.home-booking__header .eyebrow {
	grid-column: 1;
}

.home-booking__header h2 {
	grid-column: 1;
	margin-bottom: 0;
}

.home-booking__description {
	grid-column: 2;
	grid-row: 1 / span 2;
	margin-bottom: 0;
}

.home-booking__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
}

.home-booking__fields {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.home-booking__field {
	min-height: 76px;
	justify-content: center;
	padding-inline: 16px;
	border: 1px solid transparent;
	background: #fafafa;
}

.home-booking__field:focus-within {
	border-color: var(--at-primary);
	box-shadow: none;
}

.home-booking__submit {
	min-width: 178px;
}

.home-booking__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 20px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--at-border);
	list-style: none;
	font-size: .82rem;
}

.home-booking__trust li {
	position: relative;
	padding-left: 20px;
	color: var(--at-dark);
	font-weight: 500;
}

.home-booking__trust li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--at-primary-dark);
	font-weight: 800;
}

.home-trust {
	padding-top: 8px;
	padding-bottom: 108px;
}

.home-trust__header {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
	gap: 22px 80px;
	align-items: end;
	margin-bottom: 48px;
}

.home-trust__header .eyebrow,
.home-trust__header h2 {
	grid-column: 1;
}

.home-trust__header h2 {
	max-width: 690px;
	margin-bottom: 0;
}

.home-trust__header > p:last-child {
	grid-column: 2;
	grid-row: 1 / span 2;
	margin-bottom: 0;
}

.home-trust__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-block: 1px solid var(--at-border);
	list-style: none;
}

.home-trust__item {
	min-width: 0;
	padding: 31px 28px 34px;
	border-left: 1px solid var(--at-border);
}

.home-trust__item:first-child {
	border-left: 0;
	padding-left: 0;
}

.home-trust__item:last-child {
	padding-right: 0;
}

.home-trust__number {
	display: inline-grid;
	width: 39px;
	height: 39px;
	place-items: center;
	margin-bottom: 20px;
	border-radius: 50%;
	background: rgb(245 183 84 / 19%);
	color: var(--at-primary-dark);
	font-size: .78rem;
	font-weight: 700;
}

.home-trust__item h3 {
	font-size: 1.15rem;
	line-height: 1.35;
}

.home-trust__item p {
	margin-bottom: 0;
}

.home-about {
	background: var(--at-white);
}

.home-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
	gap: 80px;
	align-items: center;
}

.home-about__content > :last-child {
	margin-bottom: 0;
}

.home-about__description {
	max-width: 620px;
	font-size: 1.02rem;
}

.home-about__description > :last-child {
	margin-bottom: 0;
}

.home-about__points {
	display: grid;
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.home-about__points li {
	position: relative;
	padding-left: 48px;
	color: var(--at-dark);
	font-weight: 500;
}

.home-about__points li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #f6f6f6;
	color: var(--at-primary-dark);
	font-weight: 800;
}

.home-about__action {
	margin-top: 30px;
}

.home-about__action .button {
	gap: 9px;
}

.home-about__figure {
	position: relative;
	min-width: 0;
	aspect-ratio: 1;
	margin: 0;
}

.home-about__image {
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 20px 20px 20px 0;
	background: var(--at-surface);
}

.home-about__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--at-ease), filter .7s ease;
}

.home-about__figure:hover .home-about__image img {
	transform: scale(1.05);
	filter: saturate(1.04);
}

.home-services {
	background: #fffdf9;
}

.home-section-header,
.home-fleet__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 46px;
}

.home-section-header__copy,
.home-fleet__heading {
	max-width: 730px;
}

.home-section-header__copy > :last-child,
.home-fleet__heading > :last-child {
	margin-bottom: 0;
}

.home-section-header__link,
.home-fleet__archive-link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--at-dark);
	font-weight: 600;
	text-decoration: none;
}

.home-section-header__link:hover,
.home-fleet__archive-link:hover {
	color: var(--at-primary-dark);
}

.home-services__grid {
	gap: 54px 38px;
}

.home-services .service-card__panel,
.home-fleet .vehicle-card__panel {
	border: 1px solid var(--at-border);
	background: var(--at-white);
}

.home-fleet {
	background: var(--at-white);
}

.home-fleet__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
}

.home-fleet__controls {
	display: flex;
	gap: 9px;
}

.home-fleet__control {
	width: 50px;
	height: 50px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--at-border);
	border-radius: 50%;
	background: var(--at-white);
	color: var(--at-dark);
	cursor: pointer;
	font-size: 1.15rem;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .25s ease;
}

.home-fleet__control:hover:not(:disabled) {
	border-color: var(--at-primary);
	background: var(--at-primary);
}

.home-fleet__control:disabled {
	opacity: .32;
	cursor: default;
}

.home-fleet__viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 5px 0 26px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.home-fleet__viewport::-webkit-scrollbar {
	display: none;
}

.home-fleet__track {
	display: grid;
	grid-auto-columns: 44%;
	grid-auto-flow: column;
	gap: 32px;
}

.home-fleet__item {
	min-width: 0;
	scroll-snap-align: start;
}

.home-fleet__item .vehicle-card {
	height: 100%;
}

.home-fleet__item .vehicle-card__panel {
	min-height: 290px;
}

.home-cta {
	padding-top: 0;
	padding-bottom: 112px;
}

.home-cta__surface {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
	padding: 52px 56px;
	border: 1px solid #eadfcd;
	border-radius: 20px 20px 20px 0;
	background: #fff9ef;
}

.home-cta__copy {
	max-width: 700px;
}

.home-cta__copy > :last-child {
	margin-bottom: 0;
}

.home-cta__actions {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.home-cta .button--outline {
	border-color: var(--at-dark);
	color: var(--at-dark);
}

.home-cta .button--outline:hover {
	background: var(--at-dark);
	color: var(--at-white);
}

@media (max-width: 1050px) {
	.home-booking__header,
	.home-trust__header,
	.home-about__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.home-booking__description,
	.home-trust__header > p:last-child {
		grid-column: 1;
		grid-row: auto;
	}

	.home-about__grid {
		gap: 44px;
	}

	.home-booking__form {
		grid-template-columns: 1fr;
	}

	.home-booking__fields,
	.home-trust__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-booking__submit {
		width: 100%;
	}

	.home-trust__item:nth-child(3) {
		border-left: 0;
	}

	.home-trust__item:nth-child(-n + 2) {
		border-bottom: 1px solid var(--at-border);
	}

	.home-fleet__track {
		grid-auto-columns: 62%;
	}

	.home-cta__surface {
		align-items: flex-start;
		flex-direction: column;
		gap: 28px;
	}

	.home-cta__actions {
		flex: 1 1 auto;
	}
}

@media (max-width: 640px) {
	.home-hero {
		min-height: 720px;
	}

	.home-hero__content {
		padding-bottom: 110px;
	}

	.home-hero h1 {
		font-size: clamp(2.8rem, 14vw, 4rem);
	}

	.home-booking {
		margin-top: -46px;
		padding-bottom: 72px;
	}

	.home-booking__panel {
		padding: 28px 18px 22px;
	}

	.home-booking__fields,
	.home-trust__list {
		grid-template-columns: 1fr;
	}

	.home-booking__trust {
		align-items: flex-start;
		flex-direction: column;
	}

	.home-trust {
		padding-top: 0;
		padding-bottom: 72px;
	}

	.home-about__grid {
		gap: 34px;
	}

	.home-trust__header,
	.home-section-header,
	.home-fleet__header {
		margin-bottom: 34px;
	}

	.home-trust__item,
	.home-trust__item:first-child,
	.home-trust__item:last-child {
		padding: 27px 0;
		border-left: 0;
		border-bottom: 1px solid var(--at-border);
	}

	.home-trust__item:last-child {
		border-bottom: 0;
	}

	.home-section-header,
	.home-fleet__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}

	.home-fleet__actions {
		width: 100%;
		justify-content: space-between;
	}

	.home-fleet__track {
		grid-auto-columns: 92%;
		gap: 18px;
	}

	.home-fleet__item .vehicle-card__panel {
		min-height: 0;
	}

	.home-cta {
		padding-bottom: 76px;
	}

	.home-cta__surface {
		padding: 36px 22px;
	}

	.home-cta__actions,
	.home-cta__actions .button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-fleet__viewport {
		scroll-behavior: auto;
	}
}
