/**
 * Hero104 block – fiel ao Hero104.tsx (shadcn-ui-blocks-master).
 * Fundo preto, texto branco, botão azul com seta, canvas + imagens flutuantes, Trusted by.
 */

@keyframes sui-hero104-fade-in {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.sui-hero104 {
	--sui-hero-bg: #000;
	--sui-hero-fg: var(--color-white, #ffffff);
	--sui-hero-fg-muted: color-mix(in oklab, var(--color-white, #ffffff) 90%, transparent);
	/* Cor do botão principal = accent do GeneratePress */
	--sui-hero-primary: var(--accent, #2563eb);
	--sui-hero-primary-fg: var(--color-white, #ffffff);
	--sui-hero-primary-hover: color-mix(in oklab, var(--accent, #2563eb) 85%, black);
	--sui-hero-radius: 0.5rem;

	position: relative;
	min-height: 80vh;
	overflow: hidden;
	background: var(--sui-hero-bg);
	color: var(--color-white, #ffffff) !important;
	font-family: var(--sui-font-sans);
	padding: 3rem 0 5rem;
}

/* Camada do canvas Unicorn Studio (z-0) */
.sui-hero104__unicorn-canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
	min-width: 100%;
	min-height: 100%;
}

.sui-hero104__unicorn-canvas canvas {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

/* Imagem de fundo do hero (só quando canvas 3D está desativado) – z-0 */
.sui-hero104__bg-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	pointer-events: none;
}

/* Overlay escuro sobre o canvas (z-1) */
.sui-hero104__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

/* Imagens decorativas esquerda/direita (só quando canvas está desativado) – z-2 */
.sui-hero104__pattern-left {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 30%;
	max-width: 744px;
	height: auto;
	object-fit: contain;
	object-position: left bottom;
	z-index: 2;
	pointer-events: none;
}

.sui-hero104__pattern-right {
	position: absolute;
	right: 0;
	top: 0;
	width: 30%;
	max-width: 744px;
	height: auto;
	object-fit: contain;
	object-position: right top;
	z-index: 2;
	pointer-events: none;
}

/* Conteúdo acima do canvas (z-10) */
.sui-hero104__inner {
	position: relative;
	z-index: 10;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
}

/* Sem seção Trusted by: centraliza o conteúdo em até 60vh */
.sui-hero104--no-trusted .sui-hero104__inner {
	min-height: 60vh;
	justify-content: center;
}

@media (min-width: 480px) {
	.sui-hero104 {
		min-height: 75vh;
	}
}

@media (min-width: 768px) {
	.sui-hero104 {
		padding: 5rem 0 5rem;
	}
}

/* GP: largura em `grid-container` (Layout); padding lateral do conteúdo vem do PHP (Espaçamento ▸ Conteúdo). */
.sui-hero104__container {
	width: 100%;
	box-sizing: border-box;
}

.sui-hero104__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
	justify-content: center;
}

@media (min-width: 1024px) {
	.sui-hero104__grid {
		/* Original: minmax(33.75rem, 1fr) 1.5fr — ligeiro aumento na coluna de conteúdo */
		grid-template-columns: minmax(34.5rem, 1fr) 1.45fr;
		gap: 2rem;
	}
}

.sui-hero104__content {
	min-width: 0;
	animation: sui-hero104-fade-in 0.6s ease-out both;
}

.sui-hero104__text {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* h1: fonte, tamanho, peso, interlinha e margens — GeneratePress (Personalizar ▸ Tipografia ▸ Cabeçalho 1 + mobile). */
.sui-hero104__title {
	color: inherit;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.sui-hero104__subtitle {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--color-white, #ffffff) !important;
	opacity: 0.9;
	margin: 0 0 1.25rem;
}

.sui-hero104__actions {
	margin-top: 2rem;
}

.sui-hero104__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.sui-hero104__buttons {
		justify-content: flex-start;
		flex-direction: row;
	}
}

/* Botão principal Hero104: azul, rounded-lg, ícone seta, hover overlay */
.sui-hero104__btn {
	text-decoration: none;
	cursor: pointer;
	border: none;
	white-space: nowrap;
}

.sui-hero104__btn:focus-visible {
	outline: 2px solid var(--color-white, #ffffff) !important;
	outline-offset: 2px;
}

.sui-hero104__btn--primary {
	position: relative;
	display: inline-flex;
	width: auto;
	max-width: 292px;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
	border-radius: var(--sui-hero-radius);
	background: var(--sui-hero-primary);
	padding: 0.5rem 0.5rem 0.5rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.75;
	letter-spacing: 0.16px;
	color: var(--color-white, #ffffff) !important;
	transition: background-color 0.2s, transform 0.2s;
	box-sizing: border-box;
}

.sui-hero104__btn--primary:hover {
	background: var(--sui-hero-primary-hover);
}

.sui-hero104__btn--primary .sui-hero104__btn-label {
	position: relative;
	z-index: 2;
}

.sui-hero104__btn-icon-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	margin-left: 1.25rem;
	height: 30px;
	width: 30px;
	max-width: 30px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: var(--sui-hero-radius);
	background: rgba(255, 255, 255, 0.2);
	transition: background-color 0.2s;
}

.sui-hero104__btn--primary:hover .sui-hero104__btn-icon-wrap {
	background: rgba(255, 255, 255, 0.3);
}

.sui-hero104__btn--primary .sui-hero104__btn-arrow {
	width: 16px;
	height: 16px;
	color: var(--color-white, #ffffff) !important;
	transition: transform 0.2s;
}

.sui-hero104__btn--primary:hover .sui-hero104__btn-arrow {
	transform: rotate(45deg);
}

.sui-hero104__btn-hover-strip {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-125%);
	transition: transform 0.3s;
}

.sui-hero104__btn--primary:hover .sui-hero104__btn-hover-strip {
	transform: translateY(0);
}

/* Botão secundário: link ghost com chevron */
.sui-hero104__btn--secondary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	color: var(--color-white, #ffffff) !important;
	font-family: var(--sui-font-mono);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
}

.sui-hero104__btn--secondary:hover .sui-hero104__chevron {
	transform: translateX(0.5rem);
}

.sui-hero104__chevron {
	flex-shrink: 0;
	transition: transform 0.2s;
}

/* Google Reviews (exibido quando o botão 2 não está preenchido) */
.sui-hero104__reviews {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 1rem;
	border-radius: var(--sui-hero-radius);
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.sui-hero104__reviews:hover {
	opacity: 0.9;
}

.sui-hero104__reviews-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.sui-hero104__reviews-google {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
}

.sui-hero104__reviews-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.sui-hero104__reviews-stars {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.sui-hero104__reviews-stars .sui-hero104__star {
	width: 1.25rem;
	height: 1.25rem;
	fill: #facc15;
	color: #facc15;
}

.sui-hero104__reviews-rating {
	margin-left: 0.25rem;
	font-weight: 600;
	color: var(--color-white, #ffffff) !important;
}

.sui-hero104__reviews-from {
	text-align: left;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-white, #ffffff) !important;
	opacity: 0.9;
}

/* Pilha de avatares (prova social alternativa ao Google Reviews) */
.sui-hero104__social-avatars {
	display: flex;
	width: fit-content;
	max-width: 100%;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

@media (min-width: 640px) {
	.sui-hero104__social-avatars {
		flex-direction: row;
		align-items: center;
	}
}

.sui-hero104__avatar-stack {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

/* Anel: paridade com estilos inline em render.php (evita fundo branco/transparente antes do CSS). */
.sui-hero104__avatar {
	position: relative;
	flex-shrink: 0;
	width: 2.6rem;
	height: 2.6rem;
	overflow: hidden;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: var(--sui-hero104-avatar-bg, var(--card-foreground, #1a1a1a));
	padding: 5px;
	box-sizing: border-box;
}

.sui-hero104__avatar-stack .sui-hero104__avatar + .sui-hero104__avatar {
	margin-inline-start: -1rem;
}

.sui-hero104__avatar-stack .sui-hero104__avatar:nth-child(1) {
	z-index: 1;
}

.sui-hero104__avatar-stack .sui-hero104__avatar:nth-child(2) {
	z-index: 2;
}

.sui-hero104__avatar-stack .sui-hero104__avatar:nth-child(3) {
	z-index: 3;
}

.sui-hero104__avatar-stack .sui-hero104__avatar:nth-child(4) {
	z-index: 4;
}

.sui-hero104__avatar-stack .sui-hero104__avatar:nth-child(5) {
	z-index: 5;
}

.sui-hero104__avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sui-hero104__avatar-caption {
	margin: 0;
	text-align: center;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-white, #ffffff) !important;
	opacity: 0.78;
}

@media (min-width: 640px) {
	.sui-hero104__avatar-caption {
		text-align: left;
	}
}

.sui-hero104__media {
	position: relative;
	min-height: 200px;
	animation: sui-hero104-fade-in 0.6s ease-out both;
	animation-delay: 150ms;
}

/* Canvas: wrapper fiel ao Hero103 (aspect ratio + max-width) */
.sui-hero104__canvas {
	position: relative;
	width: 100%;
	aspect-ratio: 1.28581291 / 1;
	max-width: 37.25rem;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 1024px) {
	.sui-hero104__canvas {
		margin-left: auto;
		margin-right: 0;
	}
}

.sui-hero104__main-image-wrap {
	position: relative;
	z-index: 10;
	margin-left: auto;
	margin-right: auto;
	width: 79.35%;
	max-width: 29.5625rem;
	aspect-ratio: 1.020365896 / 1;
	overflow: hidden;
	border-radius: 1.5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.sui-hero104--main-image-flat .sui-hero104__main-image-wrap {
	border-radius: 0;
	box-shadow: none;
}

@media (min-width: 1024px) {
	.sui-hero104__main-image-wrap {
		margin-left: auto;
		margin-right: 0;
	}
}

/* Imagens flutuantes – posições do Hero103 */
.sui-hero104__float {
	position: absolute;
	z-index: 30;
	overflow: hidden;
	border-radius: 0.5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.sui-hero104__float img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sui-hero104__float--1 {
	left: -2%;
	top: 19.84%;
	width: 30.49%;
	max-width: 11.875rem;
	aspect-ratio: 1.765043789 / 1;
}

.sui-hero104__float--2 {
	left: 0;
	top: 55%;
	width: 43.6%;
	max-width: 16.375rem;
	aspect-ratio: 1.776555024 / 1;
}

.sui-hero104__float--3 {
	right: 0;
	top: 40%;
	width: 26.48%;
	max-width: 10.3125rem;
	aspect-ratio: 1.170212766 / 1;
}

.sui-hero104__main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sui-hero104__placeholder {
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sui-hero104__placeholder-text {
	font-size: 0.875rem;
	color: var(--color-white, #ffffff) !important;
	opacity: 0.9;
}

/* Trusted by + logos (pt-28 do Hero103) */
.sui-hero104__trusted {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding-top: 7rem;
	animation: sui-hero104-fade-in 0.6s ease-out both;
	animation-delay: 300ms;
}

.sui-hero104__trusted-label {
	margin: 0;
	padding: 0 1.25rem;
	text-align: center;
	font-family: var(--sui-font-mono);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--color-white, #ffffff) !important;
	opacity: 0.9;
}

.sui-hero104__logos {
	position: relative;
	width: 100%;
	max-width: 1400px;
	overflow: hidden;
}

.sui-hero104__logos-track {
	display: flex;
	align-items: center;
	margin-left: -1rem;
	gap: 0;
	animation: sui-hero104-scroll 30s linear infinite;
}

.sui-hero104__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 14rem;
	height: 4rem;
	padding: 0 1.75rem;
}

.sui-hero104__logo img {
	width: 14rem;
	height: auto;
	max-height: 4rem;
	object-fit: contain;
	object-position: center;
	opacity: 0.8;
	/* Só aplica invert quando a classe --invert está ativa (meta/shortcode). */
	filter: none;
	-webkit-filter: none;
}

/* Logos escuras (PNG) → claras: só com opção explícita no meta / shortcode */
.sui-hero104__logos--invert .sui-hero104__logo img {
	filter: invert(1);
	-webkit-filter: invert(1);
}

@keyframes sui-hero104-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}
