/* ==========================================================================
   São Paulo Funerária - Design System & Stylesheet
   Foco: Atendimento Funerário 24h em São Paulo
   ========================================================================== */

:root {
  --verde-900: #0c2418;
  --verde-800: #123a27;
  --verde-700: #1c4d34;
  --verde-600: #2a6446;
  --dourado: #c6a25e;
  --dourado-claro: #e6cd9a;
  --creme: #f6f1e6;
  --creme-2: #efe7d5;
  --off-white: #fbf9f4;
  --texto: #20241f;
  --texto-suave: #4b4f47;
  --whatsapp: #25d366;
  --whatsapp-hover: #20ba5a;
  --telefone-bg: #1c4d34;
  --radius: 14px;
  --maxw: 1180px;
  --sombra-suave: 0 10px 30px -10px rgba(12, 36, 24, 0.15);
  --sombra-card: 0 18px 34px -18px rgba(15, 43, 31, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--texto);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 0.5em;
  color: var(--verde-900);
}

p {
  line-height: 1.65;
  color: var(--texto-suave);
  margin-bottom: 1em;
}

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

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

/* Icons SVG Styling */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Layout Utilities */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dourado);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.6em;
}

section {
  padding: 70px 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.cabecalho-secao {
  max-width: 680px;
  margin-bottom: 8px;
}

.cabecalho-secao.centro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 8px 22px -8px rgba(37, 211, 102, 0.65);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.75);
}

.btn-ligar {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ligar:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-dourado {
  background: var(--dourado);
  color: var(--verde-900);
}

.btn-dourado:hover {
  background: var(--dourado-claro);
}

/* Motif Perfurado */
.painel-perfurado {
  background-image: radial-gradient(var(--dourado) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.14;
}

/* ==========================================================================
   BARRA TOPO & HEADER FIXO INCONDICIONAL
   ========================================================================== */
.barra-topo {
  background: var(--verde-900);
  color: var(--creme-2);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(230, 205, 154, 0.15);
  width: 100%;
}

.barra-topo .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.barra-topo .contatos {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.barra-topo a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.barra-topo a:hover {
  color: var(--dourado-claro);
}

.badge-24h {
  background: var(--dourado);
  color: var(--verde-900);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Header Fixo Otimizado Desktop & Mobile */
header.header-fixo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(12, 36, 24, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198, 162, 94, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

nav.principal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
  flex-wrap: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-texto-bloco {
  line-height: 1.1;
}

.logo-texto-bloco .nome-empresa {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-texto-bloco .sub-empresa {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dourado-claro);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links a {
  color: var(--off-white);
  opacity: 0.88;
  padding: 4px 0;
  white-space: nowrap;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--dourado-claro);
}

/* Submenu Dropdown de Serviços */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-dropdown .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--off-white);
  opacity: 0.88;
  padding: 4px 0;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.nav-item-dropdown .dropdown-trigger:hover,
.nav-item-dropdown.open .dropdown-trigger {
  opacity: 1;
  color: var(--dourado-claro);
}

.nav-item-dropdown .dropdown-trigger::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-item-dropdown:hover .dropdown-trigger::after,
.nav-item-dropdown.open .dropdown-trigger::after {
  transform: rotate(-135deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #091b12;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(198, 162, 94, 0.35);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 2500;
  flex-direction: column;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
  display: flex !important;
}

.dropdown-menu a {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--off-white) !important;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-bottom: 1px solid rgba(230, 205, 154, 0.1);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(198, 162, 94, 0.2);
  color: var(--dourado-claro) !important;
  opacity: 1;
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta .btn {
  padding: 7px 14px;
  font-size: 0.78rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   HERO SECTION COM VÍDEO BACKGROUND DE ALTA QUALIDADE
   ========================================================================== */
.hero {
  position: relative;
  background: var(--verde-900);
  color: var(--off-white);
  overflow: hidden;
  padding-bottom: 64px;
  margin-top: 56px;
}

/* Elemento de Vídeo de Fundo da Hero */
.hero-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.68;
  filter: saturate(1.15) brightness(0.92);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 36, 24, 0.72) 0%, rgba(12, 36, 24, 0.48) 50%, rgba(12, 36, 24, 0.78) 100%);
  z-index: 1;
}

.hero .painel-perfurado {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-conteudo {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
}

.hero-conteudo h1 {
  color: var(--off-white);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  margin-bottom: 0.36em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero-conteudo h1 em {
  font-style: normal;
  color: var(--dourado-claro);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-conteudo .lead {
  color: var(--creme-2);
  font-size: 1rem;
  max-width: 52ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-selo {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-selo div {
  font-size: 0.8rem;
  color: var(--creme-2);
}

.hero-selo strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--dourado-claro);
  font-weight: 700;
  line-height: 1;
}

.hero-cartao-matriz {
  background: rgba(12, 36, 24, 0.78);
  border: 1px solid rgba(230, 205, 154, 0.35);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-cartao-matriz .thumb-card {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(230, 205, 154, 0.25);
}

.hero-cartao-matriz .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dourado);
  color: var(--verde-900);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-cartao-matriz h3 {
  color: var(--off-white);
  font-size: 1.35rem;
  margin-bottom: 0.15em;
}

.hero-cartao-matriz .endereco {
  color: var(--dourado-claro);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.lista-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lista-check li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--creme-2);
  font-size: 0.88rem;
}

.lista-check li .svg-icon {
  color: var(--dourado);
}

/* ==========================================================================
   FAIXA DE ESTATÍSTICAS
   ========================================================================== */
.faixa-stats {
  background: var(--off-white);
  border-bottom: 1px solid var(--creme-2);
  width: 100%;
}

.faixa-stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 20px;
}

.stat {
  text-align: center;
  border-left: 1px solid var(--creme-2);
  padding: 0 10px;
}

.stat:first-child {
  border-left: none;
}

.stat strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  color: var(--verde-800);
  font-weight: 700;
}

.stat span {
  font-size: 0.78rem;
  color: var(--texto-suave);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   SERVIÇOS COM FOTOS REAIS
   ========================================================================== */
.grade-servicos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card-servico {
  background: var(--off-white);
  border: 1px solid var(--creme-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.card-servico:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-card);
}

.card-servico-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-servico-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-servico:hover .card-servico-media img {
  transform: scale(1.05);
}

.card-servico-corpo {
  padding: 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.icone-servico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--verde-700), var(--verde-900));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--dourado-claro);
}

.card-servico h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35em;
}

