/* ===== NOS SERVICES PAGE ===== */

.page-services main {
  min-height: auto;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 42%, #fff 78%);
}

.page-services .services-wrap {
  position: relative;
  overflow-x: hidden;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 0 24px;
}

.page-services .services-wrap::before,
.page-services .services-wrap::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
  background-image: radial-gradient(circle, rgba(26, 63, 191, .2) 1px, transparent 1px);
  background-size: 10px 10px;
}

.page-services .services-wrap::before {
  top: 24px;
  left: -32px;
}

.page-services .services-wrap::after {
  top: 100px;
  right: -48px;
}

/* —— Hero stage (car behind cards) —— */
.page-services .services-stage {
  position: relative;
  z-index: 1;
  overflow: visible;
  min-height: 320px;
  padding-bottom: 0;
  /* Car sizing — tuned per breakpoint (14" laptop = baseline) */
  --svc-car-width: min(64%, 720px);
  --svc-car-right: -3%;
  --svc-car-top: 0;
  --svc-car-fade-h: 48%;
  --svc-car-fade-mid: rgba(248, 251, 255, 0.55);
}

.page-services .services-hero {
  position: relative;
  z-index: 6;
  padding: 28px 40px 128px 52px;
  max-width: 560px;
}

.page-services .services-head {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding-top: 8px;
}

.page-services .services-head__title {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: clamp(40px, 4.8vw, 56px);
  font-weight: 900;
  font-style: italic;
  color: #0a1a3a;
  letter-spacing: -1.2px;
  line-height: 0.98;
  text-transform: uppercase;
}

.page-services .services-head__title span {
  color: #1a3fbf;
}

.page-services .services-head__swoosh {
  display: block;
  width: min(300px, 88%);
  height: 12px;
  margin: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 14' preserveAspectRatio='none'%3E%3Cpath d='M2 11 C80 2 160 12 318 6' stroke='%231a3fbf' stroke-width='5.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
}

.page-services .services-head__lead {
  margin: 0 0 4px;
  max-width: 460px;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 500;
  line-height: 1.6;
  color: #0a1a3a;
}

.page-services .services-hero__car {
  position: absolute;
  top: var(--svc-car-top);
  right: var(--svc-car-right);
  width: var(--svc-car-width);
  z-index: 1;
  overflow: visible;
  margin: 0;
  pointer-events: none;
  border: none;
  background: transparent;
}

.page-services .services-hero__car-slot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  border: none;
  background: transparent;
  line-height: 0;
}

.page-services .services-hero__car-slot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--svc-car-fade-h);
  background: linear-gradient(
    180deg,
    rgba(248, 251, 255, 0) 0%,
    var(--svc-car-fade-mid) 38%,
    #f8fbff 72%,
    #fff 100%
  );
  pointer-events: none;
  z-index: 2;
}

.page-services .services-hero__car-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  user-select: none;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  vertical-align: top;
  -webkit-mask-image: none;
  mask-image: none;
}

/* —— Service cards (desktop grid) —— */
.page-services .services-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  padding: 0 24px;
  margin: -88px auto 0;
}

.page-services .service-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  padding: 52px 14px 16px;
  min-height: 0;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.page-services .service-card:hover {
  border-color: rgba(26, 63, 191, .28);
  box-shadow: 0 10px 28px rgba(10, 26, 58, .1);
}

.page-services .service-card__thumb {
  position: relative;
  flex-shrink: 0;
}

.page-services .service-card__icon {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(26, 63, 191, .1);
  color: var(--color-blue);
  pointer-events: none;
}

.page-services .service-card__icon .service-glass-icon {
  display: block;
  width: 48px;
  height: 48px;
  color: var(--color-blue);
}

.page-services .service-card__icon-img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.page-services .service-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e8edf5;
  border: 1px solid #d8e0ec;
}

.page-services .service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-services .service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.page-services .service-card__title {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--color-navy);
}

.page-services .service-card__title span {
  display: block;
  color: var(--color-blue);
}

.page-services .service-card__title-dark {
  color: var(--color-navy);
}

.page-services .service-card__title-blue {
  color: var(--color-blue);
}

.page-services .service-card__copy {
  margin: 0 0 12px;
  flex: 1;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-muted);
  min-height: 3.6em;
}

.page-services .service-card__link {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  margin-top: auto;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-blue);
  text-decoration: none;
  transition: color .15s ease;
}

.page-services .service-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.page-services .service-card:hover .service-card__link {
  color: var(--color-blue-2);
}

