/* =========================================================
   10 · Footer — Figma 710:153 (desktop) · 723:328 (mobile)
   ========================================================= */
.footer {
  background: #e9e3d8;
  padding-top: 80px;
  padding-bottom: 80px;
  color: var(--c-azul);
}

/* ---------- Linha superior ---------- */
.footer__topo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 384px));
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 0;
}

/* Parceiros ocupam a primeira coluna */
.footer__marca { display: none; }

/* Marca (emblema + tipografia) */
.footer__marca {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 163.08px;
}
.footer__emblema { width: 115.2px; height: 57.6px; }
.footer__marca-textos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8.64px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.footer__marca-textos > span {
  display: block;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.footer__marca-condominio {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 5.04px;
  letter-spacing: 0.648px;
  color: var(--c-ardosia);
}
.footer__marca-nome {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 30.24px;
  letter-spacing: 2.52px;
  color: var(--c-azul);
}
.footer__marca-sub {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 8.64px;
  letter-spacing: 1.8px;
  color: var(--c-azul);
}

/* Navegação */
.footer__nav { padding-left: 0; flex-shrink: 0; }
.footer__nav ul { display: flex; flex-direction: column; gap: 12px; line-height: normal; }
.footer__nav a {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  color: var(--c-azul);
  white-space: nowrap;
}

/* Endereço + contato */
.footer__contatos { margin-left: 0; flex-shrink: 0; }
.footer__rotulo {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  line-height: normal;
  color: var(--c-ardosia);
  white-space: nowrap;
}
.footer__contatos .footer__rotulo { margin-bottom: 10px; }
.footer__contatos .footer__rotulo--segundo { margin-top: 16px; }
.footer__texto {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-azul);
  white-space: nowrap;
}

/* ---------- Parceiros ---------- */
.footer__parceiros {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block: 0;
  border-bottom: 0;
}
.footer__parceiro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: normal;
  color: #6b665c;
  white-space: nowrap;
}
.footer__logo--granleve { width: 180px; height: 48px; }
.footer__logo--lopes    { width: 143px; height: 48px; }
.footer__parceiro-texto {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-ardosia);
}
.footer__desde { width: 238px; }

/* ---------- Avisos legais ---------- */
.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 40px;
  width: 1280px;
  max-width: 100%;
}
.footer__legal-texto,
.footer__copy,
.footer__reservado p {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--c-ardosia);
}
.footer__legal-texto { line-height: 1.6; }
.footer__copy { line-height: normal; }

/* Bloco tracejado reservado — presente apenas no frame Mobile 390 (723:378) */
.footer__reservado {
  display: none;
  padding: 12px 14px;
  border: 1px dashed #bfb6a6;
}
.footer__reservado p { width: 320px; max-width: 100%; line-height: 1.6; }

.footer__so-mobile { display: none; }

/* ---------- Tablet (641–960) ---------- */
@media (max-width: 960px) {
  .footer { padding-top: 96px; }
  .footer__topo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .footer__nav { padding-left: 0; }
  .footer__parceiros { gap: 64px; flex-wrap: wrap; }
}

/* ---------- Mobile (≤640) — 723:328 ---------- */
@media (max-width: 640px) {
  .footer {
    padding-top: 72px;
    /* 120px do design + barra fixa mobile (~73px) + safe-area */
    padding-bottom: calc(120px + 73px + env(safe-area-inset-bottom));
  }

  .footer__topo {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 40px;
  }
  .footer__texto { white-space: normal; }
  /* Celulares estreitos (320px): rótulos e logos quebram/encolhem em vez de estourar */
  .footer__rotulo { white-space: normal; }
  .footer__logo { max-width: 100%; white-space: normal; }
  .footer__reservado { max-width: 100%; }

  .footer__marca { width: 149.49px; }
  .footer__emblema { width: 105.6px; height: 52.8px; }
  .footer__marca-textos { gap: 7.92px; }
  .footer__marca-condominio { font-size: 4.62px; letter-spacing: 0.594px; }
  .footer__marca-nome { font-size: 27.72px; letter-spacing: 2.31px; }
  .footer__marca-sub { font-size: 7.92px; letter-spacing: 1.65px; }

  .footer__nav { margin-top: 40px; }
  .footer__contatos { margin-left: 0; margin-top: 36px; }
  .footer__contatos .footer__rotulo { margin-bottom: 8px; }
  .footer__contatos .footer__rotulo--segundo { margin-top: 20px; }

  .footer__parceiros {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 28px;
    padding-block: 36px;
  }
  .footer__logo { border-color: #99897a; }
  .footer__logo--granleve { width: 200px; height: 43px; }
  .footer__desde { display: none; }
  .footer__parceiro--vendas { gap: 0; }
  .footer__parceiro--vendas .footer__logo { margin-top: 12px; }
  .footer__parceiro--vendas .footer__parceiro-texto { margin-top: 10px; }

  .footer__legal { gap: 0; padding-top: 28px; width: 100%; }
  .footer__legal-imagens { margin-top: 12px; }
  .footer__reservado { display: block; margin-top: 16px; }
  .footer__copy { margin-top: 16px; }

  .footer__so-desktop { display: none; }
  .footer__so-mobile { display: inline; }
}
