/* =========================================================================
   SIRVA — Páginas públicas (cabecalho + rodape + shell comum)
   Paleta do conjunto: terracota / âmbar / azul noturno / creme / oliva
   Tipografia: Fraunces + Inter
   Inclui camada de compatibilidade pra classes antigas (Bootstrap 3/fh5co)
   ========================================================================= */

:root {
  --terracota:       #C4543C;
  --terracota-dark:  #A4432F;
  --terracota-soft:  #E88A6E;
  --ambar:           #E8A547;
  --ambar-dark:      #C78930;
  --ambar-soft:      #F3C77D;
  --azul-noturno:    #1E2A3A;
  --azul-profundo:   #0F1724;
  --oliva:           #7A8B4F;
  --oliva-dark:      #5F6E3E;
  --creme:           #F6F1E7;
  --creme-dark:      #EDE5D3;
  --live:            #D64545;

  --bg:              #FAF8F3;
  --bg-alt:          #F2EBDA;
  --surface:         #FFFFFF;
  --surface-2:       #F6F1E7;
  --border:          #E2D9C4;
  --border-soft:     #EDE5D0;

  --text:            #2A2A2A;
  --text-soft:       #4B4B4B;
  --text-muted:      #7E7E7E;
  --text-on-dark:    #F2EAD6;

  --shadow-sm:  0 1px 2px rgba(30,42,58,.06);
  --shadow-md:  0 8px 24px rgba(30,42,58,.10);
  --shadow-lg:  0 20px 48px rgba(30,42,58,.16);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --t: 220ms cubic-bezier(.4,0,.2,1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --navbar-h: 76px;
}

[data-bs-theme="dark"] {
  --bg:          #0F1724;
  --bg-alt:      #14202E;
  --surface:     #18222F;
  --surface-2:   #14202E;
  --border:      #263447;
  --border-soft: #1F2C3E;
  --text:        #E8DFC8;
  --text-soft:   #C4BBA3;
  --text-muted:  #8A8676;
  --creme:       #14202E;
}

/* =========================================================================
   Base tipográfica
   ========================================================================= */
html {
  background: var(--bg);
}
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body) !important;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--azul-noturno);
}
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 { color: var(--ambar-soft); }

a { color: var(--terracota); transition: color var(--t); }
a:hover { color: var(--terracota-dark); text-decoration: none; }
::selection { background: var(--ambar-soft); color: var(--azul-noturno); }

/* =========================================================================
   Camada de compatibilidade Bootstrap 3 → Bootstrap 5
   (pras páginas antigas não quebrarem enquanto não são migradas)
   ========================================================================= */

/* img-responsive → img-fluid */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* col-md-offset-X → offset-md-X */
.col-md-offset-0 { margin-left: 0; }
.col-md-offset-1 { margin-left: 8.333333%; }
.col-md-offset-2 { margin-left: 16.666667%; }
.col-md-offset-3 { margin-left: 25%; }
.col-md-offset-4 { margin-left: 33.333333%; }
.col-md-offset-5 { margin-left: 41.666667%; }
.col-md-offset-6 { margin-left: 50%; }

.col-sm-offset-0 { margin-left: 0; }
.col-sm-offset-1 { margin-left: 8.333333%; }
.col-sm-offset-2 { margin-left: 16.666667%; }
.col-sm-offset-3 { margin-left: 25%; }

/* Bootstrap 3 usa `hidden-xs`, `visible-*` */
@media (max-width: 767.98px) {
  .hidden-xs { display: none !important; }
  .visible-xs-block { display: block !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hidden-sm { display: none !important; }
  .visible-sm-block { display: block !important; }
}
@media (max-width: 991.98px) {
  .visible-sm-block { display: block !important; }
  .visible-xs-block { display: block !important; }
}

/* Classes fh5co legadas que aparecem em várias páginas */
.fh5co-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.fh5co-heading h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: .6rem;
}
.fh5co-heading h2 span { color: var(--terracota); font-style: italic; }
.fh5co-heading p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.container-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1rem;
}

.fh5co-light-grey { background: var(--bg-alt); }

/* Card soft — resgate visual para páginas antigas */
.card-soft {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}
.card-soft:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Botões do tema antigo (btn-primary, btn-outline, btn-demo etc.) */
.btn-primary,
.btn.btn-primary {
  background: var(--terracota);
  border-color: var(--terracota);
  color: white !important;
  font-weight: 500;
  transition: all var(--t);
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--terracota-dark);
  border-color: var(--terracota-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196,84,60,.35);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.6);
  color: white !important;
  transition: all var(--t);
}
.btn-outline:hover {
  background: white;
  color: var(--azul-noturno) !important;
  border-color: white;
}

