/**
 * Hero rotativo.
 *
 * Mantém a linguagem do hero estático que existia antes: coluna de texto 58%,
 * caixa cinza arredondada 42%, marcador lime sob a palavra destacada.
 * A rolagem é scroll-snap — o mesmo motor do carrossel de produtos.
 */

.sempra-hero {
	--sempra-hero-h: 560px;
	--sempra-navy: #071d4e;
	--sempra-lime: #aad609;
	--sempra-cinza: #7c7c7c;

	position: relative;
}

.sempra-hero__palco {
	position: relative;
}

.sempra-hero__trilho {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sempra-hero__trilho::-webkit-scrollbar {
	display: none;
}

.sempra-hero__slide {
	scroll-snap-align: start;
	min-width: 0;
	margin: 0;
	list-style: none;
}

.sempra-hero__slide::before {
	content: none;
}

/* Colunas em fr, não em %: com `58% 42%` o gap de 40px é somado por cima dos
   100% e o conteúdo fica mais largo que o slide. Esses 40px viravam scroll
   além do último ponto de snap, e o carrossel parava desalinhado, cortando o
   título. fr reparte o que sobra depois do gap. */
.sempra-hero__conteudo {
	display: grid;
	grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
	align-items: center;
	gap: 40px;
	min-height: var(--sempra-hero-h);
	padding: 24px 0;
}

/* ---------- Texto ---------- */

.sempra-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sempra-lime);
}

.sempra-hero__eyebrow span {
	width: 24px;
	height: 2px;
	background: var(--sempra-lime);
	flex-shrink: 0;
}

.sempra-hero .sempra-hero__titulo {
	margin: 0 0 20px;
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	font-size: clamp(32px, 5vw, 72px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--sempra-navy);
}

.sempra-hero__marca {
	position: relative;
	display: inline-block;
}

.sempra-hero__marca-texto {
	position: relative;
	z-index: 1;
}

.sempra-hero__marca-linha {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	z-index: 0;
	display: block;
	height: 13px;
	border-radius: 3px;
	background: rgba(170, 214, 9, 0.6);
}

.sempra-hero__sub {
	margin: 0 0 20px;
	max-width: 52ch;
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--sempra-cinza);
}

.sempra-hero__pilula {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 9px 16px;
	border: 1px solid #e8ecf0;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(7, 29, 78, 0.07);
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	font-size: 13px;
}

.sempra-hero__pilula-produto {
	font-weight: 600;
	color: var(--sempra-navy);
}

.sempra-hero__pilula s {
	color: #9aa0ad;
	font-size: 12px;
}

.sempra-hero__pilula b {
	color: var(--sempra-navy);
	font-weight: 800;
}

.sempra-hero__cta {
	display: inline-block;
	padding: 17px 34px;
	border-radius: 10px;
	background: var(--sempra-lime);
	color: var(--sempra-navy);
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sempra-hero__cta:hover {
	color: var(--sempra-navy);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(170, 214, 9, 0.4);
}

/* ---------- Caixa do produto ---------- */

.sempra-hero__caixa {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(var(--sempra-hero-h) - 90px);
	padding: 40px;
	border-radius: 28px;
	background: #e8ecf0;
	overflow: hidden;
}

.sempra-hero__foto {
	max-width: 100%;
	max-height: calc(var(--sempra-hero-h) - 170px);
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply; /* recorta o fundo branco dos pack-shots */
}

.sempra-hero__stat {
	position: absolute;
	font-family: Poppins, "Segoe UI", Arial, sans-serif;
	border-radius: 16px;
}

.sempra-hero__stat strong {
	display: block;
	margin-top: 4px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.sempra-hero__stat-rot {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.sempra-hero__stat--topo {
	top: 20px;
	right: 20px;
	padding: 14px 18px;
	background: var(--sempra-navy);
	color: #fff;
	box-shadow: 0 8px 24px rgba(7, 29, 78, 0.3);
}

.sempra-hero__stat--topo .sempra-hero__stat-rot {
	color: var(--sempra-lime);
}

.sempra-hero__stat-pe {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.7);
}

.sempra-hero__stat--baixo {
	left: 20px;
	bottom: 20px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid #e8ecf0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	color: var(--sempra-navy);
}

.sempra-hero__stat--baixo .sempra-hero__stat-rot {
	color: var(--sempra-cinza);
}

.sempra-hero__stat--baixo strong {
	font-size: 22px;
}

/* ---------- Navegação ---------- */

.sempra-hero__seta {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e8ecf0;
	border-radius: 50%;
	background: #fff;
	color: var(--sempra-navy);
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(7, 29, 78, 0.16);
}

.sempra-hero__seta[hidden] {
	display: none;
}

.sempra-hero__seta svg {
	width: 20px;
	height: 20px;
}

.sempra-hero__seta--prev {
	left: -6px;
}

.sempra-hero__seta--next {
	right: -6px;
}

.sempra-hero__dots {
	display: flex;
	gap: 7px;
	margin-top: 4px;
}

.sempra-hero__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9cdd6;
	cursor: pointer;
	transition: width 0.18s ease, background 0.18s ease;
}

.sempra-hero__dots button[aria-selected="true"] {
	width: 26px;
	border-radius: 4px;
	background: var(--sempra-lime);
}

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
}

@media (max-width: 767px) {
	.sempra-hero__conteudo {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 12px 0;
	}


	.sempra-hero__marca-linha {
		height: 10px;
	}

	.sempra-hero__caixa {
		min-height: 260px;
		padding: 24px;
	}

	.sempra-hero__foto {
		max-height: 200px;
	}

	.sempra-hero__stat--topo {
		top: 12px;
		right: 12px;
		padding: 10px 14px;
	}

	.sempra-hero__stat--baixo {
		left: 12px;
		bottom: 12px;
		padding: 8px 14px;
	}

	.sempra-hero__seta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sempra-hero__trilho {
		scroll-behavior: auto;
	}
}
