/* Home page services band. Builds on style.css: Poppins, black, brand gold. */
:root {
  --hs-gold: rgb(196, 157, 72);
  --hs-ink: #000000;
}

.hs-services {
  background: var(--hs-ink);
  color: #ffffff;
  padding: 5.5rem 0 5rem;
  margin-top: 6rem;
}

.hs-services-title {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 3.5rem;
}

.hs-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

.hs-service {
  padding: 0 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hs-service:first-child {
  padding-left: 0;
  border-left: 0;
}

/* Gold outline square over a solid gold square offset behind it: the site's frame motif. */
.hs-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 0 2rem;
  border: 2px solid var(--hs-gold);
  background: var(--hs-ink);
  font-size: 2rem;
  line-height: 0;
  color: var(--hs-gold);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hs-frame::after {
  content: "";
  position: absolute;
  inset: 10px -12px -12px 10px;
  background: var(--hs-gold);
  opacity: 0.22;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.hs-service {
  isolation: isolate;
}

.hs-service:hover .hs-frame {
  background: var(--hs-gold);
  color: var(--hs-ink);
  transform: translate(-3px, -3px);
}

.hs-service:hover .hs-frame::after {
  opacity: 0.45;
}

.hs-service-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 16ch;
  margin-bottom: 0.9rem;
}

.hs-service-text {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  max-width: 34ch;
  margin: 0;
}

.hs-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hs-partners li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--hs-gold);
}

@media (prefers-reduced-motion: reduce) {
  .hs-frame,
  .hs-frame::after {
    transition: none;
  }

  .hs-service:hover .hs-frame {
    transform: none;
  }
}

@media (max-width: 991px) {
  .hs-service {
    padding: 0 1.5rem;
  }

  .hs-service-title {
    font-size: 1.3rem;
  }
}

/* Phones: one row per service, frame beside the heading. */
@media (max-width: 767px) {
  .hs-services {
    padding: 3.5rem 0;
    margin-top: 4rem;
  }

  .hs-services-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hs-services-grid {
    grid-template-columns: 1fr;
  }

  .hs-service,
  .hs-service:first-child {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 1.5rem;
    align-items: center;
    padding: 1.75rem 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hs-service:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .hs-frame {
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 1.5rem;
  }

  .hs-frame::after {
    inset: 7px -8px -8px 7px;
  }

  .hs-service-title {
    font-size: 1.2rem;
    max-width: none;
    margin: 0;
  }

  .hs-service-text,
  .hs-partners {
    grid-column: 2;
    margin-top: 0.6rem;
  }
}

/* Hero: the SME badge was an inline span, so its pill border broke apart when the text wrapped. */
.intro .intro-body .price-a {
  display: inline-block;
  border-radius: 1.75rem;
  line-height: 1.4;
}

@media (max-width: 575px) {
  .intro .intro-title {
    font-size: 2.4rem;
    line-height: 1.1;
  }

  .intro .intro-title-long {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .intro .intro-body .price-a {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    padding: 0.8rem 1.1rem;
  }
}
