/* ==========================================================================
   Service — Case Studies, all 3 variants, one file.
   Ported from the Real Estate App Development page's Project List slider
   (Variant 1), Awards Variant 1 slider idiom (Variant 2), and Horizontal
   Scrolling Process Gallery (Variant 3) — see assets/js/services/
   case-studies.js for the matching JS-side ports.
   ========================================================================== */

/* ==========================================================================
   Variant 1 — Connected Slider. Same construction as the Real Estate App
   Development page's Project List slider (`.reapp-proj-*`) — one Swiper
   instance, single dark two-panel slide at a time, reused verbatim and
   renamed `.svc-cs1-*`, plus new Challenge/How We Helped/Impact block
   styles for the richer per-slide content.
   ========================================================================== */

.svc-cs1 {
  position: relative;
  background: #000000;
  padding: 80px 0;
  overflow: hidden;
}

.svc-cs1-head {
  max-width: 640px;
  text-align: center;
}

.svc-cs1-heading {
  margin: 0;
  font-size: 42px;
  line-height: 56px;
  font-weight: 700;
  color: #ffffff;
  text-wrap: balance;
}

@media (max-width: 1550px) {
  .svc-cs1-heading { font-size: 38px; line-height: 48px; }
}

@media (max-width: 1440px) {
  .svc-cs1-heading { font-size: 36px; }
}

@media (max-width: 1200px) {
  .svc-cs1-heading { font-size: 40px; }
}

@media (max-width: 1024px) {
  .svc-cs1-heading { font-size: 36px; }
}

@media (max-width: 912px) {
  .svc-cs1-heading { font-size: 32px; }
}

@media (max-width: 820px) {
  .svc-cs1-heading { font-size: 30px; line-height: 1.4; }
}

@media (max-width: 767px) {
  .svc-cs1-heading { font-size: 27px; }
}

@media (max-width: 650px) {
  .svc-cs1-heading { font-size: 22px; line-height: 26px; }
}

.svc-cs1-intro {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.7);
}

.svc-cs1-slider-wrap {
  margin-top: 48px;
}

.svc-cs1-swiper {
  border-radius: 28px;
}

.svc-cs1-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-cs1-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 48px 46px;
  background: linear-gradient(160deg, #0d1119 0%, #04070d 100%);
}

.svc-cs1-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.25);
  color: #00c2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.svc-cs1-name {
  margin: 20px 0 4px;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-wrap: balance;
}

.svc-cs1-tagline {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs1-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.svc-cs1-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-cs1-block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #00c2ff;
}

.svc-cs1-block-icon svg {
  width: 17px;
  height: 17px;
}

.svc-cs1-block-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.svc-cs1-block-text {
  margin: 6px 0 0 30px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs1-impact-list {
  margin: 6px 0 0 30px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-cs1-impact-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs1-impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00c2ff;
}

.svc-cs1-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: auto;
  padding-top: 30px;
}

.svc-cs1-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #00c2ff;
  color: #04070d;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 16px 36px -16px rgba(0, 194, 255, 0.5);
}

.svc-cs1-cta svg {
  width: 15px;
  height: 15px;
}

.svc-cs1-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-cs1-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.svc-cs1-nav-btn:hover {
  border-color: rgba(0, 194, 255, 0.55);
  background: rgba(0, 194, 255, 0.12);
  color: #00c2ff;
}

.svc-cs1-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.svc-cs1-nav-btn svg {
  width: 15px;
  height: 15px;
}

.svc-cs1-count {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 232, 240, 0.5);
  white-space: nowrap;
}

.svc-cs1-visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #0a0e14;
}

