/* ==========================================================================
   SERVICE DETAIL PAGE
   ==========================================================================
   Purpose:
   - Styles only the Consulting & Advisory / Service Detail content
   - Does NOT redefine the global header
   - Does NOT redefine the global footer
   - Does NOT reposition the global header
   - Does NOT disable global scroll progress
   - Does NOT disable the global back-to-top button

   Global ownership:
   - Header: main.js + styles.css + laptop.css
   - Footer: main.js + styles.css + laptop.css
   - Global interactions: main.js

   Service-detail ownership:
   - Hero
   - Breadcrumbs
   - Main content layout
   - Sidebar
   - Article
   - Benefits
   - Check lists
   - Service CTA
   - Service-specific floating toolbar
   ========================================================================== */


/* ==========================================================================
   SERVICE DETAIL PAGE VARIABLES
   ========================================================================== */

.service-detail-page {
  --detail-content: 875px;
  --detail-ink: #10202b;
  --detail-muted: #65717a;
  --detail-green: #07c35b;
  --detail-light: #f7f8f9;
  --detail-border: #e3e7e9;
  --detail-dark: #10202b;
}


/* ==========================================================================
   SERVICE DETAIL HERO
   ========================================================================== */

.service-detail-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background:
          linear-gradient(
                  90deg,
                  rgba(5, 25, 37, .96) 0%,
                  rgba(5, 31, 43, .86) 50%,
                  rgba(3, 23, 35, .84) 100%
          ),
          url("../images/consultation-1.png") center 56% / cover no-repeat;
}

.service-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background:
          radial-gradient(
                  circle at 48% 31%,
                  rgba(7, 195, 91, .22),
                  transparent 23%
          ),
          repeating-linear-gradient(
                  90deg,
                  transparent 0 63px,
                  rgba(255, 255, 255, .065) 64px,
                  transparent 65px
          );
}

.service-detail-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  left: 40.5%;
  bottom: -206px;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
          radial-gradient(
                  circle,
                  rgba(7, 195, 91, .16) 0%,
                  rgba(7, 195, 91, .05) 45%,
                  transparent 72%
          );
}

.service-detail-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--detail-content));
  margin-inline: auto;
  padding-top: 105px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 800;
}

.service-detail-breadcrumbs {
  width: fit-content;
  min-height: 34px;
  margin-top: 22px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .68rem;
  line-height: 1;
}

.service-detail-breadcrumbs a {
  color: #fff;
  transition: color .3s ease;
}

.service-detail-breadcrumbs a:hover {
  color: var(--detail-green);
}

.service-detail-breadcrumbs span {
  color: rgba(255, 255, 255, .45);
}


/* ==========================================================================
   SERVICE DETAIL MAIN
   ========================================================================== */

.service-detail-main {
  padding: 105px 0 105px;
  background: #fff;
}

.service-detail-layout {
  width: min(calc(100% - 48px), var(--detail-content));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}


/* ==========================================================================
   SERVICE DETAIL SIDEBAR
   ========================================================================== */

.service-detail-sidebar {
  min-width: 0;
}

.service-sidebar-panel {
  padding: 25px 21px;
  background: var(--detail-light);
  border: 1px solid rgba(16, 32, 43, .05);
}

.service-sidebar-panel h3 {
  margin: 0 0 18px;
  color: var(--detail-ink);
  font-size: .9rem;
  line-height: 1.25;
  font-weight: 800;
}

.service-sidebar-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-sidebar-panel li {
  border-bottom: 1px solid var(--detail-border);
}

.service-sidebar-panel li:last-child {
  border-bottom: 0;
}

.service-sidebar-panel a {
  min-height: 43px;
  padding: 11px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--detail-muted);
  font-size: .66rem;
  line-height: 1.35;
  transition:
          color .3s ease,
          padding-left .3s ease;
}

.service-sidebar-panel a::after {
  content: "↗";
  color: var(--detail-green);
  font-size: .75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition:
          opacity .3s ease,
          transform .3s ease;
}

