.services-page {
  overflow: hidden;
}

.services-page__hero {
  position: relative;
  height: 798px;
  overflow: hidden;
  background-color: var(--blaze-color-black, #000);
}

.services-page__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1);
}

.services-page__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.1);
}

.services-page__hero img,
.services-page__hero-image {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: grayscale(1);
}
.services-page__hero h1 {
  position: absolute;
  z-index: 1;
  inset: auto 0 28px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.services-page__content {
  width: min(100% - 80px, 1120px);
  margin: 80px auto;
}

/* Clear the absolute/overlay site header when there is no hero image.
   Inline padding-top is also set on .services-page__intro-section in PHP. */
.services-page--no-hero {
  padding-top: 0;
}

.services-page--no-hero .services-page__intro-section {
  margin-top: 0;
  padding-top: 170px;
}

.services-page--no-hero .services-page__services-section {
  margin-top: 40px;
  margin-bottom: 80px;
}

.services-page__intro-section {
  margin-bottom: 0;
}

.services-page__intro-section + .services-page__services-section {
  margin-top: 40px;
}

.services-page__intro {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  text-align: left;
}

.services-page__title-section {
  margin-bottom: 12px;
}

.services-page__summary-section {
  margin-bottom: 0;
}

.services-page__intro-button {
  margin-top: 24px;
  text-align: left;
}

.services-page__intro-button .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
}

.services-page__intro-title {
  margin: 0;
  color: var(--blaze-color-black, #111);
  font-size: 32px;
  font-weight: 700;
  text-align: left;
}

.services-page__intro-description {
  margin: 0;
  max-width: 720px;
  color: var(--blaze-color-black, #111);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.services-page__intro-description p {
  margin: 0 0 0.75em;
}

.services-page__intro-description p:last-child {
  margin-bottom: 0;
}

.gallery-page .service-list__image {
  order: 0;
}

.gallery-page .service-list__copy {
  order: 1;
}
.gallery-page .title,
.gallery-page .services-page__intro-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: -10px;
}
.gallery-page .subtitle,
.gallery-page .services-page__intro-description {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
}
.services-page__content .service-list {
  display: grid;
  gap: 80px;
}
.service-list__item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 75px;
  padding: 24px 0;
}

.service-list__item:nth-child(even) .service-list__copy {
  order: 2;
}
.service-list__item:nth-child(even) .service-list__image {
  order: 1;
}
.service-list__image {
  aspect-ratio: 1.18 / 1;
  background: #eee;
  overflow: hidden;
  height: 100%;
}
.service-list__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-list__copy h2 {
  max-width: 390px;
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}
.service-list__copy p {
  margin: 0 0 24px;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.48;
}
.service-list__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 15px;
  border-radius: 5px;
  background: var(--blaze-color-primary);
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.services-showcase {
  padding: 30px 0 44px;
  background: #f1f1f1;
  text-align: center;
}
.services-showcase + .services-showcase {
  background: #fff;
}
.services-showcase__title {
  margin: 0 0 24px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1;
}
.services-showcase .carousel {
  width: min(100% - 50px, 1050px);
  margin: auto;
}
.services-showcase .carousel__controls {
  display: contents;
  pointer-events: none;
}
.services-showcase .carousel__button {
  pointer-events: auto;
}

.services-licenses {
  padding: 32px 0;
  background: #f1f1f1;
  text-align: center;
}
.services-licenses__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  width: min(100% - 60px, 780px);
  margin: auto;
}
.services-licenses__item {
  width: min(100%, 180px);
  height: 108px;
  display: grid;
  place-items: center;
  background: #fff;
}
.services-licenses__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.services-consultation {
  display: flex;
  justify-content: center;
  padding: 34px 20px;
  border-top: 1px solid var(--blaze-color-primary);
}
.services-consultation .button {
  min-width: min(100%, 320px);
  height: 48px;
  padding: 10px 26px;
  border-radius: 8px;
  background: var(--blaze-color-primary);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
}

/* .services-page .section--faq {
  padding: 24px 0;
  background: #fff;
} */

/* .services-page .section-header {
  margin: 0 auto;
  text-align: center;
} */
/* .services-page .section-header__title {
  margin: 0 0 26px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
} */
/* .services-page .faq-list {
  gap: 10px;
  margin-top: 0;
}
.services-page .faq-list__question {
  min-height: 42px;
  max-height: none;
  padding: 9px 15px 9px 24px;
  border-radius: 18px;
  font-size: 0.9rem;
}
.services-page .faq-list__question::before {
  width: 13px;
  height: 100%;
  border-radius: 18px 0 0 18px;
}
.services-page .faq-list__text {
  margin: 0;
  font-size: inherit;
  line-height: 1.3;
}
.services-page .faq-list__icon {
  width: 18px;
  height: 18px;
  font-size: 0.8rem;
}
.services-page .faq-list__answer {
  margin-top: -16px;
  padding: 32px 24px 18px;
  border-radius: 0 0 18px 18px;
  font-size: 0.86rem;
} */

