/**
 * EMPORAS — Hero Banner with Text Overlay
 *
 * Used by both hero (homepage top) and featured banner (after products).
 * Same component, different content. Inspired by Toolstation,
 * Bauhaus, and ManoMano landing hero patterns.
 *
 * @package EMPORAS
 * @since   1.6.1
 */

/* ============================================
   HERO CONTAINER
   ============================================ */
.emporas-hero {
	position: relative;
	width: 100%;
	min-height: 480px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--off-white, #f5f5f7);
	margin: 0;
}
.emporas-hero--featured {
	min-height: 420px;
}

/* Background image fills the whole section */
.emporas-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

/* Dark overlay for text readability */
.emporas-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.7) 0%,
		rgba(0, 0, 0, 0.45) 50%,
		rgba(0, 0, 0, 0.25) 100%
	);
	z-index: 2;
}
.emporas-hero--align-right .emporas-hero__overlay {
	background: linear-gradient(
		-135deg,
		rgba(0, 0, 0, 0.7) 0%,
		rgba(0, 0, 0, 0.45) 50%,
		rgba(0, 0, 0, 0.25) 100%
	);
}
.emporas-hero--align-center .emporas-hero__overlay {
	background: radial-gradient(
		ellipse at center,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.3) 100%
	);
}

/* Inner constrained width */
.emporas-hero__inner {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: var(--container-max, 1280px);
	margin: 0 auto;
	padding: 60px 24px;
	display: flex;
}
.emporas-hero--align-left .emporas-hero__inner   { justify-content: flex-start; }
.emporas-hero--align-center .emporas-hero__inner { justify-content: center; }
.emporas-hero--align-right .emporas-hero__inner  { justify-content: flex-end; }

