/*
 * ═══════════════════════════════════════════════════════════
 *  MEGAHPROJ — FOOTER
 *  Bloco 1.3 — footer.css
 *  Fiel ao visual de megahproj.com/wp
 * ═══════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────────── */
.site-footer {
  background-color: var(--megah-black);
  color: var(--megah-white);
  font-family: var(--font);
}

/* ─────────────────────────────────────────────
   FOOTER MAIN — 3 colunas
───────────────────────────────────────────── */
.footer-main {
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* ── Coluna 1: Logo + Newsletter (lado a lado) ── */
.footer-col--brand {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  display: block;
  flex-shrink: 0;
  margin-bottom: 0;
}

.footer-logo img {
  height: 85px;
  width: auto;
  /* Sem container, sem border — brand manual */
}

/* Div wrapper da newsletter */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  width: 100%;
}

.footer-newsletter-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--megah-white);
  margin-bottom: 5px;
}

.footer-newsletter-subtitle {
  font-size: 0.8rem;
  font-weight: 400; /* Regular — Brand Manual */
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Formulário de newsletter */
.footer-newsletter-form {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.footer-email-input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--megah-white);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400; /* Regular — Brand Manual */
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  transition: border-color var(--ease), background var(--ease);
  min-width: 0;
}
.footer-email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.footer-email-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.footer-submit-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--megah-white);
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.footer-submit-btn:hover {
  background: var(--megah-white);
  color: var(--megah-black);
  border-color: var(--megah-white);
}

/* ── Coluna 2: Links Sociais ── */
.footer-col--social {
  padding-top: 2px;
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 98px; /* Altura ajustada para alinhar com a newsletter */
}

.footer-social-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 400; /* Regular — Brand Manual */
  transition: color var(--ease);
  line-height: 1;
}
.footer-social-list a:hover {
  color: var(--megah-yellow);
}

/* Caixinha do ícone social — sem borda, fundo branco, ícone preto (conforme screenshot) */
.footer-social-list i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--megah-white);
  color: var(--megah-black);
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
.footer-social-list a:hover i {
  background: var(--megah-yellow);
  color: var(--megah-black);
}

/* ── Coluna 3: Citação ── */
.footer-col--quote {
  padding-top: 4px;
}

.footer-quote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--megah-white);
}

.footer-quote-mark {
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 0.7;
  color: var(--megah-white); /* aspas brancas */
  opacity: 0.95;
  user-select: none;
}

.footer-quote-mark--open {
  margin-top: -6px;
}

.footer-quote-mark--close {
  align-self: flex-end;
  margin-bottom: -18px;
}

.footer-quote blockquote {
  border: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.footer-quote blockquote p {
  font-size: 0.88rem;
  font-weight: 400; /* Regular — Brand Manual */
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 12px;
  font-style: italic;
}

.footer-quote blockquote cite {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--megah-white);
  font-style: normal;
  letter-spacing: 0.5px;
  display: block;
}

/* ─────────────────────────────────────────────
   FOOTER BOTTOM — Copyright + Links legais
───────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Links de privacidade/termos em bordô (conforme screenshot) */
.footer-legal a {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--megah-burgundy);
  transition: opacity var(--ease);
}
.footer-legal a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transition: color var(--ease);
}
.footer-credit a:hover {
  color: var(--megah-yellow);
}

/* Assinatura do desenvolvedor em Thai */
.footer-credit-sig {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.68rem;
  margin-left: 2px;
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  
  .footer-col--brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .footer-logo {
    display: none; /* Oculta o logotipo em tablets e celulares conforme solicitado */
  }

  .footer-newsletter {
    max-width: 100%;
  }

  /* Quote vai para baixo e ocupa toda a largura */
  .footer-col--quote {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col--quote {
    grid-column: auto;
  }

  .footer-social-list {
    height: auto;
    gap: 14px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
