﻿/* ===========================
   IMMERSIVE STAGE — CSS Grid
   cols: gutter | content | stats | gutter
   rows: hero | pills | detail-bar
=========================== */
.svc-stage {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px 1fr auto 48px;
  grid-template-rows: 1fr auto auto;
}

/* Background fills entire stage */
.svc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000; /* prevents grey flash */
}
.svc-bg__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: opacity, transform;
}
.svc-bg__slide:first-child { opacity: 1; }
.svc-bg__slide.active {
  opacity: 1;
  animation: svcZoom 14s ease-in-out infinite alternate;
}
@keyframes svcZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}
.svc-bg__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.05) 100%),
    linear-gradient(to right, rgba(0,0,0,.45) 0%, transparent 65%);
}

/* Hero text — col 2, row 1, bottom-aligned */
.svc-hero-text {
  position: relative; z-index: 3;
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 40px;
  max-width: 560px;
}
.svc-hero-text__eyebrow {
  font-family: var(--display); font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--orange);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.svc-hero-text__eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--orange); }
.svc-hero-text__title {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; color: #fff; line-height: 1.05; margin-bottom: 16px;
}
.svc-hero-text__title em { font-style: italic; color: var(--orange); }
.svc-hero-text__sub { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.8; max-width: 420px; }

/* Stats panel — col 3, row 1, top-aligned */
.svc-stats-panel {
  position: relative; z-index: 3;
  grid-column: 3; grid-row: 1;
  align-self: start; margin-top: 120px;
  display: flex; flex-direction: column;
  background: rgba(15,15,15,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; overflow: hidden; min-width: 160px;
}
.svc-stat-item {
  padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center; transition: opacity .3s, transform .3s;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .svc-stage { height: auto; min-height: auto; grid-template-columns: 20px 1fr 20px; grid-template-rows: 60vh auto auto; }
  .svc-bg { height: 100%; position: absolute; }
  .svc-hero-text { grid-column: 2; padding-bottom: 28px; }
  .svc-stats-panel { display: none; }
  .svc-pill-nav { grid-column: 1 / -1; padding: 0 20px 24px; }
  .svc-detail { grid-column: 1 / -1; grid-template-columns: 1fr; background: #111; }
  .svc-detail__title { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 16px 20px; }
  .svc-detail__body { padding: 14px 20px; }
  .svc-detail__cta { border-left: none; border-top: 1px solid rgba(255,255,255,.07); padding: 16px 20px; height: auto; }
  .svc-ticker { display: none; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .svc-stage { grid-template-rows: 55vh auto auto; }
  .svc-hero-text { padding-bottom: 20px; }
  .svc-hero-text__title { font-size: clamp(2.4rem, 8vw, 3.8rem); }
  .svc-hero-text__sub { font-size: 13px; }
  .svc-pill-nav__list { gap: 8px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .svc-pill-nav__list::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .svc-hero-text { padding: 90px 20px 0; }
  .svc-hero-text__title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .svc-pill-nav { padding: 0 20px 20px; }
  .svc-pill-nav__list { gap: 8px; }
  .svc-nav__item-inner { padding: 8px 14px; font-size: 11px; white-space: nowrap; }
  .svc-nav__num { display: none; }
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .svc-process__header { margin-bottom: 40px; }
}
.svc-nav__item-inner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); text-decoration: none;
  color: rgba(255,255,255,.65); transition: all .25s;
  white-space: nowrap;
}
.svc-nav__item:hover .svc-nav__item-inner { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); color: #fff; }
.svc-nav__item.active .svc-nav__item-inner { background: var(--orange); border-color: var(--orange); color: #fff; }
.svc-nav__num { font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: 2px; opacity: .65; }
.svc-nav__item-inner strong { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .5px; }

/* Detail bar — spans all cols, row 3 */
.svc-detail {
  position: relative; z-index: 3;
  grid-column: 1 / -1; grid-row: 3;
  display: grid; grid-template-columns: 1fr 1fr auto;
  align-items: center;
  background: rgba(8,8,8,.8); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.07);
}
.svc-detail__title { padding: 20px 28px 20px 48px; border-right: 1px solid rgba(255,255,255,.07); }
.svc-detail__title h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 300; color: #fff; line-height: 1.2; transition: opacity .3s, transform .3s; }
.svc-detail__title h3.out { opacity: 0; transform: translateY(6px); }
.svc-detail__body { padding: 16px 28px; display: flex; flex-direction: column; gap: 8px; }
.svc-detail__desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; transition: opacity .3s; }
.svc-detail__desc.out { opacity: 0; }
.svc-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; transition: opacity .3s; }
.svc-detail__tags.out { opacity: 0; }
.svc-detail__tags span {
  font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: 1px;
  color: rgba(255,255,255,.55); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); padding: 4px 12px; border-radius: 100px;
  transition: background .2s, border-color .2s, color .2s;
}
.svc-detail__tags span:hover { background: rgba(232,98,10,.2); border-color: var(--orange); color: #fff; }
.svc-detail__cta { padding: 0 40px; border-left: 1px solid rgba(255,255,255,.07); height: 100%; display: flex; align-items: center; }
.svc-detail__cta a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: var(--orange); padding: 14px 24px;
  border-radius: 100px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .3s, transform .3s, box-shadow .3s;
}
.svc-detail__cta a:hover { background: var(--orange-glow); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,98,10,.4); }

/* Ticker */
.svc-ticker { position: absolute; right: 16px; top: 0; bottom: 80px; z-index: 3; display: flex; flex-direction: column; overflow: hidden; pointer-events: none; width: 16px; }
.svc-ticker span { font-family: var(--display); font-size: 8px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.1); writing-mode: vertical-rl; animation: tickerScroll 22s linear infinite; white-space: nowrap; }
.svc-ticker span:last-child { animation-delay: -11s; }
@keyframes tickerScroll { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* HOW IT WORKS */
.svc-process__header { margin-bottom: 64px; }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.process-step { position: relative; padding-top: 24px; }
.process-step::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgba(17,17,17,.08); }
.process-step::after { content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 2px; background: var(--orange); }
.process-step__num { font-family: var(--display); font-size: 2.5rem; font-weight: 800; color: var(--orange); opacity: .2; line-height: 1; margin-bottom: 16px; }
.process-step h3 { font-family: var(--display); font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 10px; }
.process-step p { font-size: 13px; color: rgba(17,17,17,.5); line-height: 1.7; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .svc-stage { height: auto; min-height: auto; grid-template-columns: 20px 1fr 20px; grid-template-rows: 60vh auto auto; }
  .svc-bg { height: 100%; position: absolute; }
  .svc-hero-text { grid-column: 2; padding-bottom: 28px; }
  .svc-stats-panel { display: none; }
  .svc-pill-nav { grid-column: 1 / -1; padding: 0 20px 24px; }
  .svc-detail { grid-column: 1 / -1; grid-template-columns: 1fr; background: #111; }
  .svc-detail__title { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 16px 20px; }
  .svc-detail__body { padding: 14px 20px; }
  .svc-detail__cta { border-left: none; border-top: 1px solid rgba(255,255,255,.07); padding: 16px 20px; height: auto; }
  .svc-ticker { display: none; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) { .process-steps { grid-template-columns: 1fr; } }
