/**
 * Footer redesign + newsletter (HubSpot): ported from styles-redesign.css + custom.css.
 * Loaded globally (see functions.php) so footer markup works with or without Tailwind bundle.
 * Chevron URLs are relative to this file: assets/css/components/ → ../../img/icons/
 */

/* Newsletter strip */
.newsletter {
  background: #00d8d8 !important;
  padding: 48px 0 !important;
}

.newsletter .hs-button.primary.large {
  background: #000 !important;
  color: #fff !important;
}

/* Newsletter row: works without Tailwind global.css */
.tw-footer__newsletter-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tw-footer__newsletter-copy p,
.tw-footer__newsletter-copy b,
.tw-footer__newsletter-tagline {
  color: #000;
}

.tw-footer__newsletter-tagline {
  display: block;
  margin-top: 0.5rem;
}

.tw-footer__newsletter-form-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-height: 70px;
}

.tw-footer__hubspot-target {
  width: 100%;
}

@media only screen and (min-width: 1024px) {
  .tw-footer__newsletter-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: center;
  }

  .tw-footer__newsletter-copy {
    grid-column: span 4;
  }

  .tw-footer__newsletter-form-wrap {
    grid-column: span 8;
  }

  .tw-footer__hubspot-target {
    width: auto;
  }
}

.tw-footer__popup-sent-img {
  display: block;
  margin: 1rem auto 0.5rem;
}

/* Popup (HubSpot success) — base + overlay */
.mailSentPopupNews {
  display: none;
  width: 500px;
  max-width: 80%;
  position: absolute;
  bottom: -9999px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 40px rgba(111, 122, 121, 0.25);
  background-color: #fff;
  text-align: center;
  padding: 1rem 0.5rem;
}

.mailSentPopup.showPopup,
.mailSentPopupNews.showPopup {
  box-shadow: 0 0 0 2560px rgba(0, 0, 0, 0.6);
}

.newsletter .mailSentPopupNews.showPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: block;
  height: 220px;
}

.newsletter .mailSentPopupNews.showPopup a.new-button {
  min-width: 180px;
  margin: 16px auto;
}

.newsletter .mailSentPopup.showPopup,
.newsletter .mailSentPopupNews.showPopup {
  top: auto;
}