/* ==========================================================================
   MATRIZ EM DESTAQUE COM FOTO DA FACHADA
   ========================================================================== */
.secao-matriz {
  background: var(--verde-900);
  color: var(--creme-2);
  position: relative;
  overflow: hidden;
}

.secao-matriz .painel-perfurado {
  position: absolute;
  inset: 0;
  opacity: 0.06;
}

.matriz-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.matriz-grid h2 {
  color: var(--off-white);
}

.matriz-visual {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 205, 154, 0.3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.matriz-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.matriz-visual .rotulo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  background: rgba(12, 36, 24, 0.85);
  border: 1px solid rgba(230, 205, 154, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.matriz-visual .rotulo strong {
  color: var(--dourado-claro);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

.matriz-visual .rotulo span {
  display: block;
  font-size: 0.78rem;
  color: var(--creme-2);
}

.diferenciais-matriz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.diferencial {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.diferencial .ponto {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(230, 205, 154, 0.12);
  border: 1px solid rgba(230, 205, 154, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dourado-claro);
}

.diferencial h4 {
  color: var(--off-white);
  font-size: 0.98rem;
  margin: 0 0 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.diferencial p {
  color: var(--creme-2);
  font-size: 0.84rem;
  margin: 0;
}

/* GALERIA DA ESTRUTURA */
.galeria-matriz {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.item-galeria {
  border-radius: 10px;
  overflow: hidden;
  height: 110px;
  border: 1px solid rgba(230, 205, 154, 0.2);
  position: relative;
}

.item-galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-galeria:hover img {
  transform: scale(1.08);
}

.item-galeria span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 36, 24, 0.75);
  color: var(--dourado-claro);
  font-size: 0.68rem;
  padding: 4px 6px;
  text-align: center;
  font-weight: 600;
}

/* ==========================================================================
   UNIDADES POR ZONA
   ========================================================================== */
.zonas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.zona-card {
  background: var(--off-white);
  border: 1px solid var(--creme-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.zona-card .zona-titulo {
  background: var(--verde-800);
  color: var(--off-white);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zona-card ul {
  list-style: none;
  margin: 0;
  padding: 6px 4px;
}

.zona-card li {
  padding: 10px 10px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.zona-card li:hover {
  background: var(--creme-2);
}

.zona-card li + li {
  border-top: 1px dashed var(--creme-2);
}

.unidade-nome {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--verde-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.unidade-nome .num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dourado);
  color: var(--verde-900);
  font-size: 0.64rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unidade-end {
  font-size: 0.76rem;
  color: var(--texto-suave);
  margin-top: 2px;
  margin-left: 24px;
}

.zona-card li.destaque {
  background: rgba(198, 162, 94, 0.14);
  border: 1px solid rgba(198, 162, 94, 0.4);
}

/* ==========================================================================
   CEMITÉRIOS COM FOTOS
   ========================================================================== */
.cemiterios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.cemiterio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--creme-2);
  transition: transform 0.18s ease;
}

.cemiterio-card:hover {
  transform: translateY(-3px);
}

.cemiterio-foto {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--verde-800);
}

.cemiterio-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cemiterio-card:hover .cemiterio-foto img {
  transform: scale(1.06);
}

.cemiterio-foto span.zona-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: var(--dourado);
  color: var(--verde-900);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
}

.cemiterio-info {
  padding: 12px 14px 16px;
}

.cemiterio-info h4 {
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--verde-900);
}

/* ==========================================================================
   CONFIANÇA
   ========================================================================== */
.secao-confianca {
  background: var(--creme-2);
}

.confianca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.confianca-foto {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(12, 36, 24, 0.35);
  border: 1px solid rgba(198, 162, 94, 0.3);
}

.confianca-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.4;
}

.citacao {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: var(--verde-900);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* ==========================================================================
   FAQ EM ABAS ACORDEÃO (<details> & <summary>)
   ========================================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

details.faq-item {
  background: var(--off-white);
  border: 1px solid var(--creme-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details.faq-item[open] {
  border-color: rgba(198, 162, 94, 0.6);
  box-shadow: 0 8px 24px -8px rgba(12, 36, 24, 0.12);
}

summary.faq-pergunta {
  padding: 16px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--verde-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}

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

summary.faq-pergunta::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--dourado);
  border-bottom: 2px solid var(--dourado);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

details.faq-item[open] summary.faq-pergunta::after {
  transform: rotate(-135deg);
}

.faq-resposta {
  padding: 0 20px 18px 20px;
  border-top: 1px solid rgba(239, 231, 213, 0.6);
}

.faq-resposta p {
  margin: 12px 0 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--texto-suave);
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
  background: linear-gradient(150deg, var(--verde-800), var(--verde-900));
  color: var(--off-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final .painel-perfurado {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}

.cta-final .wrap {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  color: var(--off-white);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 22ch;
  margin: 0 auto 0.3em;
}

.cta-final p {
  color: var(--creme-2);
  max-width: 52ch;
  margin: 0 auto 26px;
}

.cta-final .hero-ctas {
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--verde-900);
  color: var(--creme-2);
  padding: 56px 0 20px;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(230, 205, 154, 0.18);
  width: 100%;
  box-sizing: border-box;
}

footer h5 {
  font-family: 'Inter', sans-serif;
  color: var(--dourado-claro);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.85rem;
}

footer a {
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--dourado-claro);
}

.footer-baixo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.75rem;
  color: rgba(246, 241, 230, 0.55);
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   WHATSAPP FLUTUANTE & BARRA FIXA MOBILE
   ========================================================================== */
.flutuante-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 990;
  background: var(--whatsapp);
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6);
  animation: pulso 2.4s ease-in-out infinite;
  transition: transform 0.18s ease;
}

.flutuante-whatsapp:hover {
  transform: scale(1.08);
}

@keyframes pulso {
  0%, 100% { box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 12px 28px -2px rgba(37, 211, 102, 0.85); }
}

.barra-fixa-mobile {
  display: none;
}

/* Botão Hambúrguer (Mobile Toggle) - Padrão Oculto no Desktop */
.btn-hamburguer {
  display: none;
  background: transparent;
  border: 1px solid rgba(230, 205, 154, 0.35);
  color: var(--off-white);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-hamburguer:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--dourado-claro);
}

