html,
body {
  overflow-x: hidden;
}

.clients-grid {
  width: 100%;
  box-sizing: border-box;
}

.client-card {
  min-width: 0;
  overflow: hidden;
}

.client-card span {
  hyphens: auto;
  overflow-wrap: anywhere;
}

.whatsapp-float {
  right: max(1rem, env(safe-area-inset-right, 1rem));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
}

@media (width <= 760px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .client-card {
    padding: 16px 8px;
    gap: 12px;
  }

  .client-card img {
    max-width: 100%;
    width: auto;
    height: 48px;
  }

  .client-card:nth-child(n + 7) img {
    max-width: 100%;
    height: 56px;
  }

  .client-card span {
    max-width: 100%;
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 0.05em;
  }

  .client-logo-santa-teresinha {
    transform: scale(1.15);
    margin-bottom: 0;
  }

  .about-pillars-grid {
    grid-template-columns: 1fr;
  }

  .about-pillars-grid p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
    padding: 22px 0;
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.2;
    justify-content: flex-start;
    gap: 14px;
  }

  .about-pillars-grid p:last-child {
    border-bottom: 0;
  }

  .about-pillars-grid p:nth-child(2) {
    border-right: 0;
  }

  .about-page-hero-image img {
    object-position: center 22%;
  }

  .about-page-hero:after {
    background: linear-gradient(
        0deg,
        var(--navy) 0%,
        #040f31d9 45%,
        #040f3159 100%
      ),
      linear-gradient(90deg, var(--navy) 0%, #040f3100 55%);
  }

  footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .footer-brand img {
    width: 140px;
  }
}

body.home .desktop-navigation a.is-active::after,
body.home .desktop-navigation a.is-active:after {
  transform: scaleX(0) !important;
}

body.home .desktop-navigation a.is-active:hover::after,
body.home .desktop-navigation a.is-active:hover:after,
body.home .desktop-navigation a.is-active:focus-visible::after,
body.home .desktop-navigation a.is-active:focus-visible:after {
  transform: scaleX(1) !important;
}
/* Formulario briefing */
.contact-briefing { padding-inline: clamp(20px, 4vw, 48px); }
.briefing-form { width: 100%; max-width: 920px; margin-inline: auto; gap: 24px 32px; }
.briefing-form-actions { display: flex; justify-content: center; padding-top: 8px; }
.briefing-form-actions .button { min-width: 240px; }
@media (width <= 760px) { .briefing-form-actions .button { width: 100%; min-width: 0; } }

/* Seção Principais frentes — fundo azul */
.home-expertise {
  background: var(--navy) !important;
  color: #fff;
}

.home-expertise .section-heading h2 {
  color: #fff;
}

.home-expertise .section-heading-grid > p {
  color: rgba(255, 255, 255, 0.66);
}

/* Logo Banco do Nordeste — mesmo cinza das outras; cor no hover */
.client-logo-bnb {
  max-width: 200px;
  height: auto !important;
}

/* Caso antes/depois — Soluções */
.solutions-case {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 90px clamp(24px, 7vw, 112px);
}

.solutions-case-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 790px;
  margin: 0 auto 48px;
}

.solutions-case-heading h2 {
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.3vw, 64px);
  font-weight: 400;
  line-height: 1.02;
}

.solutions-case-heading > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.66);
  max-width: 610px;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.75;
}

.solutions-case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.solutions-case-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solutions-case-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.solutions-case-item figcaption {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

@media (width <= 760px) {
  .solutions-case {
    padding: 68px 20px;
  }

  .solutions-case-heading {
    margin-bottom: 34px;
  }

  .solutions-case-heading h2 {
    font-size: clamp(38px, 10.8vw, 50px);
    line-height: 1.05;
  }

  .solutions-case-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solutions-case-item img {
    height: 280px;
  }

  .client-logo-bnb {
    max-width: 150px;
  }
}

