/* ==========================================================================
   SoFlo Motorcycles — Home Banner
   All rules scoped under .home-banner so this file is drop-in safe.
   ========================================================================== */

.home-banner {
	position: relative;
	background-color: #1a0d05;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: var(--color-bg);
	padding: 110px 0 90px;
	min-height: 560px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.home-banner__overlay {
	position: absolute;
	inset: 0;
	background: #050200;
	z-index: 1;
	pointer-events: none;
}

.home-banner__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	width: 100%;
}

/* Eyebrow ------------------------------------------------------------------ */
.home-banner__eyebrow {
	font-size: 12px;
	letter-spacing: 0.3em;
	color: var(--brand-primary);
	font-weight: 700;
	margin-bottom: 22px;
	text-transform: uppercase;
}

/* Headline ----------------------------------------------------------------- */
/* Uses the same condensed display stack you're using elsewhere on the site.
   Replace 'Bebas Neue' with whatever face the theme actually loads. */
.home-banner__headline {
	font-family: 'Bebas Neue', 'Anton', 'Oswald', 'Impact', 'Arial Narrow Bold', sans-serif;
	font-size: clamp(44px, 7vw, 88px);
	line-height: 0.95;
	font-weight: 400;
	margin: 0 auto 18px;
	max-width: 920px;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
	text-transform: uppercase;
	color: var(--color-bg);
}

/* Subtitle ----------------------------------------------------------------- */
.home-banner__subtitle {
	font-size: clamp(14px, 1.4vw, 17px);
	color: #e8d8b8;
	max-width: 560px;
	margin: 0 auto 34px;
	line-height: 1.55;
}

/* Search form -------------------------------------------------------------- */
.home-banner__search {
	background: var(--color-bg);
	border-radius: 999px;
	padding: 6px;
	display: flex;
	gap: 4px;
	max-width: 620px;
	margin: 0 auto;
	align-items: stretch;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}

.home-banner__search-field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	position: relative;
	cursor: pointer;
	min-width: 0;
}

.home-banner__search-field > i:first-child {
	color: var(--color-text-muted);
	font-size: 15px;
	flex-shrink: 0;
}

.home-banner__search-field select {
	border: 0;
	background: transparent;
	font-size: 14px;
	color: var(--color-ink-soft);
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	outline: none;
	padding-right: 18px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.home-banner__caret {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-text-muted);
	font-size: 11px;
	pointer-events: none;
}

.home-banner__search-divider {
	width: 1px;
	background: var(--color-line);
	margin: 10px 0;
	flex-shrink: 0;
}

/* Submit button — solid amber that reads against the white pill.
   If you want the gradient pill from your nav, swap background for:
   linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);  */
.home-banner__search-btn {
	background: var(--brand-primary);
	color: var(--color-ink-soft);
	border: 0;
	padding: 0 30px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	cursor: pointer;
	text-transform: uppercase;
	transition: background-color 0.18s ease, transform 0.18s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	white-space: nowrap;
}

.home-banner__search-btn:hover,
.home-banner__search-btn:focus {
	background: var(--brand-primary-hover);
	transform: translateY(-1px);
}

.home-banner__search-btn-icon {
	display: none;
	font-size: 15px;
}

/* Accessibility ------------------------------------------------------------ */
.home-banner .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tablet ------------------------------------------------------------------- */
@media (max-width: 992px) {
	.home-banner {
		padding: 90px 0 70px;
		min-height: 480px;
	}
	.home-banner__search {
		max-width: 540px;
	}
}

/* Mobile ------------------------------------------------------------------- */
@media (max-width: 640px) {
	.home-banner {
		padding: 100px 0 60px;
		min-height: 640px;        /* fixed — no chrome-resize choppiness */
		align-items: flex-start;
	}

	.home-banner__eyebrow {
		font-size: 10px;
		letter-spacing: 0.22em;
		margin-bottom: 16px;
	}

	.home-banner__headline {
		font-size: clamp(36px, 11vw, 56px);
	}

	.home-banner__subtitle {
		font-size: 14px;
		margin-bottom: 26px;
		padding: 0 12px;
	}

	/* Stack the search vertically on phones — pill shape becomes a card. */
	.home-banner__search {
		flex-direction: column;
		border-radius: 16px;
		gap: 2px;
		padding: 8px;
		max-width: 360px;
	}

	.home-banner__search-divider {
		display: none;
	}

	.home-banner__search-field {
		padding: 12px 14px;
		border-radius: 8px;
	}

	.home-banner__search-field + .home-banner__search-field {
		border-top: 1px solid var(--color-line-soft);
	}

	.home-banner__search-btn {
		padding: 14px 20px;
		border-radius: 10px;
		margin-top: 6px;
		justify-content: center;
	}

	.home-banner__search-btn-icon {
		display: inline-block;
	}
}

/* ============================================================
   Cinematic entrance — staggered fade-up.

   Eyebrow lands first as a subtle anchor. Headline punches in
   slightly bigger with a tiny scale-up (hero moment). Subtitle
   follows as supporting copy. Search lands last — the implicit
   call to action.

   `backwards` fill mode prevents a flash of content before each
   animation's delay kicks in.
   ============================================================ */

@keyframes soflo-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes soflo-fade-up-scale {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.home-banner__eyebrow {
	animation: soflo-fade-up 0.9s ease-out 0.4s backwards;
}

.home-banner__headline {
	animation: soflo-fade-up-scale 1.1s ease-out 0.6s backwards;
}

.home-banner__subtitle {
	animation: soflo-fade-up 0.9s ease-out 1s backwards;
}

.home-banner__search {
	animation: soflo-fade-up 0.9s ease-out 1.3s backwards;
}

/* Accessibility: respect users who've opted out of motion. */
@media (prefers-reduced-motion: reduce) {
	.home-banner__eyebrow,
	.home-banner__headline,
	.home-banner__subtitle,
	.home-banner__search {
		animation: none;
	}
}