@media (max-width: 700px) {
  .services-page--no-hero {
    padding-top: 0;
  }
  .services-page--no-hero .services-page__intro-section {
    padding-top: 99px;
  }
  .services-page__hero {
    min-height: 265px;
  }
  .services-page__hero h1 {
    display: none;
  }
  .services-page__content {
    width: min(100% - 30px, 430px);
    padding: 38px 0;
  }
  .services-page__intro {
    width: 100%;
  }
  .services-page__intro-section + .services-page__services-section {
    margin-top: 24px;
  }
  .services-page__content .service-list {
    gap: 32px;
  }
  .service-list__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .service-list__item:nth-child(even) .service-list__copy {
    order: 1;
  }
  .service-list__item:nth-child(even) .service-list__image {
    order: 1;
  }
  .service-list__image {
    aspect-ratio: 1.12 / 1;
  }
  .service-list__copy h2 {
    margin-bottom: 9px;
    font-size: 1.1rem;
  }
  .service-list__copy p {
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .service-list__button {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 0.6rem;
  }
  .services-showcase {
    padding: 24px 0;
  }
  .services-showcase__title {
    margin-bottom: 16px;
    font-size: 0.9rem;
  }
  .services-licenses__grid {
    gap: 12px;
  }
  .services-licenses__item {
    width: 118px;
    height: 74px;
  }
  .services-page .section--faq .container {
    width: min(100% - 30px, 430px);
  }
  .services-page .faq-list__question {
    font-size: 0.62rem;
  }
}

.services-showcase .carousel {
  grid-template-columns: minmax(44px, 88px) minmax(0, 950px) minmax(44px, 88px);
}
.services-showcase .carousel__track {
  min-width: 0;
}

@media (max-width: 700px) {
  .services-showcase .carousel {
    width: min(100% - 24px, 360px);
    grid-template-columns: 34px minmax(0, 176px) 34px;
    gap: 8px;
    overflow: visible;
  }
  .services-showcase .carousel__track {
    width: 176px !important;
    max-width: 176px;
    padding: 0;
    margin: 0;
  }
  .services-showcase .carousel__track-inner {
    min-width: 0;
    min-height: 0;
    gap: 0;
    padding: 0;
  }
  .services-showcase .carousel__item,
  .services-showcase .client-logo,
  .services-showcase .client-logo.client-logo.is-active {
    flex: 0 0 176px;
    width: 176px !important;
    min-width: 176px;
    max-width: 176px;
  }
  .services-showcase .client-logo,
  .services-showcase .client-logo.client-logo.is-active {
    height: 150px !important;
    min-height: 150px;
    padding: 12px;
    grid-template-rows: 88px 1fr;
  }
  .services-showcase .client-logo img {
    min-width: 0;
    max-width: 118px;
    max-height: 76px;
    height: auto;
  }
  .services-showcase .client-logo__name {
    font-size: 0.82rem;
  }
  .services-showcase .carousel__button,
  .services-showcase .section--testimonials .carousel__button {
    width: 34px;
    min-width: 34px;
    height: 94px;
    margin: 0;
    border-radius: 10px 0 0 10px;
  }
  .services-showcase .carousel__button[data-carousel-next] {
    border-radius: 0 10px 10px 0;
  }
  .services-showcase .carousel__button img {
    width: 15px;
    height: 15px;
  }
  .services-showcase .carousel__item.testimonial-card,
  .services-showcase .testimonial-card {
    flex: 0 0 176px;
    width: 176px;
    min-width: 176px;
    max-width: 176px;
    height: 150px;
    min-height: 150px;
    margin-top: 24px;
    padding: 22px 12px 10px;
  }
  .services-showcase .testimonial-card__body {
    margin-top: 0;
  }
  .services-showcase .testimonial-card__name {
    margin-bottom: 4px;
    font-size: 0.8rem;
  }
  .services-showcase .testimonial-card__review {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.62rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .services-showcase .testimonial-card__stars {
    margin-top: auto;
    font-size: 1rem;
    letter-spacing: 1px;
  }
}
@media (max-width: 480px) {
  .services-page__hero {
    height: 316px;
  }
  .services-page__content {
    margin: 16px auto;
    padding: 16px 0;
  }
  .services-page__intro {
    margin: 0;
  }
  .services-page--no-hero {
    padding-top: 0;
  }
  .services-page--no-hero .services-page__intro-section {
    margin-top: 0;
    padding-top: 99px;
  }
  .services-page__intro-section + .services-page__services-section {
    margin-top: 24px;
  }
  .service-list__item {
    padding: 0;
    gap: 16px;
  }
  .service-list__copy h2 {
    margin-bottom: 16px;
  }
  .service-list__copy p {
    margin-bottom: 16px;
  }
  .service-list__image {
    height: 214px;
  }
  .services-page__content .service-list {
    gap: 16px;
  }
  .services-page--no-hero .services-page__services-section {
    margin-top: 24px;
    margin-bottom: 16px;
  }
  .services-page__intro-title,
  .gallery-page .title,
  .gallery-page .services-page__intro-title {
    font-size: 20px;
    font-weight: 600;
  }
  .services-page__intro-description,
  .gallery-page .subtitle,
  .gallery-page .services-page__intro-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 16px;
  }
  .gallery-page .service-list__image {
    order: 1;
  }
  .service-list__item {
    gap: 16px;
  }
  .services-page .section-header__title {
    margin: 0 0 16px;
  }
}

@media (min-width: 1500px) {
  .services-page__hero {
    max-height: 100vh;
  }
}
