/* ============================================
   SERVICES PAGE STYLES
   Matches reference: white hero + dark metrics, dark ecosystem/CTA/footer,
   light blue category icons, pastel green highlight, white delivery section.
   Uses: common.css vars (--primary-color, --bg-white, --text-secondary, etc.)
   ============================================ */

/* Services page dark sections */

.final-cta-section {
  background-color: var(--secondary-color);
  padding: 4.35rem 0;
}

.expert-opinion-section.final-cta-section.common-section,
.black-cta-banner-section-v2 {
  padding: 4.35rem 0;
}
/* ---------- Services Hero / Banner (per reference image) ---------- */
.services-hero {
  background-color: var(--bg-white) !important;
  color: #1a1a1a;
}

.services-banner-wrapper {
  position: relative;
  overflow: hidden;
}
.services-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url(../images/service-banner-bg.png) no-repeat right center;
  background-size: auto 100%;
}

.services-hero .hero-content {
  max-width: none;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.services-banner-title {
  font-weight: var(--font-weight-bold);
  color: var(--secondary-color);
  margin-bottom: 1.3rem;
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: 0;
  vertical-align: middle;
}

.services-hero .hero-title .highlight {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: #f97316;
}

.services-banner-desc {
  color: var(--text-light) !important;
}

.services-hero .hero-buttons {
  gap: 14px;
}

.services-hero .hero-buttons .btn-primary {
  background-color: #f97316;
  color: var(--text-white);
  padding: 12px 28px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px -1px rgb(0 0 0 / 10%);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}

.services-hero .hero-buttons .btn-primary:hover {
  background-color: #e55f0f;
  box-shadow: 0 4px 12px rgba(247, 107, 28, 0.4);
}

.services-hero .hero-buttons .btn-ghost {
  background: var(--bg-white);
  color: #334155;
  padding: 12px 28px;
  border-radius: 5px;
  backdrop-filter: none;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.services-hero .hero-buttons .btn-ghost:hover {
  border-color: #334155;
  color: #fff;
  background: #334155;
}

.services-hero .hero-buttons .btn-arrow {
  margin-left: 7px;
  font-weight: 500;
}

.services-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 84px;
}

/* Pill: ENGINEERING EXCELLENCE – light blue bg, blue text, icon */
.hero-pill-engineering {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: #1d4ed8;
  background-color: #eff6ff;
  padding: 3.5px 10.5px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.26px;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-pill-icon {
  flex-shrink: 0;
  color: #428bca;
}

.services-hero-visual {
  min-height: 340px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.hero-visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: #1b2433;
  border: none;
  border-radius: 12px;
}

/* Metrics strip: light grey bg, 3 blocks with white icon boxes & dividers (per reference) */
.services-metrics-strip {
  background-color: #f8fafc;
  padding: 2.65rem 0;
  border-width: 1px 0px 1px 0px;
  border-style: solid;
  border-color: #e5e7eb;
}

.services-metrics-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 28px;
}

.services-metric-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 21px;
}

.services-metric-item:not(:last-child) {
  border-right: 1px solid #e5e5e5;
}

.services-metric-icon-wrap {
  width: 53px;
  height: 53px;
  border-radius: 7px;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0px 1px 2px 0px rgb(0 0 0 / 5%);
}

.services-metric-icon-wrap img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.services-metric-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.services-metric-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: var(--secondary-color);
  line-height: 1.75;
}

.services-metric-subtitle {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-light);
  line-height: 1.5;
}

.services-metric-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1px;
}
.services-metric-badge {
  display: inline-block;
  background: #e5e7eb;
  color: #374151;
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 10px;
  border-radius: 3.5px;
  line-height: 1.4;
}

/* Final CTA section (dark) uses white text */
.final-cta-section .final-cta-title {
  color: var(--text-white);
}
.final-cta-section .final-cta-description {
  color: #dbeafe;
  margin-bottom: 36px;
}
.final-cta-section .btn-primary {
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f97316;
  font-size: 16px;
  line-height: 1.5;
}
.final-cta-section .btn-primary span {
  font-weight: 500;
}
/* ---------- Core Service Categories (card layout per reference) ---------- */

.services-categories-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.service-category-card {
  display: grid;
  grid-template-columns: 40% 1fr;
  padding: 0;
  border-radius: 10px;
  transition: box-shadow var(--transition-base);
  box-shadow: 0px 1px 2px 0px rgb(0 0 0 / 5%);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.service-category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-category-left {
  min-width: 0;
  padding: 28px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.service-category-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 21px;
}

.service-category-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.service-category-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.33;
}

.service-category-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.service-category-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-color);
  transition: color var(--transition-fast);
  margin-top: auto;
  line-height: 1.46;
}

.service-category-cta:hover {
  color: var(--primary-color);
}

