/* Agenda Paroquial — Paróquia São Paulo Apóstolo
   Mobile-first · azul-marinho + detalhes dourados · fundo off-white */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url(/fonts/lora-latin-600-normal.woff2) format("woff2"); }

:root {
  --navy: #14284b;
  --navy-2: #1d3766;
  --navy-deep: #0d1c37;
  --gold: #b38a3e;
  --gold-soft: #e9dcc0;
  --gold-text: #8a6522;
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1b2233;
  --muted: #5a6274;
  --line: #e8e3d9;
  --line-2: #efebe3;
  --tint: #eef2f8;
  --ok: #1f6b4a;
  --alert-bg: #fff7e6;
  --alert-line: #ecd29a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 75, .05), 0 4px 16px rgba(20, 40, 75, .06);
  --shadow-hover: 0 2px 4px rgba(20, 40, 75, .06), 0 10px 28px rgba(20, 40, 75, .10);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
html[data-size="2"] { font-size: 112.5%; }
html[data-size="3"] { font-size: 125%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0; color: var(--navy); }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.ic { width: 24px; height: 24px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 15px; height: 15px; }

/* ---------- Topo ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 244, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; flex: 1; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text strong { font: 600 .98rem/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.is-home .topbar { background: transparent; border-color: transparent; position: absolute; left: 0; right: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .topbar .brand { visibility: hidden; }
.is-home .topbar-search-m { color: #fff; background: rgba(255, 255, 255, .12); }
.topnav { display: none; }
.topbar-search-m { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--navy); }
.topbar-search-m:hover { background: var(--tint); }

.crest { border-radius: 50%; object-fit: contain; flex: none; }
.crest-sm { width: 38px; height: 38px; }
.crest-lg { width: 76px; height: 76px; }
.crest-placeholder { display: grid; place-items: center; border: 1.5px solid var(--gold-soft); color: var(--gold); background: #fff; }
.crest-placeholder .ic { width: 55%; height: 55%; }

/* ---------- Hero (página inicial) ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding: 68px 0 64px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.hero.has-photo { background: linear-gradient(180deg, rgba(13, 28, 55, .55), rgba(13, 28, 55, .88)), var(--hero-img) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 72px; height: 3px; transform: translateX(-50%); background: var(--gold); border-radius: 3px 3px 0 0; opacity: .9; }
.hero-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .crest-placeholder { background: rgba(255, 255, 255, .08); border-color: rgba(233, 220, 192, .55); color: var(--gold-soft); }
.hero h1 { color: #fff; font: 600 1.75rem/1.15 var(--serif); margin-top: 6px; }
.hero-kicker { display: block; font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.hero-sub { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.search { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 520px; margin-top: 14px; }
.search > .ic { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid transparent; background: #fff; padding: 0 16px 0 44px; color: var(--ink); font-size: 1rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.search input::placeholder { color: #8a90a0; }
.search-lg { max-width: none; }
.search-lg input { border-color: var(--line); box-shadow: none; }
.search-lg .btn { flex: none; height: 50px; }

/* ---------- Seções da home ---------- */
.home-stack { display: flex; flex-direction: column; gap: 26px; margin-top: -26px; position: relative; padding-bottom: 28px; }
.section-title { font: 600 1.2rem/1.3 var(--serif); display: flex; align-items: center; gap: 8px; }
.section-title .ic { color: var(--gold); }
.section-sub { color: var(--muted); font-size: .9rem; margin: 2px 0 12px; }
#acessos-h { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { font: 600 1.1rem/1.3 var(--serif); display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic { color: var(--gold); }
.link-more { display: inline-flex; align-items: center; gap: 2px; font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--navy-2); white-space: nowrap; padding: 8px 0; }
.link-more:hover { text-decoration: underline; }

