/*
 * CUPECÊ — shell global canônico
 *
 * Este arquivo é carregado no <head> antes do HTML do site. Ele reserva a
 * geometria do header/footer antes do primeiro paint e impede que regras
 * tardias de revisão causem reflow. O logo mobile ampliado é exclusivo da
 * Home por meio de html[data-cupece-page="home"].
 */

#site-header {
  display: flex;
  align-items: center;
  height: 96px;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

#site-header #header__container {
  height: 95px;
  align-items: center;
}

#site-header #header__logo-link {
  height: 95px;
  padding: 0;
  display: flex;
  align-items: center;
}

#site-header #header__logo-img {
  display: block;
  width: auto;
  height: 95px;
  max-height: 95px;
  transition: none;
}

#site-header #header__actions {
  align-items: center;
}

#site-header #header__link-solicitar-orcamento {
  transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

#site-header #mobile-menu {
  transition: opacity 200ms ease;
}

#site-footer {
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

#footer__container {
  gap: 24px !important;
}

#footer__grid-principal {
  gap: 32px !important;
}

#site-footer [data-stitch-role="content-box"] {
  align-items: center !important;
  text-align: center !important;
}

#site-footer #footer__logo-img {
  display: block;
  width: auto;
  height: 96px;
  max-height: 96px;
}

#footer__barra-inferior {
  padding-top: 10px !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (min-width: 1024px) {
  #site-footer #footer__grid-principal {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #footer__barra-inferior {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 1023px) {
  #site-header {
    height: 80px;
  }

  #site-header #header__container {
    height: 79px;
  }

  #site-header #header__logo-link {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 80px;
    transform: translate(-50%, -50%);
  }

  #site-header #header__logo-img {
    height: 64px;
    max-height: 64px;
  }

  /* Exceção aprovada: somente a Home mantém o logo mobile ampliado. */
  html[data-cupece-page="home"] #site-header #header__logo-img {
    height: 128px !important;
    max-height: 128px !important;
  }

  #site-footer {
    text-align: center !important;
  }

  #site-footer #footer__grid-principal {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 20px !important;
    column-gap: 16px !important;
    justify-items: center !important;
  }

  #site-footer #footer__coluna-navegacao,
  #site-footer #footer__coluna-servicos {
    display: none !important;
  }

  #site-footer #footer__coluna-marca,
  #site-footer #footer__coluna-contato,
  #site-footer #footer__coluna-redes {
    width: 100%;
    align-items: center !important;
    text-align: center !important;
  }

  #site-footer #footer__content-contatos > *,
  #site-footer #footer__redes-sociais {
    justify-content: center;
  }

  #site-footer #footer__logo-link {
    margin-left: auto;
    margin-right: auto;
  }

  #footer__barra-inferior {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
}