.page-services .service-card__link-text {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.page-services .service-card__link .arrow {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  transform: translateY(1px);
  pointer-events: none;
}

.page-services .service-card__chevron {
  display: none;
  flex-shrink: 0;
  color: #9aa8c4;
  pointer-events: none;
  z-index: 2;
}

/* —— Bottom band (CTA + trust) — match home page —— */
.page-services .home-bottom-band {
  position: relative;
  z-index: 25;
  width: 100%;
  margin-top: 24px;
}

.page-services .services-cta--mobile {
  display: none;
}

.page-services .services-cta--desktop {
  display: block;
}

.page-services .home-cta-anchor {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: 0;
}

.page-services .home-cta-anchor .cta-strip {
  pointer-events: auto;
  margin: 0 auto;
}

.page-services .home-trust-bar {
  position: relative;
  z-index: 1;
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: linear-gradient(105deg, #00122e 0%, #001f53 52%, #001637 100%);
}

.page-services .home-trust-bar__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 9px 16px;
}

.page-services .home-trust-bar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.page-services .home-trust-bar__item + .home-trust-bar__item {
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.page-services .home-trust-bar__item .ui-icon {
  flex-shrink: 0;
  width: 26px !important;
  height: 26px !important;
}

/* —— Desktop (≥993px) — 14" MacBook baseline —— */
@media (min-width: 993px) {
  .page-services .services-stage {
    min-height: 360px;
    --svc-car-width: min(60%, 680px);
    --svc-car-right: -2%;
    --svc-car-top: 4px;
    --svc-car-fade-h: 46%;
  }

  .page-services .services-hero {
    padding: 32px 48px 140px 56px;
  }

  .page-services .services-head__title {
    font-size: clamp(44px, 4.2vw, 54px);
  }

  .page-services .services-head__lead {
    font-size: 16px;
  }

  .page-services .services-grid {
    max-width: 1120px;
    padding: 0 24px;
    gap: 20px;
    margin-top: -96px;
  }

  .page-services .service-card {
    padding: 48px 14px 16px;
  }

  .page-services .service-card__thumb {
    width: 100%;
    position: static;
  }

  .page-services .service-card__icon {
    top: -28px;
    width: 72px;
    height: 72px;
    background: #fff;
  }

  .page-services .service-card__icon .service-glass-icon,
  .page-services .service-card__icon-img {
    width: 42px;
    height: 42px;
  }

  .page-services .service-card__title {
    font-size: 15px;
  }

  .page-services .service-card__copy {
    font-size: 13px;
    min-height: 3.4em;
  }

  .page-services .service-card__link {
    font-size: 13px;
  }

  .page-services .home-cta-anchor {
    display: block;
  }

  .page-services .home-trust-bar {
    display: block;
  }

  .page-services .home-bottom-band {
    margin-top: 24px;
  }
}

/* 13" / small laptop — slightly smaller car, same fade logic */
@media (max-width: 1280px) and (min-width: 993px) {
  .page-services .services-stage {
    --svc-car-width: min(56%, 580px);
    --svc-car-right: -6%;
    --svc-car-fade-h: 48%;
  }

  .page-services .services-hero__car {
    transform: translateX(-20px);
  }

  .page-services .services-grid {
    gap: 16px;
    padding: 0 20px;
    margin-top: -92px;
  }

  .page-services .service-card {
    padding: 46px 12px 14px;
  }

  .page-services .service-card__copy {
    font-size: 12px;
    min-height: 3.5em;
  }
}

/* >14" laptops & desktops — larger car */
@media (min-width: 1513px) {
  .page-services .services-stage {
    --svc-car-width: min(66%, 860px);
    --svc-car-right: 0;
    --svc-car-top: 0;
    --svc-car-fade-h: 40%;
    --svc-car-fade-mid: rgba(248, 251, 255, 0.5);
  }
}

@media (min-width: 1728px) {
  .page-services .services-stage {
    --svc-car-width: min(68%, 980px);
    --svc-car-fade-h: 36%;
    --svc-car-fade-mid: rgba(248, 251, 255, 0.45);
  }
}

/* —— Tablet + mobile (≤992px) — match mobile mockup —— */
@media (max-width: 992px) {
  .page-services main {
    padding-bottom: 24px;
  }

  .page-services .services-wrap {
    padding-bottom: 8px;
  }

  .page-services .services-stage {
    overflow: hidden;
    min-height: 300px;
    --svc-car-width: 96%;
    --svc-car-right: -34%;
    --svc-car-top: -6px;
  }

  .page-services .services-hero {
    padding: 16px 14px 20px;
    max-width: none;
    position: relative;
    z-index: 4;
    min-height: 252px;
  }

  .page-services .services-head {
    position: relative;
    z-index: 3;
    max-width: 46%;
    padding-right: 0;
  }

  .page-services .services-head__title {
    font-size: clamp(31px, 8.6vw, 40px);
    letter-spacing: -0.7px;
    line-height: 0.95;
  }

  .page-services .services-head__swoosh {
    width: min(190px, 92%);
    height: 10px;
    margin-bottom: 12px;
  }

  .page-services .services-head__lead {
    font-size: 12.5px;
    line-height: 1.5;
    max-width: 100%;
  }

  .page-services .services-hero__car {
    position: absolute;
    top: var(--svc-car-top);
    right: var(--svc-car-right);
    width: var(--svc-car-width);
    left: auto;
    margin: 0;
    z-index: 1;
  }

  .page-services .services-hero__car-slot {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .page-services .services-hero__car-slot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(
      180deg,
      rgba(248, 251, 255, 0) 0%,
      rgba(248, 251, 255, .55) 45%,
      #f8fbff 78%,
      #fff 100%
    );
    pointer-events: none;
    z-index: 2;
  }

  .page-services .services-hero__car-slot::after {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 52%;
    height: 100%;
    background: linear-gradient(
      90deg,
      #f8fbff 0%,
      rgba(248, 251, 255, .95) 22%,
      rgba(248, 251, 255, .5) 52%,
      transparent 100%
    );
  }

  .page-services .services-hero__car-img {
    object-position: 72% top;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .15) 14%, #000 34%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .15) 14%, #000 34%, #000 100%);
  }

  .page-services .services-grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 14px 0;
    margin-top: 0;
  }

  .page-services .service-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 12px 36px 12px 10px;
    gap: 12px;
    border-radius: 14px;
    border: 1px solid #e4eaf3;
    box-shadow: 0 4px 16px rgba(10, 26, 58, .07);
  }

  .page-services .service-card__thumb {
    position: relative;
    flex: 0 0 114px;
    width: 114px;
    padding-left: 14px;
    margin-right: 2px;
  }

  .page-services .service-card__icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid #e8edf5;
    box-shadow: 0 4px 14px rgba(26, 63, 191, .1);
    z-index: 3;
  }

  .page-services .service-card__icon .service-glass-icon,
  .page-services .service-card__icon-img {
    width: 38px;
    height: 38px;
  }

  .page-services .service-card__media {
    flex: none;
    width: 100%;
    aspect-ratio: 1.08;
    margin: 0;
    border-radius: 10px;
    border: none;
    background: #eef2f8;
    overflow: hidden;
  }

  .page-services .service-card__body {
    flex: 1;
    min-width: 0;
    padding: 0;
  }

  .page-services .service-card__title {
    margin: 0 0 5px;
    font-size: 14.5px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.12;
  }

  .page-services .service-card__title-dark,
  .page-services .service-card__title-blue {
    display: block;
  }

  .page-services .service-card__title-dark {
    color: #0a1a3a;
  }

  .page-services .service-card__title-blue {
    color: #1a3fbf;
  }

  .page-services .service-card__copy {
    margin: 0 0 7px;
    font-size: 11.5px;
    font-weight: 500;
    min-height: 0;
    line-height: 1.42;
    color: #4a5a7a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .page-services .service-card__link {
    justify-content: flex-start;
    font-size: 11.5px;
    font-weight: 800;
  }

  .page-services .service-card__link-text {
    text-align: left;
  }

  .page-services .service-card__link .arrow {
    font-size: 12px;
  }

  .page-services .service-card__chevron {
    display: block;
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    width: 20px !important;
    height: 20px !important;
    color: #b0bdd4;
  }

  /* Bottom band — mobile/tablet CTA grid */
  .page-services .services-cta--desktop {
    display: none;
  }

  .page-services .services-cta--mobile {
    display: block;
  }

  .page-services .home-bottom-band {
    margin-top: 16px;
    padding: 0 14px;
    box-sizing: border-box;
  }

  .page-services .services-mobile-cta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid #d4dced;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(10, 26, 58, .08);
  }

  .page-services .services-mobile-cta__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 4px 4px;
    min-width: 0;
  }

  .page-services .services-mobile-cta__item + .services-mobile-cta__item {
    border-left: 1px solid #e2e8f2;
  }

  .page-services .services-mobile-cta__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--color-blue);
  }

  .page-services .services-mobile-cta__icon .ui-icon {
    width: 22px !important;
    height: 22px !important;
  }

  .page-services .services-mobile-cta__copy {
    min-width: 0;
    line-height: 1.15;
  }

  .page-services .services-mobile-cta__label {
    display: block;
    font-size: 8px;
    font-weight: 500;
    color: #5a6a8a;
    white-space: nowrap;
  }

  .page-services .services-mobile-cta__title {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    font-weight: 800;
    color: #0a1a3a;
    white-space: nowrap;
  }

  .page-services .services-mobile-cta__title--hours {
    margin-top: 0;
    font-size: 9px;
    color: #1a3fbf;
  }

  .page-services .services-mobile-cta__hours {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 800;
    color: #1a3fbf;
    white-space: nowrap;
  }

  .page-services .services-mobile-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #1a3fbf, #0047ff);
    box-shadow: 0 3px 10px rgba(26, 63, 191, .22);
    white-space: nowrap;
    max-width: 100%;
  }

  .page-services .services-mobile-cta__btn .ui-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
  }

  .page-services .services-mobile-cta__btn--phone {
    font-size: 7px;
    letter-spacing: 0;
    padding: 4px 6px;
  }

  .page-services .services-mobile-cta__item--hours {
    justify-content: center;
  }
}

