/* ============================================================
   KELLEY IT SOLUTIONS — Services Page Styles
   Supplements css/style.css (shared)
   ============================================================ */


/* ============================================================
   PAGE HEADER  (reuse about page pattern)
   ============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 40px) 0 44px;
  background: linear-gradient(130deg, #3d1a4a 0%, #5c2870 55%, #3d1a4a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before,
.page-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-header::before {
  width: 400px; height: 400px;
  top: -140px; right: -100px;
  background: rgba(29, 197, 255, 0.08);
}
.page-header::after {
  width: 320px; height: 320px;
  bottom: -120px; left: -80px;
  background: rgba(29, 197, 255, 0.05);
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.05;
}

.page-header-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ============================================================
   SERVICE NAV (jump links bar)
   ============================================================ */
.service-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  overflow: hidden;
}

.service-nav::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 48px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}

.service-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.service-nav-inner::-webkit-scrollbar { display: none; }

.service-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.service-nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-nav-link:hover {
  color: var(--purple);
  border-bottom-color: var(--purple);
}


/* ============================================================
   SERVICE SECTION GRID
   ============================================================ */
.service-section {
  scroll-margin-top: calc(var(--nav-h) + 112px);
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Flip column order for alternating sections */
.svc-grid--flip .svc-details { order: -1; }


/* --- Intro column ---------------------------------------- */
.svc-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(147, 0, 147, 0.12), rgba(29, 197, 255, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 22px;
}

.svc-icon-lg svg {
  width: 30px;
  height: 30px;
}

.svc-intro h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.svc-intro p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}


/* --- Feature list ---------------------------------------- */
.svc-features {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* When the section bg is already white, give the card a subtle lift */
.service-section:not(.bg-light) .svc-features {
  background: var(--bg-light);
  border-color: var(--border-soft);
  box-shadow: none;
}

.svc-features h3 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(0, 0, 0, 0.35);
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s ease;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li:hover {
  background: rgba(147, 0, 147, 0.03);
}

.feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(147, 0, 147, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-icon svg {
  width: 14px;
  height: 14px;
}

.feature-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-list span {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .svc-grid,
  .svc-grid--flip {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* Reset flip order on mobile — intro always first */
  .svc-grid--flip .svc-details { order: 0; }
  .svc-grid--flip .svc-intro   { order: -1; }
}

@media (max-width: 600px) {
  .page-header {
    padding: calc(var(--nav-h) + 24px) 0 30px;
  }

  .service-nav-link {
    padding: 14px 14px;
    font-size: 13px;
  }

  .svc-icon-lg {
    width: 52px;
    height: 52px;
  }

  .svc-icon-lg svg {
    width: 24px;
    height: 24px;
  }
}
