/* =========================================================
   eh-hero-block.css
   Hero Section — desktop + mobile responsive styles
   ========================================================= */

/* ── Section wrapper ─────────────────────────────────── */
.eh-hero-block {
	display: block;
	width: 100%;
	background: #ffffff;
	overflow: hidden;
}

.eh-hero__inner {
	display: grid;
	grid-template-columns: 54fr 46fr;
	gap: 48px;
	align-items: center;
	padding: 52px 48px 52px 56px;
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ── Left column ─────────────────────────────────────── */
.eh-hero__left {
	display: flex;
	flex-direction: column;
}

/* Badge */
.eh-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1.5px solid #2563eb;
	color: #2563eb;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 20px;
	width: fit-content;
}

.eh-hero__badge-dot {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2563eb;
	flex-shrink: 0;
}

.eh-hero__badge-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	flex-shrink: 0;
}

/* Headline — raw HTML output (may be bare text + <br>/<span>, or wrapped in p/h1/h2) */
.eh-hero__headline {
	font-size: clamp(28px, 3.5vw, 38px);
	font-weight: 800;
	line-height: 1.18;
	color: #0f172a;
	letter-spacing: -0.025em;
	margin-bottom: 16px;
}
/* Absorb any block-editor-generated wrappers */
.eh-hero__headline p,
.eh-hero__headline h1,
.eh-hero__headline h2 {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	letter-spacing: inherit;
	margin: 0;
}
.eh-hero__headline strong {
	font-weight: 800;
}

/* Subtitle */
.eh-hero__subtitle {
	font-size: 14.5px;
	line-height: 1.7;
	color: #64748b;
	margin-bottom: 32px;
	max-width: 420px;
}

/* CTA button */
.eh-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #2563eb;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	padding: 13px 26px;
	border-radius: 8px;
	text-decoration: none;
	margin-bottom: 40px;
	width: fit-content;
	transition: background 0.15s ease;
}
.eh-hero__cta:hover,
.eh-hero__cta:focus-visible {
	background: #1d4ed8;
	color: #ffffff;
}
.eh-hero__cta svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Features row */
.eh-hero__features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	border-top: 1px solid #f1f5f9;
	padding-top: 28px;
	content-visibility: auto;
	contain-intrinsic-size: 0 80px;
}

