/* Services hub page — matches https://nos.co/services/ visual treatment. */

.services-hub {
  --hub-bg-grey: var(--e-global-color-secondary);
  --hub-text-dark: var(--e-global-color-3ed811a);
  --hub-link: var(--e-global-color-primary);
  --hub-accent: #a09b78; /* matches the muted gold filter on .arrow-anim */
}

/* ---------- Hero ---------- */
.services-hub .hub-hero {
  background-color: var(--hub-bg-grey);
  padding: 180px 106px;
}

.services-hub .hub-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.services-hub .hub-hero__copy {
  padding-right: 16px;
  padding-bottom: 105px;
}

.services-hub .hub-hero__copy h1 {
  color: var(--hub-text-dark);
  font-family: "NoscoMono", sans-serif;
  font-size: 8rem;
  font-weight: 600;
  line-height: 1.2em;
  text-transform: none;
  margin: 0 0 64px;
  max-width: 685px;
}

.services-hub .hub-row__copy h3 { text-transform: none; }

.services-hub .hub-hero__copy p {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5em;
  margin: 0;
  max-width: 450px;
}

.services-hub .hub-hero__image {
  justify-self: end;
  width: 100%;
  max-width: 533px;
}

.services-hub .hub-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
}

.services-hub .hub-hero__mobile-image {
  display: none;
}

/* ---------- Intro ---------- */
.services-hub .hub-intro {
  padding: 144px 0 85px;
}

.services-hub .hub-intro__inner {
  width: 64.6%;
  max-width: 1346px;
  margin: 0 auto;
  text-align: center;
}

.services-hub .hub-intro p {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.6em;
  margin: 0 0 64px;
}

.services-hub .hub-btn {
  display: inline-block;
  background-color: var(--hub-text-dark);
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.services-hub .hub-btn:hover {
  transform: translate(5px, -5px);
}

/* ---------- Service rows ---------- */
.services-hub .hub-row {
  min-height: 640px;
  display: flex;
  align-items: center;
}

.services-hub .hub-row--grey { background-color: var(--hub-bg-grey); }
.services-hub .hub-row--white { background-color: #fff; }

.services-hub .hub-row__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.services-hub .hub-row__copy {
  padding: 4em;
}

.services-hub .hub-row__copy h3 {
  color: var(--hub-text-dark);
  font-family: "NoscoMono", sans-serif;
  font-size: 1.6em;
  font-weight: 600;
  margin: 0 0 1em;
  padding-right: 20%;
  text-align: left;
}

.services-hub .hub-row__copy p {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5em;
  margin: 0 0 1.2em;
  padding-right: 20%;
  text-align: left;
}

.services-hub .hub-row__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-hub .hub-row__image img {
  width: 85%;
  max-width: 480px;
  height: auto;
  display: block;
}

/* "Learn More" link with animated arrow */
.services-hub .hub-learn {
  position: relative;
  display: inline-block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--hub-link);
  text-decoration: none;
  padding-right: 32px;
}

.services-hub .hub-learn::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(100% + 5px);
  width: 14px;
  height: 14px;
  background-image: url("/wp-content/uploads/2022/03/arrow-right.svg");
  background-repeat: no-repeat;
  background-size: contain;
  filter: invert(58%) sepia(2%) saturate(2197%) hue-rotate(22deg) brightness(93%) contrast(100%);
  transition: left 0.3s ease-in-out;
}

.services-hub .hub-learn:hover::after {
  left: calc(100% + 20px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-hub .hub-hero { padding: 120px 48px; }
  .services-hub .hub-hero__copy h1 { font-size: 6rem; margin-bottom: 40px; }
  .services-hub .hub-hero__image { max-width: 320px; }
}

@media (max-width: 767px) {
  .services-hub .hub-hero {
    padding: 80px 0 32px;
  }
  .services-hub .hub-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .services-hub .hub-hero__copy {
    order: 2;
    padding: 0 15% 0;
    text-align: center;
  }
  .services-hub .hub-hero__copy h1 {
    font-size: 3.4rem;
    margin: 0 auto 32px;
    text-align: center;
  }
  .services-hub .hub-hero__copy p { text-align: center; margin: 0 auto; }
  .services-hub .hub-hero__image { display: none; }
  .services-hub .hub-hero__mobile-image {
    display: block;
    order: 1;
    margin: 0 auto 32px;
    width: 144px;
  }
  .services-hub .hub-hero__mobile-image img { width: 100%; height: auto; }

  .services-hub .hub-intro { padding: 80px 27px; }
  .services-hub .hub-intro__inner { width: 100%; }
  .services-hub .hub-intro p { font-size: 1.6rem; margin-bottom: 16px; }

  .services-hub .hub-row { min-height: 0; }
  .services-hub .hub-row__inner { grid-template-columns: 1fr; }
  .services-hub .hub-row__copy {
    padding: 2em 1em 4em;
    text-align: center;
    order: 2;
  }
  .services-hub .hub-row__copy h3,
  .services-hub .hub-row__copy p {
    padding-right: 0;
    text-align: center;
  }
  .services-hub .hub-row__image { order: 1; padding-top: 3em; }
  .services-hub .hub-row__image img { width: 60%; max-width: 280px; }

  .services-hub .hub-learn { font-size: 1.4rem; }
}

/* On desktop the image alternates side — we render markup in fixed order
   (image-then-copy) and flip per-row using a modifier. */
@media (min-width: 768px) {
  .services-hub .hub-row--image-right .hub-row__image { order: 2; }
  .services-hub .hub-row--image-right .hub-row__copy { order: 1; }
}
