/* Public-site refinements: responsive sections and customer-logo presentation. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  position: relative;
}

.nav-wrap {
  left: 0;
  right: 0;
  width: auto !important;
  max-width: 100vw;
}

main,
main > section,
footer {
  min-width: 0;
  max-width: 100vw;
}

.whatsapp-contact {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px !important;
  padding: 12px 17px !important;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #062c18 !important;
  background: #25d366;
  border: 0 !important;
  border-radius: 999px;
  font: 600 14px "DM Sans", sans-serif !important;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .18);
}

.whatsapp-contact:hover {
  background: #5ee486;
}

.whatsapp-contact b {
  font-weight: 700;
}

.whatsapp-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}

.customer-section {
  background:
    radial-gradient(circle at 100% 0, rgba(87, 172, 224, .12), transparent 30rem),
    #f6f8fb;
}

.customer-section .customer-banner {
  height: 270px;
}

.customer-grid-heading {
  margin: 54px 0 18px;
  padding-bottom: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font: 600 10px "Space Grotesk", sans-serif;
  letter-spacing: .13em;
}

.customer-section .project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.customer-card {
  min-width: 0;
  min-height: 0 !important;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.customer-card:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
  background: #fbfdff;
  box-shadow: 0 14px 34px rgba(10, 22, 38, .11);
}

.customer-section .customer-visual {
  height: 128px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 0;
}

.customer-section .customer-visual::after {
  display: none;
}

.customer-logo {
  position: absolute;
  inset: 10px 16px;
  width: calc(100% - 32px);
  height: calc(100% - 20px);
  max-width: calc(100% - 32px);
  max-height: calc(100% - 20px);
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: auto;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center;
  transition: transform .2s ease;
}

.customer-monogram {
  position: static;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #edf4fb;
  font-size: 20px;
}

.customer-section .project-copy {
  min-height: 112px;
  padding: 13px 17px 16px;
  border-top: 1px solid rgba(10, 22, 38, .08);
}

.customer-section .project-meta {
  font-size: 9px;
  letter-spacing: .11em;
}

.customer-section .project-copy h3 {
  margin: 8px 0 10px;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.customer-section .project-place {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  border-top: 0;
  font-size: 10.5px;
}

@media (max-width: 1180px) {
  .customer-section .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav-wrap {
    width: 100% !important;
    max-width: 100vw !important;
    padding-inline: 18px !important;
    overflow: visible;
  }

  .nav-wrap .brand {
    min-width: 0;
    max-width: calc(100vw - 88px);
    overflow: hidden;
  }

  .nav-wrap .logo-crop {
    width: 168px;
    height: 47px;
    flex: 0 0 168px;
  }

  .nav-wrap .logo-crop img {
    width: 168px;
    top: -33px;
  }

  .nav-wrap .menu {
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 9px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .nav-wrap .menu span {
    width: 26px;
    flex: 0 0 1.5px;
  }

  .nav-wrap nav,
  .nav-wrap nav.open {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 24px 20px !important;
    box-sizing: border-box;
    overflow-x: hidden;
    transform: none !important;
  }

  .nav-wrap nav a {
    max-width: 100%;
    white-space: normal;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding-inline: 20px;
  }

  .section,
  .visual-stories,
  .statement,
  .approach,
  .cta,
  footer {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .trust-strip {
    height: auto;
    min-height: 0;
    padding-block: 22px;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    overflow: visible;
  }

  .service-grid article,
  .project-card {
    width: 100%;
    max-width: 100%;
  }

  .customer-section .customer-banner {
    height: 220px;
  }

  .customer-grid-heading {
    margin-top: 38px;
  }

  .customer-section .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-section .customer-visual {
    height: 118px;
  }

  .customer-logo {
    inset: 9px 12px;
    width: calc(100% - 24px);
    height: calc(100% - 18px);
    max-width: calc(100% - 24px);
    max-height: calc(100% - 18px);
  }

  .customer-section .project-copy {
    min-height: 108px;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    padding-inline: 14px !important;
  }

  .nav-wrap .brand {
    max-width: calc(100vw - 76px);
  }

  .nav-wrap .logo-crop {
    width: 154px;
    height: 44px;
    flex-basis: 154px;
  }

  .nav-wrap .logo-crop img {
    width: 154px;
    top: -30px;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 44px;
  }

  .section {
    padding-inline: 20px;
  }

  .whatsapp-contact {
    width: 100%;
    justify-content: center;
    padding-inline: 12px !important;
    text-align: center;
  }

  .section-intro h2,
  .approach h2,
  .cta h2 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .customer-grid-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .customer-section .customer-visual {
    height: 108px;
  }

  .customer-logo {
    inset: 8px 10px;
    width: calc(100% - 20px);
    height: calc(100% - 16px);
    max-width: calc(100% - 20px);
    max-height: calc(100% - 16px);
  }

  .customer-section .project-copy {
    min-height: 104px;
    padding: 12px 12px 14px;
  }

  .customer-section .project-copy h3 {
    font-size: 15px;
  }

  .customer-monogram {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }
}
