/* ==========================================================================
   Service — Technology, Variant 2 (Stack Explorer). Same component as the
   Real Estate App Development page's own Services section
   (assets/css/real-estate-app-development.css `.reapp-svc-*`) — the same
   component already reused once for Our Services Variant 1
   (assets/css/services/our-services.css `.our-svc-*`) — reused again here,
   renamed `.svc-tech2-*` (its own namespace). A dark heading band over a
   white, elevated panel with a numbered item list on the left and a
   synced detail panel on the right. Variant 1 needs no CSS here — it
   reuses the sitewide `.service-tech-*` classes in main.css.
   ========================================================================== */

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

.svc-tech2-head {
  position: relative;
  background: #000000;
  margin-bottom: 50px;
}

.svc-tech2-head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.svc-tech2-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 42px;
  line-height: 56px;
  color: #ffffff;
  text-wrap: balance;
}

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

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

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

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

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

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

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

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

.svc-tech2-lede {
  margin: 6px 0 0;
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #ffffff;
}

.svc-tech2-body {
  position: relative;
}

.svc-tech2-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 350px) minmax(0, 1fr);
  gap: 0;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(4, 7, 13, 0.08);
  box-shadow: 0 40px 90px -30px rgba(4, 7, 13, 0.28);
  overflow: hidden;
}

/* ---- List column ---- */

.svc-tech2-list-col {
  position: relative;
  padding: 32px 28px;
  border-right: 1px solid rgba(4, 7, 13, 0.08);
}

.svc-tech2-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.svc-tech2-list-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #04070d;
}

.svc-tech2-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Positioned/sized by JS (assets/js/services/technology.js `updateRail`)
   to track whichever `.svc-tech2-tab` is currently active — a moving
   indicator rather than a static one. */
.svc-tech2-list-rail {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  border-radius: 2px;
  background: #00c2ff;
  box-shadow: 0 0 10px 1px rgba(0, 194, 255, 0.5);
  transition: transform 320ms cubic-bezier(0.65, 0, 0.35, 1), height 320ms cubic-bezier(0.65, 0, 0.35, 1);
}

.svc-tech2-tab {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 15px 0 15px 20px;
  border: 0;
  border-bottom: 1px solid rgba(4, 7, 13, 0.08);
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.svc-tech2-list li:last-child .svc-tech2-tab {
  border-bottom: 0;
}

.svc-tech2-tab-index {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(4, 7, 13, 0.35);
}

.svc-tech2-tab-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(4, 7, 13, 0.4);
  transition: color 200ms ease;
}

.svc-tech2-tab:hover .svc-tech2-tab-label {
  color: rgba(4, 7, 13, 0.7);
}

.svc-tech2-tab.is-active .svc-tech2-tab-index {
  color: #0284c7;
}

.svc-tech2-tab.is-active .svc-tech2-tab-label {
  color: #04070d;
  font-weight: 700;
}

/* ---- Detail column ---- */

.svc-tech2-detail-col {
  padding: 32px;
}

.svc-tech2-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 180px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0a0e1a 0%, #04070d 100%);
}

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

/* ---- Slides: CSS-grid stack so the container's height always equals the
   TALLEST slide, even though only `.is-active` is opaque/interactive. ---- */

.svc-tech2-slides {
  display: grid;
  margin-top: 20px;
}

.svc-tech2-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 380ms ease, transform 380ms ease;
}

.svc-tech2-slide.is-active {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.svc-tech2-feature {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(150deg, #2f5fe6 0%, #1a3696 100%);
  box-shadow: 0 20px 44px -18px rgba(47, 95, 230, 0.5);
}

.svc-tech2-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.svc-tech2-feature-icon svg,
.svc-tech2-feature-icon i {
  width: 20px;
  height: 20px;
}

.svc-tech2-feature-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

.svc-tech2-feature-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.svc-tech2-checklist {
  min-height: 214px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #f4f7fb;
  border: 1px solid rgba(4, 7, 13, 0.06);
}

.svc-tech2-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-tech2-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(4, 7, 13, 0.06);
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(4, 7, 13, 0.76);
}

.svc-tech2-checklist li:last-child {
  border-bottom: 0;
}

.svc-tech2-checklist li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #0284c7;
}

/* ---- Prev/next + counter ---- */

.svc-tech2-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.svc-tech2-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(4, 7, 13, 0.14);
  background: #ffffff;
  color: #04070d;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.svc-tech2-nav-btn:hover {
  border-color: rgba(0, 194, 255, 0.5);
  background: rgba(0, 194, 255, 0.08);
  color: #0284c7;
  transform: translateY(-1px);
}

