/*
 * Endrust Homepage Lite — stylesheet
 *
 * Mobile-first. Desktop styles use min-width media queries.
 * Designed to be aggregated by 10Web Optimizer — no @import, no external assets.
 *
 * Brand: dark #1A1A1A background accents, red #C0392B primary, light #F2F2F2 panels.
 */

:root {
	--ehl-red: #C0392B;
	--ehl-red-dark: #962d22;
	--ehl-dark: #1A1A1A;
	--ehl-grey: #F2F2F2;
	--ehl-grey-mid: #d8d8d8;
	--ehl-text: #222;
	--ehl-text-muted: #555;
	--ehl-radius: 6px;
	--ehl-shadow: 0 2px 8px rgba(0,0,0,0.08);
	--ehl-shadow-lg: 0 6px 24px rgba(0,0,0,0.12);
	--ehl-container: 1200px;
}

/* ----- Reset within our scope ----- */
.ehl-main *,
.ehl-main *::before,
.ehl-main *::after,
.ehl-sticky-cta * {
	box-sizing: border-box;
}

.ehl-main {
	color: var(--ehl-text);
	line-height: 1.55;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.ehl-container {
	width: 100%;
	max-width: var(--ehl-container);
	margin: 0 auto;
	padding: 0 16px;
}

/* ----- Typography (fluid) ----- */
.ehl-section-heading {
	font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
	margin: 0 0 1rem;
	color: var(--ehl-dark);
	letter-spacing: -0.01em;
	line-height: 1.2;
}

/* ----- Buttons ----- */
.ehl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 14px 24px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--ehl-radius);
	min-height: 48px; /* Mobile touch target */
	min-width: 48px;
	transition: background-color .15s ease, transform .15s ease;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	line-height: 1.2;
}

.ehl-btn--primary {
	background: var(--ehl-red);
	color: #fff;
}
.ehl-btn--primary:hover,
.ehl-btn--primary:focus {
	background: var(--ehl-red-dark);
	color: #fff;
}

.ehl-btn--secondary {
	background: transparent;
	color: var(--ehl-dark);
	border-color: var(--ehl-dark);
}
.ehl-btn--secondary:hover,
.ehl-btn--secondary:focus {
	background: var(--ehl-dark);
	color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.ehl-hero {
	padding: 32px 0 40px;
	background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
	border-bottom: 1px solid var(--ehl-grey);
}

.ehl-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ehl-red);
}

.ehl-hero__heading {
	margin: 0 0 16px;
	font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
	line-height: 1.15;
	color: var(--ehl-dark);
	letter-spacing: -0.02em;
}

.ehl-hero__body {
	margin: 0 0 16px;
	font-size: 1rem;
	color: var(--ehl-text-muted);
	max-width: 65ch;
}

.ehl-hero__tagline {
	margin: 0 0 24px;
	font-style: italic;
	font-weight: 600;
	color: var(--ehl-dark);
}

.ehl-hero__cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 600px) {
	.ehl-hero { padding: 56px 0 64px; }
	.ehl-hero__cta { flex-direction: row; flex-wrap: wrap; }
	.ehl-hero__cta .ehl-btn { width: auto; }
}

/* ============================================================
   PRODUCT TILES
   ============================================================ */
.ehl-tiles {
	padding: 40px 0;
}

.ehl-tiles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ehl-tile {
	display: block;
	background: #fff;
	border: 1px solid var(--ehl-grey);
	border-radius: var(--ehl-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--ehl-text);
	box-shadow: var(--ehl-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}

.ehl-tile:hover,
.ehl-tile:focus {
	transform: translateY(-2px);
	box-shadow: var(--ehl-shadow-lg);
}

.ehl-tile__image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--ehl-grey);
}

.ehl-tile__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ehl-tile__title {
	margin: 0;
	padding: 16px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ehl-dark);
	text-align: center;
}