.service-category-right {
  border-left: 1px solid #f3f4f6;
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.service-category-right .capabilities-label:not(:first-child) {
  padding-top: 1.75rem;
  border-top: 1px solid #f3f4f6;
}
.capabilities-label {
  display: block;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.52px;
}

.capabilities-label + .capabilities-list {
  margin-top: 0;
}

.capabilities-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.46;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.services-categories-section .capabilities-list li {
  color: #334155;
}

.capabilities-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.capabilities-list li img {
  width: 14px;
  height: auto;
}
.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.services-categories-section .cap-tag {
  display: inline-block;
  background: #f9fafb;
  border-radius: 5px;
  padding: 3.75px 8.75px;
  color: var(--text-light);
  border: 1px solid #e5e7eb;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0;
  vertical-align: middle;
}

/* ---------- Ecosystem Section (dark, 3 cards – per reference image) ---------- */
.ecosystem-section {
  background-color: #1a1e27 !important;
}

.services-ecosystem-section.ecosystem-section {
  padding-top: initial;
  padding-bottom: initial;
}

.ecosystem-section-inner {
  padding-top: 4.4rem;
  padding-bottom: 4.4rem;
}
.ecosystem-section-inner .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.ecosystem-section-inner h2.section-title {
  color: #fff;
}
.ecosystem-section-inner .section-subtitle {
  color: #94a3b8;
  max-width: 100%;
}
.ecosystem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  position: relative;
}
.ecosystem-cards::before {
  position: absolute;
  content: "";
  width: 80%;
  left: 10%;
  height: 2px;
  background: #334155;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}
.ecosystem-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 28px;
  position: relative;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid #334155;
  box-shadow: 0px 10px 15px -3px rgb(0 0 0 / 10%);
}

.ecosystem-card:hover {
  background: #1a1e27;
  border-color: #334155;
}
.ecosystem-card-highlight {
  padding: 2rem;
  box-shadow: 0px 25px 50px -12px rgb(0 0 0 / 25%);
  border: 2px solid #0f172a;
  background: #1e293b;
}

.ecosystem-you-are-here {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f97316;
  color: #fff;
  font-size: 10.5px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 4px 11px;
  border-radius: 999px;
  line-height: 1.5;
}

.ecosystem-card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}
.ecosystem-card-highlight .ecosystem-card-icon-wrap {
  background: var(--secondary-color);
}
.ecosystem-card-icon-wrap img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ecosystem-card-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ecosystem-card-desc {
  font-size: 12px;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 21px;
  font-weight: 600;
}
.ecosystem-card-desc span {
  color: #cbd5e1;
  font-weight: 400;
}
.ecosystem-card-tagline {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  font-style: italic;
  line-height: 1.5;
  font-weight: 400;
}

.ecosystem-link {
  color: #f97316;
  font-weight: 600;
  font-size: 12px;
  transition: color var(--transition-fast);
  line-height: 1.5;
}

.ecosystem-link:hover {
  color: #ff9933;
}

/* ---------- Execution-Focused Delivery (per reference image) ---------- */
.delivery-section {
  background-color: #f8fafc;
}

.delivery-section {
  padding: 5.25rem 0;
}
.section-label-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.61px;
  margin-bottom: 0.45rem;
}

.delivery-section-inner .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.delivery-section-inner .section-header p.section-subtitle {
  max-width: 658px;
  margin: 10px auto 0;
}

/* Process flow: 5 steps with connecting line */
.delivery-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  position: relative;
  padding-top: 0;
}

.delivery-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 10%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.delivery-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.delivery-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  color: #9ca3af;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
  font-size: 17.5px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
}

.delivery-step-title {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--secondary-color);
  margin-bottom: 8px;
  line-height: 20px;
}

.delivery-step-desc {
  color: #6b7280;
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 16.84px;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
}

/* ---------- Proof of Execution header ---------- */
.section-header-row-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-header-row-wrap p.section-subtitle {
  margin-top: 5px;
}
.section-header-row-wrap .section-link {
  margin-left: auto;
}
.proof-of-execution-grid span.case-tag {
  border-radius: 3.5px;
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(4px);
}
.case-studies-grid.proof-of-execution-grid p.case-study-description {
  margin-bottom: 0;
}
.case-studies-grid.proof-of-execution-grid h3.case-study-title {
  margin-bottom: 6px;
}
/* ---------- CTA Banner: Healthcare card – white box, light green accent (per reference) ---------- */
.services-cta-banner {
  padding: 2.65rem 0;
}

.services-cta-banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-radius: 14px;
  padding: 2.6rem;
  background: linear-gradient(90deg, #f0fdfa 0%, #ffffff 100%);
  border: 1px solid #ccfbf1;
}

.services-cta-banner-content {
  flex: 1;
  min-width: 0;
}

.services-cta-banner-label-row {
  display: flex;
  align-items: center;
  gap: 10.5px;
  margin-bottom: 14px;
}

.services-cta-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #ccfbf1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-cta-banner-icon img {
  width: 24px;
  height: auto;
}

.services-cta-banner-label {
  font-weight: var(--font-weight-bold);
  color: #115e59;
  font-size: 12px;
  line-height: 17.5px;
  letter-spacing: 0.61px;
  vertical-align: middle;
  text-transform: uppercase;
}

