/* Services page.
   Loaded after base.css, nav.css and home.css, so it reuses their shared parts:
   .hero, .btn, .text-link, .page-section, .section-head, .icon-box,
   .industries / .industry cards, .contact-cta, the footer and .back-to-top.
   Only the styles that are new to this page live here. */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ---------- Breadcrumb and About-style hero ---------- */

.svc-breadcrumb {
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.svc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 48px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.svc-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.svc-breadcrumb li + li::before {
  content: "/";
  margin-inline: 10px;
  color: #b6bdc9;
}

.svc-breadcrumb a:hover {
  color: var(--accent);
}

.svc-breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.about-hero {
  height: clamp(240px, 30vw, 380px);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .35), rgba(15, 23, 42, 0) 60%),
    url("/assets/services-hero-image.jpg") center / cover no-repeat;
}

.about-hero__wrap {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-inline: var(--gutter);
}

.about-hero__box {
  position: relative;
  width: min(100%, 600px);
  overflow: hidden;
  padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(115deg, rgba(35, 88, 240, .97), rgba(35, 88, 240, .88));
  color: #fff;
  box-shadow: 0 16px 44px rgba(20, 34, 68, .18);
}

.about-hero__box::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#0eb39a .85px, transparent 1px);
  background-size: 9px 9px;
  content: "";
  mask-image: linear-gradient(to right, transparent 40%, #000 100%);
  opacity: .35;
  pointer-events: none;
}

.about-hero__box > * {
  position: relative;
}

.about-hero__label {
  display: inline-block;
  margin-bottom: 14px;
  color: transparent;
  background: linear-gradient(100deg, #fff, #0eb39a);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.about-hero__title {
  padding-bottom: .1em;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.about-hero__sub {
  margin-top: 10px;
  color: rgba(247, 249, 255, .86);
  font-size: 16px;
  line-height: 1.55;
}


/* ---------- In-page navigation ---------- */

.svc-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.svc-nav ul {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  gap: clamp(22px, 3vw, 44px);
  overflow-x: auto;
  scrollbar-width: none;
}

.svc-nav ul::-webkit-scrollbar {
  display: none;
}

.svc-nav a {
  display: block;
  padding: 16px 0 14px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.svc-nav a:hover {
  color: var(--ink);
  border-color: var(--accent);
}


/* ---------- Overview cards (extends .industry) ---------- */

.industry__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.industry__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.industry:hover .industry__more svg {
  transform: translateX(3px);
}

.industry__text {
  margin-bottom: 0;
}


/* ---------- Service detail sections ---------- */

.svc-detail {
  scroll-margin-top: 52px;
}

.svc-detail--tint {
  background: #f8f9fb;
}

.svc-detail__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.svc-detail--reverse .svc-detail__intro {
  order: 2;
}

.svc-detail__label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(100deg, #2358f0, #0eb39a);
  -webkit-background-clip: text;
  background-clip: text;
}

.svc-detail__title {
  padding-bottom: 0.1em;
  font-size: clamp(26px, 2.64vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.svc-detail__text {
  margin-top: 16px;
  max-width: 30em;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--text);
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.svc-tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.svc-detail__action {
  margin-top: 22px;
}

.svc-panel {
  border: 1px solid var(--line);
  background: #fff;
}

.svc-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 28px;
  transition: background-color 0.2s ease;
}

.svc-item + .svc-item {
  border-top: 1px solid var(--line);
}

.svc-item:hover {
  background: #fbfcfe;
}

.svc-item__num {
  padding-top: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.svc-item__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.svc-item__text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}


/* ---------- How we work ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.step:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 28px rgba(20, 34, 68, 0.07);
  transform: translateY(-2px);
}

.step__num {
  display: inline-block;
  padding-bottom: 0.1em;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(100deg, #2358f0, #0eb39a);
  -webkit-background-clip: text;
  background-clip: text;
}

.step__title {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.step__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}


/* ---------- Technologies ---------- */

.tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin-inline: auto;
}

.tech li {
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tech li:hover {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--accent);
}


/* ---------- Spacing fixes ----------
   home.css resets margins on every h2, h3, p and ul inside .page-section, which
   was winning over the spacing set above. Prefixing with .page-section gives
   these rules the priority they need. */

/* Gradient labels: more room before the heading */
.page-section .section-head__label,
.page-section .svc-detail__label {
  margin-bottom: 20px;
}

/* Overview cards: space between icon and heading, and heading and text */
.page-section .industry__title {
  margin-top: 28px;
}

.page-section .industry__text {
  margin-top: 12px;
}

/* Service sections: space between description, tags and the link */
.page-section .svc-detail__text {
  margin-top: 18px;
}

.page-section .svc-tags {
  margin-top: 32px;
  gap: 10px;
}

.svc-tags li {
  padding: 8px 14px;
}

.svc-detail__action {
  margin-top: 28px;
}

.page-section .svc-item__text {
  margin-top: 8px;
}

/* Our approach: remove the browser's default list numbers outside the cards */
.process {
  list-style: none;
}

.page-section .step__title {
  margin-top: 22px;
}

.page-section .step__text {
  margin-top: 10px;
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-hero__wrap {
    margin-top: -56px;
  }

  .svc-detail__inner {
    grid-template-columns: 1fr;
  }

  .svc-detail--reverse .svc-detail__intro {
    order: 0;
  }

  .svc-detail__text {
    max-width: none;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .about-hero__wrap {
    margin-top: -40px;
  }

  .svc-item {
    padding: 22px 20px;
    gap: 12px;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step,
  .svc-item,
  .svc-nav a,
  .tech li,
  .industry__more svg {
    transition: none;
  }
}