@media (min-width: 600px) {
	.ehl-tiles__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (min-width: 900px) {
	.ehl-tiles { padding: 64px 0; }
	.ehl-tiles__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ============================================================
   TRUST / FIND APPLICATOR
   ============================================================ */
.ehl-trust {
	padding: 40px 0;
	background: var(--ehl-dark);
	color: #fff;
}

.ehl-trust__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

.ehl-trust .ehl-section-heading {
	color: #fff;
}

.ehl-trust__copy p {
	color: rgba(255,255,255,0.85);
	margin: 0 0 20px;
}

.ehl-trust__states-label {
	margin: 0 0 12px;
	font-weight: 600;
	font-size: 0.95rem;
	color: rgba(255,255,255,0.7);
}

.ehl-state-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.ehl-state-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: var(--ehl-radius);
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	min-height: 48px;
	transition: background-color .15s ease;
}

.ehl-state-pill:hover,
.ehl-state-pill:focus {
	background: rgba(192, 57, 43, 0.4);
	border-color: var(--ehl-red);
}

.ehl-state-pill__code {
	font-weight: 700;
	color: var(--ehl-red);
	min-width: 32px;
}
.ehl-state-pill:hover .ehl-state-pill__code,
.ehl-state-pill:focus .ehl-state-pill__code {
	color: #fff;
}

.ehl-state-pill__label {
	color: rgba(255,255,255,0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 768px) {
	.ehl-trust { padding: 64px 0; }
	.ehl-trust__inner { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
	.ehl-state-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
	.ehl-state-list { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FEATURED PRODUCT
   ============================================================ */
.ehl-featured {
	padding: 40px 0;
	background: var(--ehl-grey);
}

.ehl-featured__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
}

.ehl-featured__media {
	border-radius: var(--ehl-radius);
	overflow: hidden;
	background: #fff;
	position: relative;
}

.ehl-featured__media img {
	display: block;
	width: 100%;
	height: auto;
}

.ehl-featured__eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ehl-red);
}

.ehl-featured__title {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.8rem);
	color: var(--ehl-dark);
}

.ehl-featured__subtitle {
	margin: 0 0 16px;
	font-weight: 600;
	color: var(--ehl-red);
}

.ehl-featured__body {
	margin: 0 0 20px;
	color: var(--ehl-text-muted);
}

@media (min-width: 800px) {
	.ehl-featured { padding: 64px 0; }
	.ehl-featured__inner { grid-template-columns: 1fr 1.2fr; gap: 48px; }
}

/* Lazy video placeholder */
.ehl-video-lazy {
	position: relative;
	cursor: pointer;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ehl-video-lazy img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.ehl-video-lazy__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 80px;
	height: 80px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
	display: grid;
	place-items: center;
}

.ehl-video-lazy__play svg {
	width: 80px;
	height: 80px;
	transition: transform .15s ease;
}

.ehl-video-lazy:hover .ehl-video-lazy__play svg {
	transform: scale(1.08);
}

/* ============================================================
   INFO (Who needs / Benefits)
   ============================================================ */
.ehl-info {
	padding: 40px 0;
	background: #fff;
}

.ehl-info__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

.ehl-info__list {
	margin: 0;
	padding: 0 0 0 1.2rem;
	list-style: none;
}

.ehl-info__list li {
	position: relative;
	padding: 6px 0 6px 1.5rem;
	color: var(--ehl-text-muted);
}

.ehl-info__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 8px;
	height: 8px;
	background: var(--ehl-red);
	border-radius: 50%;
}

.ehl-info__cta {
	margin: 28px 0 0;
	text-align: center;
}

@media (min-width: 768px) {
	.ehl-info { padding: 64px 0; }
	.ehl-info__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ============================================================
   SOCIAL / GALLERY CARDS (replaces FB embed)
   ============================================================ */
.ehl-social {
	padding: 40px 0 80px;
	background: var(--ehl-grey);
}

.ehl-social__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ehl-social__card {
	display: block;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--ehl-grey-mid);
	border-radius: var(--ehl-radius);
	text-decoration: none;
	color: var(--ehl-text);
	transition: border-color .15s ease, transform .15s ease;
}

.ehl-social__card:hover,
.ehl-social__card:focus {
	border-color: var(--ehl-red);
	transform: translateY(-2px);
}

.ehl-social__card h3 {
	margin: 0 0 8px;
	color: var(--ehl-dark);
}

.ehl-social__card p {
	margin: 0 0 12px;
	color: var(--ehl-text-muted);
	font-size: 0.95rem;
}

.ehl-link-arrow {
	color: var(--ehl-red);
	font-weight: 600;
}

@media (min-width: 768px) {
	.ehl-social__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.ehl-sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fff;
	border-top: 1px solid var(--ehl-grey-mid);
	box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
	z-index: 9000;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.ehl-sticky-cta__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 8px;
	min-height: 56px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background-color .15s ease;
}

.ehl-sticky-cta__btn--call {
	color: var(--ehl-dark);
	border-right: 1px solid var(--ehl-grey-mid);
}

.ehl-sticky-cta__btn--call:hover,
.ehl-sticky-cta__btn--call:focus {
	background: var(--ehl-grey);
}

.ehl-sticky-cta__btn--quote {
	background: var(--ehl-red);
	color: #fff;
}

.ehl-sticky-cta__btn--quote:hover,
.ehl-sticky-cta__btn--quote:focus {
	background: var(--ehl-red-dark);
	color: #fff;
}

/* Push the bottom of main up so sticky bar doesn't overlap content */
body.ehl-lite-page {
	padding-bottom: 60px;
}

/* Hide sticky CTA on desktop — header CTAs are visible there */
@media (min-width: 1024px) {
	.ehl-sticky-cta { display: none; }
	body.ehl-lite-page { padding-bottom: 0; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
	.ehl-sticky-cta { display: none; }
	.ehl-trust { background: #fff; color: #000; }
	.ehl-trust .ehl-section-heading { color: #000; }
}
