/* =================================================================
   BIGPIRES FOOTER
   ================================================================= */

/* ── 1. Variáveis ──────────────────────────────────────────────── */
:root {
  --footer-bg:          #ffffff;
  --footer-border-top:  #e8e8e8;
  --footer-accent:      #6b4fa0;    /* roxo BigPires */
  --footer-text:        #333333;
  --footer-link:        #333333;
  --footer-link-hover:  #6b4fa0;
  --footer-sub:         #666666;
  --footer-bottom-bg:   #f5f5f5;
  --footer-bottom-text: #888888;
  --social-bg:          #6b4fa0;
  --social-size:        36px;
}

/* ── 2. Footer principal ───────────────────────────────────────── */
.site-footer {
  position: relative;        /* cria contexto de empilhamento próprio */
  z-index: 10;               /* fica acima dos módulos HTML Content    */
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border-top);
  padding: 64px 0 0;
  font-size: .9375rem;
  color: var(--footer-text);
  clear: both;               /* garante que flutua abaixo de tudo      */
}

/* ── 3. Wrapper centrado (partilhado pelo logo-row e pela grid) ── */
.site-footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── 4. Linha do logo (acima das 3 colunas) ────────────────────── */
.site-footer__logo-row {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--footer-border-top);
  margin-bottom: 48px;
}

.site-footer__logo {
  display: inline-block;
}

.site-footer__logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* ── 5. Grid de 3 colunas ──────────────────────────────────────── */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── 5. Lista de navegação (coluna 1) ──────────────────────────── */
.site-footer__nav {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: .9375rem;
  transition: color .2s;
}

.site-footer__nav a:hover {
  color: var(--footer-link-hover);
}

/* ── 6. Idioma ─────────────────────────────────────────────────── */
.site-footer__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--footer-text);
  font-size: .875rem;
}

/* ── 7. Redes sociais ──────────────────────────────────────────── */
.site-footer__social {
  display: flex;
  gap: 8px;
}

.site-footer__social-link {
  width: var(--social-size);
  height: var(--social-size);
  border-radius: 6px;
  background: var(--social-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.site-footer__social-link:hover {
  background: #4e3580;
  transform: translateY(-2px);
  color: #fff;
}

/* ── 8. Cabeçalhos de secção (colunas 2 e 3) ──────────────────── */
.site-footer__section-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--footer-accent);
  margin: 0 0 18px;
  letter-spacing: .01em;
}

/* ── 9. Lista de links (col 2) ─────────────────────────────────── */
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: .9375rem;
  transition: color .2s;
}

.site-footer__links a:hover {
  color: var(--footer-link-hover);
}

/* ── 10. Coluna 3 — Serviço ────────────────────────────────────── */
.site-footer__phone-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.site-footer__phone-icon {
  color: var(--footer-accent);
  font-size: 1rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.site-footer__phone-number {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--footer-text);
  line-height: 1.2;
  margin: 0;
  letter-spacing: .01em;
}

.site-footer__phone-note {
  font-size: .8125rem;
  color: var(--footer-sub);
  margin: 4px 0 28px;
}

.site-footer__address {
  font-size: .9375rem;
  color: var(--footer-text);
  line-height: 1.7;
  margin: 0 0 28px;
}

.site-footer__eu-logos {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* ── 11. Barra inferior ────────────────────────────────────────── */
.site-footer__bottom {
  margin-top: 48px;
  background: var(--footer-bottom-bg);
  border-top: 1px solid var(--footer-border-top);
}

.site-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copyright {
  font-size: .8125rem;
  color: var(--footer-bottom-text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-footer__oonify {
  height: 16px;
  width: auto;
  vertical-align: middle;
  opacity: .75;
}

.site-footer__scroll-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d0d0d0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  font-size: .875rem;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.site-footer__scroll-top:hover {
  background: var(--footer-accent);
  border-color: var(--footer-accent);
  color: #fff;
}

/* ── 12. Responsivo ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .site-footer__wrap {
    padding: 0 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer__bottom-inner {
    padding: 0 24px;
  }
}
