/**
 * Hero Search — Split layout (text left + card right) — Light.
 *
 * @package DroxAuto
 */

/* ═══════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════ */
.hero-search {
	background: var(--hs-bg, #f5f5f5);
	padding: var(--hs-pad, 60px) 0;
	position: relative;
}

.hero-search--bg-subtle-gradient {
	background: linear-gradient(
		135deg,
		var(--hs-bg, #f5f5f5) 0%,
		color-mix(in srgb, var(--hs-bg, #f5f5f5), var(--hs-focus, #f5700a) 3%) 100%
	);
}

.hero-search--bg-accent-top {
	border-top: 3px solid var(--hs-focus, #f5700a);
}

/* ═══════════════════════════════════════════
   INNER + GRID
   ═══════════════════════════════════════════ */
.hs__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
}

.hs__grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	align-items: center;
	gap: 60px;
}

/* ═══════════════════════════════════════════
   LEFT — TEXT
   ═══════════════════════════════════════════ */
.hs__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hs__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--hs-focus, #f5700a);
	background: color-mix(in srgb, var(--hs-focus, #f5700a), transparent 88%);
	border: 1px solid color-mix(in srgb, var(--hs-focus, #f5700a), transparent 70%);
	border-radius: 4px;
	padding: 6px 14px;
	margin-bottom: 24px;
}

.hs__badge::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--hs-focus, #f5700a);
	border-radius: 50%;
	flex-shrink: 0;
}

.hs__heading {
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -1px;
	text-transform: uppercase;
	color: var(--hs-title, #1a1a1a);
	margin: 0 0 20px;
}

.hs__heading-accent {
	display: block;
	color: var(--hs-focus, #f5700a);
}

.hs__desc {
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 300;
	color: #777;
	line-height: 1.7;
	max-width: 480px;
	margin: 0;
}

/* ═══════════════════════════════════════════
   RIGHT — FINDER CARD
   ═══════════════════════════════════════════ */
.hs__card {
	background: var(--hs-card-bg, #fff);
	border: 1px solid var(--hs-border, #e0e0e0);
	border-radius: var(--hs-card-r, 12px);
	padding: 32px;
}

/* Shadows */
.hs__card--shadow-none { box-shadow: none; }
.hs__card--shadow-soft { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.hs__card--shadow-medium { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.hs__card--shadow-strong { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.hs__card-title {
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--hs-title, #1a1a1a);
	margin: 0 0 6px;
}

.hs__card-desc {
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 13px;
	color: #999;
	margin: 0 0 24px;
}

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.hs__tabs {
	display: flex;
	background: #f0f0f0;
	border-radius: 6px;
	padding: 4px;
	margin-bottom: 22px;
}

.hs__tab {
	flex: 1;
	padding: 8px;
	text-align: center;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #999;
	cursor: pointer;
	border-radius: 4px;
	border: none;
	background: transparent;
	transition: all 0.2s;
}

.hs__tab:hover {
	color: #666;
}

.hs__tab--active {
	background: var(--hs-focus, #f5700a);
	color: #fff;
}

/* ═══════════════════════════════════════════
   PANELS
   ═══════════════════════════════════════════ */
.hs__panel { display: none; }
.hs__panel--active { display: block; }

/* ═══════════════════════════════════════════
   FIELDS
   ═══════════════════════════════════════════ */
.hs__fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hs__select-wrap { position: relative; }

.hs__select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 12px 16px;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	background: #f8f8f8;
	border: 1px solid var(--hs-border, #e0e0e0);
	border-radius: 6px;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.hs__select:focus {
	border-color: var(--hs-focus, #f5700a);
}

/* ─── Input (VIN) ─── */
.hs__input-wrap { position: relative; }

.hs__input {
	width: 100%;
	padding: 12px 16px;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	background: #f8f8f8;
	border: 1px solid var(--hs-border, #e0e0e0);
	border-radius: 6px;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.hs__input:focus {
	border-color: var(--hs-focus, #f5700a);
}

.hs__input::placeholder {
	color: #aaa;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* VIN help */
.hs__vin-help {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 11.5px;
	color: #aaa;
	margin: 0;
	line-height: 1.4;
}

.hs__vin-help svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: #ccc;
}

/* ═══════════════════════════════════════════
   BUTTON
   ═══════════════════════════════════════════ */
.hs__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--hs-btn-color, #fff);
	background: var(--hs-btn-bg, #f5700a);
	border: none;
	border-radius: var(--hs-btn-r, 6px);
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 4px;
}

.hs__btn:hover {
	filter: brightness(1.1);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
	.hs__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hs__text {
		align-items: center;
		text-align: center;
	}

	.hs__desc {
		max-width: 100%;
	}

	.hs__inner {
		padding: 0 20px;
	}
}

@media (max-width: 768px) {
	.hero-search {
		padding: calc(var(--hs-pad, 60px) * 0.65) 0;
	}

	.hs__heading {
		font-size: clamp(32px, 8vw, 48px);
	}

	.hs__card {
		padding: 24px;
	}
}

@media (max-width: 480px) {
	.hs__tab {
		font-size: 11px;
		padding: 7px 6px;
	}

	.hs__select,
	.hs__input {
		padding: 11px 14px;
		font-size: 13.5px;
	}

	.hs__btn {
		padding: 13px;
		font-size: 14px;
	}
}