.svc-cs1-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1024px) {
  .svc-cs1-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .svc-cs1-content {
    padding: 40px 34px;
  }

  .svc-cs1-visual {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .svc-cs1 {
    padding: 64px 0 72px;
  }

  .svc-cs1-slider-wrap {
    margin-top: 36px;
  }

  .svc-cs1-content {
    padding: 30px 22px;
  }

  .svc-cs1-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .svc-cs1-visual {
    min-height: 220px;
  }
}

/* ==========================================================================
   Variant 2 — Spaced Cards Slider. Same single-slide-at-a-time Swiper and
   content structure as Variant 1, but the content panel and the image
   panel render as two separate rounded cards with a clearly visible gap
   between them (`.svc-cs2-row`'s `gap`) instead of one fused panel — per
   the reference screenshot, where the two halves read as distinct spaced
   cards rather than a seamless block.
   ========================================================================== */

.svc-cs2 {
  position: relative;
  background: #000000;
  padding: 80px 0;
  overflow: hidden;
}

.svc-cs2-head {
  max-width: 840px;
  text-align: center;
}

.svc-cs2-heading {
  margin: 0;
  font-size: 42px;
  line-height: 56px;
  font-weight: 700;
  color: #ffffff;
  text-wrap: balance;
}

@media (max-width: 1550px) {
  .svc-cs2-heading { font-size: 38px; line-height: 48px; }
}

@media (max-width: 1440px) {
  .svc-cs2-heading { font-size: 36px; }
}

@media (max-width: 1200px) {
  .svc-cs2-heading { font-size: 40px; }
}

@media (max-width: 1024px) {
  .svc-cs2-heading { font-size: 36px; }
}

@media (max-width: 912px) {
  .svc-cs2-heading { font-size: 32px; }
}

@media (max-width: 820px) {
  .svc-cs2-heading { font-size: 30px; line-height: 1.4; }
}

@media (max-width: 767px) {
  .svc-cs2-heading { font-size: 27px; }
}

@media (max-width: 650px) {
  .svc-cs2-heading { font-size: 22px; line-height: 26px; }
}

.svc-cs2-intro {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.7);
}

.svc-cs2-slider-wrap {
  margin-top: 48px;
}

.svc-cs2-swiper .swiper-slide {
  height: auto;
}

.svc-cs2-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  min-height: 560px;
}

.svc-cs2-panel {
  border-radius: 28px;
  overflow: hidden;
}

.svc-cs2-panel-content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 46px;
  background: linear-gradient(160deg, #0d1119 0%, #04070d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-cs2-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.25);
  color: #00c2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.svc-cs2-name {
  margin: 20px 0 4px;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-wrap: balance;
}

.svc-cs2-tagline {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs2-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.svc-cs2-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-cs2-block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #00c2ff;
}

.svc-cs2-block-icon svg {
  width: 17px;
  height: 17px;
}

.svc-cs2-block-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.svc-cs2-block-text {
  margin: 6px 0 0 30px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs2-impact-list {
  margin: 6px 0 0 30px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-cs2-impact-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs2-impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00c2ff;
}

.svc-cs2-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: auto;
  padding-top: 30px;
}

.svc-cs2-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #00c2ff;
  color: #04070d;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 16px 36px -16px rgba(0, 194, 255, 0.5);
}

.svc-cs2-cta svg {
  width: 15px;
  height: 15px;
}

.svc-cs2-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-cs2-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.svc-cs2-nav-btn:hover {
  border-color: rgba(0, 194, 255, 0.55);
  background: rgba(0, 194, 255, 0.12);
  color: #00c2ff;
}

.svc-cs2-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.svc-cs2-nav-btn svg {
  width: 15px;
  height: 15px;
}

.svc-cs2-count {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 232, 240, 0.5);
  white-space: nowrap;
}

