/* =========================================================
   Cemitério Adobe — FAQ e páginas estáticas (obituários, 404)
   Carregado depois de styles.css.
   ========================================================= */

/* ---------- link permanente no modal ---------- */
.cert-nav .pos { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.permalink {
  font-family: var(--inscription); font-size: 10px; font-weight: 500; font-style: normal;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper-accent); text-decoration: none; border-bottom: 1px solid rgba(110, 91, 55, .35);
}
.permalink:hover { border-bottom-color: var(--paper-accent); }
.permalink:focus-visible { outline: 1px solid var(--paper-accent); outline-offset: 3px; }

/* ---------- perguntas ao coveiro ---------- */
.faq {
  position: relative;
  background: linear-gradient(180deg, var(--ground-deep, #0f1514), #0b0e14);
  padding: 96px 24px 104px;
}
.faq-in { max-width: 860px; margin: 0 auto; }
.faq h2 { margin: 0; font-family: var(--serif-display); font-weight: 400; font-size: 44px; line-height: 1.05; color: var(--ivory); }
.faq-sub { margin: 10px 0 36px; font-style: italic; font-size: 19px; line-height: 1.6; color: var(--ivory-dim); }

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px; margin-right: 6px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out, ease);
}
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa summary:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.qa h3 { margin: 0; font-family: var(--serif-display); font-weight: 500; font-size: 25px; line-height: 1.25; color: var(--ivory); }
.qa summary:hover h3 { color: #fff; }
.qa-a { padding: 0 0 24px; }
.qa-a p { margin: 0; max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--ivory-dim); }
.qa-a a { color: var(--gold); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
.qa-a a:hover { text-decoration-color: var(--gold); }
.qa-a em { font-style: normal; font-family: var(--inscription); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); }

/* ---------- página de obituário ---------- */
body.page {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(230, 224, 207, .07), transparent 70%),
    linear-gradient(180deg, var(--sky, #0b0f17), var(--sky-mid, #121a27) 55%, var(--ground, #151c1b));
  background-attachment: fixed;
}

.page-top { max-width: 720px; margin: 0 auto; padding: 32px 16px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.crumbs li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--inscription); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory-dim);
}
.crumbs li + li::before { content: "·"; color: var(--gold-soft); }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ivory); }

.page-main { max-width: 720px; margin: 0 auto; padding: 24px 16px 72px; }
.page .cert { max-height: none; overflow: visible; }
.page .cert h1 { margin: 2px 0 10px; font-family: var(--serif-display); font-weight: 500; font-size: 50px; line-height: 1.02; color: var(--paper-ink); }
.page .sec h2 { margin: 0 0 6px; font-family: var(--serif-display); font-weight: 600; font-size: 24px; color: #3a3226; }
.page a.x { text-decoration: none; }
.page a.navbtn { display: inline-flex; align-items: center; text-decoration: none; max-width: 42%; }
.page .cert-nav .pos { font-style: italic; }
.page .nb-short { display: none; }
.page-back { margin: 28px 0 0; text-align: center; }
.page-back a { font-family: var(--inscription); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.page-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-foot { padding-top: 56px; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.lost .title { font-size: clamp(44px, 9vw, 88px); }
.lost .page-back { text-align: left; }

@media (max-width: 640px) {
  .faq { padding: 72px 16px 80px; }
  .faq h2 { font-size: 34px; }
  .qa h3 { font-size: 21px; }
  .qa-a p { font-size: 17px; }
  .page-top { padding-top: 22px; }
  .page .cert h1 { font-size: 34px; }
  .page a.navbtn { max-width: none; }
  .page .nb-name { display: none; }
  .page .nb-short { display: inline; margin: 0 2px; }
}
