/* ============================================================
   EXTRAS — brasão no cabeçalho, cookies, conteúdo bloqueado,
   pedido de oração, política de privacidade, agenda e app
   ============================================================ */

/* ---------- Brasão da igreja no cabeçalho/rodapé ---------- */
.brand-logo {
  width: auto;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}
.site-footer .brand-logo {
  height: 44px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
@media (max-width: 420px) {
  .brand-logo {
    height: 32px;
  }
}

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 970;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(460px, calc(100vw - 32px));
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 260ms var(--ease-out),
    transform 380ms var(--ease-drawer);
}
.cookie-banner.show {
  opacity: 1;
  transform: none;
}
body.has-player .cookie-banner {
  bottom: calc(100px + env(safe-area-inset-bottom));
}
.cookie-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 14px;
  line-height: 1.55;
}
.cookie-text a {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-actions .btn-primary {
  margin-left: auto;
}
@media (max-width: 600px) {
  .cookie-banner {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 18px 16px;
  }
  .cookie-actions .btn {
    flex: 1 1 auto;
  }
  .cookie-actions .btn-primary {
    flex-basis: 100%;
    order: -1;
    margin-left: 0;
  }
}

/* Preferências */
.cookie-prefs h3 {
  margin-bottom: 8px;
}
.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
}
.pref-row:first-of-type {
  margin-top: 16px;
}
.pref-row strong {
  display: block;
}
.pref-row span {
  font-size: 14px;
  color: var(--c-text-soft);
}
.pref-switch {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  cursor: pointer;
}
.pref-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}
.pref-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--c-line-strong);
  transition: background-color 0.2s ease;
}
.pref-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 240ms var(--ease-out);
}
.pref-switch input:checked + span {
  background: var(--c-primary);
}
.pref-switch input:checked + span::after {
  transform: translateX(20px);
}
.pref-switch input:focus-visible + span {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.pref-switch.is-locked {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ---------- Conteúdo de terceiros bloqueado ---------- */
.embed-gate {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 30%, color-mix(in srgb, var(--c-accent) 18%, transparent), transparent 70%),
    var(--c-deep);
  color: #fff;
}
.embed-gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 380px;
}
.embed-gate-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-accent);
}
.embed-gate p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
}
.embed-gate strong {
  color: #fff;
}
.embed-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.embed-gate .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.embed-gate .link-btn {
  color: rgba(255, 255, 255, 0.8);
}
.embed-gate.compact {
  min-height: 152px;
  padding: 14px;
}
.embed-gate.compact .embed-gate-icon {
  display: none;
}
.location-map .embed-gate {
  min-height: 360px;
}
.location-map > iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
.modal-video-frame {
  position: relative;
}
.modal-video-frame .embed-gate {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.embed-video {
  position: relative;
}
.embed-video .embed-gate {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.embed-spotify {
  height: 152px;
  border-radius: 12px;
  overflow: hidden;
}
.embed-spotify iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 800px) {
  .location-map .embed-gate,
  .location-map > iframe {
    min-height: 280px;
  }
}

/* ---------- Pedido de oração ---------- */
.prayer-section {
  background:
    radial-gradient(50% 70% at 0% 0%, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 70%),
    var(--c-surface);
}
.prayer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.prayer-copy h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.025em;
  margin: 10px 0 16px;
}
.prayer-copy p {
  font-size: 16.5px;
  line-height: 1.75;
}
.prayer-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.prayer-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--c-text);
}
.prayer-points .ic {
  color: #12804a;
}
.prayer-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.prayer-form {
  display: grid;
  gap: 16px;
  transition:
    opacity 220ms ease,
    transform 300ms var(--ease-out);
}
.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pf-field {
  display: grid;
  gap: 6px;
}
.pf-field > span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
}
.pf-field em {
  font-style: normal;
  font-weight: 500;
  color: var(--c-text-faint);
}
.pf-field input,
.pf-field select,
.pf-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: calc(var(--radius) - 6px);
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px; /* evita zoom automático no iPhone */
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.pf-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus {
  outline: none;
  background: var(--c-surface);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 12%, transparent);
}
.pf-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-text-soft);
  cursor: pointer;
}
.pf-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--c-primary);
}
.pf-check a {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pf-error {
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn-primary.loading::after {
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
}
.prayer-done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
  background: var(--c-surface);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition:
    opacity 280ms var(--ease-out),
    transform 380ms var(--ease-out),
    visibility 0s linear 280ms;
}
.prayer-done h3 {
  font-size: 24px;
}
.prayer-done p {
  max-width: 340px;
  margin-bottom: 10px;
}
.prayer-done-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: rgba(18, 128, 74, 0.12);
  color: #12804a;
}
.prayer-card.sent .prayer-form {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}
.prayer-card.sent .prayer-done {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 280ms var(--ease-out) 120ms,
    transform 380ms var(--ease-out) 120ms,
    visibility 0s;
}
.prayer-card.sent .prayer-done-icon {
  animation: popIn 520ms var(--ease-out) 200ms backwards;
}
@keyframes popIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
@media (max-width: 860px) {
  .prayer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 600px) {
  .pf-row {
    grid-template-columns: 1fr;
  }
  .prayer-card {
    padding: 20px;
  }
}