/* Evangelho do Dia */
.gospel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.gospel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--gold), var(--gold-soft)); }
.gospel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gospel-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--navy); flex: none; }
.gospel h2 { font: 600 1.2rem/1.2 var(--serif); }
.gospel-date { color: var(--gold-text); font-size: .86rem; font-weight: 500; margin-top: 2px; }
.gospel-ref { font: 600 1.05rem/1.4 var(--serif); color: var(--navy); }
.gospel blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--gold-soft); color: var(--muted); font-style: italic; }
.gospel-text { color: var(--muted); font-size: .95rem; }
.gospel .btn { margin-top: 16px; width: 100%; }
.gospel-src { margin-top: 10px; font-size: .8rem; color: var(--muted); text-align: center; }
.gospel-src a { color: var(--muted); }

/* Grade de acessos */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 128px; padding: 16px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--gold-soft); }
.tile:active { transform: scale(.98); }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--navy); margin-bottom: 6px; flex: none; }
.tile-title { font-weight: 600; font-size: .98rem; line-height: 1.25; color: var(--navy); }
.tile-desc { font-size: .8rem; line-height: 1.35; color: var(--muted); }
.tile-row { flex-direction: row; align-items: center; gap: 12px; min-height: 0; }
.tile-row .tile-icon { margin: 0; }
.tile-row > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.grid-related { grid-template-columns: 1fr; }

/* Cartões */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.next-mass .card-head { margin-bottom: 6px; }
.mass-list { list-style: none; margin: 0; padding: 0; }
.mass-list li { display: grid; grid-template-columns: 78px 64px 1fr; align-items: baseline; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.mass-list li:first-child { border-top: 0; }
.mass-when { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); }
.time { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.what { display: flex; flex-direction: column; min-width: 0; }
.what strong { font-weight: 500; }
.place { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--muted); }
.note { font-size: .82rem; color: var(--muted); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.center { text-align: center; }

.badge { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--navy); color: #fff; }
.badge-gold { background: #f6eedc; color: var(--gold-text); }

/* Avisos excepcionais */
.avisos { display: flex; flex-direction: column; gap: 10px; }
.aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--alert-bg); border: 1px solid var(--alert-line); }
.aviso > .ic { color: #a46d0b; margin-top: 2px; }
.aviso strong { color: #5a3c06; display: block; }
.aviso .prose { font-size: .92rem; color: #4d3a14; }
.aviso small { display: block; margin-top: 4px; color: #7a5d22; font-size: .78rem; }

/* Eventos */
.events { display: flex; flex-direction: column; gap: 12px; }
.event { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.event.is-featured { border-color: var(--gold-soft); }
.event-date { flex: none; width: 56px; height: 62px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.event-date span { font: 600 1.4rem/1 var(--serif); }
.event-date small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; color: var(--gold-soft); }
.event-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.event h3 { font-size: 1.02rem; font-weight: 600; font-family: var(--sans); }
.event h3 a { color: inherit; text-decoration: none; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.event-meta span, .event-org { display: inline-flex; align-items: center; gap: 5px; }
.event-org { font-size: .85rem; color: var(--gold-text); }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: .85rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--navy-2); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .92rem; background: rgba(255, 255, 255, .6); }
.empty .ic { color: var(--gold); width: 28px; height: 28px; }

/* Comunicados */
.comunicado { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; scroll-margin-top: 80px; }
.comunicado h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; }
.comunicado .meta { font-size: .82rem; color: var(--gold-text); }
.comunicado .badge { align-self: flex-start; }
.comunicado .chip { align-self: flex-start; }

/* Contato */
.contact-card h2 { font: 600 1.1rem/1.3 var(--serif); margin-bottom: 10px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; gap: 10px; font-size: .93rem; }
.contact-list .ic { color: var(--gold); margin-top: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-row .btn { flex: 1 1 200px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .1s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--navy); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.btn-gold:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-2); }
.btn-ghost { background: var(--tint); color: var(--navy); }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #196640; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--navy); border: 1px solid var(--line); background: #fff; }

/* ---------- Páginas internas ---------- */
.page-hero { padding: 18px 0 22px; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line-2); }
.crumbs { display: flex; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-hero-row { display: flex; align-items: center; gap: 14px; }
.page-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--navy); color: #fff; flex: none; box-shadow: inset 0 -3px 0 var(--gold); }
.page-icon .ic { width: 28px; height: 28px; }
.page-hero h1 { font: 600 1.6rem/1.2 var(--serif); }
.lead { margin-top: 14px; color: var(--muted); font-size: 1rem; max-width: 70ch; }
.page-body { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; padding-bottom: 28px; }
.block { display: flex; flex-direction: column; gap: 12px; }
.block-title { font: 600 1.15rem/1.3 var(--serif); display: flex; align-items: center; gap: 8px; }
.block-title .ic { color: var(--gold); }
.info-card h2 { font: 600 1.08rem/1.3 var(--serif); margin-bottom: 8px; }
.prose { font-size: .96rem; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 10px; }
.prose ul { margin: 6px 0 0; padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.pending { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.pending .ic { margin-top: 3px; color: var(--gold); }

/* Horários por dia */
.days { display: grid; grid-template-columns: 1fr; gap: 12px; }
.day-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.day-card header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--tint); }
.day-card h3 { font: 600 1rem/1.2 var(--sans); }
.day-card.is-today { border-color: var(--navy-2); }
.day-card.is-today header { background: var(--navy); }
.day-card.is-today h3 { color: #fff; }
.day-card.is-today .badge { background: var(--gold-soft); color: var(--navy); }
.day-card ul { list-style: none; margin: 0; padding: 4px 16px; }
.day-card li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.day-card li:first-child { border-top: 0; }
.day-card .time { font-size: 1.05rem; }

.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); }
.files a:hover { border-color: var(--navy-2); }
.files a > span { flex: 1; display: flex; flex-direction: column; font-weight: 500; }
.files small { color: var(--muted); font-weight: 400; font-size: .78rem; }