.svc-tech2-nav-btn svg {
  width: 16px;
  height: 16px;
}

.svc-tech2-nav-count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(4, 7, 13, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .svc-tech2-list-rail {
    transition: none;
  }

  .svc-tech2-slide {
    transition: opacity 200ms ease;
    transform: none;
  }
}

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

@media (max-width: 1024px) {
  .svc-tech2-head {
    padding: 80px 0 140px;
  }

  .svc-tech2-head-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .svc-tech2-lede {
    max-width: none;
  }

  .svc-tech2-body {
    margin-top: -104px;
  }

  .svc-tech2-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .svc-tech2-list-col {
    border-right: 0;
    border-bottom: 1px solid rgba(4, 7, 13, 0.08);
    padding: 24px 24px 8px;
  }

  .svc-tech2-list-rail {
    display: none;
  }

  .svc-tech2-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
  }

  .svc-tech2-list::-webkit-scrollbar {
    display: none;
  }

  .svc-tech2-tab {
    width: auto;
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(4, 7, 13, 0.14);
    border-radius: 999px;
    white-space: nowrap;
  }

  .svc-tech2-tab-index {
    display: none;
  }

  .svc-tech2-tab.is-active {
    border-color: #00c2ff;
    background: rgba(0, 194, 255, 0.08);
  }

  .svc-tech2-detail-col {
    padding: 24px;
  }

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

  .svc-tech2-feature,
  .svc-tech2-checklist {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .svc-tech2-head {
    padding: 64px 0 120px;
  }

  .svc-tech2-body {
    margin-top: -88px;
  }

  .svc-tech2-visual {
    height: 190px;
  }

  .svc-tech2-feature {
    padding: 22px;
  }

  .svc-tech2-checklist {
    padding: 18px 20px;
  }

  .svc-tech2-panel {
    display: block;
  }
}

/* ==========================================================================
   Variant 3 (Media Accordion) — full-height image left (Section Title
   overlaid on a dark gradient), intro copy + numbered accordion right. Built
   from a reference screenshot the user shared. The accordion reuses the
   sitewide `.faq-item`/`.faq-question`/`.faq-answer`/`.faq-answer-inner`
   structural classes so it rides the existing exclusive-open, height-
   animated handler in main.js with zero new JS — the `.svc-tech3-*`
   companion classes below only restyle it for this light panel (main.css's
   `.faq-item` rules are dark-themed by default).
   ========================================================================== */

.svc-tech3 {
  position: relative;
  padding: 80px 0;
  background: #04070d;
}

.svc-tech3-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(4, 7, 13, 0.28);
}

.svc-tech3-media {
  position: relative;
  min-height: 480px;
}

.svc-tech3-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.svc-tech3-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 7, 13, 0.9) 0%, rgba(4, 7, 13, 0.55) 45%, rgba(4, 7, 13, 0.15) 100%);
}

.svc-tech3-media-title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 48px 44px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.svc-tech3-content {
  display: flex;
  flex-direction: column;
  padding: 48px 44px;
  background: #ffffff;
}

.svc-tech3-intro {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(4, 7, 13, 0.78);
}

.svc-tech3-accordion.faq-list {
  margin-top: 0;
  gap: 0;
}

.svc-tech3-item.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(4, 7, 13, 0.1);
  border-radius: 0;
}

.svc-tech3-item.faq-item:last-child {
  border-bottom: 0;
}

.svc-tech3-question.faq-question {
  padding: 20px 0;
  gap: 16px;
  color: #04070d;
  font-size: 16px;
  font-weight: 700;
}

.svc-tech3-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.svc-tech3-index {
  font-size: 13px;
  font-weight: 700;
  color: #2f5fe6;
}

.svc-tech3-chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: rgba(4, 7, 13, 0.4);
  transition: transform 300ms ease, color 300ms ease;
}

.svc-tech3-item.active .svc-tech3-chevron {
  color: #2f5fe6;
  transform: rotate(180deg);
}

.svc-tech3-answer-inner.faq-answer-inner {
  padding: 0 0 22px;
  color: rgba(4, 7, 13, 0.6);
  font-size: 14.5px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .svc-tech3-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .svc-tech3-media {
    min-height: 260px;
  }

  .svc-tech3-content {
    padding: 36px 28px;
  }
}

@media (max-width: 560px) {
  .svc-tech3 {
    padding: 56px 0;
  }

  .svc-tech3-media-title {
    padding: 32px 28px;
    font-size: 1.5rem;
  }

  .svc-tech3-content {
    padding: 28px 22px;
  }
}