/* ---------- Política de privacidade ---------- */
.legal {
  max-width: 760px;
}
.legal-updated {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-faint);
  margin-bottom: 8px;
}
.legal h2 {
  font-size: clamp(22px, 3vw, 26px);
  margin: 36px 0 12px;
}
.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--c-text) 85%, var(--c-bg));
}
.legal ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
}
.legal a,
.legal .link-btn {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal .link-btn {
  display: inline;
  padding: 0;
  font-size: inherit;
}
.legal-table {
  display: grid;
  margin: 8px 0 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
.legal-table > div {
  display: grid;
  grid-template-columns: 1.1fr 2fr 0.8fr;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--c-line);
}
.legal-table > div:first-child {
  border-top: 0;
}
.legal-table .lt-head {
  background: var(--c-tint);
  font-weight: 700;
  color: var(--c-text);
}
.legal-table span:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.legal-table .lt-head span:first-child {
  font-family: inherit;
  font-size: inherit;
}
@media (max-width: 600px) {
  .legal-table > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .legal-table .lt-head {
    display: none;
  }
  .legal-table span:last-child {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-accent-ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

/* ---------- Rodapé: links legais e "instalar o app" ---------- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-legal a,
.footer-legal button {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .footer-legal a:hover,
  .footer-legal button:hover {
    color: #fff;
  }
}
.install-btn {
  display: none !important;
}
body.can-install .install-btn {
  display: inline-flex !important;
}
.mobile-menu-foot {
  display: grid;
  gap: 10px;
}
.install-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  line-height: 1.6;
}

/* ---------- Agenda ---------- */
.cal-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border-radius: 8px;
  color: var(--c-primary);
  vertical-align: middle;
  transition:
    background-color 0.2s ease,
    transform 160ms var(--ease-out);
}
.cal-btn:active {
  transform: scale(0.92);
}
@media (hover: hover) {
  .cal-btn:hover {
    background: var(--c-tint);
  }
}
.schedule-item .time {
  display: inline-flex;
  align-items: center;
}

/* Instalar o app: explicação para o Samsung Internet */
.install-lead {
  margin: 8px 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text-soft);
}
.install-alt {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
}
.install-alt .ic {
  vertical-align: -2px;
}

/* Aviso de versão nova do app/site */
.app-update {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1000200;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: var(--c-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition:
    opacity 220ms var(--ease-out),
    transform 300ms var(--ease-out);
}
.app-update.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.app-update > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-update .btn {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.app-update-x {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 420px) {
  .app-update {
    font-size: 13px;
    gap: 6px;
    padding-left: 12px;
  }
}