/* Tablet (768–992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .page-services .services-stage {
    min-height: 340px;
    --svc-car-width: 88%;
    --svc-car-right: -28%;
    --svc-car-top: -4px;
  }

  .page-services .services-hero {
    min-height: 290px;
    padding: 22px 22px 24px;
  }

  .page-services .services-head {
    max-width: 44%;
  }

  .page-services .services-head__lead {
    font-size: 14px;
  }

  .page-services .services-grid {
    padding: 8px 20px 0;
    gap: 14px;
  }

  .page-services .service-card {
    padding: 14px 42px 14px 12px;
  }

  .page-services .service-card__thumb {
    flex: 0 0 128px;
    width: 128px;
    padding-left: 16px;
  }

  .page-services .service-card__icon {
    width: 68px;
    height: 68px;
    background: #fff;
  }

  .page-services .service-card__icon .service-glass-icon,
  .page-services .service-card__icon-img {
    width: 40px;
    height: 40px;
  }

  .page-services .service-card__title {
    font-size: 16px;
  }

  .page-services .service-card__copy {
    font-size: 13px;
  }

  .page-services .service-card__link {
    font-size: 12.5px;
  }

  .page-services .services-mobile-cta {
    padding: 12px 10px;
  }

  .page-services .services-mobile-cta__label {
    font-size: 9px;
  }

  .page-services .services-mobile-cta__title {
    font-size: 10px;
  }

  .page-services .services-mobile-cta__hours {
    font-size: 11px;
  }

  .page-services .services-mobile-cta__btn {
    min-height: 32px;
    font-size: 9px;
    padding: 5px 10px;
  }

  .page-services .services-mobile-cta__btn--phone {
    font-size: 8px;
  }

  .page-services .home-bottom-band {
    padding: 0 20px;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .page-services .services-stage {
    min-height: 268px;
    --svc-car-width: 102%;
    --svc-car-right: -38%;
    --svc-car-top: -8px;
  }

  .page-services .services-hero {
    min-height: 228px;
    padding: 14px 14px 16px;
  }

  .page-services .services-head {
    max-width: 48%;
  }
}

@media (max-width: 480px) {
  .page-services .services-stage {
    --svc-car-width: 108%;
    --svc-car-right: -42%;
  }

  .page-services .services-head {
    max-width: 46%;
  }

  .page-services .service-card__thumb {
    flex: 0 0 106px;
    width: 106px;
    padding-left: 12px;
  }

  .page-services .service-card__icon {
    width: 58px;
    height: 58px;
    background: #fff;
  }

  .page-services .service-card__icon .service-glass-icon,
  .page-services .service-card__icon-img {
    width: 34px;
    height: 34px;
  }

  .page-services .service-card__title {
    font-size: 13.5px;
  }

  .page-services .service-card__copy {
    font-size: 11px;
  }

  .page-services .services-mobile-cta__label {
    font-size: 7px;
  }

  .page-services .services-mobile-cta__title {
    font-size: 8px;
  }

  .page-services .services-mobile-cta__btn {
    font-size: 7px;
    min-height: 26px;
    padding: 3px 6px;
  }

  .page-services .services-mobile-cta__btn--phone {
    font-size: 6px;
  }
}
