/* ==========================================================================
   Rei Eterno · estilos do tema
   Tokens extraídos das variáveis do Figma (Style Guide / Wireframe).
   ========================================================================== */

:root {
	/* Cores */
	--brand-primary: #dd5722;
	--brand-primary-button: #c3460f;
	--brand-primary-hover: #a83a0b;
	--brand-secondary: #4f6a9a;
	--brand-secondary-hover: #3f5884;
	--on-brand-primary: #ffffff;
	--on-brand-secondary: #ffffff;
	--accent-on-brand: #ffcebb;

	--bg-primary: #ffffff;
	--bg-secondary: #f8fafc;
	--bg-tertiary: #f1f4f6;
	--bg-warm: #fff3ee;
	--bg-brand: #4f6a9a;
	--bg-brand-deep: #34496f;

	--text-primary: #0c141e;
	--text-secondary: #4f565e;
	--text-muted: #646a71;
	--text-heading: #34496f;
	--text-highlight: #c3460f;
	--text-link: #265c99;
	--text-on-brand: #ffffff;

	--border-default: rgba(12, 20, 30, 0.1);
	--border-control: #767c84;
	--success: #1f7a52;

	/* Tipografia (visual Verity: Figtree regular nos títulos, Medium nos botões) */
	--font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-brand: "Inter", var(--font);

	/* Layout */
	--container: 1200px;
	--container-wide: 1312px;
	--gutter: 24px;
	--section-y: 96px;
	--radius-card: 12px;
	--radius-img: 16px;
	--radius-btn: 999px;
	--radius-input: 10px;
	--header-h: 80px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--brand-secondary);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--bg-primary);
	color: var(--text-heading);
	font-weight: 600;
	border-radius: var(--radius-input);
}