.eh-hero__feature {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.eh-hero__feature-icon {
	width: 36px;
	height: 36px;
	background: #eff6ff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}
.eh-hero__feature-icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.eh-hero__feature-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #334155;
	line-height: 1.35;
}

/* ── Right column: carousel container ───────────────── */
.eh-hero__right {
	position: relative;
}

/* Slides wrapper — relative positioning context */
.eh-hero__slides {
	position: relative;
}

/* Each slide — hidden by default, shown when .is-active */
.eh-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.eh-hero__slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

/* Image grid inside each slide */
.eh-hero__img-grid {
	gap: 10px;
	height: 380px;
	border-radius: 16px;
	overflow: hidden;
}

/* Grid layout: main image + up to 3 thumbnails */
.eh-hero__img-grid--grid {
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	grid-template-rows: 1fr;
}

.eh-hero__img-grid--grid .eh-hero__img-main {
	grid-row: 1;
	overflow: hidden;
	border-radius: 12px;
}

/* Single layout: one full-width image per slide */
.eh-hero__img-grid--single {
	display: block;
}

.eh-hero__img-grid--single .eh-hero__img-main {
	height: 100%;
	overflow: hidden;
	border-radius: 12px;
}

/* Fallback for any grid without a modifier */
.eh-hero__img-main {
	overflow: hidden;
	border-radius: 12px;
}

.eh-hero__img-thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eh-hero__img-thumb {
	flex: 1;
	overflow: hidden;
	border-radius: 12px;
}

.eh-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Arrows */
.eh-hero__arrow {
	position: absolute;
	top: calc(380px / 2);
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
	cursor: pointer;
	z-index: 2;
	padding: 0;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.eh-hero__arrow:hover,
.eh-hero__arrow:focus-visible {
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	outline: 2px solid #2563eb;
}
.eh-hero__arrow svg {
	width: 18px;
	height: 18px;
	color: #334155;
}
.eh-hero__arrow--prev { left: -16px; }
.eh-hero__arrow--next { right: -16px; }

/* Dot indicators */
.eh-hero__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.eh-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #cbd5e1;
	cursor: pointer;
	padding: 0;
	transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
}
.eh-hero__dot.is-active {
	width: 22px;
	border-radius: 4px;
	background: #2563eb;
}
.eh-hero__dot:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* =========================================================
   Responsive — Tablet (768–1023 px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
	.eh-hero__inner {
		grid-template-columns: 1fr 1fr;
		padding: 40px 32px;
		gap: 28px;
	}

	.eh-hero__headline {
		font-size: 30px;
	}

	.eh-hero__img-grid {
		height: 300px;
	}

	.eh-hero__arrow {
		top: calc(300px / 2);
	}
}

/* =========================================================
   Responsive — Mobile (< 768 px)

   Layout: section = full viewport height.
   .eh-hero__right fills as background image layer (z: 0).
   .eh-hero__inner fills as text layer (z: 2), content
   stacked at the bottom over a dark-to-transparent overlay.
   ========================================================= */
@media (max-width: 767px) {

	/* ── Section: full-viewport frame ───────── */
	.eh-hero-block {
		position: relative !important;
		height: 100svh !important;
		min-height: 500px !important;
		max-height: 800px !important;
		overflow: hidden !important;
		/* SVG fallback while WP image loads */
		background-image: url('../images/hero-mobile-bg.svg');
		background-size: cover;
		background-position: center 30%;
	}

	/* ── Text layer: flex column, content at bottom ── */
	.eh-hero__inner {
		position: absolute !important;
		inset: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: flex-end !important;
		align-items: flex-start !important;
		padding: 0 22px 36px !important;
		gap: 0 !important;
		z-index: 2;
		/* no grid — right col is absolute bg */
	}

	/* ── Image background layer ──────────────── */
	.eh-hero__right {
		position: absolute !important;
		inset: 0 !important;
		z-index: 0;
	}

	/* Dark-to-transparent overlay (bottom-heavy for text) */
	.eh-hero__right::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(
			to top,
			rgba(4, 12, 26, 0.94) 0%,
			rgba(5, 14, 28, 0.80) 28%,
			rgba(5, 14, 28, 0.42) 55%,
			rgba(5, 14, 28, 0.10) 80%,
			transparent 100%
		);
		z-index: 1;
		pointer-events: none;
	}

	/* Slides fill the right container completely */
	.eh-hero__slides {
		position: absolute !important;
		inset: 0 !important;
	}

	.eh-hero__slide {
		position: absolute !important;
		inset: 0 !important;
		height: 100% !important;
	}

	.eh-hero__slide.is-active {
		position: absolute !important;
		inset: 0 !important;
		height: 100% !important;
		opacity: 1 !important;
		pointer-events: auto;
	}

	.eh-hero__img-grid {
		height: 100% !important;
		border-radius: 0 !important;
		grid-template-columns: 1fr !important;
		grid-template-rows: 1fr !important;
	}

	.eh-hero__img-thumbs {
		display: none !important;
	}

	.eh-hero__img-main {
		height: 100% !important;
		grid-column: 1 / -1 !important;
		grid-row: 1 !important;
		border-radius: 0 !important;
	}

	.eh-hero__img {
		object-fit: cover !important;
		object-position: center 22% !important;
		width: 100% !important;
		height: 100% !important;
		border-radius: 0 !important;
		display: block !important;
	}

	/* ── Text styles on dark overlay ──────────── */
	.eh-hero__badge {
		border-color: rgba(255, 255, 255, 0.45);
		color: rgba(255, 255, 255, 0.88);
		margin-bottom: 12px;
		font-size: 11px;
	}

	.eh-hero__badge-dot {
		background: rgba(255, 255, 255, 0.75);
	}

	.eh-hero__headline {
		font-size: 30px;
		color: #ffffff;
		margin-bottom: 10px;
		line-height: 1.15;
	}

	.eh-hero__subtitle {
		font-size: 13.5px;
		color: rgba(255, 255, 255, 0.72);
		max-width: 100%;
		margin-bottom: 20px;
		line-height: 1.6;
	}

	.eh-hero__cta {
		width: 100%;
		justify-content: center;
		margin-bottom: 18px;
		font-size: 14.5px;
		padding: 14px 24px;
	}

	.eh-hero__features {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px 14px;
		border-top: 1px solid rgba(255, 255, 255, 0.16);
		padding-top: 14px;
		width: 100%;
		content-visibility: visible;
	}

	.eh-hero__feature {
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}

	.eh-hero__feature-label {
		font-size: 11px;
		color: rgba(255, 255, 255, 0.80);
		line-height: 1.3;
	}

	.eh-hero__feature-icon {
		background: rgba(255, 255, 255, 0.10);
		flex-shrink: 0;
	}

	/* Arrows: float at sides, above overlay */
	.eh-hero__arrow {
		z-index: 3;
		top: 40%;
		width: 32px;
		height: 32px;
		background: rgba(255, 255, 255, 0.15);
		border: 1px solid rgba(255, 255, 255, 0.30);
	}
	.eh-hero__arrow--prev { left: 12px; }
	.eh-hero__arrow--next { right: 12px; }

	.eh-hero__dots {
		position: absolute;
		z-index: 3;
		top: 16px;
		right: 16px;
		left: auto;
		margin-top: 0;
		gap: 5px;
	}
}

/* =========================================================
   Responsive — Small phone (< 400 px)
   ========================================================= */
@media (max-width: 400px) {
	.eh-hero__inner {
		padding: 0 18px 28px !important;
	}

	.eh-hero__badge {
		font-size: 10px;
		padding: 4px 10px;
	}

	.eh-hero__headline {
		font-size: 26px;
	}

	.eh-hero__subtitle {
		font-size: 13px;
		margin-bottom: 16px;
	}

	.eh-hero__cta {
		padding: 13px 20px;
		font-size: 14px;
	}
}
