/*
==========================================================================
SANOME — FOOTER
Fonte canônica
==========================================================================

STATUS:
MIGRAÇÃO EM ANDAMENTO — AINDA NÃO CARREGAR NO RUNTIME.

Este arquivo representa o estado visual EFETIVO atual do Footer,
não o histórico de overrides que levou até ele.

Responsabilidades deste arquivo:
- superfície do Footer;
- container interno;
- identidade/logo;
- dados imobiliários;
- Social;
- Legal;
- rodapé inferior;
- responsividade interna do componente.

NÃO pertence a este componente:
- body flex;
- main flex;
- sticky footer global;
- layout estrutural de páginas.

Essas responsabilidades irão para:
static/css/src/core/layout.css

SN_CSS_ARCH_FOOTER_CANONICAL_V2
==========================================================================
*/


/* ==========================================================================
   COMPONENT ROOT
   ========================================================================== */

.sn-site-footer {
  margin-top: 0 !important;
  background: var(--sn-dark) !important;
  border-top: 1px solid var(--sn-dark-3) !important;

  color: var(--sn-text-faint) !important;

  font-family: "Montserrat", sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;

  text-align: left;
}


/* ==========================================================================
   INNER CONTAINER

   Estado atual equivalente às antigas utilities:
   max-w-7xl mx-auto px-4 pt-7 pb-10
   ========================================================================== */