/* Content card */
.emporas-hero__content {
	max-width: 580px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.emporas-hero--align-center .emporas-hero__content {
	text-align: center;
	align-items: center;
}
.emporas-hero--align-right .emporas-hero__content {
	text-align: right;
	align-items: flex-end;
}

/* ============================================
   TEXT ELEMENTS
   ============================================ */
.emporas-hero__eyebrow {
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 100px;
	align-self: flex-start;
	display: inline-block;
}
.emporas-hero--align-center .emporas-hero__eyebrow { align-self: center; }
.emporas-hero--align-right .emporas-hero__eyebrow  { align-self: flex-end; }

.emporas-hero__title {
	font-family: var(--font-display, 'Barlow Condensed', 'Inter', sans-serif);
	font-size: clamp(36px, 5.5vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.5px;
	margin: 0;
	text-transform: uppercase;
}
.emporas-hero__title br {
	line-height: 0;
}

.emporas-hero__subtitle {
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
	max-width: 520px;
	opacity: 0.92;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.emporas-hero__actions {
	margin-top: 8px;
}
.emporas-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	background: #ffffff;
	color: var(--emporas-navy, #1e2a5e) !important;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	border-radius: 100px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.emporas-hero__cta svg {
	transition: transform 0.2s ease;
}
.emporas-hero__cta:hover {
	background: var(--emporas-navy, #1e2a5e);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.emporas-hero__cta:hover svg {
	transform: translateX(4px);
}

/* ============================================
   COLOR VARIANTS
   ============================================ */
.emporas-hero--text-light {
	color: #ffffff;
}
.emporas-hero--text-light .emporas-hero__title,
.emporas-hero--text-light .emporas-hero__subtitle,
.emporas-hero--text-light .emporas-hero__eyebrow {
	color: #ffffff;
}

.emporas-hero--text-dark {
	color: var(--charcoal, #1d1f23);
}
.emporas-hero--text-dark .emporas-hero__title,
.emporas-hero--text-dark .emporas-hero__subtitle {
	color: var(--charcoal, #1d1f23);
}
.emporas-hero--text-dark .emporas-hero__eyebrow {
	color: var(--charcoal, #1d1f23);
	background: rgba(0, 0, 0, 0.06);
	border-color: rgba(0, 0, 0, 0.12);
}
.emporas-hero--text-dark .emporas-hero__cta {
	background: var(--emporas-navy, #1e2a5e);
	color: #ffffff !important;
}
.emporas-hero--text-dark .emporas-hero__cta:hover {
	background: var(--charcoal, #1d1f23);
	color: #ffffff !important;
}

/* ============================================
   FEATURED VARIANT (slightly smaller)
   ============================================ */
.emporas-hero--featured .emporas-hero__title {
	font-size: clamp(30px, 4.5vw, 52px);
}
.emporas-hero--featured .emporas-hero__inner {
	padding: 48px 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
	.emporas-hero {
		min-height: 420px;
	}
	.emporas-hero__inner {
		padding: 40px 20px;
	}
	.emporas-hero__content {
		max-width: 100%;
	}
	/* On tablets, force right-aligned content to center for readability */
	.emporas-hero--align-right .emporas-hero__inner {
		justify-content: center;
	}
	.emporas-hero--align-right .emporas-hero__content {
		text-align: left;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.emporas-hero {
		min-height: 360px;
	}
	.emporas-hero--featured {
		min-height: 320px;
	}
	.emporas-hero__inner {
		padding: 32px 16px;
	}
	/* On mobile, all hero variants center-align for consistency */
	.emporas-hero__inner {
		justify-content: flex-start;
	}
	.emporas-hero__content {
		text-align: left;
		align-items: flex-start;
		gap: 14px;
	}
	.emporas-hero__eyebrow {
		font-size: 10px;
		letter-spacing: 1.5px;
		padding: 5px 11px;
		align-self: flex-start;
	}
	.emporas-hero__title {
		font-size: 30px;
		line-height: 1.1;
	}
	.emporas-hero__subtitle {
		font-size: 14px;
		line-height: 1.5;
	}
	.emporas-hero__cta {
		padding: 13px 24px;
		font-size: 12px;
	}
	/* Stronger overlay on mobile for guaranteed text contrast */
	.emporas-hero__overlay {
		opacity: 0.55 !important;
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.35) 0%,
			rgba(0, 0, 0, 0.65) 100%
		) !important;
	}
}

/* ============================================
   HERO WRAPPER (contains all 3 sections)
   ============================================ */
.emporas-hero-wrap {
	display: block;
	width: 100%;
}

/* ============================================
   TOP STRIP — 4 Trust Badges (navy bg)
   ============================================ */
.emporas-hero-topstrip {
	background: linear-gradient(180deg, var(--emporas-navy, #1e2a5e) 0%, var(--emporas-navy-dark, #14204e) 100%);
	color: #ffffff;
	padding: 18px 0;
	position: relative;
}
.emporas-hero-topstrip::before,
.emporas-hero-topstrip::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
}
.emporas-hero-topstrip::before { top: 0; }
.emporas-hero-topstrip::after  { bottom: 0; }

.emporas-hero-topstrip__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
}

.emporas-hero-topstrip__item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	justify-content: center;
	padding: 8px 16px;
}

.emporas-hero-topstrip__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}
.emporas-hero-topstrip__icon svg {
	width: 32px;
	height: 32px;
	stroke-width: 1.6;
}

.emporas-hero-topstrip__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.emporas-hero-topstrip__label {
	font-family: var(--font-display, 'Barlow Condensed', 'Inter', sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1.2;
}
.emporas-hero-topstrip__subtitle {
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.3;
}

.emporas-hero-topstrip__divider {
	width: 1px;
	height: 42px;
	background: rgba(255, 255, 255, 0.18);
	align-self: center;
}

/* ============================================
   BOTTOM STRIP — Category Quick Links (dark bg)
   ============================================ */
.emporas-hero-bottomstrip {
	background: var(--charcoal, #1d1f23);
	color: #ffffff;
	padding: 16px 0;
	border-bottom: 3px solid var(--emporas-navy, #1e2a5e);
}

.emporas-hero-bottomstrip__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.emporas-hero-bottomstrip__item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.15s ease, transform 0.15s ease;
	font-family: var(--font-display, 'Barlow Condensed', 'Inter', sans-serif);
	justify-content: center;
}
.emporas-hero-bottomstrip__item:hover {
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-1px);
}

.emporas-hero-bottomstrip__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--emporas-navy-light, #5a6fb5);
}
.emporas-hero-bottomstrip__icon svg {
	width: 26px;
	height: 26px;
	stroke-width: 1.6;
}

.emporas-hero-bottomstrip__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1.2;
}

/* ============================================
   TITLE ACCENT (for the SΩΣΤΑ blue highlight)
   ============================================ */
.emporas-hero__title-accent {
	display: block;
	color: var(--emporas-navy-light, #5a6fb5);
	font-size: 1.1em;
	margin-top: 4px;
}
.emporas-hero--text-light .emporas-hero__title-accent {
	color: #6e85d6;
	text-shadow: 0 0 30px rgba(110, 133, 214, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
	.emporas-hero-topstrip__label {
		font-size: 13px;
	}
	.emporas-hero-topstrip__subtitle {
		font-size: 11px;
	}
	.emporas-hero-topstrip__icon svg {
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 900px) {
	.emporas-hero-topstrip__inner {
		flex-wrap: wrap;
		gap: 8px 0;
	}
	.emporas-hero-topstrip__item {
		flex: 0 0 50%;
		justify-content: flex-start;
	}
	.emporas-hero-topstrip__divider {
		display: none;
	}
	.emporas-hero-bottomstrip__inner {
		flex-wrap: wrap;
		gap: 4px;
	}
	.emporas-hero-bottomstrip__item {
		flex: 0 0 calc(50% - 2px);
	}
}

@media (max-width: 600px) {
	.emporas-hero-topstrip {
		padding: 14px 0;
	}
	.emporas-hero-topstrip__inner {
		padding: 0 14px;
	}
	.emporas-hero-topstrip__item {
		gap: 10px;
		padding: 6px 4px;
	}
	.emporas-hero-topstrip__icon svg {
		width: 22px;
		height: 22px;
	}
	.emporas-hero-topstrip__label {
		font-size: 11px;
		letter-spacing: 0.3px;
	}
	.emporas-hero-topstrip__subtitle {
		font-size: 10px;
	}

	.emporas-hero-bottomstrip {
		padding: 12px 0;
	}
	.emporas-hero-bottomstrip__inner {
		padding: 0 12px;
	}
	.emporas-hero-bottomstrip__item {
		padding: 8px 10px;
		gap: 8px;
		justify-content: flex-start;
	}
	.emporas-hero-bottomstrip__icon svg {
		width: 20px;
		height: 20px;
	}
	.emporas-hero-bottomstrip__label {
		font-size: 10px;
		letter-spacing: 0.3px;
	}
}