/* IcoMoon fallback: se a página usa `icon-youtube2` etc., continuam funcionando */
/* (nada a fazer — a fonte IcoMoon continua carregada) */

/* =========================================================================
   NAVBAR pública
   Estratégia: position: fixed para escapar de qualquer container pai
   (template antigo envolve tudo em #page com overflow:hidden e max-width)
   ========================================================================= */

/* Reset agressivo de ancestrais que possam interferir com position:fixed.
   Transform, filter, perspective, contain, will-change criam um novo
   "containing block" que prende elementos fixed. */
html, body, #page, #page > *:not(.public-topbar):not(.live-banner),
.container-wrap:not(.public-topbar .container-wrap):not(.public-footer .container-wrap) {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  -webkit-transform: none !important;
  -webkit-filter: none !important;
  contain: none !important;
  will-change: auto !important;
}

/* Reset estrutural de #page */
#page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  position: static !important;
}

/* Padding no body pra compensar a topbar fixed */
body {
  padding-top: var(--navbar-h) !important;
  margin: 0 !important;
}

.public-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 1040;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(30,42,58,.04);
  height: var(--navbar-h);
  padding: 0 !important;
}
.public-topbar .container-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Brand */
.public-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
  max-width: 40%;
  position: relative;
}
.public-brand:hover { text-decoration: none; }
.public-brand:hover .public-brand-name { color: var(--terracota); }
.public-brand img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Separador vertical entre logo e nome */
.public-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}
.public-brand-name {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 400;
  color: var(--text-soft);
  margin: 0;
  letter-spacing: -.005em;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t);
}
[data-bs-theme="dark"] .public-brand-name { color: var(--text-on-dark); }
[data-bs-theme="dark"] .public-brand:hover .public-brand-name { color: var(--ambar) !important; }
[data-bs-theme="dark"] .public-brand-text { border-left-color: var(--border); }

.public-brand-tagline {
  font-size: .7rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
  letter-spacing: .02em;
}
@media (max-width: 991.98px) {
  .public-brand { max-width: 60%; gap: .7rem; }
  .public-brand img { height: 40px; }
  .public-brand-text { padding-left: .7rem; }
  .public-brand-name { font-size: .85rem; max-width: 180px; }
  .public-brand-tagline { display: none; }
}
@media (max-width: 640px) {
  .public-brand { gap: .5rem; }
  .public-brand img { height: 36px; }
  .public-brand-text {
    padding-left: .5rem;
    border-left-width: 1px;
  }
  .public-brand-name { font-size: .78rem; max-width: 130px; }
}

/* Menu desktop */
.public-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.public-menu > li { position: relative; }
.public-menu > li > a,
.public-menu > li > button {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .9rem;
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all var(--t);
  white-space: nowrap;
  background: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.public-menu > li > a:hover,
.public-menu > li > button:hover {
  color: var(--terracota);
  background: var(--bg-alt);
  text-decoration: none;
}
.public-menu > li.active > a,
.public-menu > li > a.active {
  color: var(--terracota);
  font-weight: 600;
}
.public-menu > li.active > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--ambar);
  border-radius: var(--r-pill);
}

.public-menu .has-dropdown > a::after,
.public-menu .has-dropdown > button::after {
  content: "";
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-left: .25rem;
  margin-top: 3px;
  transition: transform var(--t);
}
.public-menu .has-dropdown.open > a::after,
.public-menu .has-dropdown:hover > a::after,
.public-menu .has-dropdown:hover > button::after {
  transform: rotate(180deg);
}

/* Dropdown */
.public-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
  z-index: 1050;
}
.public-menu .has-dropdown:hover > .public-dropdown,
.public-menu .has-dropdown.open > .public-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.public-dropdown li a {
  display: block;
  padding: .6rem .8rem;
  color: var(--text);
  font-size: .9rem;
  border-radius: var(--r-sm);
  transition: all var(--t);
  text-decoration: none;
  white-space: normal;
}
.public-dropdown li a:hover {
  background: var(--bg-alt);
  color: var(--terracota);
  text-decoration: none;
}

/* Scrollbar do dropdown */
.public-dropdown::-webkit-scrollbar { width: 6px; }
.public-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-pill);
}

