/* Agência Funerária Simão | folha de estilos principal */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Allura"; src: url("../fonts/allura-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --petroleo-900: #0B3D44;
  --petroleo-950: #082E33;
  --petroleo-700: #1E5A63;
  --marfim: #FBF6EE;
  --marfim-2: #F3ECE0;
  --dourado: #D4AF37;
  --dourado-escuro: #A8862A;
  --cinza: #A7A9AC;
  --texto: #22302F;
  --texto-suave: #5C6766;
  --linha: #E6DDCD;
  --branco: #FFFFFF;
  --erro: #9B2C2C;
  --ok: #2F6B4F;

  --f-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-texto: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-marca: "Allura", "Brush Script MT", cursive;

  --raio: 6px;
  --raio-lg: 10px;
  --sombra: 0 1px 2px rgba(11, 61, 68, .06), 0 8px 24px rgba(11, 61, 68, .06);
  --sombra-hover: 0 2px 4px rgba(11, 61, 68, .08), 0 16px 40px rgba(11, 61, 68, .12);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--marfim);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--petroleo-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petroleo-900); }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--f-titulo); color: var(--petroleo-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.075rem; color: var(--texto-suave); max-width: 62ch; }
.caption { font-size: .875rem; font-weight: 500; color: var(--texto-suave); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; }

.eyebrow {
  display: inline-block; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dourado-escuro); font-weight: 600; margin-bottom: .75rem;
}
.on-dark .eyebrow, .eyebrow.gold { color: var(--dourado); }
.rule { width: 56px; height: 1px; background: var(--dourado); border: 0; margin: 1.25rem 0; }
.rule.center { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--dourado); color: var(--petroleo-900); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Topo ---------- */
.topbar { background: var(--petroleo-950); color: #CFE0DF; font-size: .8125rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--dourado); }
.topbar .ico { width: 15px; height: 15px; color: var(--dourado); }
.topbar-left, .topbar-right { display: flex; gap: 1.5rem; align-items: center; }
.show-sm { display: none; }
@media (max-width: 760px) { .topbar-left .hide-sm, .topbar .email { display: none; } .show-sm { display: inline; } }

.site-header { background: var(--petroleo-900); color: var(--marfim); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(212, 175, 55, .18); }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 84px; }

.brand { display: flex; align-items: center; gap: .6rem; color: var(--marfim); text-decoration: none; flex: none; }
.brand:hover { color: var(--marfim); }
.brand .dove { flex: none; width: 50px; height: 46px; color: var(--marfim); margin-bottom: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-marca); font-size: 2rem; white-space: nowrap; }
.brand-tag { font-size: .5625rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: .3rem; padding-left: .4rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav ul a { color: var(--marfim); text-decoration: none; font-size: .85rem; font-weight: 500; padding: .6rem .6rem; display: block; position: relative; white-space: nowrap; }
.nav ul a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 1px; background: var(--dourado); transform: scaleX(0); transition: transform .25s ease; }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--branco); }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--marfim); text-decoration: none; font-weight: 600; font-size: .9rem; margin: 0 .5rem 0 1rem; white-space: nowrap; }
.nav-phone .ico { color: var(--dourado); width: 18px; height: 18px; }
.nav-phone:hover { color: var(--dourado); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(251, 246, 238, .35); color: var(--marfim); border-radius: var(--raio); padding: .5rem; cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--petroleo-900); flex-direction: column; align-items: stretch; padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; box-shadow: -20px 0 40px rgba(0,0,0,.25); overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font-size: 1rem; padding: .9rem .25rem; border-bottom: 1px solid rgba(251,246,238,.1); }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--dourado); }
  .nav-phone { margin: 1.5rem 0 1rem; font-size: 1.1rem; }
  .nav .btn { justify-content: center; }
  .nav-close { position: absolute; top: 1.5rem; right: 1.25rem; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1241px) { .nav-close { display: none; } }
