/* ==========================================================================
   Shared components: section headings, stars, partner marquee, why-us block.
   Loaded on the home, about and product pages.
   ========================================================================== */

.ep-h2 {
	font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.08;
	margin: 0 0 18px;
}
.ep-lead { color: #5a5f66; font-family: var(--ep-font-ui); font-size: 19px; line-height: 1.45; margin: 0; }
.ep-lead--narrow { max-width: 720px; }
.ep-center { text-align: center; margin: 40px 0 0; }
.ep-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* Stars ------------------------------------------------------------------- */
.ep-stars { color: var(--ep-accent); font-size: 18px; letter-spacing: 2px; line-height: 1; margin: 0 0 14px; }
.ep-stars__half {
	background: linear-gradient(90deg, var(--ep-accent) 50%, #d9d6d2 50%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.ep-stars__empty { color: #d9d6d2; }

/* Partner marquee (CSS only) ------------------------------------------------ */
.ep-marquee {
	display: flex; overflow: hidden; margin-block: 40px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ep-marquee__track {
	display: flex; flex-shrink: 0; gap: 20px; padding: 0 20px 0 0; margin: 0; list-style: none;
	animation: ep-marquee 28s linear infinite;
}
.ep-marquee:hover .ep-marquee__track { animation-play-state: paused; }
.ep-marquee__item {
	display: grid;
	place-items: center;
	width: 208px;
	height: 120px;
	padding: 0 24px;
	background: var(--ep-surface);
	border: 1px solid var(--ep-line);
	border-radius: 24px;
	transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.ep-marquee__item img {
	max-width: 100%;
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
	/* Original look: muted grey logos, full colour on hover. */
	filter: grayscale(1);
	opacity: .6;
	transition: filter .35s ease, opacity .35s ease;
}
.ep-marquee__item:hover {
	border-color: #f2c4c1;
	box-shadow: 0 18px 40px rgb(208 18 12 / .16);
	transform: translateY(-4px);
}
.ep-marquee__item:hover img {
	filter: none;
	opacity: 1;
}
@keyframes ep-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ep-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.ep-marquee__track { animation: none; }
	.ep-marquee__track[aria-hidden="true"] { display: none; }
}

/* Why us ------------------------------------------------------------------ */
.ep-why {
	display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; padding-block: 72px 96px;
}
.ep-why__stat { background: var(--ep-dark); color: #fff; border-radius: 28px; padding: 32px 28px; margin-top: 48px; }
.ep-why__num { color: #fff; font: 800 clamp(56px, 6vw, 76px)/1 var(--ep-font-ui); letter-spacing: -2px; margin: 0 0 22px; }
.ep-why__stat .ep-stars__half { background-image: linear-gradient(90deg, var(--ep-accent) 50%, #fff 50%); }
.ep-why__stat-text { color: #c4c7cc; font-family: var(--ep-font-ui); font-size: 15px; line-height: 1.4; margin: 0; }
.ep-why__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ep-why__features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ep-why__feature {
	position: relative; background: var(--ep-surface); border: 1px solid var(--ep-line); border-radius: 24px; padding: 30px;
}
.ep-why__icon {
	display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 48px;
	background: #fdecea; color: var(--ep-accent); border-radius: 14px;
}
.ep-why__icon svg { width: 24px; height: 24px; fill: currentColor; }
.ep-why__fnum { position: absolute; top: 34px; right: 30px; color: var(--ep-ink-soft); font: 700 13px/1 var(--ep-font-ui); }
.ep-why__feature h3 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 10px; }
.ep-why__feature p { color: #5a5f66; font-family: var(--ep-font-ui); font-size: 15px; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
	.ep-why { grid-template-columns: 1fr; }
	.ep-why__stat { margin-top: 32px; }
}
@media (max-width: 600px) {
	.ep-why { padding-block: 48px 64px; }
	.ep-why__feature { padding: 24px; }
	.ep-why__features { grid-template-columns: 1fr; }
	.ep-why__icon { margin-bottom: 28px; }
	.ep-marquee__item { width: 156px; height: 104px; padding: 0 16px; border-radius: 20px; } .ep-marquee__item img { max-height: 54px; }
}

/* Pre-rebuild design match for "Why us" (home + product pages). */
@media (min-width: 1025px) {
	.ep-why .ep-kicker { font-size: 13px; line-height: 1; letter-spacing: 1.8px; }
	.ep-why .ep-h2 { font-size: 52px; line-height: 1.05; letter-spacing: -1.5px; }
	.ep-why .ep-lead { font-size: 17px; line-height: 1.55; max-width: 420px; }
	.ep-why__num { line-height: 68.4px; letter-spacing: -3px; }
	.ep-why__stat-text { color: #b9bdc3; }
	.ep-why__fnum { color: #77716b; }
	.ep-why__feature h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.2px; }
	.ep-why { grid-template-columns: 461px 1fr; }
	.ep-why__side { display: flex; flex-direction: column; align-self: stretch; }
	.ep-why__stat { margin-top: auto; padding: 26px 28px; border-radius: 24px; }
	.ep-why__features { gap: 16px; }
	.ep-why { row-gap: 37px; }
	.ep-why .ep-why__stat { margin-top: 40px; padding: 30px 28px; }
	.ep-why__feature { min-height: 293px; }
	.ep-why__stat { min-height: 224px; }
	.ep-why__icon { margin-bottom: 40px; }
}

.ep-why__feature { transition: opacity .35s ease, filter .35s ease, box-shadow .35s ease, border-color .35s ease; }
.ep-why__features:hover > .ep-why__feature:not(:hover) { opacity: .55; filter: grayscale(.6); }
.ep-why__feature:hover { box-shadow: 0 18px 40px rgb(0 0 0 / .1); border-color: #d0120c; }
.ep-why__icon { transition: transform .35s ease; }
.ep-why__feature:hover .ep-why__icon { transform: scale(1.1) rotate(-6deg); }

/* Pre-rebuild mobile layout for "Why us": swipe row of features, full-width buttons. */
@media (max-width: 767px) {
	.ep-why__features { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.ep-why__features::-webkit-scrollbar { display: none; }
	.ep-why__features > .ep-why__feature { flex: 0 0 290px; min-height: 292px; scroll-snap-align: start; }
	.ep-why__actions { flex-direction: column; margin-top: 19px; }
	.ep-why { row-gap: 33px; }
	.ep-why .ep-kicker { margin-bottom: 16px; }
	.ep-why__stat { margin-top: 26px; padding: 26px 28px; }
	/* Typography measured from the previous mobile homepage. */
	.ep-why .ep-kicker { font-size: 13px; line-height: 13px; letter-spacing: 1.8px; }
	.ep-why .ep-h2 { font-size: 32px; line-height: 33.6px; letter-spacing: -0.8px; }
	.ep-why .ep-lead { font-size: 16px; line-height: 24.8px; }
	.ep-why .ep-why__num { line-height: 50.4px; letter-spacing: -2.4px; }
	.ep-why .ep-why__stat-text { color: #b9bdc3; }
	.ep-why .ep-why__fnum { color: #77716b; }
	.ep-why .ep-why__feature > h3 { font-size: 19px; line-height: 23.75px; letter-spacing: -0.2px; }
	.ep-why__actions .ep-btn { display: flex; width: 100%; justify-content: center; }
}

/* Pre-rebuild tablet layout for "Why us". */
@media (min-width: 768px) and (max-width: 1024px) {
	.ep-why__features { gap: 16px; }
	.ep-why__feature { min-height: 256px; }
	.ep-why .ep-kicker { font-size: 13px; line-height: 13px; letter-spacing: 1.8px; }
	.ep-why .ep-h2 { font-size: 40px; line-height: 42px; letter-spacing: -1.5px; }
	.ep-why .ep-lead { font-size: 17px; line-height: 26.35px; }
	.ep-why .ep-why__num { font-size: 64px; line-height: 57.6px; letter-spacing: -3px; }
	.ep-why .ep-why__stat-text { color: #b9bdc3; }
	.ep-why .ep-why__fnum { color: #77716b; }
	.ep-why .ep-why__feature > h3 { font-size: 19px; line-height: 23.75px; letter-spacing: -0.2px; }
}