/* Ação especial "Login" */
.public-menu .menu-cta > a {
  background: var(--terracota);
  color: white !important;
  padding: .6rem 1.1rem;
  box-shadow: 0 4px 12px rgba(196,84,60,.25);
  margin-left: .4rem;
}
.public-menu .menu-cta > a:hover {
  background: var(--terracota-dark);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(196,84,60,.4);
}

/* Toggle mobile */
.public-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--t);
  align-items: center;
  justify-content: center;
}
.public-menu-toggle:hover {
  background: var(--bg-alt);
  color: var(--terracota);
  border-color: var(--ambar);
}

/* Toggle de tema */
.public-theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  color: var(--ambar-dark);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: .4rem;
  flex-shrink: 0;
}
.public-theme-toggle:hover {
  background: var(--bg-alt);
  color: var(--terracota);
  border-color: var(--ambar);
  transform: translateY(-1px);
}
.public-theme-toggle i {
  display: block;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .public-menu-toggle { display: inline-flex; }
  .public-menu {
    position: fixed;
    top: var(--navbar-h);
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 1rem .7rem;
    transform: translateX(100%);
    transition: transform var(--t);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .public-menu.open { transform: translateX(0); }
  .public-menu > li > a,
  .public-menu > li > button {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: var(--r-sm);
  }
  .public-menu > li.active > a::after { display: none; }
  .public-menu .has-dropdown > .public-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t);
  }
  .public-menu .has-dropdown.open > .public-dropdown {
    max-height: 60vh;
  }
  .public-menu .menu-cta > a {
    margin-left: 0;
    margin-top: .5rem;
    text-align: center;
    justify-content: center;
  }
}

/* Backdrop do menu mobile */
.public-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,42,58,.5);
  backdrop-filter: blur(2px);
  z-index: 1030;
  opacity: 0;
  transition: opacity var(--t);
}
.public-menu-backdrop.open {
  display: block;
  opacity: 1;
}

/* =========================================================================
   Live banner — "Culto ao vivo agora"
   Também precisa escapar do container pai. Usa position: fixed
   logo abaixo da topbar.
   ========================================================================= */
.live-banner {
  position: fixed !important;
  top: var(--navbar-h) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 1039;
  background: linear-gradient(90deg, #8B1A1A, var(--live));
  color: #FFF3E0;
  font-size: .9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .6rem 1rem;
  box-shadow: 0 4px 12px rgba(214,69,69,.3);
  font-family: var(--font-body);
}

/* Quando o live-banner está presente, precisa empurrar o conteúdo mais pra baixo */
body:has(.live-banner) {
  padding-top: calc(var(--navbar-h) + 48px) !important;
}
.live-banner .live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFF3E0;
  box-shadow: 0 0 0 4px rgba(255,243,224,.3);
  animation: livePulse 1.3s ease-in-out infinite;
}
@keyframes livePulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}
.live-banner strong { font-weight: 700; }
.live-banner .live-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  background: var(--ambar);
  color: var(--azul-noturno) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t);
  font-size: .85rem;
}
.live-banner .live-link:hover {
  background: #FFF3E0;
  color: var(--azul-noturno) !important;
  transform: translateY(-1px);
  text-decoration: none;
}
@media (max-width: 576px) {
  .live-banner { font-size: .8rem; }
}

/* =========================================================================
   Alerta de site (flutuante) — polimento
   ========================================================================= */
.site-alert {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1060;
  max-width: 340px;
  background: var(--azul-noturno);
  color: var(--ambar-soft);
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border-left: 4px solid var(--ambar);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: all var(--t);
  animation: siteAlertIn .5s cubic-bezier(.4,0,.2,1) .4s backwards;
  font-family: var(--font-body);
}
@keyframes siteAlertIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-alert:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(30,42,58,.24);
  color: white;
}
.site-alert-kicker {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ambar);
  font-weight: 700;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.site-alert-kicker i { font-size: .95rem; }