@media (max-width: 420px) { .brand-name { font-size: 1.6rem; } .brand .dove { width: 40px; height: 36px; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-texto); font-size: .9rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--raio); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--petroleo-900); color: var(--marfim); }
.btn-primary:hover { background: var(--petroleo-700); color: var(--branco); box-shadow: 0 6px 18px rgba(11,61,68,.25); }
.btn-secondary { background: var(--branco); color: var(--petroleo-900); border-color: var(--petroleo-900); }
.btn-secondary:hover { border-color: var(--dourado); color: var(--petroleo-900); background: var(--marfim); }
.btn-gold { background: var(--dourado); color: var(--petroleo-950); }
.btn-gold:hover { background: #E0BE4E; color: var(--petroleo-950); }
.btn-outline-light { background: transparent; color: var(--marfim); border-color: rgba(251,246,238,.7); }
.btn-outline-light:hover { border-color: var(--dourado); color: var(--dourado); }
.btn-sm { padding: .65rem 1rem; font-size: .8125rem; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; color: var(--petroleo-900); text-decoration: none; }
.link-more .ico { width: 15px; height: 15px; transition: transform .2s; }
.link-more:hover { color: var(--dourado-escuro); }
.link-more:hover .ico { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(ellipse 60% 80% at 78% 55%, rgba(212,175,55,.16), transparent 60%), linear-gradient(135deg, var(--petroleo-950) 0%, var(--petroleo-900) 55%, #0F4952 100%); color: var(--marfim); overflow: hidden; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; min-height: clamp(520px, 72vh, 680px); padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 { color: var(--marfim); font-weight: 400; font-style: italic; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; margin-bottom: .4em; }
.hero h1 em { color: var(--dourado); font-style: italic; }
.hero .lead { color: #D5E3E1; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-247 { display: flex; align-items: center; gap: .9rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(251,246,238,.14); max-width: 440px; }
.hero-247 .circle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--dourado); display: grid; place-items: center; color: var(--dourado); flex: none; }
.hero-247 strong { display: block; font-size: 1.15rem; color: var(--branco); }
.hero-247 strong a { color: inherit; text-decoration: none; }
.hero-247 span { font-size: .8125rem; color: #B9CCCA; }
.hero-lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; color: var(--dourado); opacity: .55; pointer-events: none; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; }
.hero-art .glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,120,.30) 0%, rgba(212,175,55,.10) 35%, transparent 68%); animation: breathe 6s ease-in-out infinite; }
.hero-art svg { position: relative; width: 100%; height: 100%; }
.flame { transform-origin: 210px 170px; animation: flicker 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.03, .97) rotate(-1.5deg); } 60% { transform: scale(.98, 1.04) rotate(1deg); } }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-art { display: none; }
}

/* Cabeçalho de página interior */
.page-head { background: linear-gradient(135deg, var(--petroleo-950), var(--petroleo-900)); color: var(--marfim); position: relative; overflow: hidden; }
.page-head .container { padding-top: 3.25rem; padding-bottom: 3.25rem; position: relative; }
.page-head h1 { color: var(--marfim); margin-bottom: .25em; }
.page-head p { color: #CFDFDD; max-width: 60ch; margin: 0; }
.page-head .dove-bg { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 180px; height: 160px; color: rgba(251,246,238,.10); }
@media (max-width: 700px) { .page-head .dove-bg { display: none; } }

.breadcrumb { background: var(--branco); border-bottom: 1px solid var(--linha); font-size: .8125rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: .8rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; color: var(--texto-suave); }
.breadcrumb li + li::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("../img/chevron.svg") center / contain no-repeat; mask: url("../img/chevron.svg") center / contain no-repeat; opacity: .6; }
.breadcrumb a { color: var(--texto-suave); text-decoration: none; }
.breadcrumb a:hover { color: var(--petroleo-900); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--petroleo-900); font-weight: 500; }