.svc-cs2-panel-visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-cs2-panel-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1024px) {
  .svc-cs2-row {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
  }

  .svc-cs2-panel-content {
    padding: 40px 34px;
  }

  .svc-cs2-panel-visual {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .svc-cs2 {
    padding: 64px 0 72px;
  }

  .svc-cs2-slider-wrap {
    margin-top: 36px;
  }

  .svc-cs2-row {
    gap: 16px;
  }

  .svc-cs2-panel-content {
    padding: 30px 22px;
  }

  .svc-cs2-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .svc-cs2-panel-visual {
    min-height: 220px;
  }
}

/* ==========================================================================
   Variant 3 — Pinned Scroll Gallery. `.horiz-gallery-wrapper` /
   `.horiz-gallery-strip` are the GSAP pin/scrub hooks — same load-bearing
   class names as the Real Estate App Development page's Horizontal
   Scrolling Process Gallery (see assets/js/services/case-studies.js
   `initCaseStudiesVariant3`, ported from that page's `initReappGallery`).
   `.svc-cs3-*` is presentational only. Default state is a plain WRAPPING
   flex row; JS adds `.is-pinned` only on desktop with motion allowed.
   ========================================================================== */

.svc-cs3 {
  position: relative;
  background: #000000;
  padding: 80px 0;
}

.svc-cs3-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.svc-cs3-heading {
  margin: 0;
  font-size: 42px;
  line-height: 56px;
  font-weight: 700;
  color: #ffffff;
  text-wrap: balance;
}

@media (max-width: 1550px) {
  .svc-cs3-heading { font-size: 38px; line-height: 48px; }
}

@media (max-width: 1440px) {
  .svc-cs3-heading { font-size: 36px; }
}

@media (max-width: 1200px) {
  .svc-cs3-heading { font-size: 40px; }
}

@media (max-width: 1024px) {
  .svc-cs3-heading { font-size: 36px; }
}

@media (max-width: 912px) {
  .svc-cs3-heading { font-size: 32px; }
}

@media (max-width: 820px) {
  .svc-cs3-heading { font-size: 30px; line-height: 1.4; }
}

@media (max-width: 767px) {
  .svc-cs3-heading { font-size: 27px; }
}

@media (max-width: 650px) {
  .svc-cs3-heading { font-size: 22px; line-height: 26px; }
}

.svc-cs3-intro {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.75;
  color: #ffffff;
}

/* ---- Strip + cards ---- */

.horiz-gallery-wrapper.svc-cs3-wrapper {
  position: relative;
  margin-top: 48px;
}

.horiz-gallery-strip.svc-cs3-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 4px clamp(20px, 4vw, 64px) 8px;
}

.svc-cs3-wrapper.is-pinned {
  height: 86vh;
  height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.svc-cs3-wrapper.is-pinned .svc-cs3-strip {
  flex-wrap: nowrap;
  width: max-content;
  padding: 4px clamp(20px, 6vw, 120px) 8px;
}

.svc-cs3-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(680px, 78vw, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: #04070d;
  box-shadow: 0 30px 70px -28px rgba(4, 7, 13, 0.35);
}

.svc-cs3-visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #0a0e14;
}

.svc-cs3-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.svc-cs3-index {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 7, 13, 0.55);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.svc-cs3-content {
  display: flex;
  flex-direction: column;
  padding: 44px 42px;
}

.svc-cs3-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.25);
  color: #00c2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.svc-cs3-name {
  margin: 18px 0 4px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-wrap: balance;
}

.svc-cs3-tagline {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs3-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.svc-cs3-block-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.svc-cs3-block-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs3-impact-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.svc-cs3-impact-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.68);
}

.svc-cs3-impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00c2ff;
}

.svc-cs3-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 46px;
  margin-top: auto;
  padding: 0 22px;
  border-radius: 999px;
  background: #00c2ff;
  color: #04070d;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 16px 36px -16px rgba(0, 194, 255, 0.5);
}

.svc-cs3-cta svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .svc-cs3-card {
    width: min(90vw, 560px);
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .svc-cs3-visual {
    min-height: 240px;
  }

  .svc-cs3-content {
    padding: 32px 28px;
  }
}

@media (max-width: 640px) {
  .svc-cs3 {
    padding: 64px 0 72px;
  }

  .horiz-gallery-wrapper.svc-cs3-wrapper {
    margin-top: 36px;
  }

  .horiz-gallery-strip.svc-cs3-strip {
    gap: 20px;
    padding: 4px 20px 8px;
  }

  .svc-cs3-card {
    width: min(90vw, 400px);
  }
}
