/* ==========================================================================
   Services template (tpl-services.php) — layout, sidebar tabs, role/product
   cards. Shared primitives (buttons, cards, typography, eyebrow, chip) come
   from global.css / design-system.css; this file only adds what's specific
   to this page.
   ========================================================================== */

.services-static svg {
  flex-shrink: 0;
}

/* Hero now comes from template-parts/page-hero.php (see .page-hero* in
   global.css) so it can be reused on any page, not just this one. */

/* ---------- Body: sidebar + panels ---------- */
.sv-body {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.sv-body-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: 5rem;
  max-width: 90%;
  margin-left: 0;
  padding-left: 0;
}

.sv-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--ds-header-h, 88px) + 1.5rem);
}

.sv-sidebar-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  padding: 1.25rem;
  border-radius: 10px;
  border: none;
  border-bottom: 1px solid var(--hs-border-light, rgba(10, 21, 38, 0.08));
  background: none;
  cursor: pointer;
  font: inherit;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.sv-sidebar-item:last-child {
  border-bottom: none;
}

.sv-sidebar-eyebrow {
  color: var(--Main-Color-Sub-text, #8d8d8e);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 155%; /* 21.7px */
}

.sv-sidebar-title {
  color: var(--Main-Color-Main-Text, #231f20);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 155%; /* 27.9px */
}

.sv-sidebar-item.is-active {
  background: rgba(49, 170, 236, 0.1);
  border-radius: 2px;
  border-bottom-color: transparent;
}

.sv-sidebar-item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  border-bottom: 4px solid var(--Main-Color-Main-Color, #31aaec);
}

.sv-sidebar-item.is-active .sv-sidebar-eyebrow,
.sv-sidebar-item.is-active .sv-sidebar-title {
  color: var(--Main-Color-Main-Color, #31aaec);
}

.sv-panel {
  display: none;
}

.sv-panel.is-active {
  display: block;
}

.sv-panel-heading {
  color: var(--Main-Color-Main-Text, #231f20);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 135%; /* 43.2px */
}

.sv-panel-lead {
  color: var(--Main-Color-Sub-text, #8d8d8e);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 155%; /* 27.9px */
  margin-top: 1rem;
}

.sv-section-label {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
  color: var(--Main-Color-Main-Text, #231f20);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 155%;
  text-transform: uppercase;
}

.sv-divider {
  margin-top: 2rem;
  margin-bottom: 2rem;
  height: 1px;
  background: #f1f5f9;
}

/* ---------- Stat highlight ---------- */
.sv-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(
    --Gradient-Text,
    linear-gradient(90deg, #31aaec 28.27%, #167cb4 82.58%)
  );
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  color: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sv-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(10, 21, 38, 0.25);
}

.sv-stat-number {
  color: var(--Main-Color-White, #fff);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 52px;
  font-style: normal;
  font-weight: 600;
  line-height: 125%; /* 65px */
  letter-spacing: -0.52px;
}

.sv-stat-label {
  color: var(--Main-Color-White, #fff);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 155%; /* 24.8px */
}

/* ---------- Icon cards (roles, channels, capabilities, operating record) ---------- */
.sv-icon-grid {
  display: grid;
  grid-template-columns: repeat(var(--sv-cols, 2), 1fr);
  gap: 20px;
  margin-top: 1.25rem;
}

.sv-icon-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sv-icon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(10, 21, 38, 0.25);
}

.sv-icon-card-badge {
  display: flex;
  width: 56px;
  height: 56px;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: var(--Main-Color-Main-Color, #31aaec);
  color: #fff;
  margin-bottom: 1.25rem;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
}

.sv-icon-card-badge svg {
  width: 24px;
  height: 24px;
}

.sv-icon-card h4 {
  background: var(
    --Gradient-Text,
    linear-gradient(90deg, #31aaec 28.27%, #167cb4 82.58%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 31.2px */
  margin: 0 0 0.4rem;
}

.sv-icon-card p {
  color: var(--Main-Color-Sub-text, #8d8d8e);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 155%; /* 24.8px */
  margin: 0;
}

.sv-icon-card .sv-product-tags {
  margin-top: 1rem;
}

/* ---------- Numbered steps ---------- */
.sv-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.sv-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  border-radius: 12px;
  border: 1px solid var(--hs-border-light, rgba(10, 21, 38, 0.08));
  background: #fff;
  padding: 1.75rem 1.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sv-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(10, 21, 38, 0.25);
}

.sv-step-number {
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  border-radius: 9999px;
  background: var(--Main-Color-Main-Color, #31aaec);
  color: #fff;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.sv-step-card p {
  color: var(--Main-Color-Sub-text, #8d8d8e);
  margin: 0;
  font-size: 1rem;
}

/* ---------- Pipeline (connected steps, last one highlighted) ---------- */
.sv-pipeline {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.5rem;
}

.sv-pipeline-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
}

.sv-pipeline-step.is-highlight {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--Main-Color-Main-Color, #31aaec);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  color: #fff;
}

.sv-pipeline-icon {
  display: flex;
  width: 56px;
  height: 56px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: var(--Main-Color-Main-Color, #31aaec);
  color: #fff;
}

.sv-pipeline-step.is-highlight .sv-pipeline-icon {
  background: #fff;
  color: var(--Main-Color-Main-Color, #31aaec);
}

.sv-pipeline-icon svg {
  width: 24px;
  height: 24px;
}

.sv-pipeline-step-label {
  color: var(--Main-Color-Main-Text, #231f20);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 155%; /* 27.9px */
}

.sv-pipeline-step.is-highlight .sv-pipeline-step-label {
  color: #fff;
}

.sv-pipeline-arrow {
  align-self: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--Main-Color-Dark, #111827);
}

/* ---------- Lifecycle chips (connected, no highlight) ---------- */
.sv-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sv-lifecycle-chip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 6px;
  background: var(--Main-Color-Light-Bg, #eff4ff);
}

.sv-lifecycle-chip svg {
  width: 20px;
  height: 20px;
}

.sv-lifecycle-chip-label {
  color: var(--Main-Color-Main-Text, #231f20);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 155%; /* 27.9px */
}

.sv-chips-row .sv-pipeline-arrow {
  color: var(--Main-Color-Dark, #111827);
}

/* ---------- Product cards ---------- */
.sv-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.sv-product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sv-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(10, 21, 38, 0.25);
}

.sv-product-media {
  display: flex;
  height: 210px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  background: var(--Main-Color-Main-Color, #31aaec);
  overflow: hidden;
}

.sv-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-product-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff4ff 0%, #dceafd 100%);
  color: var(--Main-Color-Main-Color, #31aaec);
}

.sv-product-media.is-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.6;
}

.sv-product-body {
  padding: 0;
}

.sv-product-body h4 {
  background: var(
    --Gradient-Text,
    linear-gradient(90deg, #31aaec 28.27%, #167cb4 82.58%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 31.2px */
  margin: 0 0 0.5rem;
}

.sv-product-body p {
  color: var(--Main-Color-Sub-text, #8d8d8e);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 155%; /* 24.8px */
  margin: 0;
}

.sv-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sv-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--Main-Color-Main-Color, #31aaec);
  background: rgba(49, 170, 236, 0.1);
  color: var(--Main-Color-Main-Color, #31aaec);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 155%; /* 18.6px */
}

@media (max-width: 900px) {
  .sv-body {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .sv-body-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-left: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    gap: 2rem;
  }

  .sv-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sv-sidebar-item {
    flex: 1 1 auto;
    border-bottom: none;
    border: 1px solid var(--hs-border-light, rgba(10, 21, 38, 0.08));
  }

  .sv-panel-heading {
    font-size: 26px;
  }

  .sv-stat-card {
    padding: 1.5rem;
  }

  .sv-stat-number {
    font-size: 40px;
  }

  .sv-icon-grid,
  .sv-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sv-products-grid {
    grid-template-columns: 1fr;
  }

  .sv-pipeline,
  .sv-chips-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sv-pipeline-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .sv-icon-grid,
  .sv-steps-grid {
    grid-template-columns: 1fr;
  }

  .sv-icon-card,
  .sv-pipeline-step,
  .sv-product-card {
    padding: 1.25rem;
  }

  .sv-lifecycle-chip {
    padding: 12px 18px;
  }

  .sv-lifecycle-chip-label {
    font-size: 16px;
  }
}