.services-cta-banner-title {
  font-size: 21px;
  font-weight: var(--font-weight-bold);
  color: var(--secondary-color);
  margin-bottom: 10.5px;
  line-height: 1.33;
}

.services-cta-banner-desc {
  color: #475569;
  margin: 0;
  max-width: 685px;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  vertical-align: middle;
}

.services-cta-banner-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  background: #fff;
  color: #115e59;
  font-weight: var(--font-weight-semibold);
  border-radius: 5px;
  transition: all var(--transition-base);
  border: 1px solid #99f6e4;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
}

.services-cta-banner-btn:hover {
  background: #ccfbf1;
  border-color: #99f6e4;
}

.black-cta-banner-section-v2 .hc-solutions-detail-cta-text {
  font-size: 18px;
}

.cta-actions .btn-primary img {
  width: 24px;
  height: 24px;
}

.work-hero .work-hero-desc {
  font-weight: 400;
  line-height: 25.59px;
}

/* ============================================
   RESPONSIVE - SERVICES
   ============================================ */
@media (max-width: 1200px) {
  .services-banner-title {
    font-size: 36px;
  }
  .services-hero-inner {
    gap: 2.5rem;
  }
  .services-hero .hero-buttons .btn-primary {
    padding: 12px 15px;
  }
  .services-hero .hero-buttons .btn-ghost {
    padding: 12px 15px;
  }
  .services-metric-item {
    padding: 0;
  }
}
@media (max-width: 991px) {
  .services-hero .hero-content {
    padding-top: 0rem;
  }
  .services-hero .services-banner-desc {
    margin-left: unset;
    margin-right: unset;
  }
  .services-hero .hero-buttons {
    justify-content: start;
  }
  .services-hero-inner {
    grid-template-columns: 1fr;
    display: inline;
  }

  .services-hero-inner .hero-content {
    padding-top: 0;
  }

  .services-hero-inner .services-hero-visual {
    padding-top: 30px;
  }

  .services-hero-visual {
    min-height: 280px;
    order: -1;
  }

  .hero-visual-placeholder {
    min-height: 280px;
  }

  .delivery-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
  }

  .delivery-steps::before {
    display: none;
  }

  .delivery-step-desc {
    max-width: 160px;
  }
  .services-hero-inner {
    padding-bottom: 50px;
    padding-top: 50px;
  }

  .services-cta-banner-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .services-metrics-bar {
    grid-template-columns: 1fr 1fr;
  }
  .services-metric-item:not(:last-child) {
    border-right: none;
  }
  .ecosystem-card {
    padding: 20px;
  }
  .ecosystem-card-highlight {
    padding: 26px;
  }
  .service-category-left {
    padding: 20px;
  }
  .service-category-right {
    padding: 20px;
  }
  .service-category-title {
    font-size: 19px;
  }
  .services-metrics-strip {
    padding: 2rem 0;
  }
}

@media (max-width: 767.98px) {
  .service-category-card {
    grid-template-columns: 1fr;
    gap: 0rem;
  }
  .services-metric-item:last-child {
    border-bottom: none;
  }
  .delivery-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .ecosystem-cards {
    grid-template-columns: 1fr 1fr;
  }

  .services-categories-title {
    font-size: 1.875rem;
  }

  .capabilities-list {
    grid-template-columns: 1fr;
  }

  .delivery-step-desc {
    max-width: none;
  }

  .section-header-row-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header-row-wrap .section-link {
    margin-left: 0;
  }

  .services-cta-banner-title {
    font-size: var(--font-size-xl);
  }
  .ecosystem-cards::before {
    display: none;
  }
  .services-banner-title {
    font-size: 32px;
  }
  .final-cta-section .btn-primary {
    padding: 12px 28px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .services-metric-item {
    padding: 1.25rem 0;
    border-right: none !important;
    border-bottom: 1px solid #e5e5e5;
  }
  .services-metrics-bar {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .services-metrics-strip {
    padding: 0;
  }
  .services-categories-title {
    font-size: 1.5rem;
  }
  .delivery-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-cta-banner {
    padding: 2.5rem 0;
  }
  .services-cta-banner-card {
    padding: 1.6rem;
  }
  .ecosystem-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-hero-inner .hero-content {
    padding-top: 10px;
  }

  .services-hero-inner .services-hero-visual {
    padding-top: 20px;
  }

  .hero-pill {
    font-size: 12px;
  }

  .services-metric-icon-wrap {
    width: 48px;
    height: 48px;
  }

  .services-metric-icon-wrap svg {
    width: 24px;
    height: 24px;
  }

  .services-metric-title {
    font-size: 1.5rem;
  }
  .services-hero .hero-buttons .btn-primary {
    width: 100%;
  }
  .services-hero .hero-buttons .btn-ghost {
    width: 100%;
  }
  .services-banner-title {
    font-size: 30px;
  }
  .services-cta-banner-card {
    padding: 1.3rem;
  }
}