/* ---------- Secções ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section.alt { background: var(--branco); }
.section.dark { background: var(--petroleo-900); color: #D5E3E1; }
.section.dark h2, .section.dark h3 { color: var(--marfim); }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.5rem; }
.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)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cartões ---------- */
.card { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-lg); padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; }
.card:hover { box-shadow: var(--sombra-hover); transform: translateY(-2px); border-color: #DCCFB8; }
.card .card-ico { width: 40px; height: 40px; color: var(--dourado); margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--texto-suave); flex: 1; }
.card .link-more { margin-top: .5rem; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }
.card.dark { background: linear-gradient(160deg, var(--petroleo-900), var(--petroleo-950)); border-color: transparent; color: #D5E3E1; overflow: hidden; }
.card.dark h3 { color: var(--marfim); }
.card.dark p { color: #C3D6D4; }
.card.dark .link-more { color: var(--marfim); }
.card.dark .link-more:hover { color: var(--dourado); }
.card.dark .candle-deco { position: absolute; right: -8px; bottom: -6px; width: 110px; height: 110px; color: rgba(212,175,55,.22); }

.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; }
.feature-list .ico { color: var(--dourado-escuro); width: 18px; height: 18px; margin-top: .2rem; }

/* Imagem decorativa */
.visual { position: relative; border-radius: var(--raio-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: radial-gradient(circle at 70% 40%, rgba(212,175,55,.22), transparent 55%), linear-gradient(145deg, var(--petroleo-700), var(--petroleo-950)); display: grid; place-items: center; color: rgba(251,246,238,.9); }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual .dove { width: 42%; height: auto; aspect-ratio: 104/94; }
.visual .leaf { position: absolute; right: 8%; bottom: 8%; width: 90px; height: 90px; color: var(--dourado); opacity: .8; }
.visual-quote { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.75rem; background: linear-gradient(0deg, rgba(8,46,51,.9), transparent); font-family: var(--f-titulo); font-style: italic; font-size: 1.2rem; color: var(--marfim); }

/* Estatísticas / valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(251,246,238,.15); border-bottom: 1px solid rgba(251,246,238,.15); }
.values > div { padding: 2rem 1.5rem; text-align: center; }
.values > div + div { border-left: 1px solid rgba(251,246,238,.15); }
.values .ico { width: 34px; height: 34px; color: var(--dourado); margin: 0 auto .9rem; }
.values h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.values p { font-size: .875rem; margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .values > div + div { border-left: 0; border-top: 1px solid rgba(251,246,238,.15); } }

/* Faixa de citação */
.quote-band { background: linear-gradient(120deg, var(--petroleo-950), var(--petroleo-900)); color: var(--marfim); position: relative; overflow: hidden; }
.quote-band .container { padding-top: 3.5rem; padding-bottom: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; }
.quote-band blockquote { margin: 0; font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; max-width: 32ch; }
.quote-band .leaf { position: absolute; right: 2%; top: -10px; width: 160px; height: 160px; color: var(--dourado); opacity: .15; }

/* ---------- Contactos ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list .circle { width: 48px; height: 48px; border-radius: 50%; background: var(--petroleo-900); color: var(--marfim); display: grid; place-items: center; flex: none; }
.contact-list .circle .ico { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--petroleo-900); font-weight: 600; }
.contact-list small { color: var(--texto-suave); font-size: .8rem; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover strong { color: var(--dourado-escuro); }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--raio-lg); filter: grayscale(.35) contrast(1.05); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-size: .8125rem; font-weight: 600; color: var(--petroleo-900); margin-bottom: .4rem; }
.field .req { color: var(--dourado-escuro); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=date], .field input[type=datetime-local], .field input[type=search], .field select, .field textarea {
  width: 100%; font: inherit; font-size: .9375rem; color: var(--texto); background: var(--branco);
  border: 1px solid #D9D2C4; border-radius: var(--raio); padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petroleo-700); box-shadow: 0 0 0 3px rgba(30,90,99,.15); }
.field .hint { font-size: .78rem; color: var(--texto-suave); margin-top: .35rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .8125rem; color: var(--texto-suave); }
.check input { margin-top: .2rem; accent-color: var(--petroleo-900); width: 16px; height: 16px; flex: none; }
.panel { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-lg); padding: clamp(1.25rem, 3vw, 2rem); }

.alert { padding: .9rem 1.1rem; border-radius: var(--raio); font-size: .9rem; margin-bottom: 1.25rem; border-left: 3px solid; }
.alert-ok { background: #EEF5F0; color: var(--ok); border-color: var(--ok); }
.alert-erro { background: #F9EEEE; color: var(--erro); border-color: var(--erro); }
.alert-info { background: #F6F1E4; color: #6B5518; border-color: var(--dourado); }

/* ---------- Necrologia ---------- */
.search-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.search-bar .input { flex: 1 1 260px; }
.obit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.obit { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-lg); overflow: hidden; display: flex; flex-direction: column; text-align: center; position: relative; transition: box-shadow .25s, transform .25s; }
.obit:hover { box-shadow: var(--sombra-hover); transform: translateY(-2px); }
.obit-photo { aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--petroleo-700), var(--petroleo-950)); display: grid; place-items: center; overflow: hidden; }
.obit-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.obit-photo .dove { width: 45%; height: auto; aspect-ratio: 104/94; color: rgba(251,246,238,.55); }
.obit-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.obit-body h3 { font-size: 1.15rem; margin: 0; }
.obit-body h3 a { color: inherit; text-decoration: none; }
.obit-body h3 a::after { content: ""; position: absolute; inset: 0; }
.obit-dates { font-size: .8125rem; color: var(--texto-suave); }
.obit-place { font-size: .8125rem; color: var(--dourado-escuro); font-weight: 500; }
.obit-meta { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--linha); display: flex; justify-content: center; gap: 1rem; font-size: .78rem; color: var(--texto-suave); }
.obit-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.obit-meta .ico { width: 14px; height: 14px; color: var(--dourado-escuro); }
.badge { display: inline-block; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: .3rem .6rem; border-radius: 99px; background: var(--marfim-2); color: var(--petroleo-900); }
.badge.gold { background: var(--dourado); color: var(--petroleo-950); }
.obit .badge { position: absolute; top: .75rem; left: .75rem; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--texto-suave); }
.empty .ico { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--cinza); }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--linha); border-radius: var(--raio); text-decoration: none; background: var(--branco); color: var(--petroleo-900); font-size: .875rem; }
.pagination .current { background: var(--petroleo-900); color: var(--marfim); border-color: var(--petroleo-900); }

