.services-page {
  background: #ffffff;
}

/* =========================
   HERO
========================= */
.services-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #081a35;
}

.services-hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../img/services-hero.jpg") center center / cover no-repeat,
    linear-gradient(135deg, #0c2347 0%, #081a35 100%);
  transform: scale(1.05);
  will-change: transform;
}

.services-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 14, 31, 0.9) 0%, rgba(4, 14, 31, 0.66) 45%, rgba(4, 14, 31, 0.54) 100%),
    radial-gradient(700px 420px at 22% 24%, rgba(212, 166, 42, 0.14), transparent 60%);
}

.services-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 400px);
  gap: 54px;
  align-items: center;
  padding: 92px 0;
}

.services-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.9rem, 6vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 11ch;
}

.services-hero-copy h1 span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.services-hero-text {
  margin: 24px 0 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.services-hero-panel {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
}

.services-panel-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffe39a;
  background: rgba(212, 166, 42, 0.14);
  border: 1px solid rgba(212, 166, 42, 0.2);
}

.services-panel-list {
  display: grid;
  gap: 14px;
}

.services-panel-list article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.services-panel-list strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 1rem;
}

.services-panel-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================
   SECTION NAV
========================= */
.services-anchor-strip {
  position: relative;
  z-index: 20;
  margin-top: -34px;
}

.services-anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.services-anchor-nav a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.services-anchor-nav a:hover {
  background: rgba(9, 42, 87, 0.08);
}

.services-anchor-nav a.is-current {
  background: var(--navy);
  color: #ffffff;
}

/* =========================
   SUMMARY
========================= */
.services-summary {
  padding-top: 128px;
  background:
    radial-gradient(680px 320px at 100% 0%, rgba(212, 166, 42, 0.08), transparent 60%),
    #ffffff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.summary-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(to bottom, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.summary-card span,
.service-row-no,
.compliance-card-service span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: rgba(13, 59, 122, 0.08);
  color: var(--blue);
}

.summary-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   SERVICES LIST
========================= */
.services-list {
  background: #ffffff;
}

.service-stack {
  display: grid;
  gap: 22px;
}

.service-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(to bottom, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.service-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 59, 122, 0.12);
}

.service-row-feature {
  background:
    radial-gradient(260px 140px at 100% 0%, rgba(212, 166, 42, 0.12), transparent 60%),
    linear-gradient(to bottom, #ffffff 0%, #fbfdff 100%);
}

.service-row-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.service-row-label {
  margin: 0;
  color: #647084;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-row-main h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.service-row-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.service-row-main small {
  display: block;
  margin-top: 14px;
  color: #7b8697;
}

.service-row-side {
  padding-left: 24px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.service-row-side h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-row-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-row-side li {
  position: relative;
  padding-left: 16px;
  color: #5d6878;
  line-height: 1.55;
}

.service-row-side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(212, 166, 42, 0.46);
  border: 1px solid rgba(212, 166, 42, 0.4);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
}

.text-link:hover {
  color: var(--navy);
}

/* =========================
   PROCESS
========================= */
.services-process {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 440px at 16% 12%, rgba(212, 166, 42, 0.12), transparent 60%),
    radial-gradient(760px 420px at 84% 26%, rgba(13, 59, 122, 0.28), transparent 60%),
    linear-gradient(to bottom, #07142a 0%, #081b38 100%);
}

.process-grid-services {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.process-copy-services h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.process-timeline-services {
  position: relative;
  display: grid;
  gap: 18px;
}

.process-timeline-services::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(212, 166, 42, 0.08),
    rgba(212, 166, 42, 0.6),
    rgba(13, 59, 122, 0.5),
    rgba(212, 166, 42, 0.08)
  );
}

.process-step-service {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.process-step-service-no {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 166, 42, 0.2) 0%, rgba(13, 59, 122, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.process-step-service-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.process-step-service:hover .process-step-service-card {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 166, 42, 0.2);
}

.process-step-service-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.15rem;
}

.process-step-service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

/* =========================
   COMPLIANCE
========================= */
.services-compliance {
  background: #07142a;
}

.services-compliance .section-intro h2 {
  color: #ffffff;
  max-width: 14ch;
}

.compliance-grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.compliance-card-service {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.compliance-card-service:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 166, 42, 0.18);
}

.compliance-card-service span {
  background: rgba(212, 166, 42, 0.12);
  color: #ffe39a;
}

.compliance-card-service h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.15rem;
}

.compliance-card-service p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

/* =========================
   CLOSING
========================= */
.services-closing {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #081a35;
}

.services-closing-bg {
  position: absolute;
  inset: 0;
  background:
    url("../img/services-close.jpg") center center / cover no-repeat,
    linear-gradient(135deg, #0c2347 0%, #081a35 100%);
  transform: scale(1.04);
  will-change: transform;
}

.services-closing-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 14, 31, 0.84) 0%, rgba(4, 14, 31, 0.66) 48%, rgba(4, 14, 31, 0.54) 100%),
    radial-gradient(700px 420px at 20% 24%, rgba(212, 166, 42, 0.12), transparent 60%);
}

.services-closing-wrap {
  position: relative;
  z-index: 2;
  padding: 84px 0;
}

.services-closing-card {
  max-width: 760px;
  padding: 38px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.services-closing-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.services-closing-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 56ch;
  line-height: 1.8;
}

.services-closing-card small {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.58);
}

.services-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .services-hero-grid,
  .process-grid-services {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-row {
    grid-template-columns: 140px 1fr;
  }

  .service-row-side {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .compliance-grid-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-anchor-strip {
    margin-top: -24px;
  }
}

@media (max-width: 900px) {
  .services-hero,
  .services-closing {
    min-height: auto;
  }

  .services-hero-grid,
  .services-closing-wrap {
    padding: 74px 0;
  }

  .services-anchor-nav {
    width: 100%;
    border-radius: 24px;
    justify-content: center;
  }

  .services-hero-copy h1,
  .process-copy-services h2,
  .services-closing-card h2,
  .services-compliance .section-intro h2 {
    max-width: none;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .service-row-meta {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
  }

  .service-row-label {
    align-self: center;
  }
}

@media (max-width: 720px) {
  .summary-grid,
  .compliance-grid-services {
    grid-template-columns: 1fr;
  }

  .services-hero-actions,
  .services-closing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .process-step-service {
    grid-template-columns: 56px 1fr;
  }

  .process-timeline-services::before {
    left: 21px;
  }

  .services-summary {
    padding-top: 110px;
  }

  .services-closing-card {
    padding: 28px 22px;
  }

  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}