/* =========================================================
   services.css — page-specific styles for services.html
   Requires style.css (variables, buttons, split, section)
   and about.css (page-hero, breadcrumb, cta) to be loaded first
   ========================================================= */

/* ---------- Industry chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.chip {
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #04101f;
  background: var(--grad);
  border-radius: 999px;
}
.chip--outline {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.chip--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Services grid ---------- */
.section__head p {
  margin-top: 0.5rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s;
}
.service::before {
  /* gradient top edge that fades in on hover */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.service:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(34, 211, 238, 0.4);
}
.service:hover::before {
  opacity: 1;
}

.service__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  font-size: 1.5rem;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.service h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.service > p {
  font-size: 0.98rem;
}

.service__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.service__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--text);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.service__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
.service__link span {
  transition: transform 0.25s;
}
.service__link:hover {
  color: var(--text);
}
.service__link:hover span {
  transform: translateX(4px);
}

/* Sixth tile: call to action */
.service--cta {
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.22),
    rgba(34, 211, 238, 0.08)
  );
}
.service--cta p {
  margin-bottom: 1.5rem;
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding-top: 4.2rem;
}
.process__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #04101f;
  background: var(--grad);
  border-radius: 50%;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.8);
}
.process__step::before {
  /* connecting line between steps */
  content: "";
  position: absolute;
  top: 26px;
  left: 60px;
  right: -1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.5;
}
.process__step:last-child::before {
  display: none;
}
.process__step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.process__step p {
  margin: 0;
  font-size: 0.96rem;
  max-width: 30ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
  .process__step:nth-child(2)::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr;
  }
  .service {
    padding: 1.8rem 1.5rem;
  }
  .process {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .process__step::before {
    display: none;
  }
}
