﻿.service-inner-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(6, 12, 28, 0.92) 0%, rgba(6, 12, 28, 0.75) 45%, rgba(6, 12, 28, 0.46) 100%),
    var(--service-hero) center / cover no-repeat;
  padding: 120px 0 72px;
}

.service-inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 16%, rgba(212, 175, 55, 0.2), transparent 36%);
  pointer-events: none;
}

.service-inner-hero .container {
  position: relative;
  z-index: 2;
}

.service-inner-hero .eyebrow {
  margin-bottom: 14px;
}

.service-inner-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  margin-bottom: 12px;
}

.service-inner-hero .service-sub {
  color: rgba(255, 255, 255, 0.84);
  max-width: 64ch;
  margin: 0;
  line-height: 1.7;
}

.service-overview {
  padding: 66px 0;
  background:
    radial-gradient(circle at 7% 20%, rgba(212, 175, 55, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.service-overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.service-overview-card,
.service-process,
.service-cta-panel,
.service-inner-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-overview-card {
  padding: 26px;
  height: 100%;
}

.service-overview-card h2,
.service-process h2,
.service-cta-panel h2,
.service-list-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.service-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

.service-checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-checklist li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.16);
  font-weight: 600;
  color: #3f3b2e;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.service-overview-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.08);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  height: 100%;
}

.service-overview-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-list-section {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 24%),
    radial-gradient(circle at 100% 20%, rgba(212, 175, 55, 0.16), transparent 22%),
    linear-gradient(180deg, #f6fbfb 0%, #ffffff 48%, #f8fafc 100%);
}

.service-list-section::before {
  content: "";
  position: absolute;
  inset: 40px auto 40px 50%;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.54));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.05);
  pointer-events: none;
}

.service-list-section .container {
  position: relative;
  z-index: 1;
}

.service-treatment-layout {
  display: grid;
  gap: 28px;
}

.service-treatment-intro {
  margin-bottom: 0;
}

.service-treatment-intro > div {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.service-treatment-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.08);
}

.service-treatment-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f2d77b);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.14);
}

.service-treatment-intro h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.service-treatment-title-prefix,
.service-treatment-title-main {
  display: block;
}

.service-treatment-title-prefix {
  color: inherit;
}

.service-treatment-title-main {
  color: inherit;
}

.service-treatment-intro p {
  margin: 0;
  max-width: 62ch;
  color: #5f6b7a;
  line-height: 1.7;
}

.service-treatment-track {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.service-treatment-stack {
  counter-reset: treatment-card;
  display: grid;
  gap: 18px;
}

.service-treatment-sidebar {
  position: sticky;
  top: 100px;
}

.service-inner-card {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 24px 24px 20px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 250, 0.98)),
    #ffffff;
  overflow: hidden;
}

.service-inner-card::before {
  counter-increment: treatment-card;
  content: counter(treatment-card, decimal-leading-zero);
  position: relative;
  grid-row: 1 / span 2;
  width: 74px;
  min-width: 74px;
  aspect-ratio: 1;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0f172a;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.94), rgba(248, 229, 149, 0.9)),
    #d4af37;
  box-shadow: 0 18px 34px rgba(212, 175, 55, 0.24);
}

.service-inner-card::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.8), rgba(212, 175, 55, 0.45));
  z-index: -1;
}

.service-inner-card:nth-child(even) {
  margin-left: 34px;
}

.service-inner-card:nth-child(3n + 2) {
  background:
    linear-gradient(145deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.service-inner-card:nth-child(3n + 3) {
  background:
    linear-gradient(145deg, rgba(252, 249, 241, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.service-inner-card h3 {
  grid-column: 2;
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0 0 8px;
  padding-right: 24px;
  font-size: 1.22rem;
  line-height: 1.28;
}

.service-inner-card h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.95), rgba(15, 118, 110, 0.1));
}

.service-inner-card p {
  grid-column: 2;
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 46ch;
  color: #586474;
  line-height: 1.8;
}

.service-process {
  position: relative;
  margin-top: 0;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #132238 100%);
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: #e2e8f0;
}

.service-process::before {
  content: "How We Work";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-process h2 {
  color: #ffffff;
  margin-bottom: 18px;
}

.service-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(226, 232, 240, 0.86);
  display: grid;
  gap: 14px;
  counter-reset: service-step;
}

.service-steps li {
  counter-increment: service-step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-steps li::before {
  content: counter(service-step);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.96), rgba(244, 227, 145, 0.84));
  color: #0f172a;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.service-cta {
  padding: 0 0 72px;
}

.service-cta-panel {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(140deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.04));
}

.service-cta-panel p {
  margin: 0;
  color: var(--muted);
}

.service-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (hover: hover) and (pointer: fine) {
  .service-overview-card:hover,
  .service-process:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 24px 56px rgba(2, 6, 23, 0.11);
  }

  .service-inner-card:hover {
    transform: translateX(-10px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 24px 56px rgba(2, 6, 23, 0.11);
  }

  .service-inner-card:hover::before {
    box-shadow: 0 18px 34px rgba(212, 175, 55, 0.34);
  }

  .service-overview-media:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 64px rgba(2, 6, 23, 0.16);
  }

  .service-overview-media:hover img {
    transform: scale(1.05);
  }

  .service-checklist li:hover {
    transform: translateX(4px);
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.3);
  }

  .service-steps li:hover {
    transform: translateX(2px);
    color: inherit;
  }

  .service-steps li:hover::before {
    opacity: 1;
  }

  .service-cta-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.38);
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.13);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-overview-card,
  .service-process,
  .service-cta-panel,
  .service-inner-card,
  .service-overview-media,
  .service-overview-media img,
  .service-checklist li,
  .service-steps li {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .service-overview-grid,
  .service-treatment-track {
    grid-template-columns: 1fr;
  }

  .service-treatment-sidebar {
    position: static;
  }

  .service-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-inner-hero {
    min-height: auto;
    padding: 96px 0 56px;
  }
}

@media (max-width: 768px) {
  .service-list-section,
  .service-overview,
  .service-cta {
    padding: 44px 0;
  }

  .service-list-section::before {
    inset: 20px 12px;
    width: auto;
    transform: none;
    border-radius: 28px;
  }

  .service-overview-media img {
    min-height: 220px;
  }

  .service-overview-card,
  .service-process,
  .service-inner-card,
  .service-cta-panel {
    padding: 18px;
  }

  .service-inner-card {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .service-inner-card::before {
    width: 58px;
    min-width: 58px;
    border-radius: 18px;
    font-size: 0.92rem;
  }

  .service-inner-card::after {
    width: 100%;
    height: 6px;
    inset: auto 0 0 0;
  }

  .service-inner-card:nth-child(even) {
    margin-left: 0;
  }

  .service-treatment-intro h2,
  .service-inner-card h3 {
    grid-column: auto;
    padding-right: 0;
    font-size: 1.06rem;
  }

  .service-inner-card p {
    grid-column: auto;
    max-width: none;
  }

  .service-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .service-steps li::before {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .service-cta-actions .btn,
  .service-cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