.service-sidebar-panel a:hover,
.service-sidebar-panel a.is-active {
  color: var(--detail-ink);
  padding-left: 5px;
}

.service-sidebar-panel a:hover::after,
.service-sidebar-panel a.is-active::after {
  opacity: 1;
  transform: translateX(0);
}


/* ==========================================================================
   SERVICE SIDEBAR CTA
   ========================================================================== */

.service-sidebar-cta {
  position: relative;
  min-height: 338px;
  margin-top: 22px;
  padding: 27px 21px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background:
          linear-gradient(
                  180deg,
                  rgba(5, 25, 37, .25),
                  rgba(5, 25, 37, .92)
          ),
          url("../images/service-03.jpg") center / cover no-repeat;
}

.service-sidebar-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
          linear-gradient(
                  135deg,
                  rgba(7, 195, 91, .15),
                  transparent 45%
          );
}

.service-sidebar-cta > * {
  position: relative;
  z-index: 1;
}

.service-sidebar-cta h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.service-sidebar-cta p {
  margin: 0 0 19px;
  color: rgba(255, 255, 255, .75);
  font-size: .64rem;
  line-height: 1.65;
}


/* ==========================================================================
   SERVICE DETAIL ARTICLE
   ========================================================================== */

.service-detail-article {
  min-width: 0;
}

.service-detail-cover {
  position: relative;
  margin-bottom: 34px;
  overflow: hidden;
  background: #edf0f1;
  box-shadow: none;
}

.service-detail-cover img {
  width: 100%;
  height: 330px;
  display: block;
  object-fit: cover;
}

.service-detail-copy {
  max-width: 100%;
}

.service-detail-copy .eyebrow {
  margin-bottom: 11px;
}

.service-detail-copy h2 {
  margin: 0 0 17px;
  color: var(--detail-ink);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 800;
}

.service-detail-copy p {
  margin: 0 0 17px;
  color: var(--detail-muted);
  font-size: .82rem;
  line-height: 1.78;
}

.service-detail-copy p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   SERVICE CHECK GRID
   ========================================================================== */

.service-check-grid {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.service-check {
  position: relative;
  padding-left: 24px;
  color: var(--detail-ink);
  font-size: .68rem;
  line-height: 1.5;
  font-weight: 600;
}

.service-check::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--detail-green);
  font-size: .56rem;
  font-weight: 800;
}


/* ==========================================================================
   SERVICE BENEFITS
   ========================================================================== */

.service-benefit-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.service-benefit {
  min-width: 0;
  padding-bottom: 10px;
}

.service-benefit-icon {
  width: 43px;
  height: 43px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  color: var(--detail-green);
  border: 1px solid rgba(7, 195, 91, .22);
  border-radius: 50%;
  background: rgba(7, 195, 91, .06);
}

.service-benefit-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-benefit h3 {
  margin: 0 0 9px;
  color: var(--detail-ink);
  font-size: .96rem;
  line-height: 1.25;
  font-weight: 800;
}

.service-benefit p {
  margin: 0;
  color: var(--detail-muted);
  font-size: .68rem;
  line-height: 1.7;
}


/* ==========================================================================
   SERVICE DETAIL CONTENT SECTIONS
   ========================================================================== */

.service-detail-section {
  margin-top: 48px;
}

.service-detail-section + .service-detail-section {
  margin-top: 55px;
}

.service-detail-section h2 {
  margin: 0 0 16px;
  color: var(--detail-ink);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 800;
}

.service-detail-section h3 {
  margin: 25px 0 10px;
  color: var(--detail-ink);
  font-size: .95rem;
  line-height: 1.3;
  font-weight: 800;
}

.service-detail-section p {
  margin: 0 0 16px;
  color: var(--detail-muted);
  font-size: .74rem;
  line-height: 1.75;
}