.skip-link:focus {
	top: 16px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Faixas que no Figma vão até 64px da borda (hero, urgência, banners) */
.container--wide {
	max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

/* --------------------------------------------------------------------------
   Tipografia (estilos de texto do Figma: Desktop/Títulos e Desktop/Texto)
   Títulos neutros, Figtree regular, tracking -1,5%.
   -------------------------------------------------------------------------- */

.display,
.h1,
.h2,
.h3,
.h4 {
	color: var(--text-primary);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.display {
	font-size: 72px;
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.h1 { font-size: 56px; }
.h2 { font-size: 44px; }
.h3 { font-size: 28px; }
.h4 { font-size: 22px; }

.body-lg {
	font-size: 18px;
	line-height: 1.7;
}

.body {
	font-size: 16px;
	line-height: 1.7;
}

.body-sm {
	font-size: 14px;
	line-height: 1.6;
}

.overline {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.caption {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-on-brand { color: var(--text-on-brand); }
.overline--on-brand { color: var(--accent-on-brand); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius-btn);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
	background: var(--brand-primary-button);
	color: var(--on-brand-primary);
}

.btn--primary:hover {
	background: var(--brand-primary-hover);
}

.btn--blue {
	background: var(--brand-secondary);
	color: var(--on-brand-secondary);
}

.btn--blue:hover {
	background: var(--brand-secondary-hover);
}

.btn--ghost {
	background: transparent;
	border-color: var(--border-control);
	color: var(--text-primary);
}

.btn--ghost:hover {
	border-color: var(--text-primary);
	background: rgba(12, 20, 30, 0.04);
}

.btn--white {
	background: var(--bg-primary);
	color: var(--text-primary);
}

.btn--white:hover {
	background: var(--bg-tertiary);
}

/* Contorno branco sobre foto (hero da Home) */
.btn--outline-white {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.8);
	color: var(--text-on-brand);
}

.btn--outline-white:hover {
	background: rgba(255, 255, 255, 0.12);
}

.btn--block {
	width: 100%;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn-row--center {
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Utilitários de layout
   -------------------------------------------------------------------------- */

.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }

.section {
	padding: var(--section-y) 0;
}

.section--white { background: var(--bg-primary); }
.section--light { background: var(--bg-secondary); }
.section--warm { background: var(--bg-warm); }
.section--deep { background: var(--bg-brand-deep); }

.section-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.section-head .h2 {
	max-width: 780px;
}

.section-head__sub {
	max-width: 640px;
}

.section-head--center {
	align-items: center;
	text-align: center;
}

.grid {
	display: grid;
	gap: 24px;
	align-items: start;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
	display: flex;
	gap: 64px;
}

.split--center { align-items: center; }
.split--top { align-items: flex-start; }

.split__main {
	flex: 1 1 0;
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Placeholders de imagem (fotos reais ainda não enviadas)
   -------------------------------------------------------------------------- */

.ph {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 16px;
	background: var(--bg-tertiary);
	border-radius: var(--radius-img);
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.ph--hero { width: 560px; height: 480px; }
.ph--side { width: 520px; height: 360px; }
.ph--side-400 { width: 520px; height: 400px; }
.ph--side-480 { width: 480px; height: 360px; }
.ph--side-560 { width: 560px; height: 360px; }
.ph--card { width: 100%; height: 180px; }
.ph--person { width: 100%; height: 240px; }
.ph--photo { width: 100%; height: 220px; }

/* Foto já entregue: mesmo tamanho do placeholder, recortada para preencher. */
.ph--img {
	display: block;
	padding: 0;
	overflow: hidden;
	background: var(--bg-tertiary);
}

/* --------------------------------------------------------------------------
   Faixa de plantão (topo)
   -------------------------------------------------------------------------- */

.topbar {
	background: var(--bg-brand-deep);
	color: var(--text-on-brand);
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 42px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.topbar__label {
	color: var(--accent-on-brand);
	margin-right: auto;
}

.topbar__label-short {
	display: none;
}

.topbar__contacts {
	display: flex;
	gap: 24px;
	font-size: 14px;
	line-height: 1.6;
	white-space: nowrap;
}

.topbar__contacts li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.topbar__contacts a {
	text-decoration: none;
}

.topbar__contacts a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg-primary);
	border-bottom: 1px solid var(--border-default);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--header-h);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 8px;
	text-decoration: none;
	flex-shrink: 0;
}

.brand__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--brand-primary);
}

.brand__text {
	display: flex;
	flex-direction: column;
	font-family: var(--font-brand);
	line-height: normal;
	white-space: nowrap;
}

.brand__name {
	color: var(--text-primary);
	font-size: 20px;
	font-weight: 700;
}

.brand__tag {
	color: var(--text-highlight);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.nav {
	flex: 1 1 0;
	min-width: 0;
}

.nav__list {
	display: flex;
	justify-content: center;
	gap: 28px;
	font-size: 14px;
	line-height: 1.6;
	white-space: nowrap;
}

.nav__list > .menu-item {
	position: relative;
}

.nav__list a {
	display: block;
	padding: 8px 0;
	color: var(--text-primary);
	text-decoration: none;
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a {
	color: var(--text-highlight);
}

.nav__list > .menu-item-has-children > a::after,
.nav__list > .has-mega > a::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 6px;
	vertical-align: 1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.nav__list > .menu-item-has-children:hover > a::after,
.nav__list > .menu-item-has-children:focus-within > a::after,
.nav__list > .menu-item-has-children > a[aria-expanded="true"]::after,
.nav__list > .has-mega:hover > a::after,
.nav__list > .has-mega > a[aria-expanded="true"]::after {
	transform: rotate(180deg);
}

/* Traço que cresce da esquerda ao passar o mouse (e fica no item da página atual). */
@media (min-width: 1081px) {
	.nav__list > .menu-item > a {
		position: relative;
	}

	.nav__list > .menu-item > a::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 4px;
		height: 1.5px;
		background: currentColor;
		border-radius: 2px;
		transform: scaleX(0);
		transform-origin: right;
		transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
	}

	.nav__list > .menu-item > a:hover::before,
	.nav__list > .menu-item > a:focus-visible::before,
	.nav__list > .menu-item:hover > a::before,
	.nav__list > .current-menu-item > a::before,
	.nav__list > .current-menu-ancestor > a::before {
		transform: scaleX(1);
		transform-origin: left;
	}
}

.nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 10;
	min-width: 220px;
	padding: 8px;
	background: var(--bg-primary);
	border: 1px solid var(--border-default);
	border-radius: 12px;
	box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav__list .menu-item-has-children:hover > .sub-menu,
.nav__list .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav__list .sub-menu a {
	padding: 8px 12px;
	border-radius: 8px;
}

.nav__list .sub-menu a:hover {
	background: var(--bg-warm);
}

.nav__cta-mobile,
.nav-toggle {
	display: none;
}

/*
 * Header da Home: transparente sobre a foto do hero (texto branco).
 * Ao rolar, o main.js põe .is-solid e ele volta ao fundo branco.
 */
.site-header--over {
	margin-bottom: calc((var(--header-h) + 1px) * -1);
	background: transparent;
	border-bottom-color: transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header--over:not(.is-solid) .brand__name,
.site-header--over:not(.is-solid) .nav__list > .menu-item > a {
	color: var(--text-on-brand);
}

/* Sobre a foto, o divisor acompanha a largura do conteúdo (não vai de ponta a ponta). */
.site-header--over:not(.is-solid) .site-header__inner {
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.site-header--over:not(.is-solid) .brand__tag {
	color: var(--accent-on-brand);
}

.site-header--over:not(.is-solid) .nav__list > .menu-item > a:hover {
	color: var(--accent-on-brand);
}

.site-header--over:not(.is-solid) .nav-toggle__bar {
	background: var(--text-on-brand);
}

.site-header--over.is-solid {
	background: var(--bg-primary);
	border-bottom-color: var(--border-default);
}

/* --------------------------------------------------------------------------
   Hero da Home: foto em tela cheia, gradiente azul-escuro e cards de vidro
   -------------------------------------------------------------------------- */

.hero-photo {
	position: relative;
	isolation: isolate;
	display: flex;
	min-height: 760px;
	overflow: hidden;
	background: var(--bg-brand-deep);
	color: var(--text-on-brand);
}

.hero-photo__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(10, 23, 46, 0.82) 0%, rgba(10, 23, 46, 0.45) 60%, rgba(10, 23, 46, 0.15) 100%);
}

.hero-photo__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	padding-top: calc(var(--header-h) + 70px);
	padding-bottom: 54px;
}

.hero-photo__title {
	max-width: 760px;
	color: var(--text-on-brand);
}

.hero-photo__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.hero-photo__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 470px;
}

.hero-photo__text .body {
	color: rgba(255, 255, 255, 0.9);
}

.hero-photo__text .btn {
	padding-top: 12px;
	padding-bottom: 12px;
}

.hero-photo__cards {
	display: flex;
	gap: 20px;
}

.glass-card {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	width: 200px;
	height: 210px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-card);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.glass-card .h4 {
	align-self: flex-start;
	color: var(--text-on-brand);
}

/* --------------------------------------------------------------------------
   Hero das páginas internas
   -------------------------------------------------------------------------- */

.hero {
	background: var(--bg-warm);
}

.hero--inner {
	padding: 80px 0;
}

.hero__row {
	display: flex;
	align-items: center;
	gap: 64px;
}

.hero__text {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

.hero--inner .hero__text {
	gap: 20px;
}

.breadcrumb {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.breadcrumb a {
	text-decoration: none;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Faixas
   -------------------------------------------------------------------------- */

/* Faixa de urgência e guia: blocos arredondados dentro da página */
.urgency {
	padding-top: 40px;
	background: var(--bg-primary);
}

.urgency__row,
.band__row {
	display: flex;
	align-items: center;
	gap: 24px;
}

.urgency__row {
	padding: 36px 40px;
	background: var(--bg-brand-deep);
	border-radius: var(--radius-img);
	color: var(--text-on-brand);
}

.urgency__text,
.band__text {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.urgency .h3 {
	color: var(--text-on-brand);
}

.band {
	padding: 64px 0;
}

.band__row {
	padding: 48px;
	background: var(--bg-secondary);
	border-radius: var(--radius-img);
}

.band__text {
	gap: 8px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	height: 100%;
	padding: 28px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-card);
}

.card--white {
	background: var(--bg-primary);
}

.card__link {
	color: var(--text-highlight);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

a.card__link:hover {
	text-decoration: underline;
}

/* Card de serviço inteiro clicável (ícone + título + texto + Saiba mais) */
.grid:has(> .card--service) {
	align-items: stretch;
}

.card--service {
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card--service:hover {
	border-color: var(--brand-primary);
	box-shadow: 0 8px 24px rgba(12, 20, 30, 0.06);
}

.card--service:hover .card__link {
	text-decoration: underline;
}

.card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--bg-warm);
	color: var(--text-highlight);
}

.icon {
	display: block;
	flex-shrink: 0;
}

/* Lista com ícone laranja (endereço, horário, telefone, WhatsApp) */
.icon-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 16px;
	line-height: 1.7;
}

.icon-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.icon-list .icon {
	margin-top: 4px;
	color: var(--text-highlight);
}

/* Linha com título da seção à esquerda e botão à direita */
.section-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

/* Planos funerários */
.plans {
	display: flex;
	align-items: flex-end;
	gap: 24px;
}

.plan {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 32px;
	background: var(--bg-primary);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-card);
}

.plan .check-list {
	gap: 10px;
}

.plan .check-list li {
	gap: 10px;
}

.plan .btn {
	width: 100%;
}

.plan__sub {
	color: var(--text-secondary);
}

.plan__price {
	color: var(--text-primary);
	font-size: 52px;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.plan__price span {
	font-size: 18px;
	white-space: nowrap;
}

.plan .check-list__mark {
	color: var(--text-primary);
}

/* Etiqueta no canto (Entrada / Destaque / Completo) */
.plan__tag {
	align-self: flex-end;
	padding: 6px 14px;
	border: 1px solid var(--border-control);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.6;
}

.plan--featured .plan__tag {
	border-color: var(--brand-primary-button);
	color: var(--text-highlight);
}

.text-center {
	text-align: center;
}

/* Quebra de linha só no desktop (títulos com quebra fixa no Figma) */
@media (max-width: 900px) {
	.br-desktop { display: none; }
}

.testimonial blockquote {
	margin: 0;
}

.person {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

/* Passos (Como funciona) */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.step {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.step__num {
	color: var(--text-primary);
	font-size: 80px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

/* Listas com marcador */
.check-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 16px;
	line-height: 1.7;
}

.check-list li {
	display: flex;
	gap: 12px;
}

.check-list__mark {
	color: var(--text-highlight);
	flex-shrink: 0;
}

.check-list__mark .icon {
	margin-top: 4px;
}

/* Tags de regiões */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tag {
	padding: 8px 16px;
	background: var(--bg-primary);
	border: 1px solid var(--border-default);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.faq-section .faq {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.faq__item {
	padding: 0 28px;
	background: var(--bg-secondary);
	border-radius: 8px;
}

.section--light .faq__item {
	background: var(--bg-primary);
}

.faq__item summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 26px 0;
	cursor: pointer;
	list-style: none;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__question {
	flex: 1 1 0;
	font-size: 18px;
	line-height: 1.7;
}

/* Círculo com "+": contorno cinza fechado; laranja com "×" (o + girado) aberto */
.faq__icon {
	display: flex;
	flex-shrink: 0;
	padding: 4px;
	border: 1px solid var(--border-control);
	border-radius: 999px;
	color: var(--text-primary);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq__icon .icon {
	transition: transform 0.25s ease;
}

.faq__item[open] .faq__icon {
	background: var(--brand-primary-button);
	border-color: var(--brand-primary-button);
	color: var(--on-brand-primary);
}

.faq__item[open] .faq__icon .icon {
	transform: rotate(45deg);
}

.faq__answer {
	margin-top: -12px;
	padding: 0 0 26px;
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.cta-final {
	padding: 80px 0;
	background: var(--bg-brand);
}

.cta-final--tall {
	padding: 96px 0;
}

.cta-final__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

/* Banner final da Home: foto com gradiente, título e ícones à esquerda, texto e botões à direita */
.cta-banner {
	padding: 40px 0 96px;
}

.cta-banner__box {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	min-height: 520px;
	padding: 56px 48px 48px;
	overflow: hidden;
	background: var(--bg-brand-deep);
	border-radius: var(--radius-img);
	color: var(--text-on-brand);
}

.cta-banner__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-banner__box::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10, 23, 46, 0.85) 0%, rgba(10, 23, 46, 0.2) 55%, rgba(10, 23, 46, 0) 100%);
}

.cta-banner__left,
.cta-banner__right {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.cta-banner__left {
	gap: 24px;
}

.cta-banner__right {
	gap: 20px;
}

.cta-banner .h1 {
	color: var(--text-on-brand);
}

.cta-banner .body-lg {
	color: rgba(255, 255, 255, 0.9);
}

.cta-banner__icons {
	display: flex;
	gap: 12px;
}

.cta-banner__icons li {
	display: flex;
	padding: 12px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Por que a Rei Eterno (frase grande + foto + blocos 2x2)
   -------------------------------------------------------------------------- */

.why__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}

.why__head .h2 {
	max-width: 960px;
}

.why__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	padding-top: 36px;
}

.why__photo {
	width: 100%;
	height: 100%;
	min-height: 520px;
	border-radius: var(--radius-card);
}

.why__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.why__tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 252px;
	padding: 28px;
	background: var(--bg-tertiary);
	border-radius: var(--radius-card);
	color: var(--text-highlight);
}

/* Blocos alternam cinza: 1 e 4 mais escuros, 2 e 3 mais claros */
.why__tile:nth-child(2),
.why__tile:nth-child(3) {
	background: var(--bg-secondary);
}

.why__tile .body-lg {
	color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Depoimentos em carrossel (setas + troca sozinho a cada 5s)
   -------------------------------------------------------------------------- */

.slider {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

.slider__slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
	animation: slider-in 0.5s ease;
}

.slider__slide[hidden] {
	display: none;
}

@keyframes slider-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.slider__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.slider__avatar {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: var(--bg-tertiary);
	border-radius: 50%;
}

.slider__arrows {
	display: flex;
	gap: 16px;
}

.slider__arrow {
	padding: 6px 16px 10px;
	background: var(--bg-tertiary);
	border: 0;
	border-radius: 999px;
	color: var(--text-primary);
	font-family: var(--font);
	font-size: 22px;
	line-height: 1.15;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.slider__arrow:hover {
	background: #e4e8ec;
}

.slider__dots {
	display: flex;
	gap: 6px;
}

.slider__dot {
	width: 8px;
	height: 8px;
	background: #d9d9d9;
	border-radius: 4px;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.slider__dot.is-active {
	width: 24px;
	background: var(--brand-primary-button);
}

/* --------------------------------------------------------------------------
   Guia em caso de óbito
   -------------------------------------------------------------------------- */

.guide {
	display: flex;
	align-items: flex-start;
	gap: 64px;
}

.guide__toc {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--bg-secondary);
	border-radius: var(--radius-card);
}

.guide__toc ol {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 14px;
	line-height: 1.6;
}

.guide__toc a {
	color: var(--text-link);
	text-decoration: none;
}

.guide__toc a:hover {
	text-decoration: underline;
}

.guide__article {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.guide__topic,
.guide__help {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.guide__help {
	align-items: flex-start;
	padding: 32px;
	background: var(--bg-warm);
	border-radius: var(--radius-card);
}

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */

.form-card {
	padding: 32px;
	background: var(--bg-primary);
	border-radius: var(--radius-card);
}

.form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field__label {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.field__input {
	width: 100%;
	padding: 14px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-input);
	color: var(--text-primary);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
}

.field__input::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

.field__input:focus {
	outline: none;
	border-color: var(--brand-secondary);
	box-shadow: 0 0 0 3px rgba(79, 106, 154, 0.25);
}

select.field__input {
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%234f565e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

textarea.field__input {
	resize: vertical;
}

.consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.consent input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--brand-primary-button);
}

.form__hp {
	position: absolute;
	left: -9999px;
}

.notice {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: var(--radius-input);
	font-size: 14px;
	line-height: 1.6;
}

.notice--ok {
	background: #e7f4ee;
	color: var(--success);
}

.notice--erro {
	background: var(--bg-warm);
	color: var(--text-highlight);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
	padding: 80px 0 32px;
	background: var(--bg-brand-deep);
	color: var(--text-on-brand);
}

.site-footer__cols {
	display: flex;
	gap: 48px;
}

.site-footer__brand,
.site-footer__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.site-footer__brand {
	gap: 16px;
}

.site-footer__brand .body-sm {
	max-width: 300px;
}

.site-footer__col {
	gap: 12px;
}

.site-footer__logo {
	align-self: flex-start;
	padding: 8px 12px;
	background: var(--bg-primary);
	border-radius: 8px;
}

.site-footer .overline {
	color: var(--accent-on-brand);
}

.site-footer__col ul {
	font-size: 14px;
	line-height: 1.8;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__base {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
}

/* --------------------------------------------------------------------------
   WhatsApp flutuante, barra fixa mobile e pop-up
   -------------------------------------------------------------------------- */

.wa-float {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	background: var(--success);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	color: var(--on-brand-primary);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.wa-float:hover {
	background: #18623f;
}

.mobile-bar {
	display: none;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.modal[hidden] {
	display: none;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 20, 38, 0.6);
}

.modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 40px;
	background: var(--bg-primary);
	border-radius: var(--radius-card);
	box-shadow: 0 16px 24px rgba(0, 0, 0, 0.18);
}

.modal__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal__close {
	padding: 4px 8px;
	background: none;
	border: 0;
	color: var(--text-secondary);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

body.has-modal {
	overflow: hidden;
}

/* Conteúdo do editor (Política de privacidade etc.) */
.entry-content {
	max-width: 800px;
}

.entry-content > * + * {
	margin-top: 1em;
}

.entry-content h2 {
	color: var(--text-primary);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
	list-style: revert;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1240px) {
	.nav__list { gap: 20px; }
	.site-header__inner { gap: 24px; }
	.ph--hero { width: 46%; }
	.ph--side, .ph--side-400, .ph--side-480, .ph--side-560 { width: 42%; }
}

@media (max-width: 1080px) {
	:root {
		--header-h: 72px;
	}

	.topbar__inner { justify-content: center; min-height: 33px; padding-top: 8px; padding-bottom: 8px; }
	.topbar__label { margin: 0; }
	.topbar__label-full, .topbar__contacts { display: none; }
	.topbar__label-short { display: inline; }

	.site-header__cta { display: none; }

	.nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		margin-left: auto;
		padding: 10px;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.nav-toggle__bar {
		display: block;
		height: 2px;
		background: var(--text-primary);
		border-radius: 2px;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.nav-open .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bar:nth-child(3) { opacity: 0; }
	.nav-open .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

	.nav {
		position: fixed;
		top: var(--nav-top, 105px);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 99;
		display: none;
		flex-direction: column;
		gap: 24px;
		padding: 16px var(--gutter) 120px;
		overflow-y: auto;
		background: var(--bg-primary);
	}

	.nav-open .nav {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		gap: 0;
		font-size: 18px;
		white-space: normal;
	}

	.nav__list > .menu-item {
		border-bottom: 1px solid var(--border-default);
	}

	.nav__list a {
		padding: 14px 0;
	}

	.nav__list .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 12px 16px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav__list .sub-menu a {
		padding: 8px 0;
		font-size: 16px;
	}

	.nav__list > .menu-item-has-children > a::after {
		display: none;
	}

	.nav__cta-mobile {
		display: block;
	}

	.nav__cta-mobile .btn {
		width: 100%;
	}

	/* Com o menu aberto, o header da Home fica branco para o painel não ficar sobre a foto */
	.nav-open .site-header--over {
		background: var(--bg-primary);
	}

	.nav-open .site-header--over .brand__name { color: var(--text-primary); }
	.nav-open .site-header--over .brand__tag { color: var(--text-highlight); }
	.nav-open .site-header--over .nav-toggle__bar { background: var(--text-primary); }
	.nav-open .site-header--over .nav__list > .menu-item > a { color: var(--text-primary); }

	.display { font-size: 60px; }
	.why__row { grid-template-columns: minmax(0, 1fr); }
	.why__photo { min-height: 360px; }
	.cta-banner__box { flex-direction: column; align-items: flex-start; justify-content: flex-end; }

	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__cols { flex-wrap: wrap; }
	.site-footer__brand { flex-basis: 100%; }
}

@media (max-width: 900px) {
	.plans { flex-direction: column; align-items: stretch; }
	.section-row { flex-direction: column; align-items: flex-start; }
	:root {
		--section-y: 64px;
	}

	.display { font-size: 48px; }
	.h1 { font-size: 40px; }
	.h2 { font-size: 32px; }
	.h3 { font-size: 24px; }
	.plan__price { font-size: 44px; }
	.step__num { font-size: 56px; }

	.hero-photo { min-height: 0; }
	.hero-photo__inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: 40px; }
	.hero-photo__bottom { flex-direction: column; align-items: stretch; }
	.hero-photo__cards { gap: 12px; }
	.glass-card { flex: 1 1 0; width: auto; height: 160px; }
	.cta-banner__box { min-height: 0; padding: 160px 28px 32px; }
	.urgency__row, .band__row { padding: 28px; }

	.hero--home, .hero--inner { padding: 56px 0; }

	.hero__row,
	.split {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.split--image-first > .ph { order: 0; }

	.ph--hero, .ph--side, .ph--side-400, .ph--side-480, .ph--side-560 {
		width: 100%;
		height: 280px;
	}

	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.urgency__row,
	.band__row {
		flex-direction: column;
		align-items: flex-start;
	}

	.guide { flex-direction: column; gap: 40px; }
	.guide__toc { position: static; flex-basis: auto; width: 100%; }
}

@media (max-width: 640px) {
	.hide-mobile { display: none !important; }
	.plan { padding: 24px; }
	:root {
		--gutter: 24px;
		--section-y: 56px;
	}

	.display { font-size: 40px; letter-spacing: -0.03em; }
	.h1 { font-size: 34px; }
	.h2 { font-size: 28px; }
	.h3 { font-size: 22px; }
	.h4 { font-size: 19px; }
	.body-lg { font-size: 16px; }
	.step__num { font-size: 40px; }
	.plan__price { font-size: 40px; }

	.why__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.why__tile { min-height: 160px; padding: 20px; }
	.why__photo { min-height: 240px; }
	.slider__slide .h3 { font-size: 20px; }
	.faq__item { padding: 0 20px; }
	.faq__item summary { padding: 20px 0; }
	.faq__question { font-size: 16px; }
	.faq__answer { padding-bottom: 20px; }
	.cta-banner { padding: 24px 0 64px; }
	.cta-banner .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
	.urgency .btn-row { width: 100%; }
	.urgency .btn-row .btn { flex: 1 1 0; }

	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
	.grid--4.grid--keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.step {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 12px;
		row-gap: 4px;
		align-items: baseline;
	}

	.step__num { grid-row: span 2; font-size: 28px; }

	.card { padding: 22px; }

	.btn-row--stack-mobile {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.btn { white-space: normal; }

	.cta-final, .cta-final--tall { padding: 64px 0; }
	.cta-final .btn-row { flex-direction: column; align-items: stretch; width: 100%; }

	.form-card { padding: 24px; }
	.guide__help { padding: 24px; }
	.modal { padding: 12px; align-items: flex-end; }
	.modal__dialog { padding: 28px 24px; max-height: calc(100vh - 24px); }

	.site-footer { padding: 56px 0 104px; }
	.site-footer__cols { flex-direction: column; gap: 32px; }
	.site-footer__base { flex-direction: column; gap: 8px; margin-top: 32px; }

	/* No mobile o flutuante dá lugar à barra fixa (Ligar / WhatsApp). */
	.wa-float { display: none; }

	.mobile-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 90;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: var(--bg-primary);
		border-top: 1px solid var(--border-default);
		box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
	}

	body {
		padding-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/*
 * Animações de entrada (fade + subida leve, em cascata nos cards).
 * A classe .js-reveal é posta no <html> por um script no <head>; sem JS, ou com
 * "reduzir movimento" ligado no sistema, tudo aparece direto.
 */
.js-reveal .hero__text > *,
.js-reveal .hero__row > .ph,
.js-reveal .hero-photo__text > *,
.js-reveal .hero-photo__cards > *,
.js-reveal .urgency__row,
.js-reveal .band__row,
.js-reveal .section-head,
.js-reveal .section-row,
.js-reveal .why__head > *,
.js-reveal .why__row > .ph,
.js-reveal .why__tiles > *,
.js-reveal .slider,
.js-reveal .grid > *,
.js-reveal .urns > *,
.js-reveal .plans > *,
.js-reveal .steps > *,
.js-reveal .split > *,
.js-reveal .faq__item,
.js-reveal .cta-banner__box,
.js-reveal .cta-final__inner > * {
	opacity: 0;
	transform: translateY(24px);
	/* border-color e box-shadow mantêm o hover dos cards de serviço sem atraso */
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.15s ease, box-shadow 0.15s ease;
	transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s;
}

.js-reveal .hero__row > .ph {
	transform: scale(0.98);
}

.js-reveal .is-visible,
.js-reveal .hero__row > .ph.is-visible {
	opacity: 1;
	transform: none;
}

/* Foto do hero entra com um zoom lento (só com movimento liberado no sistema) */
@media (prefers-reduced-motion: no-preference) {
	.hero-photo__img {
		animation: hero-zoom 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
}

@keyframes hero-zoom {
	from { transform: scale(1.06); }
	to { transform: none; }
}

/* Efeito cortina da hero da Home removido em 25/11 (escondia os botões). A hero rola normal. */

/* Texto grande que escurece letra a letra conforme a página rola (main.js) */
.fill-word {
	white-space: nowrap;
}

.fill-char {
	color: #d3d6da;
	transition: color 0.2s ease;
}

.fill-char.is-on {
	color: inherit;
}

/* --------------------------------------------------------------------------
   Cards de serviço: no desktop, o card com o mouse cresce e revela a foto,
   e os outros da mesma linha encolhem um pouco. No tablet e no celular,
   as linhas somem (display: contents) e fica a grade normal.
   -------------------------------------------------------------------------- */

.services__row {
	display: contents;
}

.card--service {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.card__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.08);
	transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.card--service::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10, 23, 46, 0.25) 0%, rgba(10, 23, 46, 0.85) 100%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

@media (min-width: 901px) {
	.services {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.services__row {
		display: flex;
		gap: 24px;
	}

	.services__row > .card--service {
		flex: 1 1 0;
		min-width: 0;
		height: auto;
	}
}

@media (min-width: 901px) and (hover: hover) {
	.js-reveal .services__row > .card--service,
	.services__row > .card--service {
		transition: flex-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
	}

	.services__row:hover > .card--service {
		flex-grow: 0.85;
	}

	.services__row > .card--service:hover {
		flex-grow: 1.45;
		border-color: transparent;
		box-shadow: 0 16px 40px rgba(12, 20, 30, 0.18);
	}

	.card--service:hover .card__photo {
		opacity: 1;
		transform: none;
	}

	.card--service:hover::after {
		opacity: 1;
	}

	.card--service .h4,
	.card--service .body-sm,
	.card--service .card__link,
	.card--service .card__icon {
		transition: color 0.3s ease, background-color 0.3s ease;
	}

	.card--service:hover .h4,
	.card--service:hover .body-sm,
	.card--service:hover .card__link {
		color: var(--text-on-brand);
	}

	.card--service:hover .card__icon {
		background: rgba(255, 255, 255, 0.16);
		color: var(--text-on-brand);
	}
}

/* Home: o menu sai junto com a hero ao rolar (não fica preso no topo) */
.site-header.site-header--over {
	position: relative;
	top: 0;
}

/* --------------------------------------------------------------------------
   Mega menus (desktop): Serviços e Plano funerário abrem ao clicar no item
   do menu; a foto troca ao passar o mouse nos links (main.js).
   -------------------------------------------------------------------------- */

.mega,
.mega-backdrop {
	display: none;
}

@media (min-width: 1081px) {
	.nav__list .has-mega > .sub-menu {
		display: none;
	}

	.nav__list > .has-mega > a[aria-expanded="true"] {
		color: var(--text-highlight);
	}

	.mega:not([hidden]) {
		display: block;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 2;
		padding-top: 4px;
		animation: mega-in 0.2s ease both;
	}

	.mega-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99;
		background: rgba(8, 15, 31, 0.25);
	}

	.mega__panel {
		display: flex;
		flex-direction: column;
		gap: 20px;
		max-height: calc(100vh - var(--header-h) - 60px);
		overflow-y: auto;
		padding: 24px;
		background: var(--bg-primary);
		border-radius: var(--radius-img);
		box-shadow: 0 16px 20px rgba(13, 20, 31, 0.12);
	}

	.mega--planos .mega__panel {
		width: 1000px;
		max-width: 100%;
		margin-left: auto;
	}

	.mega__content {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 40px;
	}

	.mega__cols {
		display: flex;
		gap: 56px;
		padding: 8px 8px 0;
	}

	.mega__overline {
		margin-bottom: 12px;
		color: var(--text-secondary);
	}

	.mega__overline a {
		color: inherit;
		text-decoration: none;
	}

	.mega__list {
		width: 300px;
	}

	.mega--planos .mega__list {
		width: 460px;
	}

	.mega__item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		height: 40px;
		color: var(--text-primary);
		font-size: 16px;
		line-height: 1.7;
		white-space: pre;
		text-decoration: none;
		transition: color 0.15s ease;
	}

	.mega__arrow {
		color: var(--text-muted);
		transition: color 0.15s ease, transform 0.2s ease;
	}

	.mega__item.is-active,
	.mega__item.is-active .mega__arrow,
	.mega--planos .mega__list li:last-child .mega__item,
	.mega--planos .mega__list li:last-child .mega__arrow {
		color: var(--text-highlight);
	}

	.mega__item.is-active .mega__arrow {
		transform: translateX(3px);
	}

	.mega__photo {
		position: relative;
		flex-shrink: 0;
		width: 400px;
		height: 300px;
		overflow: hidden;
		border-radius: var(--radius-card);
	}

	.mega__photo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: opacity 0.25s ease;
	}

	.mega__photo img.is-swapping {
		opacity: 0;
	}

	.mega__photo::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 15, 31, 0.8) 100%);
	}

	.mega__photo-text {
		position: absolute;
		right: 24px;
		bottom: 24px;
		left: 24px;
		z-index: 1;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.mega__photo-title {
		color: var(--text-on-brand);
	}

	.mega__photo-sub {
		color: rgba(255, 255, 255, 0.85);
	}

	.mega__cta {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		padding: 20px 24px 20px 32px;
		background: var(--brand-primary-button, #c3460f);
		border-radius: var(--radius-card);
		color: var(--text-on-brand);
	}

	.mega__cta .btn {
		flex-shrink: 0;
	}
}

@keyframes mega-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Lead: erro e tela de sucesso (o card troca o formulário pela confirmação + WhatsApp)
   -------------------------------------------------------------------------- */

.lead-error {
	padding: 12px 16px;
	background: #fdecea;
	border-radius: var(--radius-input);
	color: #a1260d;
	font-size: 14px;
	line-height: 1.5;
}

.lead-success {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	outline: none;
	animation: mega-in 0.3s ease both;
}

.lead-success[hidden] {
	display: none;
}

.lead-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e7f5ec;
	color: #1f7a45;
}

.lead-success .btn {
	gap: 10px;
	margin-top: 8px;
}

/* Cards de serviço mais altos no desktop: a foto do hover aparece sem ficar espremida */
@media (min-width: 901px) {
	.services__row > .card--service {
		min-height: 300px;
	}

	.services__row > .card--service .card__link {
		margin-top: auto;
	}
}

/* Hero da Home: título logo acima do texto, sem o vão grande entre eles */
.hero-photo__inner {
	justify-content: flex-end;
	gap: 32px;
}

/* Planos: os três com a mesma altura; o do meio (destaque) em azul */
.plans {
	align-items: stretch;
}

.plan .btn {
	margin-top: auto;
}

.plan--featured {
	background: var(--bg-brand-deep);
	border-color: var(--bg-brand-deep);
	color: var(--text-on-brand);
}

.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .check-list__mark {
	color: var(--text-on-brand);
}

.plan--featured .plan__sub {
	color: rgba(255, 255, 255, 0.75);
}

.plan--featured .plan__tag {
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--text-on-brand);
}

/* Fotos com movimento suave ao rolar (parallax): a foto, um pouco maior que a moldura, desliza devagar (main.js) */
[data-parallax] {
	overflow: hidden;
}

[data-parallax] > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.15);
	will-change: transform;
}

.cta-banner__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.cta-banner__media .cta-banner__img {
	position: static;
}

@media (prefers-reduced-motion: reduce) {
	[data-parallax] > img {
		transform: none;
	}
}

[data-lead-form][hidden] {
	display: none;
}

.hero-photo__text {
	max-width: 760px;
}

.hero-photo__text > .body {
	max-width: 470px;
}

/* Planos entram um por vez (main.js marca cada card conforme a rolagem): subida maior e mais lenta */
.js-reveal .plans > * {
	transform: translateY(64px);
	transition-duration: 0.9s, 0.9s, 0.15s, 0.15s;
}

/* --------------------------------------------------------------------------
   Urnas funerárias: grade de modelos (foto em fundo branco + código e nome da flor)
   -------------------------------------------------------------------------- */

.urns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.urn {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--bg-primary);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-card);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.urn:hover {
	border-color: var(--brand-primary);
	box-shadow: 0 12px 28px rgba(12, 20, 30, 0.08);
}

.urn__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 2 / 1;
	padding: 16px 24px;
	background: var(--bg-primary);
	border-bottom: 1px solid var(--border-default);
}

.urn__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.urn:hover .urn__media img {
	transform: scale(1.06);
}

.urn__missing {
	color: var(--text-muted);
	font-size: 14px;
	text-align: center;
}

.urn__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 24px 24px;
}

.urn__body .card__link {
	margin-top: 8px;
}

@media (max-width: 900px) {
	.urns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.urns { grid-template-columns: minmax(0, 1fr); }
}

/* Todas as fotos de urna na mesma caixa 2:1, qualquer que seja o tamanho do arquivo */
.urn__media {
	position: relative;
}

.urn__media img {
	position: absolute;
	top: 16px;
	left: 24px;
	width: calc(100% - 48px);
	height: calc(100% - 32px);
}

/* --------------------------------------------------------------------------
   Mapa de atendimento (Home, Regiões atendidas e páginas de bairro):
   abas por região, mapa SVG, barra com chamada e lista de bairros.
   -------------------------------------------------------------------------- */

.area-map-section {
	color: var(--text-on-brand);
}

.area-map-section .section-head .h2,
.area-map-section .section-head .overline {
	color: var(--text-on-brand);
}

.area-map-section .section-head__sub {
	color: rgba(255, 255, 255, 0.75);
}

.area-map {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius-img);
}

.area-map__tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.area-map__tab {
	padding: 18px 20px;
	background: transparent;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--text-on-brand);
	font: inherit;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.area-map__tab:last-child {
	border-right: 0;
}

.area-map__tab:hover {
	background: rgba(255, 255, 255, 0.08);
}

.area-map__tab[aria-selected="true"] {
	background: var(--bg-primary);
	color: var(--text-primary);
}

.area-map__stage {
	position: relative;
	height: 600px;
	padding: 24px;
	overflow: hidden;
}

.area-map__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.area-map__area path {
	fill: rgba(255, 255, 255, 0.1);
	stroke: rgba(255, 255, 255, 0.28);
	stroke-width: 0.6;
	vector-effect: non-scaling-stroke;
	transition: fill 0.35s ease;
}

.area-map__area.is-on path {
	fill: rgba(255, 255, 255, 0.82);
	stroke: var(--bg-brand-deep);
}

.area-map__area:hover path,
.area-map__area:focus path,
.area-map__area.is-current path {
	fill: var(--brand-primary);
}

.area-map__taboao path {
	stroke-width: 1.2;
}

.area-map__dot circle {
	fill: var(--bg-brand-deep);
	stroke: var(--text-on-brand);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	opacity: 0;
	transition: opacity 0.35s ease, fill 0.2s ease;
}

.area-map[data-zone="taboao"] .area-map__dot circle {
	opacity: 1;
}

.area-map__dot:hover circle,
.area-map__dot:focus circle,
.area-map__dot.is-current circle {
	fill: var(--brand-primary);
}

.area-map__unit circle {
	fill: var(--brand-primary);
	stroke: var(--text-on-brand);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.area-map__unit .area-map__pulse {
	fill: var(--brand-primary);
	stroke: none;
	opacity: 0.5;
	transform-box: fill-box;
	transform-origin: center;
	animation: area-pulse 2s ease-out infinite;
}

@keyframes area-pulse {
	from { transform: scale(1); opacity: 0.55; }
	to { transform: scale(3.2); opacity: 0; }
}

.area-map__tip {
	position: absolute;
	z-index: 2;
	padding: 8px 12px;
	background: var(--bg-primary);
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	color: var(--text-primary);
	font-size: 14px;
	line-height: 1.4;
	pointer-events: none;
	transform: translate(-50%, calc(-100% - 12px));
	white-space: nowrap;
}

.area-map__tip small {
	display: block;
	color: var(--text-secondary);
	font-size: 12px;
}

.area-map__legend {
	position: absolute;
	bottom: 20px;
	left: 24px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
}

.area-map__legend-dot {
	width: 10px;
	height: 10px;
	border: 2px solid var(--text-on-brand);
	border-radius: 50%;
	background: var(--brand-primary);
}

.area-map__bar {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 16px 16px;
	padding: 16px 16px 16px 24px;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-card);
}

.area-map__bar-label {
	color: rgba(255, 255, 255, 0.7);
	white-space: nowrap;
}

.area-map__bar-zone {
	color: var(--text-on-brand);
	white-space: nowrap;
}

.area-map__bar-text {
	flex: 1;
	color: rgba(255, 255, 255, 0.8);
}

.area-map__bar .btn {
	flex-shrink: 0;
}

.area-map__lists {
	padding: 24px;
	background: var(--bg-primary);
	color: var(--text-primary);
}

.area-map__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	animation: mega-in 0.3s ease both;
}

.area-map__list[hidden] {
	display: none;
}

.area-map__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.area-map__chip {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--border-control);
	border-radius: 999px;
	color: var(--text-primary);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.area-map__chip:hover,
.area-map__chip.is-current {
	background: var(--brand-primary-button);
	border-color: var(--brand-primary-button);
	color: var(--text-on-brand);
}

.area-map__near {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.area-map__near .overline {
	color: var(--text-on-brand);
	opacity: 0.7;
}

.area-map__chips--dark .area-map__chip {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--text-on-brand);
}

.why__extra {
	max-width: 820px;
	margin-top: 24px;
}

@media (max-width: 1080px) {
	.area-map__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.area-map__tab:nth-child(3) { border-right: 0; }
	.area-map__tab:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
	.area-map__bar { flex-wrap: wrap; }
	.area-map__bar-text { flex-basis: 100%; order: 3; }
}

@media (max-width: 640px) {
	.area-map__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.area-map__tab { padding: 14px 16px; font-size: 14px; }
	.area-map__tab:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, 0.14); }
	.area-map__tab:nth-child(2n) { border-right: 0; }
	.area-map__tab:nth-child(-n+4) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
	.area-map__stage { height: 420px; padding: 12px; }
	.area-map__legend { bottom: 10px; left: 12px; font-size: 12px; }
	.area-map__bar { margin: 0 12px 12px; padding: 16px; flex-direction: column; align-items: stretch; gap: 10px; }
	.area-map__bar-text { order: 0; }
	.area-map__bar .btn { width: 100%; }
	.area-map__lists { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.area-map__unit .area-map__pulse { animation: none; }
}

/* Logo oficial (24/11). Sobre a foto da Home e no rodapé ele fica todo branco (filtro). */
.brand--logo { padding: 0; }
.brand__logo { display: block; width: auto; height: 48px; transition: filter 0.25s ease; }
.site-header--over:not(.is-solid) .brand__logo,
.brand__logo--branco { filter: brightness(0) invert(1); }
.nav-open .site-header--over .brand__logo { filter: none; }
.site-footer .brand__logo { height: 56px; }
.site-footer__logo { padding: 10px 16px; }
/* O botão flutuante do WhatsApp não pode cobrir a linha final do rodapé (assinatura Fontini Digital). */
@media (min-width: 641px) {
	.site-footer { padding-bottom: 120px; }
}
@media (max-width: 600px) {
	.brand__logo { height: 40px; }
}

/* Texto dos serviços opcionais e nota: espaço abaixo dos cards (o card azul se projeta para baixo). */
.plans__optionals { margin-top: 56px; }
.plans__optionals + .caption { margin-top: -32px; }

/* Logo do Cuida Mais é mais quadrado: um pouco mais alto no header. */
.site-header .brand__logo { height: 56px; }
@media (max-width: 600px) { .site-header .brand__logo { height: 44px; } }

/* Seção azul escura: textos sempre claros. */
.section--deep .overline { color: rgba(255, 255, 255, 0.72); }
.section--deep .h2 { color: #fff; }
.section--deep .section-head__sub { color: rgba(255, 255, 255, 0.85); }

/* Mapa do Sul de Minas */
.area-map--mg .area-map__bg {
	fill: rgba(255, 255, 255, 0.04);
	stroke: rgba(255, 255, 255, 0.14);
	stroke-width: 0.6;
	vector-effect: non-scaling-stroke;
}
.area-map--mg .area-map__area { cursor: default; }
.area-map--mg .area-map__area.is-on path { fill: rgba(255, 255, 255, 0.82); stroke: var(--bg-brand-deep); stroke-width: 1.2; }
.area-map--mg .area-map__area:hover path { fill: #fff; }
.area-map--mg .area-map__area.is-current path { fill: var(--brand-primary); }
.area-map--mg .area-map__labels text {
	fill: var(--bg-brand-deep);
	font-size: 20px;
	font-weight: 500;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
}
@media (max-width: 760px) {
	.area-map--mg .area-map__stage { height: auto; aspect-ratio: 1000 / 820; padding: 12px; }
	.area-map--mg .area-map__labels text { font-size: 26px; }
	.area-map--mg .area-map__bar { flex-wrap: wrap; }
}
.unit-map { width: 100%; min-height: 360px; height: 100%; border: 0; border-radius: var(--radius-img); }
.area-map--mg .area-map__labels text.is-current { fill: #fff; font-weight: 600; }

/* Foto da seção "Por que": o efeito de entrada precisa terminar visível. */
.js-reveal .why__row > .ph.is-visible { opacity: 1; transform: none; }
