﻿/* =============================================================================
   Services hub + detail + home services section — CNJ Body Shop
   Linked from Services/Index.cshtml, Details.cshtml, PageSection/Services.cshtml
   Dark theme lives here (do not rely on themes.css / site.css edits)
   ============================================================================= */

.services-hub .section-services--page,
.services-hub .services-guide,
.services-detail .page-content-block {
  position: relative;
  z-index: 1;
}

.ambient-page.services-hub .section-services--page {
  padding-top: var(--sp-section-y-sm, clamp(2.5rem, 5vw, 3.5rem));
  padding-bottom: var(--sp-section-y-md, clamp(3.5rem, 6vw, 5rem));
  background: transparent;
  margin-top: 0;
}

.section-services .section-header {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section-services .section-header .section-title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Home services highlights ────────────────────────────────────────────── */

.section-services--home {
  position: relative;
  overflow: hidden;
}

/* Tighter gap only between header text and cards/highlights below */
.section-services--home .section-header {
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.section-services--home .services-highlights {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section-services--home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(42%, 22rem);
  background:
    radial-gradient(ellipse 70% 80% at 15% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(249, 115, 22, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section-services--home > .container {
  position: relative;
  z-index: 1;
}

.services-highlights {
  list-style: none;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .services-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-highlights {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.services-highlights__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--sp-radius-lg, 1.25rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.services-highlights__item:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.services-highlights__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--sp-primary-dark, #0284c7);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.06));
}

.services-highlights__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.services-highlights__copy strong {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sp-text);
  line-height: 1.25;
}

.services-highlights__copy span {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--sp-text-muted);
}

.service-card-premium__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1510;
  background: linear-gradient(135deg, #d1b07a, #c5a06d 45%, #a8844f);
  box-shadow: 0 4px 12px rgba(168, 132, 79, 0.32);
  border: 1px solid rgba(120, 92, 52, 0.18);
}

.service-card-premium--featured {
  border-color: rgba(197, 160, 109, 0.42) !important;
}

.service-card-premium__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.35), transparent 45%),
    linear-gradient(145deg, #0f172a 0%, #1e3a5f 55%, #0c4a6e 100%);
}

.service-card-premium__media--icon .service-card-premium__icon,
.service-card-premium__icon--fallback {
  position: static;
  bottom: auto;
  left: auto;
  width: 4rem;
  height: 4rem;
  font-size: 1.75rem;
  border-radius: 1.1rem;
}

.service-card-premium__quote {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sp-primary-dark, #0284c7);
}

.services-section-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.services-section-footer__cta .bi {
  transition: transform 0.25s ease;
}

.services-section-footer__cta:hover .bi {
  transform: translateX(3px);
}

.section-services--page .section-header .section-subtitle {
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section-services--page .section-header .section-subtitle a {
  color: var(--sp-primary-dark, #0284c7);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 165, 233, 0.35);
  text-underline-offset: 0.18em;
}

.section-services--page .section-header .section-subtitle a:hover {
  color: var(--sp-primary);
  text-decoration-color: var(--sp-primary);
}

/* ── Catalog grid ────────────────────────────────────────────────────────── */

.services-catalog {
  align-items: stretch;
}

.services-catalog > [class*="col-"] {
  display: flex;
}

.services-catalog .service-card-premium {
  width: 100%;
}

/* ── Service cards ───────────────────────────────────────────────────────── */

.section-services .service-card-premium {
  background: var(--sp-white, #fff);
  border: 1px solid rgba(197, 160, 109, 0.28);
  border-radius: var(--sp-radius-xl, 2rem);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section-services .service-card-premium:hover {
  border-color: rgba(197, 160, 109, 0.55) !important;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(197, 160, 109, 0.18);
}

.section-services .service-card-premium__media {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 180px;
}

.section-services .service-card-premium__body {
  padding: 1.75rem 1.35rem 1.35rem;
  gap: 0.35rem;
}

.section-services .service-card-premium__title {
  font-family: var(--sp-font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--sp-text);
  margin-bottom: 0.4rem;
}

.section-services .service-card-premium__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--sp-text-muted);
  margin-bottom: 1rem;
}

.section-services .service-card-premium__footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding-top: 1rem;
  margin-top: auto;
}

.section-services .service-card-premium__price {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sp-primary-dark, #0284c7);
}

.section-services .service-card-premium__price small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.section-services .service-card-premium__footer .d-flex {
  width: 100%;
  gap: 0.5rem;
}

.section-services .service-card-premium__footer .btn-sp {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}

/* ── CTAs ────────────────────────────────────────────────────────────────── */

.services-hub__cta,
.services-section-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.section-services .cta-strip--featured,
.services-hub .cta-strip--featured,
.services-detail .cta-strip--featured,
.cta-strip--cnj,
html[data-site-theme="light"] .services-hub .cta-strip--cnj,
html[data-site-theme="light"] .ambient-page .cta-strip--cnj,
html[data-site-theme="light"] .ambient-page .cta-strip--featured {
  width: auto !important;
  max-width: none !important;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.section-services .cta-strip--featured .btn-sp,
.services-hub .cta-strip--featured .btn-sp,
.cta-strip--cnj .btn-sp,
.cta-strip--cnj .contact-actions__btn {
  min-height: 2.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px !important;
  font-family: var(--sp-font, Inter, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
  transform: none;
}

.section-services .cta-strip--featured .btn-sp:hover,
.services-hub .cta-strip--featured .btn-sp:hover,
.cta-strip--cnj .btn-sp:hover {
  transform: none;
  filter: none;
}

/* Prefer shared .cta-help button styles; keep legacy fallbacks only without .cta-help */
.cta-strip--cnj:not(:has(.cta-help)) .contact-actions__btn--call,
.cta-strip--featured:not(:has(.cta-help)) .contact-actions__btn--call {
  background: #fff !important;
  border: 1px solid rgba(168, 132, 79, 0.55) !important;
  color: #a8844f !important;
  box-shadow: none !important;
}

.cta-strip--cnj:not(:has(.cta-help)) .contact-actions__btn--call:hover,
.cta-strip--featured:not(:has(.cta-help)) .contact-actions__btn--call:hover {
  background: rgba(197, 160, 109, 0.08) !important;
  border-color: rgba(168, 132, 79, 0.75) !important;
  color: #8f7040 !important;
}

.cta-strip--cnj:not(:has(.cta-help)) .contact-actions__btn--wa,
.cta-strip--featured:not(:has(.cta-help)) .contact-actions__btn--wa {
  background: #fff !important;
  border: 1.5px solid #25D366 !important;
  color: #128C7E !important;
  box-shadow: none !important;
}

.cta-strip--cnj:not(:has(.cta-help)) .contact-actions__btn--wa:hover,
.cta-strip--featured:not(:has(.cta-help)) .contact-actions__btn--wa:hover {
  background: rgba(37, 211, 102, 0.1) !important;
  color: #0f766e !important;
}

.cta-strip--cnj:not(:has(.cta-help)) .contact-actions__btn--quote,
.cta-strip--featured:not(:has(.cta-help)) .contact-actions__btn--quote {
  background: linear-gradient(180deg, #d1b07a 0%, #c5a06d 48%, #a8844f 100%) !important;
  border: 1px solid rgba(120, 92, 52, 0.22) !important;
  color: #1a1510 !important;
  box-shadow: 0 8px 22px rgba(197, 160, 109, 0.35) !important;
}

.cta-strip--cnj:not(:has(.cta-help)) .contact-actions__btn--quote:hover,
.cta-strip--featured:not(:has(.cta-help)) .contact-actions__btn--quote:hover {
  color: #1a1510 !important;
  filter: brightness(1.03);
}

.cta-strip--cnj:has(.cta-help),
.cta-strip--featured:has(.cta-help) {
  display: block !important;
  width: 100% !important;
  max-width: 56rem !important;
}

/* ── Service guide (long-form SEO, kept visible) ─────────────────────────── */

.services-guide {
  padding-top: var(--sp-section-y-sm, clamp(2.5rem, 5vw, 3.5rem));
  padding-bottom: var(--sp-section-y-md, clamp(3.5rem, 6vw, 5rem));
}

.services-guide__header {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.services-guide__header .section-title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.services-guide__lead {
  margin: 0 auto 1.25rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--sp-text);
}

.services-guide__intro {
  text-align: left;
}

.services-guide__intro p {
  margin-bottom: 1rem;
  color: var(--sp-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.services-guide__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2rem;
  max-width: 48rem;
}

.services-guide__nav-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-text-muted);
  margin-right: 0.15rem;
}

.services-guide__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--sp-border, rgba(15, 23, 42, 0.08));
  background: var(--sp-glass-strong, rgba(255, 255, 255, 0.82));
  color: var(--sp-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--sp-transition, 0.35s ease), color var(--sp-transition, 0.35s ease), background var(--sp-transition, 0.35s ease);
}

.services-guide__nav a:hover {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
  background: var(--sp-primary-soft);
}

.services-guide__nav a:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

.services-guide__panel,
.services-guide__header {
  scroll-margin-top: calc(var(--sp-header-h, 72px) + 1rem);
}

.services-guide__panel {
  background: var(--sp-white, #fff);
  border: 1px solid var(--sp-border, rgba(15, 23, 42, 0.08));
  border-radius: var(--sp-radius-xl, 2rem);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.15rem);
  margin-bottom: 1.15rem;
}

.services-guide__panel:last-child {
  margin-bottom: 0;
}

.services-guide__title {
  font-family: var(--sp-font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--sp-text);
  margin: 0 0 1rem;
}

.services-guide .services-seo-block__h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--sp-text);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.services-guide .cms-content p {
  margin-bottom: 1rem;
  color: var(--sp-text-muted);
  font-size: 1.03125rem;
  line-height: 1.75;
}

.services-guide .cms-content p:last-child {
  margin-bottom: 0;
}

.services-guide .cms-content a {
  color: var(--sp-primary-dark, #0284c7);
  font-weight: 600;
}

.services-seo-list {
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.services-seo-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.5rem;
  color: var(--sp-text-muted);
  line-height: 1.65;
}

.services-seo-list li:last-child {
  margin-bottom: 0;
}

.services-seo-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--sp-primary);
  box-shadow: 0 0 0 4px var(--sp-primary-soft);
}

.services-guide__actions {
  margin: 1.35rem 0 0;
}

.services-guide .link-sp {
  color: var(--sp-primary-dark, #0284c7);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 165, 233, 0.35);
  text-underline-offset: 0.18em;
}

.services-guide .link-sp:hover {
  color: var(--sp-primary);
  text-decoration-color: var(--sp-primary);
}

/* ── Comparison table ────────────────────────────────────────────────────── */

.services-guide__table-wrap {
  margin-top: 0.25rem;
  border-radius: var(--sp-radius-lg, 1.5rem);
  border: 1px solid var(--sp-border, #e2e8f0);
  overflow: hidden;
}

.services-comparison-table {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--sp-text);
}

.services-comparison-table thead th {
  background: var(--sp-surface-2, #f1f5f9);
  color: var(--sp-text);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom-color: var(--sp-border, #e2e8f0);
  padding: 0.85rem 1rem;
}

.services-comparison-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: var(--sp-border, #e2e8f0);
  color: var(--sp-text-muted);
}

.services-comparison-table tbody tr:nth-child(even) td {
  background: rgba(241, 245, 249, 0.55);
}

.services-comparison-table td:first-child {
  font-weight: 700;
  color: var(--sp-text);
}

/* ── Guide FAQs ──────────────────────────────────────────────────────────── */

.services-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.services-faq-item {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--sp-border, #e2e8f0);
  border-radius: var(--sp-radius-lg, 1.5rem);
  background: var(--sp-surface-2, #f8fafc);
}

.services-faq-item__q {
  font-size: 1.03125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--sp-text);
  margin: 0 0 0.4rem;
}

.services-faq-item__a {
  color: var(--sp-text-muted);
  margin: 0;
  line-height: 1.65;
  font-size: 0.96875rem;
}

/* ── Service detail ──────────────────────────────────────────────────────── */

.services-detail__wrap {
  padding-top: var(--sp-section-y-sm, clamp(2.5rem, 5vw, 3.5rem));
  padding-bottom: var(--sp-section-y-md, clamp(3.5rem, 6vw, 5rem));
}

.services-detail__media {
  margin: 0 0 1.5rem;
  border-radius: var(--sp-radius-xl, 2rem);
  overflow: hidden;
  box-shadow: var(--sp-shadow, 0 8px 32px rgba(15, 23, 42, 0.08));
}

.services-detail__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.services-detail__copy {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.services-detail__inline-cta {
  margin-top: 1.5rem;
}

.services-detail__sidebar {
  padding: var(--sp-card-pad, clamp(1.5rem, 3vw, 2.25rem));
}

.services-detail__price {
  font-family: var(--sp-font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--sp-primary);
  margin: 0 0 0.15rem;
}

.services-detail__perks li {
  display: flex;
  align-items: flex-start;
  line-height: 1.45;
}

.services-detail__sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.services-detail__sidebar-actions .btn-sp {
  flex: 1 1 calc(50% - 0.6rem);
  min-width: 8.5rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .services-detail__sidebar {
    position: sticky;
    top: calc(var(--sp-header-h, 72px) + 1.25rem);
  }
}

/* ── Dark theme ──────────────────────────────────────────────────────────── */

html[data-site-theme="dark"] .section-services,
html[data-site-theme="dark"] .services-hub .section-services--page,
html[data-site-theme="dark"] .services-guide,
html[data-site-theme="dark"] .services-detail {
  background: transparent;
}

html[data-site-theme="dark"] .section-services .section-title,
html[data-site-theme="dark"] .services-guide__title,
html[data-site-theme="dark"] .services-guide__lead,
html[data-site-theme="dark"] .services-guide .services-seo-block__h3,
html[data-site-theme="dark"] .section-services .service-card-premium__title {
  color: var(--sp-text);
}

html[data-site-theme="dark"] .section-services--page .section-header .section-subtitle a,
html[data-site-theme="dark"] .services-guide .cms-content a,
html[data-site-theme="dark"] .services-guide .link-sp {
  color: var(--sp-primary);
  text-decoration-color: rgba(56, 189, 248, 0.4);
}

html[data-site-theme="dark"] .section-services .service-card-premium {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

html[data-site-theme="dark"] .services-highlights__item {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

html[data-site-theme="dark"] .services-highlights__copy strong {
  color: var(--sp-text);
}

html[data-site-theme="dark"] .services-highlights__icon {
  color: #7dd3fc;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.08));
}

html[data-site-theme="dark"] .section-services .service-card-premium:hover {
  border-color: rgba(197, 160, 109, 0.5);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(197, 160, 109, 0.22);
}

html[data-site-theme="dark"] .section-services .service-card-premium__price {
  color: var(--sp-primary);
}

html[data-site-theme="dark"] .section-services .cta-strip--featured,
html[data-site-theme="dark"] .services-hub .cta-strip--featured,
html[data-site-theme="dark"] .services-detail .cta-strip--featured,
html[data-site-theme="dark"] .section-services .cta-strip--featured:not(.cta-strip--inline),
html[data-site-theme="dark"] .services-hub .cta-strip--featured:not(.cta-strip--inline),
html[data-site-theme="dark"] .cta-strip--cnj {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-site-theme="dark"] .services-guide__panel,
html[data-site-theme="dark"] .services-guide__nav a {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-site-theme="dark"] .services-guide__nav a:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--sp-primary);
}

html[data-site-theme="dark"] .services-guide .cms-content p,
html[data-site-theme="dark"] .services-guide__intro p,
html[data-site-theme="dark"] .services-seo-list li,
html[data-site-theme="dark"] .services-faq-item__a {
  color: #cbd5e1;
}

html[data-site-theme="dark"] .services-guide__table-wrap {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-site-theme="dark"] .services-comparison-table {
  color: var(--sp-text);
  --bs-table-bg: transparent;
  --bs-table-color: var(--sp-text);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

html[data-site-theme="dark"] .services-comparison-table thead th {
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-site-theme="dark"] .services-comparison-table td {
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  background: transparent;
}

html[data-site-theme="dark"] .services-comparison-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}

html[data-site-theme="dark"] .services-comparison-table td:first-child {
  color: #f1f5f9;
}

html[data-site-theme="dark"] .services-faq-item {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-site-theme="dark"] .services-faq-item__q {
  color: #f1f5f9;
}

html[data-site-theme="dark"] .services-detail .service-detail-sidebar {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-site-theme="dark"] .services-detail__price {
  color: var(--sp-primary);
}

html[data-site-theme="dark"] .section-services .btn-sp-outline-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sp-text);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-site-theme="dark"] .section-services .btn-sp-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Mobile stacking ─────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .section-services .cta-strip--featured,
  .services-hub .cta-strip--featured,
  .cta-strip--cnj {
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    padding: 0;
    max-width: 20rem;
    gap: 0.5rem;
  }

  .section-services .cta-strip--featured .btn-sp,
  .services-hub .cta-strip--featured .btn-sp,
  .cta-strip--cnj .btn-sp,
  .services-detail .cta-strip--inline .btn-sp,
  .services-detail__sidebar-actions .btn-sp {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
  }

  .services-guide__header {
    text-align: left;
  }

  .services-guide__header .section-title {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .services-guide__nav {
    justify-content: flex-start;
  }

  .services-detail__inline-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  .services-comparison-table thead {
    display: none;
  }

  .services-comparison-table,
  .services-comparison-table tbody,
  .services-comparison-table tr,
  .services-comparison-table td {
    display: block;
    width: 100%;
  }

  .services-comparison-table tbody tr {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--sp-border, #e2e8f0);
  }

  html[data-site-theme="dark"] .services-comparison-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .services-comparison-table tbody tr:last-child {
    border-bottom: 0;
  }

  .services-comparison-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border: 0;
    background: transparent !important;
  }

  .services-comparison-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sp-text-muted);
    flex: 0 0 42%;
  }

  .services-comparison-table td:first-child {
    font-size: 1.03125rem;
    margin-bottom: 0.25rem;
  }

  .services-comparison-table td:first-child::before {
    display: none;
  }

  .services-guide__table-wrap {
    overflow: visible;
  }

  .services-guide__panel {
    padding: 1.25rem 1.1rem;
    border-radius: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .section-services .service-card-premium__body {
    padding: 1.5rem 1.15rem 1.15rem;
  }

  .section-services .service-card-premium__footer .d-flex {
    flex-direction: column;
  }

  .section-services .service-card-premium__footer .btn-sp {
    width: 100%;
  }

  .services-guide__nav-label {
    flex: 1 0 100%;
    margin-bottom: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-services .service-card-premium,
  .section-services .service-card-premium__media img,
  .services-guide__nav a {
    transition: none;
  }

  .section-services .service-card-premium:hover {
    transform: none;
  }
}