/* OK button in popup (minimal .new-button.teal if bundle lacks redesign rules) */
.newsletter .mailSentPopupNews .new-button {
  width: fit-content;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem !important;
  color: #000;
  background: #00d8d8;
  border-radius: 4px;
  font-family: "Roboto Mono", monospace;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1rem;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.newsletter .mailSentPopupNews .new-button.teal:hover {
  color: #000;
  border-color: #eeff88;
  background: #eeff88;
}

/* Main footer */
.newFooter {
  width: 100%;
  padding: 40px 0 60px;
  background: #000;
  color: #fff;
  text-transform: none;
  font-family: "Raleway", sans-serif;
}

/* Masthead: logo + social */
.tw-footer__masthead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tw-footer__logo-wrap {
  width: 50%;
  max-width: 50%;
}

.tw-footer__logo-link {
  display: inline-block;
}

.tw-footer__social-outer {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

@media only screen and (min-width: 640px) {
  .tw-footer__masthead {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tw-footer__logo-wrap {
    width: auto;
    max-width: none;
  }
}

@media only screen and (min-width: 768px) {
  .tw-footer__logo-wrap {
    flex: 1;
  }

  .tw-footer__social-outer {
    flex: 0 1 auto;
  }
}

/* Nav columns grid */
.newFooter .border-footer.tw-footer__nav-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media only screen and (min-width: 768px) {
  .newFooter .border-footer.tw-footer__nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (min-width: 1024px) {
  .newFooter .border-footer.tw-footer__nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.tw-footer__sac-column {
  display: flex;
  flex-direction: column;
}

.tw-footer__sac-heading {
  margin-top: 0.5rem;
}

.tw-footer__text-block {
  display: block;
}

.tw-footer__text-block--spaced {
  margin-top: 0.5rem;
}

.tw-footer__address-block {
  margin-top: 0.5rem;
}

.tw-footer__ouvidoria-block {
  margin-top: 1rem;
}

.tw-footer__ouvidoria-subtitle {
  margin-bottom: 0.5rem;
}

/* Legal / disclaimer row */
.last-row.tw-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid #111;
}

.tw-footer__legal-inner {
  text-align: left;
  margin-bottom: 1rem;
}

@media only screen and (min-width: 1024px) {
  .tw-footer__legal-inner {
    margin-bottom: 0;
  }
}

.tw-footer__bacen-line {
  margin-bottom: 0.75rem;
  text-align: center;
  font-family: "Roboto Mono", monospace;
  color: #fff;
  font-size: 0.9rem;
}

.tw-footer__disclaimer {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.tw-footer__disclaimer a {
  color: #fff;
  text-decoration: underline;
}

.tw-footer__disclaimer a:hover {
  color: #eeff88;
}

.newFooter__social {
  list-style: none;
  margin: 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.newFooter__social a {
  margin-left: 24px;
}

.newFooter__social svg:hover {
  opacity: 0.8;
}

.newFooter .border-footer {
  border-top: solid 1px #111;
  padding-top: 36px;
}

.newFooter__block--text {
  margin: 0;
  font-weight: bold;
}

.newFooter__block--subtitle {
  display: block;
  width: 100%;
  font-size: 20px;
  margin-bottom: 4px;
  padding: 0;
  color: #00d8d8;
  text-align: left;
  border: 0;
  background: transparent;
  outline: none;
}

.newFooter__block--subtitle-small {
  display: block;
  font-size: 15px;
  color: #00d8d8;
}

.newFooter__block--subtitle-small small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}

.newFooter__block--nav {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px !important;
}

.newFooter__block--nav li {
  margin: 0 !important;
  margin-bottom: 0;
  padding-left: 0 !important;
}

.newFooter__block--nav li::before {
  display: none !important;
}

.newFooter__block--nav:hover li a {
  opacity: 0.6;
  transition: 0.2s;
}

.newFooter__block--nav li a {
  font-weight: 400 !important;
  color: #fff;
  text-decoration: none;
}

.newFooter__block--nav li a:hover {
  color: #fff;
  opacity: 1;
}

.newFooter .link-tel {
  color: #fff !important;
  display: inline;
}

.newFooter .link-tel:hover {
  color: #eeff88 !important;
}

.newFooter .link-relatorio {
  display: block;
  margin-top: 0.5rem;
  color: #00d8d8;
  text-decoration: underline;
  font-weight: bold;
  font-family: "Roboto Mono", monospace;
}

.newFooter .last-row .title-saiba {
  font-weight: bold !important;
  font-size: 1rem;
}

.newFooter .last-row a {
  display: inline;
  text-decoration: underline;
  color: #fff;
}

.newFooter .last-row a:hover {
  color: #eeff88;
}

.newFooter .last-row .section-subtitle {
  font-size: 0.9rem;
}

.newFooter a {
  color: #fff;
}

/* Desktop: section titles are not accordion controls */
@media only screen and (min-width: 768px) {
  .newFooter__block--subtitle {
    cursor: default;
  }

  .newFooter__block {
    max-height: none !important;
    overflow: visible !important;
  }

  .newFooter__block::after {
    content: none !important;
  }
}

/* Mobile accordion */
@media only screen and (max-width: 767px) {
  .pb-mobile-0 {
    padding-bottom: 0 !important;
  }

  .newFooter {
    text-align: left !important;
  }

  .newFooter__block--subtitle {
    cursor: pointer;
    padding: 4px 0 10px;
    z-index: 9;
    position: relative;
  }

  .newFooter__block {
    max-height: 38px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    transition: ease-in 0.5s;
  }

  .newFooter__block::after {
    content: url("../../img/icons/chevron_down.png");
    display: block;
    position: absolute;
    top: 6px;
    right: 0;
    z-index: 1;
  }

  .newFooter__block--subtitle-small {
    margin-top: 8px;
  }

  .newFooter__block.showNav {
    max-height: 1000px;
  }

  .newFooter__block.showNav::after {
    content: url("../../img/icons/chevron_up.png");
  }

  .newFooter__social {
    margin: 0;
  }

  .newFooter__social a {
    margin-left: 15px;
  }

  .newFooter__social svg {
    max-width: 20px;
    height: auto;
  }
}

/* Legado: página de serviços — esconde footer redesign + ícone flutuante */
.page-template-pg-legado-servicos .floating-icon,
.page-template-pg-legado-servicos .newFooter {
  display: none !important;
}
