/* ============================================================
   SERVICES-PAGE.CSS
   Styles specific to services.html — all sections:
   Banner · Core Capabilities · Services Cards · Industries · Technology Ecosystem
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   PAGE-LEVEL HEADER OVERRIDE
   Mirror the About page: sticky (in-flow), all corners rounded,
   no slide-in animation (header is pre-applied as is-scrolled).
   ───────────────────────────────────────────────────────────── */
body.page--services .site-header.is-scrolled {
  position: sticky;
  top: 0;
  animation: none;
  border-radius: var(--radius-md); /* all 4 corners at top of page */
}

/* Once the user scrolls (JS adds .is-stuck), flatten the top
   corners so scrolled content doesn't bleed through the radius */
body.page--services .site-header.is-scrolled.is-stuck {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}


/* ─────────────────────────────────────────────────────────────
   SHARED PAGE UTILITIES
   ───────────────────────────────────────────────────────────── */
.svc-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 0 0;  /* 32px top = gap between sticky header and first section */
}

/* Section label  "/ Label /" */
.section-label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 32px;
  color: #111;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.7);
}

/* Large section title */
.section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 45px;
  line-height: 52.5px;
  letter-spacing: -2.25px;
  color: #111;
  margin: 0;
}

.section-title--light {
  color: #ffffff;
}

.section-title--large {
  font-size: 50px;
  line-height: 61px;
  letter-spacing: -1.67px;
}

.section-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 30px;
  color: #333;
  margin: 0;
}

.section-desc--light {
  color: rgba(255, 255, 255, 0.8);
}


/* ─────────────────────────────────────────────────────────────
   1. SERVICE BANNER
   Figma: dark #1f1f1f card, bg image (mix-blend multiply),
          "Our Services" 60px Sora, padding 110px top / 100px left
   ───────────────────────────────────────────────────────────── */
.svc-banner {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  padding: 100px 60px 100px 100px;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.svc-banner__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.svc-banner__bg img {
  position: absolute;
  width: 101.09%;
  height: 105.59%;
  left: 0;
  top: 0;
  max-width: none;
  object-fit: cover;
}

.svc-banner__heading {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -1.6px;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────
   2. CORE CAPABILITIES
   Figma: dark card (#1f1f1f), top-right corner decorative image,
          2×2 capability grid with icons + text
   ───────────────────────────────────────────────────────────── */
.svc-capabilities {
  position: relative;
  background: #1f1f1f;
  border-radius: 25px;
  overflow: hidden;
  padding: 140px 50px 165px;
  margin-top: 32px;
}

/* Decorative corner image — top-right, flipped vertically */
.svc-capabilities__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 372px;
  height: 373px;
  border-radius: 0 0 0 25px;
  overflow: hidden;
  pointer-events: none;
  transform: scaleY(-1);
}

.svc-capabilities__corner img {
  position: absolute;
  width: 102.69%;
  height: 127.61%;
  left: -2.69%;
  top: -7.75%;
  max-width: none;
  object-fit: cover;
}

/* Header text block */
.svc-capabilities__header {
  max-width: 760px;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 2×2 grid of capabilities */
.svc-capabilities__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px 30px;
}

.svc-cap-item {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding-left: 0;
}

.svc-cap-item__icon {
  width: 103px;
  height: 103px;
  flex-shrink: 0;
  opacity: 0.9;
}

.svc-cap-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.svc-cap-item__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.svc-cap-item__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 25px;
  line-height: 35px;
  letter-spacing: -1.25px;
  color: #ffffff;
  margin: 0;
}

.svc-cap-item__desc {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   3. SERVICES CARDS SECTION
   Figma: light bg, heading block, 2 rows of 3 service cards
   Each card: 740px tall, border 1px #d9d9d9, radius 25px,
              title 40px Sora, industry pills, description, image
   ───────────────────────────────────────────────────────────── */
.svc-cards-section {
  background: #f0f2f4;
  border-radius: 25px;
  padding: 50px 24px 60px;
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  gap: 30px;
}

.svc-cards-section__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.svc-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Individual service card */
.svc-card-item {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 61px 21px 21px;
  min-height: 600px;
  position: relative;
}

.svc-card-item__body {
  padding: 0 24px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-card-item__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1.2px;
  color: #111;
  margin: 0;
}

/* Industry tag pills */
.svc-card-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4.5px;
}

.svc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6.75px 13.5px;
  border: 0.75px solid #2c2c2c;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 11px;
  line-height: 10.5px;
  color: #2c2c2c;
  white-space: nowrap;
}