/* Página de homenagem */
.tribute-head { background: linear-gradient(160deg, var(--petroleo-950), var(--petroleo-900)); color: var(--marfim); text-align: center; position: relative; overflow: hidden; }
.tribute-head .container { padding-top: 3.5rem; padding-bottom: 3.5rem; position: relative; }
.tribute-photo { width: 190px; height: 190px; border-radius: 50%; margin: 0 auto 1.5rem; padding: 5px; background: linear-gradient(135deg, var(--dourado), rgba(212,175,55,.3)); }
.tribute-photo > * { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--petroleo-700); display: grid; place-items: center; }
.tribute-photo .dove { width: 55%; height: auto; color: rgba(251,246,238,.6); }
.tribute-head h1 { color: var(--marfim); margin-bottom: .2em; }
.tribute-dates { font-family: var(--f-titulo); font-style: italic; font-size: 1.15rem; color: var(--dourado); }
.tribute-sub { color: #C3D6D4; font-size: .9rem; margin-top: .4rem; }
.tribute-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .tribute-grid { grid-template-columns: 1fr; } }
.cerimonia { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.cerimonia li { display: flex; gap: 1rem; }
.cerimonia .circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--dourado); color: var(--dourado-escuro); display: grid; place-items: center; flex: none; }
.cerimonia h3 { font-family: var(--f-texto); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); margin: .1rem 0 .2rem; font-weight: 600; }
.cerimonia p { margin: 0; color: var(--petroleo-900); font-weight: 500; }
.cerimonia small { display: block; color: var(--texto-suave); font-weight: 400; }

.candle-box { text-align: center; }
.candle-box .candle-count { font-family: var(--f-titulo); font-size: 2.2rem; color: var(--petroleo-900); line-height: 1; }
.candle-box svg.big { width: 70px; height: 90px; margin: 0 auto 1rem; color: var(--dourado-escuro); }
.candle-box .lit .flame-f { fill: var(--dourado); }

.condolencia { padding: 1.25rem 0; border-bottom: 1px solid var(--linha); }
.condolencia:last-child { border-bottom: 0; }
.condolencia p { margin: 0 0 .5rem; white-space: pre-line; }
.condolencia footer { font-size: .8125rem; color: var(--texto-suave); }
.condolencia footer strong { color: var(--petroleo-900); }

/* FAQ */
.faq details { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-lg); margin-bottom: .75rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-family: var(--f-titulo); font-size: 1.08rem; color: var(--petroleo-900); position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-family: var(--f-texto); font-size: 1.4rem; color: var(--dourado-escuro); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.25rem 1.2rem; color: var(--texto-suave); }