.sn-footer-inner {
  width: 100%;
  max-width: 80rem;

  margin-left: auto;
  margin-right: auto;

  padding-top: 1.75rem;
  padding-right: 1rem;
  padding-bottom: 2.5rem;
  padding-left: 1rem;

  box-sizing: border-box;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.sn-site-footer .sn-footer-grid {
  display: grid;
  gap: 34px;

  /*
  Estado base histórico do runtime.
  As faixas abaixo determinam a geometria final.
  */
  grid-template-columns: repeat(5, minmax(0, 1fr));
}


/* ==========================================================================
   LOGO
   ========================================================================== */

.sn-site-footer .sn-footer-logo-img-link {
  display: block !important;

  width: auto !important;

  margin: 0 0 14px !important;
  padding: 0 !important;

  line-height: 0 !important;
  text-decoration: none !important;

  transform: translateX(-4px) !important;

  -webkit-tap-highlight-color: transparent;
}

.sn-site-footer .sn-footer-logo-img {
  display: block !important;

  width: 150px !important;
  height: auto !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;
  transform: none !important;
}


/* ==========================================================================
   CITY / CRECI / CNPJ
   ========================================================================== */

.sn-site-footer .sn-footer-creci {
  margin-top: 0 !important;

  color: var(--sn-text-mid);

  font-size: 11px;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.sn-site-footer .sn-footer-city {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}

.sn-site-footer .sn-footer-creci-main {
  margin-bottom: 5px !important;
}

.sn-site-footer .sn-footer-cnpj {
  margin-top: 0 !important;
}


/* ==========================================================================
   INSTITUTIONAL TEXT
   ========================================================================== */

.sn-site-footer .sn-footer-text {
  margin-top: 10px;

  color: var(--sn-text-muted);

  font-size: 12px;
  line-height: 1.7;

  letter-spacing: 0;
  text-transform: none;
}


/* ==========================================================================
   SECTION TITLES
   ========================================================================== */

.sn-site-footer .sn-footer-title {
  display: block !important;

  margin: 0 0 0.55rem !important;
  padding: 0 !important;

  color: var(--sn-text-mid) !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;

  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}


/* ==========================================================================
   LISTS
   ========================================================================== */

.sn-site-footer .sn-footer-grid ul {
  display: grid;

  list-style: none;

  margin: 0;
  padding: 0;

  gap: 9px;
}

.sn-site-footer .sn-footer-grid li {
  line-height: 1.2;
}


/* ==========================================================================
   LINKS
   ========================================================================== */

.sn-site-footer .sn-footer-grid a {
  color: var(--sn-text-muted);

  text-decoration: none;

  font-size: 13px !important;
  line-height: 1.4 !important;

  -webkit-tap-highlight-color: transparent;
}

.sn-site-footer .sn-footer-grid a:hover {
  color: var(--sn-text-light);
}


/* ==========================================================================
   SOCIAL
   ========================================================================== */

.sn-site-footer .sn-footer-icon-link {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-size: 13px !important;
  line-height: 1.4 !important;
}

.sn-site-footer .sn-footer-icon-link svg {
  display: inline-block;

  width: 15px;
  height: 15px;

  flex: none;

  fill: currentColor;

  vertical-align: middle;
}


/*
YouTube possui width/height HTML = 18.
O style inline atual não define tamanho, somente comportamento de layout.
Mantemos esse comportamento aqui.
*/
.sn-site-footer .sn-footer-social svg {
  vertical-align: middle;
}


/* ==========================================================================
   LEGAL
   ========================================================================== */

.sn-site-footer .sn-footer-legal ul {
  gap: 10px !important;
}


/* ==========================================================================
   BOTTOM
   ========================================================================== */

.sn-site-footer .sn-footer-bottom {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-top: 32px;
  padding-top: 18px;

  border-top: 1px solid var(--sn-dark-3);

  color: var(--sn-text-muted);

  font-size: 10px;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* ==========================================================================
   MOBILE — até 640px
   ========================================================================== */

@media (max-width: 640px) {

  .sn-site-footer .sn-footer-grid {
    grid-template-columns: 1fr;
  }

  .sn-site-footer .sn-footer-logo-img-link {
    margin-bottom: 22px !important;
    transform: translateX(-3px) !important;
  }

  .sn-site-footer .sn-footer-logo-img {
    width: 130px !important;
  }

  .sn-site-footer .sn-footer-text {
    margin-bottom: 4px !important;
  }

  .sn-site-footer .sn-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   MOBILE LARGO — 641px a 700px
   ========================================================================== */

@media (min-width: 641px) and (max-width: 700px) {

  .sn-site-footer .sn-footer-grid {
    grid-template-columns: 1fr;
  }

  .sn-site-footer .sn-footer-logo-img-link {
    margin-bottom: 22px !important;
  }

  .sn-site-footer .sn-footer-logo-img {
    width: 142px !important;
  }

  .sn-site-footer .sn-footer-text {
    margin-bottom: 4px !important;
  }

  .sn-site-footer .sn-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   FAIXA HISTÓRICA — 701px a 767px

   Preservada durante a migração por paridade visual.
   Será candidata à normalização somente após validação do componente.
   ========================================================================== */

@media (min-width: 701px) and (max-width: 767px) {

  .sn-site-footer .sn-footer-grid {
    grid-template-columns:
      minmax(230px, 1.4fr)
      minmax(120px, .85fr)
      minmax(150px, 1fr)
      minmax(210px, 1.2fr) !important;

    column-gap: 24px !important;
    align-items: start !important;
  }

  .sn-site-footer .sn-footer-grid > div:first-child {
    padding-right: 24px !important;
  }

  .sn-site-footer .sn-footer-logo-img-link {
    margin-bottom: 22px !important;
  }

  .sn-site-footer .sn-footer-logo-img {
    width: 142px !important;
  }

  .sn-site-footer .sn-footer-text {
    margin-bottom: 4px !important;
  }
}


/* ==========================================================================
   BORDA EXATA — 768px

   No runtime legado, as regras max-width:768px ainda vencem exatamente
   nesse viewport. Mantemos essa particularidade durante a paridade.
   ========================================================================== */

@media (width: 768px) {

  .sn-site-footer .sn-footer-logo-img-link {
    margin-bottom: 22px !important;
  }

  .sn-site-footer .sn-footer-text {
    margin-bottom: 4px !important;
  }
}


/* ==========================================================================
   TABLET — 768px a 1100px

   Camada final atualmente imposta pelo sanome-footer.css legado.
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1100px) {

  .sn-site-footer .sn-footer-grid {
    grid-template-columns:
      minmax(285px, 1fr)
      max-content
      max-content !important;

    column-gap: 44px !important;
    align-items: start !important;
  }

  .sn-site-footer .sn-footer-social,
  .sn-site-footer .sn-footer-legal {
    justify-self: start !important;
    width: max-content !important;
  }

  .sn-site-footer .sn-footer-logo-img {
    width: 142px !important;
  }
}


/* ==========================================================================
   DESKTOP TYPOGRAPHY — 769px+
   ========================================================================== */

@media (min-width: 769px) {

  .sn-site-footer p.sn-footer-creci,
  .sn-site-footer p.sn-footer-creci.sn-footer-city,
  .sn-site-footer p.sn-footer-creci.sn-footer-creci-main,
  .sn-site-footer p.sn-footer-creci.sn-footer-cnpj {
    font-size: 11px !important;
    line-height: 1.18 !important;
    letter-spacing: 0.02em !important;
  }
}


/* ==========================================================================
   DESKTOP — 1101px+
   ========================================================================== */

@media (min-width: 1101px) {

  .sn-site-footer .sn-footer-grid {
    grid-template-columns:
      minmax(320px, 1.55fr)
      minmax(180px, 1fr)
      minmax(220px, 1fr)
      minmax(300px, 1.35fr) !important;

    column-gap: 44px !important;
  }

  .sn-site-footer .sn-footer-grid > div:first-child {
    padding-right: 58px !important;
  }
}


/* ==========================================================================
   END
   ========================================================================== */


/* ==========================================================================
   SOCIAL / LEGAL — TAMANHO FINAL DOS LINKS
   SN_CSS_ARCH_FOOTER_LINK_FONT_V1
   ========================================================================== */

.sn-site-footer .sn-footer-social ul li a,
.sn-site-footer .sn-footer-social ul li a.sn-footer-icon-link,
.sn-site-footer .sn-footer-legal ul li a {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* FIM SN_CSS_ARCH_FOOTER_LINK_FONT_V1 */


/* ==========================================================================
   SOCIAL / LEGAL — TAMANHO FINAL DOS TÍTULOS
   SN_CSS_ARCH_FOOTER_TITLE_FONT_FINAL_V1
   ========================================================================== */

.sn-site-footer .sn-footer-social .sn-footer-title,
.sn-site-footer .sn-footer-legal .sn-footer-title {
  font-size: 14px !important;
  line-height: 1.3 !important;
}

/* FIM SN_CSS_ARCH_FOOTER_TITLE_FONT_FINAL_V1 */
