/*
 * Estilos de bloco registrados em inc/block-styles.php.
 */

/* Ondas do logo — separador decorativo (RNF01). */
.wp-block-separator.is-style-almar-ondas,
.wp-block-separator.is-style-almar-ondas-claro {
	border: 0;
	width: 64px;
	height: 24px;
	max-width: none;
	opacity: 1;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	margin-inline: auto;
}

.wp-block-separator.is-style-almar-ondas {
	background-image: url("../icons/ondas-escuro.svg");
}

.wp-block-separator.is-style-almar-ondas-claro {
	background-image: url("../icons/ondas-claro.svg");
}

/* Card de depoimento com a aspa. */
.wp-block-group.is-style-almar-citacao {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--wp--preset--color--branco);
	border-radius: var(--wp--custom--raio-xl);
	padding: 32px;
	box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-group.is-style-almar-citacao::before {
	content: "";
	display: block;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	margin-bottom: 16px;
	background-color: var(--wp--preset--color--teal-destaque);
	-webkit-mask: url("../icons/format-quote.svg") no-repeat center / contain;
	mask: url("../icons/format-quote.svg") no-repeat center / contain;
}

/* Botão CTA contornado, com a seta do design. */
.wp-block-button.is-style-almar-cta .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--branco-quente);
	color: var(--wp--preset--color--branco-quente);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background-color 0.3s ease;
}

.wp-block-button.is-style-almar-cta .wp-block-button__link:hover {
	background-color: rgb(244 241 236 / 0.1);
}

.wp-block-button.is-style-almar-cta .wp-block-button__link::after {
	content: "";
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("../icons/arrow-forward.svg") no-repeat center / contain;
	mask: url("../icons/arrow-forward.svg") no-repeat center / contain;
}

/* Botão do WhatsApp. */
.wp-block-button.is-style-almar-whatsapp .wp-block-button__link {
	background-color: var(--wp--custom--whatsapp);
	border-color: var(--wp--custom--whatsapp);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: opacity 0.3s ease;
}

.wp-block-button.is-style-almar-whatsapp .wp-block-button__link:hover {
	background-color: var(--wp--custom--whatsapp);
	opacity: 0.9;
}

.wp-block-button.is-style-almar-whatsapp .wp-block-button__link::before {
	content: "";
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("../icons/whatsapp.svg") no-repeat center / contain;
	mask: url("../icons/whatsapp.svg") no-repeat center / contain;
}

/* Traços diagonais laranja. */
.is-style-almar-diagonal-bl,
.is-style-almar-diagonal-tl {
	position: relative;
}

.is-style-almar-diagonal-bl::after {
	content: "";
	position: absolute;
	bottom: 32px;
	left: 0;
	width: 180px;
	height: 2px;
	background-color: var(--wp--preset--color--laranja-destaque);
	transform: rotate(-35deg);
	transform-origin: left center;
	z-index: 30;
	pointer-events: none;
}

.is-style-almar-diagonal-tl::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 180px;
	height: 2px;
	background-color: var(--wp--preset--color--laranja-destaque);
	transform: rotate(35deg);
	transform-origin: left center;
	z-index: 10;
	pointer-events: none;
}

/* Degradê que funde a foto com o bloco de números. */
.is-style-almar-fade-direita {
	position: relative;
}

.is-style-almar-fade-direita::after {
	content: "";
	position: absolute;
	inset-block: 0;
	right: 0;
	width: 6rem;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		transparent,
		rgb(6 26 43 / 0.45),
		var(--wp--preset--color--fundo-principal)
	);
}

@media (max-width: 1280px) {
	.is-style-almar-fade-direita::after {
		width: 4rem;
	}


	.is-style-almar-diagonal-tl::before {
		width: 128px;
	}
}

@media (max-width: 767px) {
	.is-style-almar-diagonal-tl::before {
		width: 48px;
	}
}