/**
 * Flexible Hire Options Section Styles
 *
 * Section: "Car Hire for Every Journey"
 * Scenic road background, 5-card horizontal grid, glassmorphic cards, and floating WA adventure pill.
 *
 * @package Horizontal_Traders
 */

.ht-fho-section {
	position: relative;
	padding: 4.75rem 0 4.25rem;
	overflow: hidden;
	color: #ffffff;
}

/* Background & Overlays */
.ht-fho-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	transform: scale(1.02);
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Replaces the former background-size: cover / background-position: center
   bottom, so the image can be lazily loaded as a real <img>. */
.ht-fho-bg__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	display: block;
}

.ht-fho-section:hover .ht-fho-bg {
	transform: scale(1.05);
}

.ht-fho-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(240, 248, 250, 0.92) 0%, rgba(210, 227, 235, 0.76) 28%, rgba(0, 21, 46, 0.82) 72%, rgba(0, 21, 46, 0.96) 100%);
	z-index: 2;
}

.ht-fho-container {
	position: relative;
	z-index: 3;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Section Header */
.ht-fho-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2.75rem;
	flex-wrap: wrap;
}

.ht-fho-subtitle {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #01757f;
	margin-bottom: 0.5rem;
}

.ht-fho-title {
	font-size: 2.35rem;
	font-weight: 800;
	line-height: 1.18;
	color: #00152e;
	margin: 0 0 0.85rem 0;
	letter-spacing: -0.025em;
}

.ht-fho-lead {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #334155;
	max-width: 680px;
	margin: 0;
}

.ht-fho-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	border: 1.5px solid #01757f;
	color: #01757f !important;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.7rem 1.4rem;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 12px rgba(1, 117, 127, 0.15);
}

.ht-fho-btn-outline:hover {
	background: #01757f;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(1, 117, 127, 0.35);
}

.ht-fho-btn-outline svg {
	transition: transform 0.2s ease;
}

.ht-fho-btn-outline:hover svg {
	transform: translateX(3px);
}

/* 5 Cards Grid */
.ht-fho-cards-wrapper {
	width: 100%;
	margin-bottom: 3.5rem;
}

.ht-fho-cards-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.25rem;
}

.ht-fho-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(0, 21, 46, 0.12);
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
	border: 1px solid rgba(210, 227, 235, 0.8);
}

.ht-fho-card:hover {
	transform: translateY(-6px);
	border-color: #06c1d5;
	box-shadow: 0 20px 35px -10px rgba(0, 21, 46, 0.2);
}

.ht-fho-card__media {
	position: relative;
	width: 100%;
	height: 145px;
	overflow: hidden;
	background: #e2e8f0;
}

.ht-fho-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ht-fho-card:hover .ht-fho-card__img {
	transform: scale(1.08);
}

.ht-fho-card__body {
	padding: 1.25rem 1.15rem 1.35rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ht-fho-card__header-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.ht-fho-card__icon {
	color: #01757f;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-fho-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #00152e;
	margin: 0;
	line-height: 1.25;
}

.ht-fho-card__desc {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #64748b;
	margin: 0 0 1.25rem 0;
	flex: 1;
}

.ht-fho-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #01757f;
	text-decoration: none;
	transition: color 0.2s ease;
	margin-top: auto;
}

.ht-fho-card__link svg {
	transition: transform 0.2s ease;
}

.ht-fho-card__link:hover {
	color: #02667c;
}

.ht-fho-card__link:hover svg {
	transform: translateX(3px);
}

/* Footer Accents Row */
.ht-fho-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

/* Handwritten brand text */
.ht-fho-script-accent {
	color: #ffffff;
	font-family: 'Brush Script MT', cursive, 'Caveat', sans-serif;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	transform: rotate(-3deg);
	pointer-events: none;
	display: flex;
	flex-direction: column;
}

.ht-fho-script-accent span {
	font-size: 2.1rem;
	line-height: 0.95;
	letter-spacing: 0.02em;
}

.ht-fho-script-accent em {
	font-size: 1.85rem;
	font-style: italic;
	color: #06c1d5;
}

/* Floating WA Adventure Pill */
.ht-fho-floating-pill {
	display: inline-flex;
	align-items: center;
	gap: 1.15rem;
	background: rgba(0, 21, 46, 0.9);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	padding: 0.85rem 1.4rem;
	text-decoration: none;
	color: #ffffff;
	transition: all 0.3s ease;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	max-width: 580px;
}

.ht-fho-floating-pill:hover {
	background: rgba(0, 21, 46, 0.98);
	border-color: rgba(6, 193, 213, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.ht-fho-floating-pill__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(1, 117, 127, 0.35);
	color: #06c1d5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-fho-floating-pill__content {
	display: flex;
	flex-direction: column;
}

.ht-fho-floating-pill__title {
	font-size: 0.925rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
}

.ht-fho-floating-pill__sub {
	font-size: 0.8rem;
	color: #cbd5e1;
	line-height: 1.35;
}

.ht-fho-floating-pill__arrow {
	color: #06c1d5;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ht-fho-floating-pill:hover .ht-fho-floating-pill__arrow {
	transform: translateX(4px);
}

/* Responsive Breakpoints */
@media (max-width: 1260px) {
	.ht-fho-cards-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1024px) {
	.ht-fho-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ht-fho-footer-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.ht-fho-floating-pill {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.ht-fho-section {
		padding: 3.5rem 0;
	}

	.ht-fho-title {
		font-size: 1.85rem;
	}

	.ht-fho-cards-wrapper {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 1rem;
		margin-bottom: 2rem;
		/* Hide scrollbar */
		scrollbar-width: none;
	}

	.ht-fho-cards-wrapper::-webkit-scrollbar {
		display: none;
	}

	.ht-fho-cards-grid {
		display: flex;
		grid-template-columns: none;
		width: max-content;
		gap: 1rem;
	}

	.ht-fho-card {
		flex: 0 0 260px;
		scroll-snap-align: start;
	}
}
