/* --------------------------------------------------------------------------
   Services — industry-sorted rate-card packages
   -------------------------------------------------------------------------- */

.services-page {
  min-height: 100vh;
  padding: var(--space-page);
  padding-bottom: calc(var(--space-page) + 4rem);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.services-page__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.services-page__intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 42rem;
}

.services-page__heading {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
}

.services-page__lede {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: var(--text-body);
  line-height: 1.55;
}

.rate-bar {
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rate-bar__title {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rate-bar__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem 1.5rem;
}

.rate-bar__list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rate-bar__label {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.rate-bar__value {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.segment-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: static;
  padding: 0.75rem 0;
}

.segment-nav a {
  color: var(--color-bg);
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}

.segment-nav a:hover {
  background: #d4d4d4;
}

.segment-nav a:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.segment-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.segment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  scroll-margin-top: 4rem;
  padding-top: 0.5rem;
  border-top: 1px solid #2e2e2e;
}

.segment__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 3.5rem;
  align-self: start;
}

.segment__eyebrow {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.segment__title {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.segment__for {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.45;
}

.segment__packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.package {
  background: #1c1c1c;
  border: 1px solid #333;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 9rem;
}

.package:hover {
  border-color: var(--color-white);
}

.package h3 {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.package p {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  flex: 1;
}

.package__price {
  color: var(--color-white) !important;
  font-weight: 500;
  font-size: 0.75rem !important;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #2a2a2a;
}

.services-page__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #2e2e2e;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.services-page__cta {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.services-page__cta:hover {
  color: #00ff82;
}

@media (max-width: 820px) {
  .segment {
    grid-template-columns: 1fr;
  }

  .segment__head {
    position: static;
  }
}

