/* ==========================================================================
   PAGES-SERVICES.CSS — styles used only on services.html
   Kept separate from components.css so pages other than Services don't
   have to download styles they never use.
   ========================================================================== */

/* --------------------------------------------------------------------------
   SERVICES HERO
   -------------------------------------------------------------------------- */
.services-hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: 0;
}
.services-hero__top,
.services-hero__grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.services-hero__top {
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.services-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--color-slate);
}
.services-hero__grid {
  align-items: end;
}
.services-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.services-hero h1 span {
  display: block;
  color: var(--color-teal);
}
.services-hero__intro {
  width: min(100%, 430px);
  padding-bottom: 0.35rem;
}
.services-hero__intro .lead {
  margin-bottom: 2rem;
}
/* .services-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.services-hero__scroll:hover {
  color: var(--color-teal);
} */
.services-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--color-line);
}
.services-index a {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1rem 1.5rem 0;
  border-right: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  transition:
    color var(--dur-fast) var(--ease),
    padding-left var(--dur-med) var(--ease);
}
.services-index a:not(:first-child) {
  padding-left: 1rem;
}
.services-index a:last-child {
  border-right: none;
}
.services-index a:hover {
  color: var(--color-teal);
  padding-left: 0.4rem;
}
.services-index a:not(:first-child):hover {
  padding-left: 1.4rem;
}
.services-index span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   SERVICE HEADINGS
   -------------------------------------------------------------------------- */
/* Deliberately does NOT redeclare margin-bottom — .section-head (in
   components.css) already sets it; this only adds the services-specific
   heading width constraint. */
.services-section-head h2 {
  max-width: 18ch;
}
.services-statement {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-teal);
}
.services-section-head + .split .card__tools {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   SERVICE NAVIGATION
   -------------------------------------------------------------------------- */
.services-next {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.services-next span:nth-child(2) {
  color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   SHARED SERVICE VISUAL
   -------------------------------------------------------------------------- */
.service-visual {
  overflow: hidden;
  padding: 0;
}
.service-visual--dark {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-white);
}
.service-visual__bar,
.service-visual__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--color-slate);
}
.service-visual__bar {
  border-bottom: 1px solid var(--color-line);
}
.service-visual--dark .service-visual__bar,
.service-visual--dark .service-visual__footer {
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
}
.service-visual__footer {
  border-top: 1px solid var(--color-line);
}

/* --------------------------------------------------------------------------
   DASHBOARD
   -------------------------------------------------------------------------- */
.service-dashboard__heading {
  padding: 1.5rem 1.5rem 1rem;
}
.service-dashboard__heading span,
.service-dashboard__heading strong {
  display: block;
}
.service-dashboard__heading span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-slate);
}
.service-dashboard__heading strong {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.service-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-inline: 1.5rem;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}
.service-dashboard__metrics div {
  padding: 0.85rem;
  background: var(--color-white);
}
.service-dashboard__metrics span,
.service-dashboard__metrics strong {
  display: block;
}
.service-dashboard__metrics span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--color-slate);
}
.service-dashboard__metrics strong {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.service-dashboard__chart {
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 0.5rem;
  height: 150px;
  margin: 1.5rem;
  padding: 1rem 0.5rem 0;
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(var(--color-line) 1px, transparent 1px);
  background-size: 100% 25%;
}
.service-dashboard__chart span {
  width: 8%;
  min-width: 10px;
  background: var(--color-teal);
}

/* --------------------------------------------------------------------------
   DATA PIPELINE
   -------------------------------------------------------------------------- */
.service-pipeline {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 0.8fr;
  align-items: center;
  gap: 0.5rem;
  min-height: 300px;
  padding: 1.5rem;
}
.service-pipeline__sources {
  display: grid;
  gap: 0.6rem;
}
.service-pipeline__sources div,
.service-pipeline__database,
.service-pipeline__transform {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
}
.service-pipeline__sources div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem;
}
.service-pipeline__sources b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(99,199,173,0.45);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #63c7ad;
}
.service-pipeline__sources span,
.service-pipeline__database span,
.service-pipeline__database small {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.55);
}
.service-pipeline__arrow {
  color: #63c7ad;
  text-align: center;
  font-size: 1.2rem;
}
.service-pipeline__transform {
  padding: 0.85rem;
}
.service-pipeline__transform span {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #63c7ad;
}
.service-pipeline__transform b {
  display: block;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
}
.service-pipeline__database {
  padding: 1rem;
  text-align: center;
}
.service-pipeline__database b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.7rem;
  border: 1px solid #63c7ad;
  color: #63c7ad;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}
