/* =========================================================
   AD-VANCE SERVICES PAGE
   Complete replacement for services.css

   This stylesheet deliberately uses unique "services-"
   class names to prevent conflicts with styles.css.
========================================================= */


/* =========================================================
   BASE
========================================================= */

.services-page {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
}

.services-page *,
.services-page *::before,
.services-page *::after {
  box-sizing: border-box;
}

.services-main {
  overflow: visible;
}

.services-container {
  width: min(1160px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.services-kicker {
  margin: 0 0 12px;
  color: #a93f49;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-kicker-light {
  color: #ffd2d6;
}


/* =========================================================
   HERO
========================================================= */

.services-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 94px;
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(169, 63, 73, 0.12),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #eef7fc 0%,
      #ffffff 58%,
      #fff7f4 100%
    );
  border-bottom: 1px solid rgba(8, 79, 125, 0.1);
}

.services-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(8, 79, 125, 0.22),
      transparent
    );
}

.services-hero-inner {
  max-width: 900px;
  text-align: center;
}

.services-hero h1 {
  max-width: 880px;
  margin: 0 auto;
  color: #071a33;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.services-hero-description {
  max-width: 690px;
  margin: 22px auto 0;
  color: #626f82;
  font-size: 18px;
  line-height: 1.75;
}

.services-hero-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #0b6396;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(11, 99, 150, 0.22);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.services-hero-button:hover {
  transform: translateY(-2px);
  background: #084c76;
  color: #ffffff;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.services-introduction {
  padding: 82px 0;
  background: #ffffff;
}

.services-introduction-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(45px, 8vw, 95px);
  align-items: start;
}

.services-introduction h2 {
  max-width: 620px;
  margin: 0;
  color: #071a33;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.services-introduction-copy {
  padding-left: 34px;
  border-left: 2px solid rgba(11, 99, 150, 0.16);
}

.services-introduction-copy p {
  margin: 0 0 18px;
  color: #637084;
  font-size: 16px;
  line-height: 1.78;
}

.services-introduction-copy p:first-child {
  color: #172033;
  font-size: 18px;
  font-weight: 700;
}

.services-introduction-copy p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   BUILDER SECTION
========================================================= */

.services-builder-section {
  padding: 84px 0 96px;
  background:
    radial-gradient(
      circle at 92% 6%,
      rgba(169, 63, 73, 0.05),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #f4f8fb 0%,
      #ffffff 56%,
      #fff9f6 100%
    );
}

.services-builder-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: 55px;
  align-items: end;
  margin-bottom: 48px;
}

.services-builder-heading h2 {
  max-width: 690px;
  margin: 0;
  color: #071a33;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.services-builder-heading > p {
  margin: 0;
  color: #637084;
  font-size: 16px;
  line-height: 1.75;
}

.services-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: start;
}

.services-list {
  min-width: 0;
  display: grid;
  gap: 38px;
}


/* =========================================================
   CATEGORY
========================================================= */

.services-category {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.services-category-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(11, 99, 150, 0.15);
}

.services-category-number {
  color: #a93f49;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.services-category-heading p {
  margin: 0 0 3px;
  color: #778296;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-category-heading h2 {
  margin: 0;
  color: #071a33;
  font-size: clamp(26px, 3vw, 35px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.services-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 99, 150, 0.14);
  border-radius: 21px;
  background: #ffffff;
  box-shadow: 0 15px 38px rgba(7, 26, 51, 0.065);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.services-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 99, 150, 0.28);
  box-shadow: 0 22px 48px rgba(7, 26, 51, 0.1);
}

.services-card-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 23px 24px;
}

.services-card-title {
  min-width: 0;
  display: flex;
  gap: 17px;
  align-items: flex-start;
}

.services-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 14px;
  background: #e9f5fb;
  color: #0b6396;
  font-size: 16px;
  font-weight: 900;
}

.services-card-title h3 {
  margin: 0 0 6px;
  color: #071a33;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.services-card-title p {
  max-width: 610px;
  margin: 0;
  color: #657286;
  font-size: 15px;
  line-height: 1.62;
}


/* =========================================================
   SELECT CONTROL
========================================================= */

.services-select-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(11, 99, 150, 0.2);
  border-radius: 999px;
  background: #f5f9fc;
  color: #536075;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.services-select-control:hover {
  border-color: #0b6396;
  color: #0b6396;
}

.services-select-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
}

.services-checkbox {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 99, 150, 0.28);
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
  font-size: 11px;
  font-weight: 900;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.services-select-control input:checked + .services-checkbox {
  border-color: #0b6396;
  background: #0b6396;
  color: #ffffff;
}

.services-select-control input:checked
  ~ .services-select-label {
  color: #0b6396;
}

.services-select-control:focus-within {
  outline: 3px solid rgba(11, 99, 150, 0.2);
  outline-offset: 3px;
}


/* =========================================================
   DETAILS
========================================================= */