.site-alert-title {
  color: white;
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: .2rem;
  font-family: var(--font-display);
}
.site-alert-more {
  font-size: .78rem;
  color: var(--ambar-soft);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

@media (max-width: 576px) {
  .site-alert {
    left: .75rem;
    right: .75rem;
    max-width: none;
    bottom: .75rem;
  }
}

/* Modal de alerta (Bootstrap 5) */
.modal-alert .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.modal-alert .modal-header {
  background: var(--azul-noturno);
  color: var(--ambar-soft);
  border: none;
  padding: 1rem 1.25rem;
}
.modal-alert .modal-title {
  font-family: var(--font-display);
  font-weight: 500;
}
.modal-alert .btn-close {
  filter: invert(1) grayscale(1) brightness(1.8);
  opacity: .7;
}
.modal-alert .modal-body { padding: 1.25rem; }
.modal-alert .modal-body img {
  border-radius: var(--r-sm);
  margin-top: 1rem;
}

/* =========================================================================
   FOOTER público
   Força visual máxima — o style.css antigo define #fh5co-footer, .gototop,
   e fundos em `body > div#page` que quebram o layout novo.
   ========================================================================= */

/* Remove fundos aplicados pelo template antigo em containers raiz */
#page { background: transparent !important; }

/* Reset do container-wrap antigo se ele envolver o footer */
body > .container-wrap:has(.public-footer),
#page > .container-wrap:has(.public-footer),
.container-wrap:has(> .public-footer) {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

/* O próprio footer */
.public-footer,
footer.public-footer,
#fh5co-footer.public-footer {
  position: relative;
  background: var(--azul-noturno) !important;
  color: var(--text-on-dark) !important;
  padding: 4rem 0 2rem !important;
  overflow: hidden;
  margin: 0 !important;
  font-family: var(--font-body);
  display: block;
  border: none !important;
  box-shadow: none;
  float: none !important;

  /* Full bleed — garante 100% da largura mesmo dentro de container limitado */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
.public-footer * { box-sizing: border-box; }
.public-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 100%, rgba(232,165,71,.08), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(196,84,60,.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.public-footer > .container-wrap,
.public-footer .container-wrap {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1rem;
  background: transparent !important;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

.footer-col h3 {
  color: var(--ambar-soft) !important;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: italic;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--text-on-dark);
  font-size: .95rem;
  line-height: 1.5;
}
@media (max-width: 768px) { .footer-info-item { justify-content: center; } }
.footer-info-item i {
  color: var(--ambar);
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-info-item a { color: var(--text-on-dark); }
.footer-info-item a:hover { color: var(--ambar); }

.footer-cultos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-cultos-list li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
  color: var(--text-on-dark);
}
@media (max-width: 768px) { .footer-cultos-list li { justify-content: center; } }
.footer-cultos-list i {
  color: var(--oliva);
  font-size: 1rem;
}
.footer-cultos-list strong { color: var(--ambar-soft); font-weight: 600; }

/* Social */
.footer-social {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
@media (max-width: 768px) { .footer-social { justify-content: center; } }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(232,165,71,.1);
  border: 1px solid rgba(232,165,71,.25);
  color: var(--ambar-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--t);
}
.footer-social a:hover {
  background: var(--ambar);
  color: var(--azul-noturno);
  border-color: var(--ambar);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232,165,71,.3);
}

.footer-live-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.2rem;
  background: var(--terracota);
  color: white !important;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(196,84,60,.35);
  transition: all var(--t);
  text-decoration: none;
}
.footer-live-btn:hover {
  background: var(--terracota-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196,84,60,.5);
  color: white !important;
}

/* Copyright */
.footer-copyright {
  border-top: 1px solid rgba(232,165,71,.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-copyright span {
  color: var(--ambar-soft);
  font-family: var(--font-display);
  font-style: italic;
}

/* =========================================================================
   Back to top
   ========================================================================= */
.gototop,
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t);
}
.gototop.show,
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gototop a,
.back-to-top a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--terracota);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(196,84,60,.4);
  transition: all var(--t);
  text-decoration: none;
}
.gototop a:hover,
.back-to-top a:hover {
  background: var(--terracota-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(196,84,60,.55);
  color: white !important;
}

/* =========================================================================
   DARK MODE — correções explícitas com especificidade alta
   (resolve conflitos com style.css antigo e Bootstrap defaults)
   ========================================================================= */

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] html {
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* ============================================================
   Topbar no dark — força máxima contra style.css antigo.
   O style.css original tem regras em .fh5co-nav, nav, header
   que podem estar vazando. Aqui cobrimos todas as variações.
   ============================================================ */
html[data-bs-theme="dark"] body .public-topbar,
html[data-bs-theme="dark"] body header.public-topbar,
html[data-bs-theme="dark"] .public-topbar,
[data-bs-theme="dark"] body > header.public-topbar,
[data-bs-theme="dark"] header.public-topbar,
[data-bs-theme="dark"] .public-topbar {
  background: #18222F !important;
  background-color: #18222F !important;
  border-bottom: 1px solid #263447 !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.3) !important;
  color: #E8DFC8 !important;
}

/* Garantir que TODO texto/ícone dentro da topbar siga o dark */
html[data-bs-theme="dark"] .public-topbar,
html[data-bs-theme="dark"] .public-topbar * {
  color: inherit;
}
html[data-bs-theme="dark"] .public-brand-name {
  color: #E8DFC8 !important;
}

/* Brand no dark */
[data-bs-theme="dark"] .public-brand-name {
  color: var(--ambar-soft) !important;
}

/* Menu no dark — com hex literal para escapar de conflitos com variáveis */
html[data-bs-theme="dark"] .public-menu > li > a,
html[data-bs-theme="dark"] .public-menu > li > button,
[data-bs-theme="dark"] .public-menu > li > a,
[data-bs-theme="dark"] .public-menu > li > button {
  color: #C4BBA3 !important;
  background: transparent !important;
}
html[data-bs-theme="dark"] .public-menu > li > a:hover,
html[data-bs-theme="dark"] .public-menu > li > button:hover,
[data-bs-theme="dark"] .public-menu > li > a:hover,
[data-bs-theme="dark"] .public-menu > li > button:hover {
  color: #E8A547 !important;
  background: #14202E !important;
}
html[data-bs-theme="dark"] .public-menu > li.active > a,
[data-bs-theme="dark"] .public-menu > li.active > a {
  color: #E8A547 !important;
}
html[data-bs-theme="dark"] .public-menu > li.active > a::after,
[data-bs-theme="dark"] .public-menu > li.active > a::after {
  background: #C4543C !important;
}

/* Menu CTA (Login) no dark — mantém terracota */
html[data-bs-theme="dark"] .public-menu .menu-cta > a,
[data-bs-theme="dark"] .public-menu .menu-cta > a {
  background: #C4543C !important;
  color: white !important;
}
html[data-bs-theme="dark"] .public-menu .menu-cta > a:hover,
[data-bs-theme="dark"] .public-menu .menu-cta > a:hover {
  background: #A4432F !important;
}

/* Dropdown no dark */
html[data-bs-theme="dark"] .public-dropdown,
[data-bs-theme="dark"] .public-dropdown {
  background: #18222F !important;
  border-color: #263447 !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.5) !important;
}
html[data-bs-theme="dark"] .public-dropdown li a,
[data-bs-theme="dark"] .public-dropdown li a {
  color: #E8DFC8 !important;
}
html[data-bs-theme="dark"] .public-dropdown li a:hover,
[data-bs-theme="dark"] .public-dropdown li a:hover {
  background: #14202E !important;
  color: #E8A547 !important;
}

/* Toggles no dark */
html[data-bs-theme="dark"] .public-theme-toggle,
html[data-bs-theme="dark"] .public-menu-toggle,
[data-bs-theme="dark"] .public-theme-toggle,
[data-bs-theme="dark"] .public-menu-toggle {
  background: transparent !important;
  border-color: #263447 !important;
  color: #F3C77D !important;
}
html[data-bs-theme="dark"] .public-theme-toggle:hover,
[data-bs-theme="dark"] .public-theme-toggle:hover {
  background: #14202E !important;
  color: #E8A547 !important;
  border-color: #E8A547 !important;
}

/* Separador entre logo e nome no dark */
html[data-bs-theme="dark"] .public-brand-text,
[data-bs-theme="dark"] .public-brand-text {
  border-left-color: #263447 !important;
}

/* Menu mobile drawer no dark */
[data-bs-theme="dark"] .public-menu.open {
  background: var(--surface) !important;
  border-left-color: var(--border) !important;
}

/* Footer no dark */
[data-bs-theme="dark"] .public-footer,
[data-bs-theme="dark"] footer.public-footer,
[data-bs-theme="dark"] #fh5co-footer.public-footer {
  background: var(--azul-profundo) !important;
  color: var(--text-on-dark) !important;
  border-top: 1px solid var(--border) !important;
}

/* Back to top no dark */
[data-bs-theme="dark"] .gototop a,
[data-bs-theme="dark"] .back-to-top a {
  background: var(--terracota) !important;
  color: white !important;
}

/* =========================================================================
   Motion sensibilities
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