/* ==========================================================================
   SERVICE DETAIL LIST
   ========================================================================== */

.service-detail-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  color: var(--detail-muted);
  font-size: .72rem;
  line-height: 1.65;
}

.service-detail-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--detail-green);
  font-size: 1.1rem;
  font-weight: 800;
}


/* ==========================================================================
   SERVICE DETAIL CTA
   ========================================================================== */

.service-detail-cta {
  position: relative;
  margin-top: 55px;
  padding: 36px;
  overflow: hidden;
  color: #fff;
  background: var(--detail-dark);
}

.service-detail-cta::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: -100px;
  border-radius: 50%;
  background:
          radial-gradient(
                  circle,
                  rgba(7, 195, 91, .25),
                  transparent 70%
          );
  pointer-events: none;
}

.service-detail-cta > * {
  position: relative;
  z-index: 1;
}

.service-detail-cta h2 {
  max-width: 600px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 800;
}

.service-detail-cta p {
  max-width: 600px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  line-height: 1.7;
}


/* ==========================================================================
   SERVICE DETAIL DEMO TOOLBAR
   ==========================================================================

   This is service-page-specific and is intentionally retained.
   It is NOT the global header or footer.
   ========================================================================== */

.service-detail-demo-toolbar {
  position: fixed;
  right: 0;
  top: 40%;
  z-index: 800;
  display: grid;
  box-shadow: 0 12px 24px rgba(5, 20, 29, .22);
}

.service-detail-demo-toolbar a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--detail-green);
  font-size: .72rem;
  transition:
          transform .45s var(--ease-premium),
          background .35s ease;
}

.service-detail-demo-toolbar a + a {
  background: #10202b;
}

.service-detail-demo-toolbar a:hover {
  transform: translateX(-6px);
}


/* ==========================================================================
   SERVICE DETAIL HOVER EFFECTS
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

  .service-benefit {
    transition: transform .55s var(--ease-premium);
  }

  .service-benefit:hover {
    transform: translateY(-5px);
  }

  .service-benefit:hover .service-benefit-icon {
    animation: serviceIconFloat .65s var(--ease-premium);
  }

}

@keyframes serviceIconFloat {
  50% {
    transform: translateY(-5px) rotate(-2deg);
  }
}


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

@media (max-width: 980px) {

  .service-detail-layout {
    width: min(calc(100% - 40px), 900px);
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 28px;
  }

  .service-detail-hero-content {
    width: min(calc(100% - 40px), 900px);
  }

  .service-detail-main {
    padding: 80px 0 85px;
  }

  .service-detail-cover img {
    height: 260px;
  }

  .service-benefit-grid {
    gap: 18px;
  }

  .service-detail-demo-toolbar {
    top: 126px;
  }

}


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

@media (max-width: 760px) {

  .service-detail-page .container,
  .service-detail-hero-content,
  .service-detail-layout {
    width: min(calc(100% - 32px), 560px);
  }

  .service-detail-hero {
    min-height: 270px;
  }

  .service-detail-hero-content {
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .service-detail-main {
    padding: 58px 0 72px;
  }

  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .service-detail-sidebar {
    order: 2;
  }

  .service-detail-article {
    order: 1;
  }

  .service-detail-cover img {
    height: min(54vw, 300px);
  }

  .service-benefit-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-benefit {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--detail-border);
  }

  .service-benefit:last-child {
    border-bottom: 0;
  }

  .service-check-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar-cta {
    min-height: 300px;
  }

  .service-detail-demo-toolbar {
    display: none;
  }

}


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

@media (max-width: 460px) {

  .service-detail-hero h1 {
    font-size: 2.3rem;
  }

  .service-detail-breadcrumbs {
    font-size: .5rem;
  }

  .service-detail-cover img {
    height: 230px;
  }

  .service-sidebar-panel {
    padding: 19px 16px;
  }

  .service-detail-cta {
    padding: 28px 22px;
  }

}


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

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

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

}