.services-details {
  margin: 0;
  border-top: 1px solid rgba(11, 99, 150, 0.1);
}

.services-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 12px 24px;
  color: #344158;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.services-details summary::-webkit-details-marker {
  display: none;
}

.services-details-symbol {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  border-radius: 50%;
  background: #edf6fb;
  color: #0b6396;
  font-size: 18px;
  font-weight: 500;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.services-details[open] .services-details-symbol {
  transform: rotate(45deg);
  background: #0b6396;
  color: #ffffff;
}

.services-details-body {
  padding: 4px 24px 24px;
}

.services-details-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-details-body li {
  position: relative;
  padding-left: 17px;
  color: #657286;
  font-size: 14px;
  line-height: 1.55;
}

.services-details-body li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a93f49;
}


/* =========================================================
   PACKAGE PANEL
========================================================= */

.services-package-panel {
  position: sticky;
  top: 105px;
  min-width: 0;
  padding: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 23px;
  background:
    radial-gradient(
      circle at 86% 8%,
      rgba(169, 63, 73, 0.26),
      transparent 29%
    ),
    linear-gradient(
      145deg,
      #071a33 0%,
      #0a4169 100%
    );
  color: #ffffff;
  box-shadow: 0 24px 58px rgba(7, 26, 51, 0.22);
}

.services-package-kicker {
  margin: 0 0 11px;
  color: #ffd2d6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-package-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.services-package-summary {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.services-package-divider {
  height: 1px;
  margin: 23px 0;
  background: rgba(255, 255, 255, 0.16);
}

.services-package-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.6;
}

.services-package-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 23px;
  padding: 13px 17px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #071a33;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.services-package-button:hover {
  transform: translateY(-2px);
  background: #edf7fc;
  color: #071a33;
}

.services-package-button.disabled-link {
  opacity: 0.52;
  pointer-events: none;
}


/* =========================================================
   PROCESS
========================================================= */

.services-process {
  padding: 88px 0;
  background:
    radial-gradient(
      circle at 84% 12%,
      rgba(169, 63, 73, 0.22),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #071a33 0%,
      #0a456f 62%,
      #0b6396 100%
    );
  color: #ffffff;
}

.services-process-heading {
  max-width: 760px;
  margin-bottom: 39px;
}

.services-process-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.services-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.services-process-grid article {
  min-width: 0;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.services-process-grid article > span {
  color: #ffd2d6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.services-process-grid h3 {
  margin: 54px 0 10px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
}

.services-process-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.68;
}


/* =========================================================
   FINAL CTA
========================================================= */

.services-final-cta {
  padding: 82px 0;
  background:
    linear-gradient(
      135deg,
      #050b16,
      #0a2a4b
    );
  color: #ffffff;
  text-align: center;
}

.services-final-cta-inner {
  max-width: 850px;
}

.services-final-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.services-final-cta p:not(.services-kicker) {
  max-width: 670px;
  margin: 19px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.72;
}

.services-final-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 27px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #071a33;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.services-final-button:hover {
  transform: translateY(-2px);
  background: #edf7fc;
  color: #071a33;
}


/* =========================================================
   FOOTER
========================================================= */

.services-page .services-footer {
  background:
    linear-gradient(
      135deg,
      #050915,
      #0a1224
    );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .services-introduction-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .services-introduction-copy {
    padding-top: 25px;
    padding-left: 0;
    border-top: 2px solid rgba(11, 99, 150, 0.16);
    border-left: 0;
  }

  .services-builder-layout {
    grid-template-columns: 1fr;
  }

  .services-package-panel {
    position: relative;
    top: auto;
  }

  .services-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 780px) {

  .services-builder-heading {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .services-card-header {
    align-items: flex-start;
  }

  .services-card-title {
    width: 100%;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .services-container {
    width: min(100% - 30px, 1160px);
  }

  .services-hero {
    padding: 62px 0 68px;
  }

  .services-hero h1 {
    font-size: clamp(40px, 12vw, 55px);
  }

  .services-hero-description {
    font-size: 16px;
  }

  .services-introduction,
  .services-builder-section,
  .services-process,
  .services-final-cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .services-card-header {
    flex-direction: column;
    padding: 21px;
  }

  .services-card-title {
    align-items: flex-start;
  }

  .services-select-control {
    width: 100%;
  }

  .services-details summary {
    padding-right: 21px;
    padding-left: 21px;
  }

  .services-details-body {
    padding-right: 21px;
    padding-left: 21px;
  }

  .services-details-body ul {
    grid-template-columns: 1fr;
  }

  .services-process-grid {
    grid-template-columns: 1fr;
  }

  .services-process-grid article {
    min-height: 0;
  }

  .services-process-grid h3 {
    margin-top: 32px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

  .services-card-title {
    display: block;
  }

  .services-card-icon {
    margin-bottom: 15px;
  }

  .services-package-panel {
    padding: 23px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .services-page *,
  .services-page *::before,
  .services-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
