/* ==========================================================================
   Modern Hero — MidAtlanticComfort
   Scoped under .hero-modern. Reuses --brand-* tokens from
   style-midatlanticcomfort.css so UTM-brand overrides reskin automatically.
   To merge later: paste this block into the main stylesheet.
   ========================================================================== */

.hero-modern {
	position: relative;
	background: linear-gradient(135deg,
		rgba(var(--brand-secondary-dark-rgb), 0.97) 0%,
		rgba(var(--brand-secondary-rgb), 0.96) 100%);
	color: #fff;
	padding: 3rem 0;
	overflow: hidden;
	margin-top: 180px;
}

.hero-modern__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2.5rem;
	align-items: stretch;
}

/* ---------- Left: content ---------- */
.hero-modern__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
/* badge hugs its content instead of stretching full-width */
.hero-modern__badge { align-self: flex-start; }

/* bottom group: search + browse nav, centered within the column */
.hero-modern__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hero-modern__cta .hero-modern__search { width: 100%; }
.hero-modern__cta .hero-modern__search-field { margin-left: auto; margin-right: auto; }
.hero-modern__cta .hero-modern__links { justify-content: center; }

.hero-modern__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.4rem 0.9rem;
	border-radius: 100px;
	margin-bottom: 1.5rem;
}
.hero-modern__badge i { color: var(--brand-primary); }

.hero-modern__title {
	font-size: 3.25rem;
	line-height: 1.05;
	font-weight: 700;
	margin: 0 0 1rem;
	color: #fff;
}
.hero-modern__title-accent { color: var(--brand-primary); display: inline-block; font-size: 100%; font-weight: 900; }

.hero-modern__subtitle {
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
	max-width: 34rem;
	margin: 0 0 1.75rem;
}

/* ---------- Left: search ---------- */
.hero-modern__search { margin-bottom: 1.5rem; }

.hero-modern__search > label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0.6rem;
}

.hero-modern__search-field {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 100px;
	padding: 0.35rem 0.35rem 0.35rem 1.1rem;
	max-width: 30rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.hero-modern__search-field .fa-search { color: #9aa0a6; margin-right: 0.6rem; }

.hero-modern__search-field input[type="text"] {
	flex: 1 1 auto;
	border: none !important;
	outline: none;
	background: transparent;
	box-shadow: none !important;
	margin: 0;
	height: 2.4rem;
	color: #222;
	font-size: 0.95rem;
}
/* override Materialize global input styling inside the pill */
.hero-modern__search-field input[type="text"]:focus { border-bottom: none !important; box-shadow: none !important; }

.hero-modern__search-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
	cursor: pointer;
	background: var(--brand-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.65rem 1.4rem;
	border-radius: 100px;
	transition: background 0.15s ease;
}
.hero-modern__search-btn:hover { background: var(--brand-primary-dark); }

/* ---------- Left: links ---------- */
.hero-modern__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-weight: bold;
	gap: 1.25rem;
	font-size: 0.9rem;
	background: none !important;
	box-shadow: none;
}
.hero-modern__links > span { color: rgba(255, 255, 255, 0.55); }
.hero-modern__links a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}
.hero-modern__links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Right: dealer list ---------- */
.hero-modern__dealers {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.hero-modern__dealers-head {
	display: none; /* desktop hides; mobile shows */
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 1rem;
}
.hero-modern__dealers-head h2 {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}
.hero-modern__dealers-head a { color: var(--brand-primary); font-size: 0.85rem; text-decoration: none; }

.hero-modern__dealers-scroll {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	gap: 1rem;
	max-height: 50rem;
	overflow-y: auto;
	padding-right: 0.5rem;
	-webkit-overflow-scrolling: touch;
}
/* slim scrollbar */
.hero-modern__dealers-scroll::-webkit-scrollbar { width: 6px; }
.hero-modern__dealers-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 100px; }

/* ---------- Dealer card ---------- */
.hero-modern__card {
	position: relative;
	background: #fff;
	color: #222;
	border-radius: 14px;
	padding: 1.1rem 1.25rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hero-modern__card-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-bottom: 0.75rem;
	background: rgba(var(--brand-secondary-rgb), 0.08);
	padding: 0.25rem 0.5rem;
	border-radius: 100px;
}
.hero-modern__card-badge .validation_icons {
	display: block;
	height: 18px;
	width: auto;
}
.hero-modern__card-badge-label {
	font-size: 0.55rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--brand-secondary);
	white-space: nowrap;
}

.hero-modern__card-head {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.9rem;
}
.hero-modern__card-logo {
	width: auto;
	max-width: 150px;
	/*max-height: 60px;*/
	object-fit: contain;
	flex: 0 0 auto;
}
.hero-modern__card-id {
	flex: 1 1 auto;
	min-width: 0;
}
.hero-modern__card-name {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.2rem;
	color: #1a1a1a;
}
.hero-modern__card-loc {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}
.hero-modern__card-loc i { color: var(--brand-primary); }

.hero-modern__card-actions {
	display: flex;
	gap: 0.6rem;
}
.hero-modern__card-call,
.hero-modern__card-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	border-radius: 100px;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.6rem 1rem;
	text-decoration: none;
	transition: all 0.15s ease;
}
.hero-modern__card-call {
	flex: 1 1 auto;
	background: var(--brand-primary);
	color: #fff;
}
.hero-modern__card-call:hover { background: var(--brand-primary-dark); }
.hero-modern__card-view {
	flex: 0 0 auto;
	background: #fff;
	color: var(--brand-secondary-dark);
	border: 1px solid #d9d9d9;
}
.hero-modern__card-view:hover { background: #f5f5f5; }

/* ---------- Empty state ---------- */
.hero-modern__empty {
	background: #fff;
	color: #444;
	border-radius: 14px;
	padding: 2rem 1.5rem;
	text-align: center;
	margin-top: auto;
	margin-bottom: auto;
}
.hero-modern__empty-icon {
	font-size: 1.6rem;
	margin-bottom: 0.9rem;
}
.hero-modern__empty-icon .fa-circle { color: rgba(var(--brand-secondary-rgb), 0.12); }
.hero-modern__empty-icon .fa-map-marker-alt { color: var(--brand-secondary); }
.hero-modern__empty h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; color: #1a1a1a; }
.hero-modern__empty p { font-size: 0.9rem; color: #6b7280; margin: 0; }

/* ==========================================================================
   Responsive — single column below Materialize 'l' (992px)
   ========================================================================== */
@media only screen and (max-width: 992px) {
	.hero-modern { padding: 2rem 0; margin-top: 165px; }
	.hero-modern__inner { grid-template-columns: 1fr; gap: 1.75rem; }
	.hero-modern__title { font-size: 2.4rem; }
	.hero-modern__search-field { max-width: 100%; }
	.hero-modern__dealers-head { display: flex; }
	.hero-modern__dealers-scroll { max-height: none; overflow: visible; padding-right: 0; }
}

@media only screen and (max-width: 600px) {
	.hero-modern { margin-top: 0; }
	.hero-modern__badge { font-size: 0.7rem; }
	.hero-modern__title { font-size: 2rem; }
	.hero-modern__card-actions { flex-wrap: wrap; }
	.hero-modern__card-call,
	.hero-modern__card-view { flex: 1 1 100%; }
}