/* ==========================================================
   Recordae — Memórias que permanecem
   Identidade visual: azul profundo, branco, bege, dourado discreto
   ========================================================== */

@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant.woff') format('woff'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-italic.woff') format('woff'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --rc-navy: #1B2A4A;
  --rc-navy-2: #24375C;
  --rc-navy-3: #314A75;
  --rc-gold: #B8945A;
  --rc-gold-2: #D8BA82;
  --rc-gold-soft: #F1E6D1;
  --rc-beige: #F7F2EA;
  --rc-beige-2: #EEE5D6;
  --rc-ink: #1F2633;
  --rc-muted: #6B7280;
  --rc-line: #E6DDCF;
  --rc-white: #FFFFFF;
  --rc-radius: 14px;
  --rc-radius-lg: 22px;
  --rc-shadow: 0 10px 30px rgba(27, 42, 74, .08);
  --rc-shadow-lg: 0 24px 60px rgba(27, 42, 74, .14);
  --rc-serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --rc-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --bs-primary: #1B2A4A;
  --bs-primary-rgb: 27, 42, 74;
  --bs-body-font-family: var(--rc-sans);
  --bs-body-color: var(--rc-ink);
  --bs-link-color: #24375C;
  --bs-link-color-rgb: 36, 55, 92;
  --bs-link-hover-color: #B8945A;
  --bs-border-radius: 10px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--rc-sans); color: var(--rc-ink); background: var(--rc-white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .font-serif { font-family: var(--rc-serif); font-weight: 600; letter-spacing: -.01em; color: var(--rc-navy); }
h1 { line-height: 1.08; }
h4, h5, h6 { font-weight: 600; color: var(--rc-navy); }
.text-muted, .text-secondary { color: var(--rc-muted) !important; }
.text-gold { color: var(--rc-gold) !important; }
.text-navy { color: var(--rc-navy) !important; }
.bg-beige { background: var(--rc-beige) !important; }
.bg-navy { background: var(--rc-navy) !important; }
a { text-underline-offset: 3px; }
::selection { background: var(--rc-gold-soft); }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; color: var(--rc-gold); }
.lead { color: #4B5563; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.divider-gold { width: 56px; height: 2px; background: linear-gradient(90deg, var(--rc-gold), var(--rc-gold-2)); border: 0; opacity: 1; margin: 18px 0 24px; }
.text-center .divider-gold, .divider-gold.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn { border-radius: 999px; padding: .7rem 1.4rem; font-weight: 500; transition: all .25s ease; }
.btn-sm { padding: .4rem .9rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.02rem; }
.btn-primary { background: var(--rc-navy); border-color: var(--rc-navy); }
.btn-primary:hover, .btn-primary:focus { background: var(--rc-navy-3); border-color: var(--rc-navy-3); transform: translateY(-1px); box-shadow: var(--rc-shadow); }
.btn-gold { background: linear-gradient(135deg, var(--rc-gold-2), var(--rc-gold)); color: #fff; border: 0; }
.btn-gold:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(184, 148, 90, .35); }
.btn-outline-primary { color: var(--rc-navy); border-color: var(--rc-navy); }
.btn-outline-primary:hover { background: var(--rc-navy); border-color: var(--rc-navy); }
.btn-light-soft { background: var(--rc-beige); color: var(--rc-navy); border: 1px solid var(--rc-line); }
.btn-light-soft:hover { background: var(--rc-beige-2); color: var(--rc-navy); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--rc-navy); }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--rc-serif); font-size: 1.65rem; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.brand-name span { color: var(--rc-gold); }
.brand-tag { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rc-muted); margin-top: 3px; }
.brand.light { color: #fff; }
.brand.light .brand-tag { color: rgba(255,255,255,.6); }

/* ---------- Navegação ---------- */
.site-nav { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: all .3s; }
.site-nav.scrolled { border-bottom-color: var(--rc-line); box-shadow: 0 4px 20px rgba(27,42,74,.05); }
.site-nav .nav-link { color: var(--rc-ink); font-weight: 500; font-size: .94rem; padding: .5rem .85rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--rc-gold); }
.navbar-toggler { border: 0; box-shadow: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: linear-gradient(180deg, #FBF8F3 0%, var(--rc-beige) 100%); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 600; }
.hero .lead { font-size: 1.12rem; max-width: 34rem; }
.hero-visual { position: relative; }
.hero-photo { border-radius: var(--rc-radius-lg); overflow: hidden; box-shadow: var(--rc-shadow-lg); aspect-ratio: 4 / 3.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone { position: absolute; left: -36px; bottom: -40px; width: 230px; }
.hero-badge { position: absolute; right: 18px; top: 18px; background: rgba(255,255,255,.92); border-radius: 999px; padding: .5rem .9rem; font-size: .82rem; box-shadow: var(--rc-shadow); display: flex; align-items: center; gap: .45rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; color: var(--rc-muted); font-size: .9rem; }
.trust-row i { color: var(--rc-gold); margin-right: .35rem; }
@media (max-width: 991.98px) {
  .hero-phone { left: auto; right: 12px; bottom: -28px; width: 170px; }
}

/* ---------- Smartphone (mockup em CSS) ---------- */
.phone { position: relative; background: #0F1626; border-radius: 34px; padding: 10px; box-shadow: 0 30px 60px rgba(15,22,38,.35); }
.phone::before { content: ''; position: absolute; top: 14px; left: 50%; width: 70px; height: 18px; background: #0F1626; border-radius: 0 0 12px 12px; transform: translateX(-50%); z-index: 3; }
.phone-screen { background: var(--rc-beige); border-radius: 26px; overflow: hidden; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; }
.phone-cover { height: 34%; background: linear-gradient(160deg, var(--rc-navy), var(--rc-navy-3)); position: relative; }
.phone-cover img { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--rc-beige); }
.phone-body { padding: 44px 14px 14px; text-align: center; }
.phone-body .pn { font-family: var(--rc-serif); font-size: 1.05rem; font-weight: 600; color: var(--rc-navy); line-height: 1.1; }
.phone-body .pd { font-size: .62rem; color: var(--rc-gold); letter-spacing: .1em; margin: 4px 0 8px; }
.phone-body .pl { height: 5px; border-radius: 4px; background: #E3D8C6; margin: 5px auto; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.phone-grid span { aspect-ratio: 1; border-radius: 5px; background-size: cover; background-position: center; }

/* ---------- Cards e recursos ---------- */
.card-soft { background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); box-shadow: 0 1px 0 rgba(27,42,74,.02); transition: transform .3s, box-shadow .3s; }
.card-soft:hover { transform: translateY(-3px); box-shadow: var(--rc-shadow); }
.card-flat { background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--rc-gold-soft); color: var(--rc-gold); font-size: 1.35rem; flex-shrink: 0; }
.icon-circle.navy { background: rgba(27,42,74,.08); color: var(--rc-navy); }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.feature-list li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.feature-list i { color: var(--rc-gold); }
.rounded-img { border-radius: var(--rc-radius-lg); box-shadow: var(--rc-shadow-lg); width: 100%; height: auto; }

/* ---------- Como funciona ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 32px 24px 28px; height: 100%; }
.step-num { font-family: var(--rc-serif); font-size: 3.2rem; line-height: 1; color: var(--rc-gold-2); font-weight: 600; }
.step h3 { font-size: 1.5rem; margin: .4rem 0 .6rem; }
.step-line { position: absolute; top: 62px; right: -12%; width: 24%; height: 1px; background: repeating-linear-gradient(90deg, var(--rc-gold-2) 0 6px, transparent 6px 12px); }
@media (max-width: 991.98px) { .step-line { display: none; } }

/* ---------- Demonstração ---------- */
.demo-band { background: linear-gradient(135deg, var(--rc-navy) 0%, #2A3F68 100%); color: #fff; border-radius: 28px; overflow: hidden; position: relative; }
.demo-band h2, .demo-band h3 { color: #fff; }
.demo-band .lead { color: rgba(255,255,255,.78); }
.demo-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(216,186,130,.25); }
.demo-tag { display: inline-block; background: rgba(216,186,130,.18); color: var(--rc-gold-2); border: 1px solid rgba(216,186,130,.4); border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Planos ---------- */
.plan { position: relative; height: 100%; padding: 36px 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--rc-gold); box-shadow: var(--rc-shadow-lg); }
.plan-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--rc-gold-2), var(--rc-gold)); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.8rem; margin-bottom: .2rem; }
.plan-price { font-family: var(--rc-serif); font-size: 2.6rem; color: var(--rc-navy); font-weight: 600; line-height: 1; margin: 1rem 0 .3rem; }
.plan-price small { font-family: var(--rc-sans); font-size: .85rem; color: var(--rc-muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 1.4rem 0; flex-grow: 1; }
.plan li { padding: .45rem 0; display: flex; gap: .55rem; border-bottom: 1px dashed var(--rc-line); font-size: .95rem; }
.plan li i { color: var(--rc-gold); }

/* ---------- FAQ ---------- */
.accordion-item { border: 1px solid var(--rc-line); border-radius: var(--rc-radius) !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--rc-navy); padding: 1.15rem 1.35rem; }
.accordion-button:not(.collapsed) { background: var(--rc-beige); color: var(--rc-navy); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(184,148,90,.25); }

/* ---------- Formulários ---------- */
.form-control, .form-select { border-radius: 10px; border-color: #DDD3C3; padding: .7rem .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--rc-gold); box-shadow: 0 0 0 .2rem rgba(184,148,90,.18); }
.form-label { font-weight: 500; font-size: .92rem; color: var(--rc-navy); }
.form-check-input:checked { background-color: var(--rc-navy); border-color: var(--rc-navy); }
.form-text { color: var(--rc-muted); }

/* ---------- Página de autenticação ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(180deg, rgba(27,42,74,.55), rgba(27,42,74,.85)), url('../img/hero-serenidade.jpg') center/cover; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 2.4rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #fff; }
.auth-card { width: 100%; max-width: 440px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--rc-navy); color: rgba(255,255,255,.72); padding: 72px 0 28px; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--rc-gold-2); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: .82rem; }

/* ---------- Páginas internas simples ---------- */
.page-hero { background: var(--rc-beige); padding: 72px 0 56px; border-bottom: 1px solid var(--rc-line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose p, .prose li { line-height: 1.75; color: #374151; }

/* ---------- Animações discretas ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================
   PAINÉIS (cliente e administrador)
   ========================================================== */
.panel-body { background: #F6F4F0; min-height: 100vh; }
.panel-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 262px; background: var(--rc-navy); color: rgba(255,255,255,.78); padding: 22px 16px; overflow-y: auto; z-index: 1040; transition: transform .3s; }
.panel-sidebar .brand { padding: 0 8px 18px; }
.panel-sidebar .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.4); padding: 18px 12px 6px; }
.panel-sidebar .nav-link { color: rgba(255,255,255,.78); border-radius: 10px; padding: .6rem .8rem; display: flex; align-items: center; gap: .7rem; font-size: .93rem; }
.panel-sidebar .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.panel-sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.panel-sidebar .nav-link.active { background: rgba(216,186,130,.16); color: var(--rc-gold-2); }
.panel-sidebar.admin { background: #141F38; }
.panel-main { margin-left: 262px; padding: 0 0 48px; }
.panel-topbar { background: #fff; border-bottom: 1px solid var(--rc-line); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1030; }
.panel-content { padding: 28px; }
.panel-title { font-family: var(--rc-serif); font-size: 2rem; margin: 0; }
.panel-overlay { display: none; }
@media (max-width: 991.98px) {
  .panel-sidebar { transform: translateX(-100%); }
  .panel-sidebar.open { transform: none; box-shadow: var(--rc-shadow-lg); }
  .panel-main { margin-left: 0; }
  .panel-overlay.open { display: block; position: fixed; inset: 0; background: rgba(15,22,38,.45); z-index: 1035; }
  .panel-content { padding: 18px; }
  .panel-topbar { padding: 12px 16px; }
}
.stat-card { background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); padding: 20px; height: 100%; }
.stat-card .stat-label { font-size: .8rem; color: var(--rc-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-card .stat-value { font-family: var(--rc-serif); font-size: 2.3rem; color: var(--rc-navy); font-weight: 600; line-height: 1.1; }
.panel-card { background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); }
.panel-card > .card-header, .panel-card .panel-card-header { background: transparent; border-bottom: 1px solid var(--rc-line); padding: 16px 20px; font-weight: 600; color: var(--rc-navy); }
.panel-card .card-body { padding: 20px; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .8rem .9rem; border-color: #EFE8DC; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rc-muted); font-weight: 600; background: #FBF9F5; }
.memorial-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--rc-beige-2); }
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state .icon-circle { width: 72px; height: 72px; font-size: 1.8rem; }
.guide-box { background: linear-gradient(135deg, #FFFDF8, var(--rc-gold-soft)); border: 1px solid #EADBBF; border-radius: var(--rc-radius); padding: 20px 22px; }
.photo-tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--rc-beige-2); aspect-ratio: 1; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .cover-flag { position: absolute; top: 8px; left: 8px; }
.qr-box { background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rc-radius); padding: 24px; display: inline-block; }
.qr-box img { width: 260px; height: 260px; image-rendering: pixelated; }
.qr-test-stamp { position: relative; }
.qr-test-stamp::after { content: 'TESTE — NÃO IMPRIMIR'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #B42318; font-weight: 800; font-size: 1.1rem; letter-spacing: .08em; transform: rotate(-24deg); text-shadow: 0 0 6px #fff, 0 0 12px #fff; pointer-events: none; }

/* ==========================================================
   PÁGINA PÚBLICA DO MEMORIAL — 3 temas
   ========================================================== */
.memorial-page { --m-bg: var(--rc-beige); --m-surface: #fff; --m-ink: var(--rc-ink); --m-muted: var(--rc-muted); --m-accent: var(--rc-gold); --m-title: var(--rc-navy); --m-hero1: var(--rc-navy); --m-hero2: #2C4370; --m-line: var(--rc-line);
  background: var(--m-bg); color: var(--m-ink); min-height: 100vh; }
.memorial-page.theme-sereno { --m-bg: #FAF6EF; --m-surface: #fff; --m-accent: #A88A5C; --m-title: #4A3F33; --m-hero1: #CDBB9F; --m-hero2: #E8DCC7; --m-line: #EADFCC; }
.memorial-page.theme-noturno { --m-bg: #101828; --m-surface: #182235; --m-ink: #E6E9EF; --m-muted: #9AA4B5; --m-accent: #D8BA82; --m-title: #F4ECDD; --m-hero1: #0B1220; --m-hero2: #1D2B47; --m-line: #26334D; }
.memorial-page h1, .memorial-page h2, .memorial-page h3 { color: var(--m-title); }
.m-topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.m-topbar .brand { color: #fff; }
.theme-sereno .m-topbar .brand { color: #4A3F33; }
.m-hero { background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(170deg, var(--m-hero1), var(--m-hero2)); padding: 96px 20px 120px; text-align: center; position: relative; }
.m-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--m-bg); clip-path: ellipse(70% 100% at 50% 100%); }
.m-hero .m-kicker { color: var(--rc-gold-2); letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; }
.theme-sereno .m-hero .m-kicker { color: #7A6345; }
.m-portrait { width: 210px; height: 210px; border-radius: 50%; object-fit: cover; border: 6px solid var(--m-bg); box-shadow: 0 20px 50px rgba(0,0,0,.25); position: relative; z-index: 2; margin-top: -105px; background: var(--rc-beige-2); }
.m-name { font-size: clamp(2.3rem, 6vw, 3.6rem); margin: 18px 0 6px; }
.m-dates { color: var(--m-accent); font-weight: 500; letter-spacing: .12em; }
.m-epitaph { font-family: var(--rc-serif); font-style: italic; font-size: 1.35rem; color: var(--m-muted); max-width: 640px; margin: 14px auto 0; }
.m-section { max-width: 820px; margin: 0 auto; padding: 40px 20px; }
.m-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 20px; padding: 32px; }
.m-section h2 { font-size: 2rem; text-align: center; }
.m-section h2::after { content: ''; display: block; width: 46px; height: 2px; background: var(--m-accent); margin: 12px auto 26px; }
.m-text p { line-height: 1.85; font-size: 1.06rem; }
.m-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-gallery a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; }
.m-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.m-gallery a:hover img { transform: scale(1.05); }
@media (max-width: 575.98px) { .m-gallery { grid-template-columns: repeat(2, 1fr); } .m-card { padding: 22px; } .m-portrait { width: 170px; height: 170px; margin-top: -85px; } }
.m-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.m-timeline::before { content: ''; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 1px; background: var(--m-line); }
.m-timeline li { display: flex; gap: 28px; padding: 10px 0; position: relative; }
.m-timeline .t-when { width: 56px; flex-shrink: 0; text-align: right; font-weight: 600; color: var(--m-accent); }
.m-timeline li::before { content: ''; position: absolute; left: 66px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--m-accent); }
.m-message { border-left: 3px solid var(--m-accent); padding: 4px 0 4px 16px; margin-bottom: 22px; }
.m-message .who { font-weight: 600; color: var(--m-title); }
.m-footer { text-align: center; padding: 40px 20px 60px; color: var(--m-muted); font-size: .88rem; }
.memorial-page .form-control { background: var(--m-surface); color: var(--m-ink); border-color: var(--m-line); }
.memorial-page .text-muted { color: var(--m-muted) !important; }
.demo-ribbon { background: var(--rc-gold); color: #fff; text-align: center; font-size: .82rem; padding: 6px 10px; letter-spacing: .04em; }
.preview-ribbon { background: #B42318; color: #fff; text-align: center; font-size: .85rem; padding: 7px 10px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,14,24,.94); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox .lb-caption { color: #E6E9EF; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; }
.lightbox .lb-next { right: 14px; top: 50%; }

@media print {
  .no-print, .site-nav, .site-footer, .panel-sidebar, .panel-topbar { display: none !important; }
  .panel-main { margin: 0; }
  body, .panel-body { background: #fff; }
}

/* Ajustes finos */
.site-nav .nav-link { white-space: nowrap; padding: .5rem .62rem !important; font-size: .9rem; }
.site-nav .btn { white-space: nowrap; }
.accordion-button { font-family: var(--rc-sans); font-size: 1rem; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-nav .brand-tag { display: none; } }
/* Algarismos alinhados (Cormorant usa algarismos antigos por padrão) */
.stat-value, .plan-price, .step-num, .panel-title, h1, h2, h3, .m-dates { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