/* Passos */
.steps { counter-reset: s; display: grid; gap: 1rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-lg); padding: 1.25rem; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--f-titulo); font-size: 1.35rem; color: var(--dourado-escuro); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--dourado); display: grid; place-items: center; flex: none; }
.step h3 { font-size: 1.05rem; margin: .45rem 0 .25rem; }
.step p { margin: 0; font-size: .9rem; color: var(--texto-suave); }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.2rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--petroleo-900); color: #C3D6D4; font-size: .875rem; margin-top: 0; }
.footer-cta { border-bottom: 1px solid rgba(251,246,238,.1); }
.footer-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.25rem; padding-bottom: 2.25rem; flex-wrap: wrap; }
.footer-cta p { margin: 0; font-family: var(--f-titulo); font-size: 1.4rem; color: var(--marfim); }
.footer-cta p span { display: block; font-family: var(--f-texto); font-size: .875rem; color: #B9CCCA; margin-top: .25rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.footer-main .brand .dove { width: 56px; height: 50px; }
.footer-main h4 { font-family: var(--f-texto); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dourado); margin: 0 0 1rem; font-weight: 600; }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-main a { color: #C3D6D4; text-decoration: none; }
.footer-main a:hover { color: var(--marfim); }
.footer-contacts li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contacts .ico { width: 16px; height: 16px; color: var(--dourado); margin-top: .2rem; }
.footer-about { margin-top: 1rem; max-width: 34ch; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { width: 38px; height: 38px; border: 1px solid rgba(251,246,238,.25); border-radius: 50%; display: grid; place-items: center; color: var(--marfim); }
.social a:hover { border-color: var(--dourado); color: var(--dourado); }
.social .ico { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(251,246,238,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: .78rem; color: #9FB6B4; }
.footer-bottom a { color: inherit; }
.footer-bottom .sig { display: inline-flex; align-items: center; gap: .7rem; }
.footer-bottom .sig::after { content: ""; width: 48px; height: 1px; background: var(--dourado); }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* Botão de chamada flutuante (móvel) */
.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--dourado); color: var(--petroleo-950); align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .call-fab .ico { width: 24px; height: 24px; }
}

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.5rem; }
.muted { color: var(--texto-suave); }
.center-block { margin-left: auto; margin-right: auto; } .dove-404 { width: 120px; height: 110px; margin: 0 auto; color: var(--petroleo-700); }
.visual .dove-lg { width: 30%; height: auto; aspect-ratio: 1; color: var(--dourado); margin: 0; }
.search-bar .select-ano { flex: 0 0 190px; }
.h3 { font-size: 1.35rem; } .flip { transform: rotate(180deg); } .link-more:hover .flip { transform: rotate(180deg) translateX(3px); } .tribute-head .hero-lines { height: 70%; opacity: .35; }
.split-top { align-items: start; } .map-full { display: block; border-radius: 0; height: 420px; }

.nota-chamada { font-size: .72rem; opacity: .75; }

/* ---------- Anúncio de falecimento (cartão) ---------- */
.section-tight { padding-top: clamp(2rem, 4vw, 3rem); }
.anuncio-stage { background: linear-gradient(180deg, var(--petroleo-950) 0%, var(--petroleo-900) 70%, var(--marfim) 70%); padding: clamp(1.5rem, 4vw, 3rem) 0 0; }
.anuncio-card { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: 0; max-width: 980px; margin: 0 auto; border-radius: var(--raio-lg); overflow: hidden; color: var(--marfim);
  background: radial-gradient(ellipse 70% 90% at 25% 50%, rgba(212,175,55,.28), transparent 60%), radial-gradient(ellipse 50% 60% at 85% 20%, rgba(255,255,255,.06), transparent 70%), linear-gradient(135deg, #111 0%, #1b1b1b 45%, #0b0b0b 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 1px solid rgba(212,175,55,.45); aspect-ratio: 16 / 10.5; }
.anuncio-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(212,175,55,.35); border-radius: 6px; pointer-events: none; }
.anuncio-foto { height: 100%; display: grid; place-items: center; padding: 6% 0 6% 7%; }
.oval { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 50%; padding: 10px; background: conic-gradient(from 200deg, #8a6a1f, #f3d77a, #b8912e, #fbe7a1, #9c7a26, #e6c35c, #8a6a1f); box-shadow: 0 0 40px rgba(212,175,55,.35), inset 0 0 12px rgba(0,0,0,.4); }
.oval img, .oval-vazio { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: linear-gradient(160deg, var(--petroleo-700), var(--petroleo-950)); }
.oval-vazio { display: grid; place-items: center; }
.oval-vazio .dove { width: 50%; height: auto; aspect-ratio: 104/94; color: rgba(251,246,238,.6); }
.anuncio-info { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8% 7% 18%; }
.anuncio-kicker { font-family: var(--f-titulo); letter-spacing: .18em; text-transform: uppercase; font-size: clamp(.8rem, 1.6vw, 1.1rem); color: #E9E2D2; }
.anuncio-nome { font-family: var(--f-marca); font-weight: 400; color: #F4EEE2; font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.05; margin: .6em 0 .5em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.anuncio-anos { font-family: var(--f-titulo); font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .12em; color: #E9E2D2; }
.anuncio-marca { position: absolute; right: 7%; bottom: 7%; display: flex; align-items: center; gap: .6rem; color: var(--dourado); text-align: left; }
.anuncio-marca .dove { width: 46px; height: 42px; padding: 6px; border: 1px solid rgba(212,175,55,.7); border-radius: 50%; }
.anuncio-marca strong { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.anuncio-marca small { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #CDBB85; }
@media (max-width: 760px) {
  .anuncio-stage { background: linear-gradient(180deg, var(--petroleo-950), var(--petroleo-900) 85%, var(--marfim) 85%); }
  .anuncio-card { grid-template-columns: 1fr; aspect-ratio: auto; }
  .anuncio-foto { padding: 2rem 2rem 0; }
  .oval { max-width: 240px; }
  .anuncio-info { padding: 1.25rem 1.5rem 2rem; }
  .anuncio-marca { position: static; margin-top: 1.5rem; justify-content: center; }
}
.anuncio-texto p { font-size: 1.02rem; }
.anuncio-condolencias { font-style: italic; color: var(--texto-suave); }
.memorial-link { text-align: center; border-color: var(--dourado); background: linear-gradient(180deg, #FFFDF7, var(--branco)); }
.memorial-link .card-ico { width: 44px; height: 44px; color: var(--dourado-escuro); margin: 0 auto .75rem; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }
.share .ico { width: 16px; height: 16px; }
.obit-kicker { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dourado-escuro); font-weight: 600; }
.obit-meta .has-memorial { color: var(--petroleo-900); font-weight: 600; }
.memorial-titulo { font-family: var(--f-titulo); font-style: italic; color: var(--texto-suave); font-size: .92rem; margin-top: .25rem; }
.obit-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: 980px; margin: 0 auto; }
.memorial-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Página de memorial ---------- */
.memorial-head { background: linear-gradient(160deg, var(--petroleo-950), var(--petroleo-900)); color: var(--marfim); text-align: center; position: relative; overflow: hidden; }
.memorial-head .container { padding-top: 3.25rem; padding-bottom: 3.25rem; position: relative; }
.memorial-head .hero-lines { height: 70%; opacity: .3; }
.memorial-nome { font-family: var(--f-marca); font-weight: 400; color: var(--marfim); font-size: clamp(2.8rem, 6vw, 4.4rem); margin: .1em 0 .2em; }
.memorial-sub { font-family: var(--f-titulo); font-style: italic; font-size: 1.2rem; color: #D5E3E1; margin: .75rem 0 0; }
.gallery { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-lg); padding: .75rem; }
.gallery-main { margin: 0; border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .6rem; }
.gallery-thumbs .thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.gallery-thumbs .thumb:hover img, .gallery-thumbs .thumb.active img { opacity: 1; }
.gallery-thumbs .thumb.active { border-color: var(--dourado); }
.memorial-texto h2 { margin-top: 0; }
.memorial-texto p:first-of-type::first-letter { font-family: var(--f-titulo); float: left; font-size: 3.2rem; line-height: .9; padding: .35rem .35rem 0 0; color: var(--dourado-escuro); }