.sharebar { display: flex; flex-wrap: wrap; gap: 10px; }
.sharebar .btn { flex: 1 1 220px; }
.back-home { display: flex; justify-content: center; margin-top: 4px; }
.back-home .btn { width: 100%; max-width: 360px; }

/* Calendário */
.calendar { padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { font: 600 1.1rem/1.2 var(--serif); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .9rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.cal-cell.is-empty { visibility: hidden; }
.cal-cell.has-ev { background: var(--tint); color: var(--navy); font-weight: 600; }
.cal-cell.has-ev i { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cal-cell.is-today { outline: 2px solid var(--navy); outline-offset: -2px; font-weight: 600; }
.cal-cell.is-sel { background: var(--navy); color: #fff; }
.cal-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.cal-day h3 { font: 600 .85rem/1.3 var(--sans); color: var(--gold-text); margin-bottom: 4px; }
.cal-day a { display: block; padding: 6px 0; color: var(--navy); text-decoration: none; font-size: .93rem; }
.cal-day a:hover { text-decoration: underline; }
.cal-day.is-sel h3 { color: var(--navy); }
.cal-none { margin-top: 12px; text-align: center; font-size: .88rem; color: var(--muted); }

/* Pastorais */
.pastorais { display: grid; gap: 12px; }
.pastoral { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.pastoral-head { display: flex; align-items: center; gap: 12px; }
.pastoral-head .tile-icon { margin: 0; }
.pastoral-head h2 { font: 600 1.1rem/1.25 var(--serif); }
.kv h3 { display: flex; align-items: center; gap: 6px; font: 600 .82rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--gold-text); margin-bottom: 4px; }
.mini-events { margin: 0; padding-left: 18px; font-size: .92rem; }

/* Busca */
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.results a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.results a:hover { border-color: var(--navy-2); }
.results small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-text); font-weight: 600; }
.results strong { color: var(--navy); }
.results span { font-size: .88rem; color: var(--muted); }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.suggest p { width: 100%; font-size: .85rem; color: var(--muted); }
.notfound { align-items: center; text-align: center; padding-top: 48px; }
.notfound h1 { font: 600 1.6rem/1.2 var(--serif); }
.notfound .suggest { justify-content: center; }

/* Instalar aplicativo */
.install-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 44px 14px 14px; border-radius: var(--radius); background: var(--tint); border: 1px solid #dbe3ef; }
.install-card[hidden], .install-now[hidden], .install-done[hidden] { display: none; }
.install-card img { border-radius: 12px; flex: none; }
.install-card div { flex: 1 1 160px; display: flex; flex-direction: column; }
.install-card strong { color: var(--navy); font-size: .95rem; }
.install-card span { font-size: .84rem; color: var(--muted); }
.install-card .btn { min-height: 42px; }
.install-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.4rem; color: var(--muted); cursor: pointer; border-radius: 8px; }
.install-now .btn { width: 100%; }
.install-done { display: flex; gap: 8px; color: var(--ok); }
.steps { margin: 0; padding-left: 22px; } .steps li + li { margin-top: 8px; }
.footer-tools .footer-admin + .footer-admin { margin-left: 0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 28px 0 calc(24px + var(--nav-h) + var(--safe-b)); font-size: .9rem; }
.footer a { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; color: #fff; font: 600 1rem/1.3 var(--serif); }
.footer-brand span { font-size: .82rem; }
.footer .crest-placeholder { background: transparent; border-color: rgba(233, 220, 192, .4); color: var(--gold-soft); }
.footer-line { display: flex; gap: 8px; margin-top: 14px; }
.footer-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.textsize { display: flex; align-items: center; gap: 6px; }
.textsize span { font-size: .8rem; margin-right: 4px; }
.textsize button { min-width: 44px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer; font-weight: 600; }
.textsize button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.footer-admin { font-size: .8rem; color: rgba(255, 255, 255, .6) !important; }
.footer-copy { margin-top: 14px; font-size: .78rem; color: rgba(255, 255, 255, .55); }

/* ---------- Menu inferior fixo (celular) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(20, 40, 75, .06);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 500; position: relative; }
.bottomnav a .ic { width: 23px; height: 23px; }
.bottomnav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.bottomnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }

/* ---------- Animações discretas ---------- */
@media (prefers-reduced-motion: no-preference) {
  .home-stack > *, .page-body > * { animation: rise .45s ease both; }
  .home-stack > *:nth-child(2), .page-body > *:nth-child(2) { animation-delay: .04s; }
  .home-stack > *:nth-child(3), .page-body > *:nth-child(3) { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pastorais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 2.2rem; }
  .gospel .btn { width: auto; }
  .gospel-src { text-align: left; }
}
@media (min-width: 900px) {
  .footer { padding-bottom: 24px; }
  .bottomnav { display: none; }
  .topbar-in { height: 68px; }
  .topnav { display: flex; align-items: center; gap: 4px; }
  .topnav a { padding: 10px 14px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .topnav a:hover { background: var(--tint); }
  .topnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
  .topnav-search { display: grid; place-items: center; }
  .topbar-search-m { display: none; }
  .is-home .topbar .brand { visibility: visible; }
  .is-home .topbar .brand, .is-home .topnav a { color: #fff; }
  .is-home .topbar .brand-text small { color: rgba(255, 255, 255, .7); }
  .is-home .topbar .crest-placeholder { background: rgba(255, 255, 255, .08); border-color: rgba(233, 220, 192, .5); color: var(--gold-soft); }
  .is-home .topnav a:hover { background: rgba(255, 255, 255, .1); }
  .hero { padding: 110px 0 84px; border-radius: 0 0 36px 36px; }
  .crest-lg { width: 92px; height: 92px; }
  .hero h1 { font-size: 2.6rem; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .tile { min-height: 150px; padding: 20px; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-stack { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .home-stack > * { grid-column: 1 / -1; }
  .home-stack > .next-mass { grid-column: 1; }
  .home-stack > .next-mass + section { grid-column: 2; }
  .page-hero { padding: 28px 0 32px; }
  .page-hero h1 { font-size: 2rem; }
}
@media print {
  .topbar, .bottomnav, .footer, .sharebar, .back-home, .search { display: none !important; }
  body { padding: 0; background: #fff; }
}
