/* Componentes globais carregados em todas as paginas. */
.site-footer {
  margin-top: 3rem;
  padding: 2.6rem 0 1.4rem;
  background: #fbf8f3;
  border-top: 2px solid rgba(159,145,96,.72);
  box-shadow: 0 -8px 24px rgba(58,11,30,.08);
  color: #51484c;
  font-size: .9rem;
}

.site-footer h6 {
  margin-bottom: 1rem;
  color: var(--Primary);
  font-size: .95rem;
  font-weight: 700;
}

.site-footer a {
  color: #51484c;
  transition:color .18s ease, transform .18s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { color:var(--Primary); }

.site-footer li a {
  display:inline-block;
}

.site-footer li a:hover,
.site-footer li a:focus-visible {
  color:var(--Primary);
  transform:translateX(3px);
}
.site-footer .top-row > div > a,
.site-footer .footer-contact-icon { color: var(--Primary); }

.site-footer .top-row > div > a:hover,
.site-footer .top-row > div > a:focus-visible,
.site-footer .top-row > div > a:hover .footer-contact-icon,
.site-footer .top-row > div > a:focus-visible .footer-contact-icon { color:var(--Secondary); }

.site-footer .top-row,
.site-footer .bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer .top-row {
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(159,145,96,.42);
}

.site-footer .bottom-row {
  gap: .8rem;
  justify-content: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(159,145,96,.42);
  font-size: .82rem;
  text-align: center;
}

.site-footer .bottom-row a{
  color:var(--Primary);
  font-weight:700;
  text-decoration:none;
}

.site-footer .bottom-row a:hover,
.site-footer .bottom-row a:focus-visible{ color:var(--Secondary); }

.site-footer .logo-icon {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--Primary);
  color: var(--On-primary);
  font-size: 16px;
  transition: background-color .18s ease, color .18s ease;
}

.site-footer .footer-logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.site-footer .footer-logo {
  display: block;
  width: auto;
  height: 88px;
  filter: none;
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.site-footer .footer-logo-link:hover .footer-logo,
.site-footer .footer-logo-link:focus-visible .footer-logo {
  filter:drop-shadow(0 5px 8px rgba(17,17,17,.2));
  opacity:1;
  transform:translateY(-2px);
}

.site-footer .top-row > a:hover .logo-icon,
.site-footer .top-row > a:focus-visible .logo-icon {
  background: var(--Secondary);
  color: var(--Primary);
}

.site-footer .top-row > a:hover strong,
.site-footer .top-row > a:focus-visible strong {
  color: var(--Secondary) !important;
}

.site-footer .socials a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-left: .4rem;
  border: 1px solid rgba(79,15,41,.42);
  border-radius: 50%;
  color: var(--Primary);
  transition:background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.site-footer .socials a:hover,
.site-footer .socials a:focus-visible {
  border-color:var(--Primary);
  background:var(--Primary);
  box-shadow:0 5px 12px rgba(79,15,41,.24);
  color:#fff;
  transform:translateY(-2px);
}

@media (max-width: 767.98px) {
  .site-footer .top-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .site-footer .footer-logo-link {
    justify-content: center;
  }

  .site-footer .footer-contact-group {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: .75rem !important;
  }

  .site-footer .footer-contact-group > a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .site-footer .footer-email {
    overflow-wrap: anywhere;
  }

  .site-footer .socials {
    display: flex;
    justify-content: center;
    margin-top: .25rem;
  }

  .site-footer .socials a {
    margin: 0 .25rem;
  }

  .site-footer .bottom-row {
    justify-content: center;
    text-align: center;
  }
}

.scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--Line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  color: var(--Secondary);
}

.scroll-top-button.is-visible { display: flex; }

.floating-whatsapp-button {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 500;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--Primary);
  border-radius: 50%;
  background: var(--Primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  color: var(--On-primary);
  font-size: 1.25rem;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.floating-whatsapp-button.is-visible { display: flex; }

.whatsapp-help-bubble {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  color: var(--Heading);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity .25s ease, transform .25s ease;
}

.whatsapp-help-bubble::before {
  position: absolute;
  top: 50%;
  right: 100%;
  border: 6px solid transparent;
  border-right-color: #fff;
  content: '';
  transform: translateY(-50%);
}

.floating-whatsapp-button.show-help .whatsapp-help-bubble {
  opacity: 1;
  transform: translate(0, -50%);
}

.floating-whatsapp-button:hover,
.floating-whatsapp-button:focus-visible {
  border-color: var(--Primary-dark);
  background: var(--Primary-dark);
  color: var(--On-primary);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp-button,
  .whatsapp-help-bubble { transition: none; }
}