.service-pipeline__database span,
.service-pipeline__database small {
  display: block;
}

/* --------------------------------------------------------------------------
   AUTOMATION
   -------------------------------------------------------------------------- */
.service-process {
  padding: 1.5rem;
}
.service-process__item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.service-process__item > span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.3);
}
.service-process__item strong,
.service-process__item small {
  display: block;
}
.service-process__item strong {
  font-size: 0.72rem;
}
.service-process__item small {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: rgba(255,255,255,0.4);
}
.service-process__item > b {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #63c7ad;
}
.service-process__item--active {
  border-color: rgba(232,163,61,0.4);
}
.service-process__item--active > b {
  color: var(--color-amber);
}
.service-process__line {
  width: 1px;
  height: 10px;
  margin-left: 0.85rem;
  background: rgba(99,199,173,0.25);
}

/* --------------------------------------------------------------------------
   CUSTOM TOOL
   -------------------------------------------------------------------------- */
.service-tool {
  margin: 1.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
}
.service-tool__header {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--color-slate);
}
.service-tool__field {
  padding: 1rem 1rem 0;
}
.service-tool label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--color-slate);
}
.service-tool__field > div,
.service-tool__row > div > div {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  font-size: 0.7rem;
}
.service-tool__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
}
.service-tool__result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(31,138,112,0.25);
  background: rgba(31,138,112,0.05);
}
.service-tool__result span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--color-slate);
}
.service-tool__result strong {
  color: var(--color-teal);
  font-family: var(--font-display);
}
.service-tool__button {
  margin: 1rem;
  padding: 0.7rem;
  background: var(--color-ink);
  color: var(--color-white);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   STATE MODIFIERS
   Previously referenced in services.html with no matching CSS — added so
   they actually do something instead of sitting inert in the markup.
   -------------------------------------------------------------------------- */
.service-visual--dashboard,
.service-visual--tool {
  background: var(--color-white);
}
.service-status {
  font-family: var(--font-mono);
  color: var(--color-teal);
}
.service-process__item--done {
  opacity: 0.75;
}
.service-process__item--done > b {
  color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .services-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-hero__intro {
    width: min(100%, 600px);
  }
  .service-pipeline {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .service-pipeline__arrow {
    transform: rotate(90deg);
  }
}
@media (max-width: 720px) {
  .services-hero__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  .services-hero h1 {
    font-size: clamp(2.7rem, 10vw, 4rem);
  }
  .services-index {
    grid-template-columns: 1fr 1fr;
  }
  .services-index a:nth-child(2) {
    border-right: none;
  }
  .services-index a:nth-child(3),
  .services-index a:nth-child(4) {
    border-top: 1px solid var(--color-line);
  }
  .service-dashboard__metrics {
    grid-template-columns: 1fr;
  }
  .service-dashboard__metrics div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 500px) {
  .services-index {
    grid-template-columns: 1fr;
  }
  .services-index a,
  .services-index a:not(:first-child) {
    padding-left: 0;
    border-right: none;
    border-top: 1px solid var(--color-line);
  }
  .services-index a:first-child {
    border-top: none;
  }
  .services-index a:hover,
  .services-index a:not(:first-child):hover {
    padding-left: 0.4rem;
  }
  .service-pipeline {
    padding: 1rem;
  }
  .service-process {
    padding: 1rem;
  }
  .service-tool {
    margin: 1rem;
  }
  .service-tool__row {
    grid-template-columns: 1fr;
  }
}