.services-page {
  --services-navy: #14255b;
  --services-heading: #1d1a4e;
  --services-blue: #1e4ec4;
  overflow-x: clip;
}

.services-page .site-header:not(.is-sticky) { background: transparent; }
.services-page main { background: #fff; }

/* Hero */
.services-hero {
  position: relative;
  height: 616px;
  overflow: hidden;
  color: #fff;
  background: #07112d;
}
.services-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 39, .54);
}
.services-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  height: 100%;
  padding-top: 185px;
  text-align: center;
}
.services-hero h1 {
  max-width: 930px;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
  font-size: 52px;
  font-weight: 600;
  line-height: 62px;
  text-transform: none;
}
.services-hero-inner > p {
  max-width: 930px;
  margin: 25px auto 0;
  color: #a5aec2;
  font-size: 16px;
  line-height: 26px;
}
.services-anchor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 82px;
}
.services-anchor-grid a {
  position: relative;
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
}
.services-anchor-grid img {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  object-fit: contain;
}
.services-anchor-grid a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 1px;
  height: 145px;
  background: rgba(255, 255, 255, .22);
}
.services-anchor-grid strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

/* Products */
.services-products { height: 717px; padding: 100px 0 0; }
.services-products-grid {
  max-width: 1140px;
  display: grid;
  grid-template-columns: 475px 300px 300px;
  gap: 30px;
  align-items: start;
}
.services-products-copy { padding-top: 102px; }
.services-products-copy h2 {
  width: 405px;
  color: var(--services-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  text-transform: none;
}
.services-products-copy p {
  margin-top: 27px;
  font-size: 16px;
  line-height: 26px;
}
.services-product-card {
  position: relative;
  display: flex;
  height: 510px;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 14px 46px rgba(0, 26, 87, .08);
}
.services-product-card img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.services-product-card > div { flex: 1; padding: 25px 25px 18px; }
.services-product-card h3 {
  color: var(--services-heading);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-transform: none;
}
.services-product-card p { margin-top: 14px; font-size: 16px; line-height: 26px; }
.services-product-card > a {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: var(--services-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  transition: transform .3s ease-in-out;
}
.services-product-card > a:hover { transform: translateY(-5px); }

/* Product Engineering */
.services-pesd {
  position: relative;
  height: 830px;
  overflow: hidden;
  background: var(--services-navy) url("../../assets/images/services-pesd-bg.webp") center / cover no-repeat;
}
.services-pesd-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #14255b 67%, rgba(20, 37, 91, .35));
}
.services-pesd-inner { position: relative; z-index: 1; max-width: 1140px; padding-top: 125px; }
.services-pesd h2 {
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  text-align: center;
  text-transform: none;
}
.services-pesd-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  row-gap: 94px;
  margin-top: 79px;
}
.services-icon-card { grid-column: span 2; padding: 0 25px; text-align: center; }
.services-icon-card:nth-child(4) { grid-column: 2 / span 2; }
.services-icon-card:nth-child(5) { grid-column: 4 / span 2; }
.services-icon-card img { width: 52px; height: 52px; object-fit: contain; }
.services-icon-card h3 {
  margin-top: 13px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  text-transform: none;
}
.services-icon-card p { max-width: 285px; margin: 14px auto 0; color: #a5aec2; font-size: 16px; line-height: 22px; }

/* Ecommerce */
.services-ecommerce-intro { height: 245px; padding-top: 90px; }
.services-split-heading {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 250px 3px 1fr;
  gap: 22px;
  align-items: center;
}
.services-split-heading h2 {
  color: var(--services-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  text-align: right;
  text-transform: none;
}
.services-split-heading span { width: 3px; height: 85px; background: #8fa4c5; }
.services-split-heading p { color: #616670; font-size: 16px; line-height: 26px; }
.services-ecommerce-cards { height: 507px; padding-top: 15px; }
.services-ecommerce-grid { max-width: 1140px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.services-image-card {
  position: relative;
  height: 387px;
  border-radius: 4px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 46px rgba(0, 26, 87, .08);
}
.services-image-card:nth-child(1) { background-image: url("../../assets/images/services-ecommerce-web.jpg"); }
.services-image-card:nth-child(2) { background-image: url("../../assets/images/services-shopify-development.jpg"); }
.services-image-card:nth-child(3) { background-image: url("../../assets/images/services-shopify-integration.jpg"); }
.services-image-card:nth-child(4) { background-image: url("../../assets/images/services-shopify-support.jpg"); }
.services-image-card h3 {
  position: absolute;
  right: 20px;
  bottom: 10px;
  left: 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 4px;
  background: #fff;
  color: #191919;
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
  text-align: center;
  text-transform: none;
  transition: background-color .3s ease, color .3s ease;
}
.services-image-card:hover h3 {
  background: var(--services-blue);
  color: #fff;
}

/* Shared section intros */
.services-section-intro { text-align: center; }
.services-section-intro .container { max-width: 760px; }
.services-section-intro h2 {
  color: var(--services-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  text-transform: none;
}
.services-section-intro p { margin-top: 10px; font-size: 16px; line-height: 26px; }
.services-cloud-intro { height: 220px; padding-top: 85px; background: #f5f9ff; }

/* Cloud */
.services-cloud-list { height: 694px; background: #f5f9ff; }
.services-cloud-grid {
  max-width: 1140px;
  display: grid;
  grid-template-columns: 315px 373px 315px;
  gap: 45px;
  align-items: start;
}
.services-cloud-column { display: flex; flex-direction: column; gap: 25px; }
.services-cloud-item { display: grid; grid-template-columns: 64px 1fr; gap: 15px; }
.services-cloud-item.reveal { transition: opacity .6s ease, transform .3s ease-in-out; }
.services-cloud-item.reveal.is-visible:hover { transform: translateY(-5px); }
.services-cloud-item img { width: 64px; height: 64px; object-fit: contain; }
.services-cloud-item h3 {
  color: var(--services-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-transform: none;
}
.services-cloud-item p { margin-top: 12px; font-size: 16px; line-height: 26px; }
.services-cloud-image { width: 373px; height: 563px; border-radius: 4px; object-fit: cover; }

/* Business intelligence */
.services-bi-intro { height: 266px; padding-top: 86px; }
.services-bi-cards { position: relative; height: 617px; }
.services-bi-cards::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 165px; background: #f4f4f4; }
.services-bi-grid { position: relative; z-index: 1; max-width: 1140px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.services-bi-card { height: 505px; background: #fff; box-shadow: 0 14px 46px rgba(0, 26, 87, .08); }
.services-bi-card img { display: block; width: 100%; height: 253px; object-fit: cover; }
.services-bi-card > div { padding: 28px 35px; }
.services-bi-card h3 { font-size: 17px; line-height: 27px; text-transform: none; }
.services-bi-card p { margin-top: 9px; font-size: 16px; line-height: 26px; }
.services-bi-card a {
  display: inline-flex;
  width: 153px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 4px;
  background: var(--services-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .3s ease-in-out;
}
.services-bi-card a:hover { transform: translateY(-5px); }

/* Statistics, industries and awards */
.services-stats { height: 522px; padding-top: 115px; }
.services-stat-grid { max-width: 1140px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.services-stat-grid article { min-height: 280px; padding: 0 24px; border-right: 1px solid #e2e2e2; text-align: center; }
.services-stat-grid article:last-child { border-right: 0; }
.services-stat-grid img { display: block; width: 55px; height: 55px; margin: 0 auto 22px; filter: brightness(0) saturate(100%) invert(29%) sepia(99%) saturate(1732%) hue-rotate(216deg) brightness(75%) contrast(101%); }
.services-stat-grid strong { display: block; color: #191919; font: 400 32px/normal var(--font-heading); }
.services-stat-grid h3 { margin-top: 2px; color: #191919; font-size: 16px; font-weight: 400; line-height: normal; text-transform: none; }
.services-stat-grid p { margin-top: 11px; font-size: 16px; line-height: 26px; }
.services-industries { height: 645px; text-align: center; }
.services-industries h2,
.services-awards h2 {
  color: var(--services-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  text-transform: none;
}
.services-industries img { display: block; width: 960px; height: 575px; margin: 10px auto 0; object-fit: contain; }
.services-awards { height: 283px; text-align: center; }
.services-awards h2 { padding-top: 60px; }
.services-award-grid { max-width: 1040px; display: grid; grid-template-columns: 150px 150px 150px 300px; align-items: center; justify-content: space-between; margin: 27px auto 0; }
.services-award-grid img { width: 150px; height: 150px; object-fit: contain; }
.services-award-grid .services-microsoft-award { width: 265px; height: auto; }

/* Reviews */
.services-reviews { height: 747px; overflow: hidden; }
.services-reviews > .container { max-width: 1140px; }
.services-reviews h2 { padding-top: 58px; color: var(--services-heading); font-size: 26px; font-weight: 400; line-height: normal; text-align: center; text-transform: none; }
.services-review-viewport { height: 550px; margin-top: 42px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.services-review-viewport.is-dragging { cursor: grabbing; }
.services-review-track { display: flex; align-items: flex-start; gap: 30px; transition: transform .42s cubic-bezier(.25,.46,.45,.94); will-change: transform; }
.services-review-viewport.is-dragging .services-review-track { transition: none; }
.services-review-card { flex: 0 0 calc((100% - 30px)/2); min-height: 400px; padding: 37px 35px 47px; background: #f4f4f4; }
.services-review-card::before { content: "★★★★★"; display: block; margin-bottom: 5px; color: #f5bd00; font-size: 14px; line-height: 26px; letter-spacing: 2px; }
.services-review-card blockquote { margin: 0; color: #333; font-size: 16px; line-height: 26px; }
.services-review-card > div { display: flex; align-items: center; gap: 25px; margin-top: 12px; }
.services-review-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: contain; }
.services-review-card strong,
.services-review-card span { display: block; }
.services-review-card strong { color: var(--services-heading); font-size: 17px; line-height: 27px; }
.services-review-card span { font-size: 16px; line-height: 26px; }
.services-review-long { min-height: 502px; }

/* The whole revealed card keeps its reference hover lift. */
@media (max-width: 1199px) {
  .services-products-grid,
  .services-cloud-grid,
  .services-ecommerce-grid,
  .services-bi-grid { max-width: calc(100% - 40px); }
  .services-products-grid { grid-template-columns: 1fr 28% 28%; }
  .services-cloud-grid { grid-template-columns: 1fr 32% 1fr; gap: 25px; }
  .services-cloud-image { width: 100%; }
}

@media (max-width: 1024px) {
  .services-page .site-header { position: absolute; top: 0; right: 0; left: 0; background: #fff; }
  .services-page .site-header.is-sticky { position: fixed; }
  .services-page .site-header .logo-light { display: none; }
  .services-page .site-header .logo-dark { display: block; }
  .services-page .mobile-toggle span { background: #191919; }
  .services-hero { height: auto; min-height: 790px; }
  .services-hero-inner { padding: 80px 30px 55px; }
  .services-products { height: auto; padding: 70px 0; }
  .services-products-grid { grid-template-columns: 1fr 1fr; }
  .services-products-copy { grid-column: 1 / -1; padding: 0; text-align: center; }
  .services-products-copy h2 br { display: none; }
  .services-products-copy p { max-width: 720px; margin-right: auto; margin-left: auto; }
  .services-pesd { height: auto; min-height: 980px; }
  .services-pesd-grid { grid-template-columns: repeat(2, 1fr); }
  .services-icon-card,
  .services-icon-card:nth-child(4),
  .services-icon-card:nth-child(5) { grid-column: auto; }
  .services-icon-card:last-child { grid-column: 1 / -1; }
  .services-ecommerce-intro { height: auto; padding: 70px 0 45px; }
  .services-split-heading { grid-template-columns: 220px 3px 1fr; }
  .services-ecommerce-cards { height: auto; padding: 0 0 70px; }
  .services-ecommerce-grid { grid-template-columns: repeat(2, 1fr); }
  .services-cloud-intro { height: auto; padding: 70px 0 45px; }
  .services-cloud-list { height: auto; padding-bottom: 70px; }
  .services-cloud-grid { grid-template-columns: 1fr 1fr; }
  .services-cloud-image { grid-column: 1 / -1; grid-row: 1; width: 440px; height: auto; margin: 0 auto 30px; }
  .services-bi-intro { height: auto; padding: 70px 0 45px; }
  .services-bi-cards { height: auto; padding-bottom: 90px; }
  .services-bi-grid { grid-template-columns: repeat(3, 1fr); }
  .services-bi-card { height: auto; min-height: 505px; }
  .services-stats { height: auto; padding: 80px 0; }
  .services-stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .services-stat-grid article:nth-child(2) { border-right: 0; }
  .services-industries { height: auto; padding-bottom: 60px; }
  .services-industries img { width: min(960px, 100%); height: auto; }
}

@media (max-width: 767px) {
  .services-page .site-header,
  .services-page .site-header:not(.is-sticky) { background: #211d58; }
  .services-page .site-header .logo-light { display: block; }
  .services-page .site-header .logo-dark { display: none; }
  .services-page .mobile-toggle span { background: #fff; }
  .services-page .site-header.is-sticky { background: #fff; }
  .services-page .site-header.is-sticky .logo-light { display: none; }
  .services-page .site-header.is-sticky .logo-dark { display: block; }
  .services-page .site-header.is-sticky .mobile-toggle span { background: #191919; }
  .services-page .header-inner { min-height: 52px; }
  .services-page .header-logo img { width: 125px; height: auto; }
  .services-hero { min-height: 816px; }
  .services-hero-inner { padding: 70px 15px 40px; }
  .services-hero h1 { font-size: 38px; line-height: 50px; }
  .services-hero-inner > p { margin-top: 24px; font-size: 16px; line-height: 28px; }
  .services-anchor-grid { width: 340px; grid-template-columns: 1fr 1fr; row-gap: 30px; margin: 69px auto 0; }
  .services-anchor-grid a { min-height: 190px; }
  .services-anchor-grid a::after { display: none; }
  .services-products { margin-top: 52px; padding: 40px 0 64px; }
  .services-products-grid { width: 100%; max-width: none; grid-template-columns: 1fr; padding-right: 15px; padding-left: 15px; box-sizing: border-box; }
  .services-products-copy { grid-column: auto; text-align: left; }
  .services-products-copy h2 { width: auto; font-size: 32px; line-height: 42px; }
  .services-product-card { height: auto; min-height: 510px; }
  .services-pesd { min-height: 1415px; background-position: 65% center; }
  .services-pesd-inner { padding: 60px 15px; }
  .services-pesd h2 { font-size: 30px; line-height: 40px; }
  .services-pesd-grid { grid-template-columns: 1fr; row-gap: 42px; margin-top: 55px; }
  .services-icon-card:last-child { grid-column: auto; }
  .services-split-heading { display: block; padding: 0 20px; }
  .services-split-heading h2 { text-align: center; }
  .services-split-heading span { display: block; width: 85px; height: 3px; margin: 22px auto; }
  .services-split-heading p { text-align: center; }
  .services-ecommerce-intro { padding: 55px 0 30px; }
  .services-split-heading p { line-height: 22px; }
  .services-ecommerce-grid { grid-template-columns: 1fr; }
  .services-image-card { height: 500px; }
  .services-section-intro { padding-right: 20px; padding-left: 20px; }
  .services-section-intro h2 { font-size: 30px; line-height: 40px; }
  .services-cloud-grid { max-width: calc(100% - 30px); grid-template-columns: 1fr; }
  .services-cloud-image { grid-column: auto; width: 100%; }
  .services-cloud-column { gap: 30px; }
  .services-cloud-item { display: block; text-align: center; }
  .services-cloud-item img { margin-bottom: 16px; }
  .services-cloud-item p { line-height: 22px; }
  .services-bi-grid { grid-template-columns: 1fr; }
  .services-bi-card { min-height: 0; }
  .services-bi-card img { height: 220px; }
  .services-bi-card > div { padding: 20px 35px; }
  .services-stats { padding: 0; }
  .services-stat-grid { grid-template-columns: 1fr; }
  .services-stat-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid #e2e2e2; padding: 30px 20px; }
  .services-stat-grid article:last-child { border-bottom: 0; }
  .services-awards { height: auto; padding-bottom: 60px; }
  .services-award-grid { grid-template-columns: repeat(2, 1fr); gap: 35px; padding: 0 25px; }
  .services-award-grid img,
  .services-award-grid .services-microsoft-award { width: 140px; height: 140px; margin: auto; }
  .services-review-card { flex-basis: 100%; }
  .services-review-track { gap: 0; }
  .services-reviews { height: 1073px; }
  .services-review-viewport { height: 916px; margin-right: 15px; margin-left: 15px; }
}

@media (max-width: 480px) {
  .services-hero h1 { font-size: 34px; line-height: 44px; }
  .services-anchor-grid strong { font-size: 15px; }
  .services-products-copy h2 { font-size: 28px; line-height: 32px; }
  .services-image-card { height: 480px; }
  .services-cloud-intro { padding: 55px 20px 0; }
  .services-bi-intro { padding: 86px 20px 0; }
  .services-section-intro h2 { font-size: 28px; line-height: 35px; }
  .services-section-intro p { line-height: 22px; }
  .services-review-card { padding: 28px 24px 35px; }
  .services-review-card blockquote { font-size: 15px; line-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero-video { display: none; }
  .services-product-card > a,
  .services-bi-card a,
  .services-image-card h3,
  .services-review-track { transition: none; }
}