/* ==========================================================================
   RESPONSIVIDADE AJUSTADA
   ========================================================================== */
@media (max-width: 1020px) {
  .nav-links { gap: 12px; font-size: 0.76rem; }
  .nav-cta .btn { padding: 6px 10px; font-size: 0.74rem; }
  .zonas-grid { grid-template-columns: repeat(2, 1fr); }
  .cemiterios-grid { grid-template-columns: repeat(3, 1fr); }
  .grade-servicos { grid-template-columns: repeat(2, 1fr); }
  .confianca-grid, .matriz-grid { grid-template-columns: 1fr; }
  .galeria-matriz { grid-template-columns: repeat(2, 1fr); }
  .hero-conteudo { grid-template-columns: 1fr; padding-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
    overflow-x: hidden;
  }

  section {
    padding: 44px 0;
  }

  /* REMOVE TELEFONE E WHATSAPP DO TOPO NO MOBILE (MANTÉM APENAS LOGO E BOTÃO HAMBÚRGUER PARA FICAR 100% LIMPO E ASSERTIVO) */
  .barra-topo,
  .nav-cta {
    display: none !important;
  }

  header.header-fixo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(12, 36, 24, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(198, 162, 94, 0.3);
  }

  nav.principal {
    padding: 8px 0;
    position: relative;
  }

  .btn-hamburguer {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(12, 36, 24, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(198, 162, 94, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    z-index: 2001;
  }

  .nav-links.ativo {
    display: flex;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(230, 205, 154, 0.2);
    width: 100%;
    display: block;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Suporte Mobile para o Dropdown */
  .nav-item-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-item-dropdown .dropdown-trigger {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(230, 205, 154, 0.2);
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: unset;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(198, 162, 94, 0.2);
    box-shadow: none;
    border-radius: 8px;
    margin-top: 4px;
    padding: 4px 8px;
  }

  .dropdown-menu a {
    font-size: 0.88rem;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .logo-img {
    height: 34px;
  }

  .logo-texto-bloco .nome-empresa {
    font-size: 1.05rem;
  }

  .logo-texto-bloco .sub-empresa {
    font-size: 0.58rem;
  }

  .nav-cta .btn {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .hero {
    margin-top: 52px;
  }

  .faixa-stats .wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .stat {
    border-left: none;
    padding: 0;
  }

  .zonas-grid { grid-template-columns: 1fr; }
  .cemiterios-grid { grid-template-columns: repeat(2, 1fr); }
  .grade-servicos { grid-template-columns: 1fr; }
  .diferenciais-matriz { grid-template-columns: 1fr; }

  .barra-topo .wrap {
    justify-content: center;
    text-align: center;
  }

  .hero-ctas .btn {
    flex: 1;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-baixo {
    flex-direction: column;
    text-align: center;
  }

  .flutuante-whatsapp {
    display: none;
  }

  .barra-fixa-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 2000;
    background: var(--verde-900);
    border-top: 1px solid rgba(198, 162, 94, 0.4);
    padding: 8px 10px;
    gap: 8px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3);
  }

  .barra-fixa-mobile .btn-mobile-acao {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    text-align: center;
    border: none;
    box-sizing: border-box;
  }

  .barra-fixa-mobile .btn-mobile-ligar {
    background: linear-gradient(135deg, var(--verde-700), var(--verde-800));
    border: 1px solid rgba(230, 205, 154, 0.35);
  }

  .barra-fixa-mobile .btn-mobile-whatsapp {
    background: var(--whatsapp);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  }

  summary.faq-pergunta {
    font-size: 1.1rem;
    padding: 14px 16px;
  }

  .faq-resposta {
    padding: 0 16px 16px 16px;
  }
}

@media (max-width: 480px) {
  .cemiterios-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
  .matriz-visual::before, .flutuante-whatsapp {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