.svc-card-item__desc {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 24px;
  color: #333;
  margin: 0;
}

/* Visual / icon area at bottom of card */
.svc-card-item__visual {
  margin-top: 30px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  height: 200px;
  position: relative;
  background: #f0f2f4;
}

.svc-card-item__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visual icon variant (cap icon, centered) */
.svc-card-item__visual--icon {
  background: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-card-item__visual--icon img {
  position: static;
  width: 100px;
  height: 100px;
  object-fit: contain;
  inset: unset;
}


/* ─────────────────────────────────────────────────────────────
   4. INDUSTRIES
   Figma: light bg, heading + 2 rows × 4 white industry tiles
   Tiles: white bg, radius 20px, 40px h-pad 60px v-pad,
          Sora Regular 20px, -1px tracking, centered
   ───────────────────────────────────────────────────────────── */
.svc-industries {
  background: #f0f2f4;
  border-radius: 25px;
  padding: 50px 50px 50px 100px;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  gap: 30px;
}

.svc-industries__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-industries__heading-block {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

.svc-industries__desc {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 24px;
  color: #333;
  margin: 0;
  max-width: 760px;
}

.svc-industries__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.industry-tile {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.industry-tile__name {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1px;
  color: #111;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   5. TECHNOLOGY ECOSYSTEM
   Figma: white bg card, heading block,
          6 expandable rows alternating white / light-grey bg
   Each row: rounded-[25px], py-40, pl-48, pr-50
   Title col: 450px, Sora SemiBold 34px
   Tech items: bullet dots + Manrope Medium 16px, 3 cols
   ───────────────────────────────────────────────────────────── */
.svc-tech {
  background: #ffffff;
  border-radius: 25px;
  padding: 80px 40px 60px;
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  gap: 24px;
}

.svc-tech__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.svc-tech__rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Individual tech stack row */
.tech-row {
  border-radius: 25px;
  padding: 40px 50px 40px 48px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.tech-row--white {
  border: 1px solid #333;
}

.tech-row--light {
  background: #f0f2f4;
  border: 1px solid transparent;
}

.tech-row--medium {
  background: #e9ebed;
  border: 1px solid transparent;
}

/* Wave decoration on shaded rows */
.tech-row--light .tech-row__wave,
.tech-row--medium .tech-row__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 241px;
  height: 175px;
  pointer-events: none;
  opacity: 1;
}

.tech-row__wave img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-row__title-col {
  width: 450px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.tech-row__category {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 34px;
  line-height: 60px;
  letter-spacing: -0.34px;
  color: #111;
  margin: 0;
  white-space: nowrap;
}

.tech-row__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.tech-row__item-row {
  display: flex;
  align-items: center;
}

.tech-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 250px;
  padding-left: 16px;
  flex-shrink: 0;
}

/* Bullet dot */
.tech-item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12.8px;
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  flex-shrink: 0;
}

.tech-item__name {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 30px;
  color: #333;
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────
   SERVICE CARD — RICH CONTENT (capabilities + business impact)
   ───────────────────────────────────────────────────────────── */

/* Capabilities sub-section within card body */
.svc-card-item__capabilities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.svc-cap-list__heading {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #333;
  margin: 0;
}

.svc-cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-cap-list__item {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

.svc-cap-list__item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

/* Business Impact bottom panel */
.svc-card-item__impact {
  background: #f0f2f4;
  border-radius: 25px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-shrink: 0;
}

.svc-card-item__impact-icon {
  width: 77.5px;
  height: 77.5px;
  flex-shrink: 0;
  opacity: 0.9;
}

.svc-card-item__impact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.svc-card-item__impact-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.svc-card-item__impact-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #333;
  margin: 0;
}

.svc-card-item__impact-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 20px;
  color: #333;
  margin: 0;
}

/* Enterprise card Business Impact desc — 16px/semibold per Figma */
.svc-card-item__impact--enterprise .svc-card-item__impact-desc {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ── Single-card row (full-width wide card) ── */
.svc-cards-row--single {
  grid-template-columns: 1fr;
}

/* ── 3-column capabilities grid (Enterprise Transformation) ── */
.svc-card-item__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 60px;
  margin-top: 4px;
}

.svc-card-item__col-heading {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #333;
  margin: 0 0 6px;
}

/* ── Fintech & NBFC Engineering section (in Enterprise card body) ── */
.svc-card-item__fintech-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.svc-card-item__fintech-heading {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #333;
  margin: 0;
}

.svc-card-item__fintech-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 24px;
  color: #333;
  margin: 0;
}

/* ── Enterprise Transformation impact panel ── */
.svc-card-item__impact--enterprise {
  padding-left: 45px;
}

/* ── Experience & Interface Design — decorative corner image ── */

/* Outer wrapper isolates the stacking context so the deco image
   sits behind the white card (which has z-index: 1) */
.svc-card-experience-wrapper {
  position: relative;
  isolation: isolate;
}

.svc-card-experience-wrapper .svc-card-item--experience {
  position: relative;
  z-index: 1;
}

/* Deco image is a sibling of the card, outside the overflow:hidden boundary */
.svc-card-item__deco-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.svc-card-item__deco-bg img {
  position: absolute;
  top: 54.26%;
  left: 0;
  width: 45.95%;
  height: 45.74%;
  object-fit: contain;
  object-position: bottom left;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .svc-capabilities__grid {
    grid-template-columns: 1fr;
  }

  .svc-capabilities__corner {
    display: none;
  }

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

  .svc-card-item__cols {
    gap: 0 30px;
  }

  .svc-industries__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .tech-row__title-col {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .svc-page {
    gap: 0;
    padding: 20px 0 0;
  }

  .svc-capabilities {
    margin-top: 20px;
  }

  .svc-cards-section {
    margin-top: 40px;
  }

  .svc-industries {
    margin-top: 8px;
  }

  .svc-tech {
    margin-top: 40px;
  }

  .svc-banner {
    padding: 60px 32px;
    min-height: unset;
    align-items: flex-start;
  }

  .svc-banner__heading {
    font-size: 40px;
    line-height: 50px;
    white-space: normal;
  }

  .svc-capabilities {
    padding: 50px 24px 60px;
  }

  .section-title {
    font-size: 32px;
    line-height: 40px;
  }

  .section-title--large {
    font-size: 36px;
    line-height: 46px;
  }

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

  .svc-card-item__title {
    font-size: 28px;
    line-height: 36px;
  }

  .svc-card-item__cols {
    grid-template-columns: 1fr;
    gap: 20px 0;
  }

  .svc-card-item__impact--enterprise {
    padding-left: 30px;
  }

  .svc-card-item__deco-img {
    display: none;
  }

  .svc-industries {
    padding: 40px 24px;
  }

  .svc-industries__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-tech {
    padding: 50px 20px 40px;
  }

  .tech-row {
    padding: 30px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .tech-row__category {
    font-size: 24px;
    line-height: 40px;
  }

  .tech-item {
    width: auto;
    min-width: 140px;
  }

  .tech-row__item-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .svc-industries__row {
    grid-template-columns: 1fr;
  }

  .svc-cap-item {
    flex-direction: column;
    gap: 20px;
  }
}
