/* ─── SERVICES PAGE ─────────────────────────────────
   All layout via Bootstrap (container / row / col-*)
   Brand-specific + interaction styles only           */


/* Hero banner (.ab-hero) now comes from about.css — kept in sync
   with the Research and About Us page banners.                   */
.ab-hero.ab-hero--services {
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.72) 100%),
    linear-gradient(135deg, rgba(11,30,78,.55) 0%, rgba(22,56,131,.4) 50%, rgba(26,77,183,.5) 100%),
    url('../../../images/services-banner.jpg') center / cover no-repeat;
}


/* ══════════════════════════════════════════════════
   2. SERVICES REEL — cinematic GSAP carousel

   Layout: two columns — the slide stage on the left,
   the index rail on the right. Background image layers
   are stacked full-bleed and wiped in with clip-path.
   Every slide shares one CSS-grid cell, so the stage
   height is the tallest slide and never jumps.
══════════════════════════════════════════════════ */
.svc-showcase {
  --svc-deep:   #071229;
  --svc-blue:   #163883;
  --svc-bright: #5b93ff;
  --svc-pale:   #cadcff;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--svc-deep);
  color: #fff;
  touch-action: pan-y;
}

/* ── Background stack ── */
.svc-showcase__bg { position: absolute; inset: 0; z-index: 0; }
.svc-showcase__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0% 0% 0% 100%);
  will-change: clip-path;
}
.svc-showcase__layer:first-child { clip-path: inset(0% 0% 0% 0%); }
/* Parallax wrapper is separate from the image so the scroll parallax and
   the slide-transition scale never fight over the same transform. */
.svc-showcase__par { position: absolute; inset: -7% 0; will-change: transform; }
.svc-showcase__layer img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}
/* z-index 5/6 keep the veil and texture above the image layers, which GSAP
   raises to z-index 2 as they become active. */
.svc-showcase__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(100deg, rgba(4,11,26,.94) 0%, rgba(5,16,38,.86) 45%, rgba(6,20,48,.6) 100%),
    linear-gradient(0deg, rgba(4,11,26,.75) 0%, transparent 48%);
}
.svc-showcase__mesh {
  position: absolute;
  inset: 0;
  z-index: 6;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ── Grid shell ── */
.svc-showcase__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
  padding-block: clamp(72px, 9vw, 124px);
}
.svc-showcase__main { min-width: 0; }

.svc-showcase__eyebrow {
  margin: 0 0 12px;
  color: var(--svc-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.svc-showcase__lead {
  margin: 0;
  max-width: 460px;
  color: rgba(255,255,255,.62);
  font-size: var(--tx-sm);
  line-height: 1.7;
}

/* ── Slide stage — all slides share one grid cell ── */
.svc-stage {
  display: grid;
  align-items: start;
  margin-block: clamp(34px, 4.5vw, 60px) clamp(30px, 4vw, 48px);
}
.svc-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.svc-panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.svc-panel__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.svc-panel__kicker b {
  color: var(--svc-bright);
  font-weight: 700;
  letter-spacing: .1em;
}
.svc-panel__kicker::after {
  content: '';
  flex: 0 0 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.45), transparent);
}

.svc-panel__title {
  margin: 0 0 22px;
  max-width: 12ch;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
/* Word masks used by the roll-up animation */
.svc-w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.svc-w > i { display: inline-block; font-style: normal; will-change: transform; }

.svc-panel__text {
  margin: 0 0 24px;
  max-width: 520px;
  color: rgba(255,255,255,.72);
  font-size: var(--tx-base);
  line-height: 1.72;
}

.svc-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  max-width: 560px;
}
.svc-panel__chips li {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.svc-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 22px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #0c214e;
  font-size: var(--tx-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.svc-btn__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0c214e;
  color: #fff;
  font-size: 15px;
  transition: transform .25s var(--ease);
}
.svc-btn:hover { background: var(--svc-pale); color: #0c214e; transform: translateY(-2px); }
.svc-btn:hover .svc-btn__ico { transform: rotate(45deg); }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 3px;
  border: none;
  border-bottom: 1.5px dashed rgba(255,255,255,.35);
  background: none;
  color: rgba(255,255,255,.78);
  font-family: var(--font);
  font-size: var(--tx-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.svc-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.75); }

/* ── Controls row ── */
.svc-controls { display: flex; align-items: center; gap: 14px; }
.svc-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  transition: background .22s, border-color .22s, transform .22s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.svc-nav svg { width: 20px; height: 20px; }
.svc-nav:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }

.svc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255,255,255,.6);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
}
.svc-toggle:hover { color: #fff; }
.svc-toggle__ico { display: inline-flex; align-items: center; gap: 3px; width: 12px; }
.svc-toggle__ico i { width: 3px; height: 12px; background: currentColor; transition: all .2s; }
.svc-toggle.is-paused .svc-toggle__ico i:first-child {
  width: 0; height: 0; background: none;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.svc-toggle.is-paused .svc-toggle__ico i:last-child { display: none; }

.svc-counter {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.45);
  font-size: var(--tx-sm);
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.svc-counter #svcNow { color: #fff; font-size: var(--tx-lg); }
.svc-counter__sep { width: 30px; height: 1px; background: rgba(255,255,255,.3); }

/* Screen-reader-only live region */
.svc-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Index rail ── */
.svc-rail { position: relative; display: flex; flex-direction: column; padding-left: 22px; }
.svc-rail__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--svc-bright);
  box-shadow: 0 0 18px rgba(91,147,255,.7);
}
.svc-rail::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.13);
}
.svc-rail__item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 0;
  border: none;
  background: none;
  color: rgba(255,255,255,.5);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.svc-rail__item:hover { color: rgba(255,255,255,.85); padding-left: 6px; }
.svc-rail__item.is-active { color: #fff; padding-left: 10px; }
.svc-rail__num { font-size: 10px; font-weight: 700; letter-spacing: .12em; opacity: .7; }
.svc-rail__name { font-size: var(--tx-sm); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.svc-rail__track {
  grid-column: 2;
  height: 2px;
  margin-top: 9px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s;
}
.svc-rail__item.is-active .svc-rail__track { opacity: 1; }
.svc-rail__track > i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--svc-bright);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Focus states — keyboard users must be able to see where they are */
.svc-showcase :is(.svc-nav, .svc-toggle, .svc-rail__item, .svc-btn, .svc-link):focus-visible {
  outline: 2px solid var(--svc-bright);
  outline-offset: 4px;
  border-radius: 8px;
}

/* No-JS / no-GSAP fallback — show the first slide as a static panel */
.svc-showcase--static .svc-panel.is-active { opacity: 1; visibility: visible; }
.svc-showcase--static .svc-controls,
.svc-showcase--static .svc-rail__track { display: none; }

/* ── Read-more modal (Custom Drone Development / Mapping & Spatial Analytics) ── */
.sv-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}
.sv-modal .modal-header {
  padding: 26px 30px;
  border-bottom: 1px solid var(--c-line);
}
.sv-modal .modal-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-primary);
  letter-spacing: -.3px;
}
.sv-modal .modal-body { padding: 28px 30px 30px; }
.sv-modal-lead {
  font-size: var(--tx-base);
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 26px;
}
.sv-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 26px;
}
.sv-modal-block h5 {
  font-family: var(--font);
  font-size: var(--tx-base);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.sv-modal-block p {
  font-size: var(--tx-sm);
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 576px) {
  .sv-modal-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   3. FAQ + FORM SECTION
══════════════════════════════════════════════════ */
.sv-faq-form {
  background: #fff;
  padding: clamp(64px, 10vh, 108px) 0;
}
/* At <576px .container is full-bleed with only 12px padding, so the
   g-5 (3rem) gutter's -24px row margin would overflow the viewport —
   drop back to the default 1.5rem gutter until the container gets
   its own side margins again. */
@media (max-width: 575.98px) {
  .sv-faq-form .row.g-5 { --bs-gutter-x: 1.5rem; }
}
.sv-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sv-section-heading {
  font-family: var(--font);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.08;
  letter-spacing: -.4px;
  margin-bottom: 36px;
}

/* ── FAQ Accordion ── */
.sv-acc { border: none; }
.sv-acc-item {
  border: none !important;
  border-bottom: 1px solid var(--c-line) !important;
  border-radius: 0 !important;
  background: transparent;
}
.sv-acc-item:first-of-type { border-top: 1px solid var(--c-line) !important; }
.sv-acc-btn {
  background: transparent !important;
  font-family: var(--font);
  font-size: var(--tx-base);
  font-weight: 600;
  color: var(--c-ink);
  padding: 20px 0;
  box-shadow: none !important;
  border-radius: 0;
}
.sv-acc-btn:not(.collapsed) { color: var(--c-primary); }
.sv-acc-btn::after {
  background-size: 14px;
  opacity: .5;
}
.sv-acc-btn:not(.collapsed)::after { opacity: 1; }
.sv-acc-body {
  padding: 0 0 20px;
  font-size: var(--tx-sm);
  color: var(--c-muted);
  line-height: 1.75;
}

/* ── Form ── */
.sv-form { margin-top: 4px; }
.sv-fg { margin-bottom: 20px; }
.sv-fg:last-of-type { margin-bottom: 0; }
.row.g-3 .sv-fg { margin-bottom: 0; }
.sv-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  padding: 11px 0;
  font-family: var(--font);
  font-size: var(--tx-sm);
  color: var(--c-ink);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.sv-input:focus   { border-color: var(--c-primary); }
.sv-input::placeholder { color: var(--c-faint); }
textarea.sv-input { resize: none; line-height: 1.65; display: block; min-height: 110px; }
.sv-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23787878' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 20px; }

.sv-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-ink);
  color: #fff;
  font-family: var(--font);
  font-size: var(--tx-sm);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  margin-top: 24px;
  transition: background .2s, transform .15s;
  letter-spacing: .03em;
}
.sv-submit-btn:hover    { background: var(--c-primary); transform: translateY(-1px); }
.sv-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.sv-form-msg {
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: var(--tx-sm);
  font-weight: 600;
  display: none;
}
.sv-form-msg--success {
  display: block;
  background: rgba(22,56,131,.07);
  color: var(--c-primary);
  border: 1px solid rgba(22,56,131,.15);
}
.sv-form-msg--error {
  display: block;
  background: rgba(220,38,38,.06);
  color: #b91c1c;
  border: 1px solid rgba(220,38,38,.15);
}


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
/* Tablet — rail drops below the stage and turns horizontal */
@media (max-width: 991px) {
  .svc-showcase__inner { grid-template-columns: 1fr; gap: 34px; }
  .svc-panel__title { max-width: none; }

  .svc-rail {
    flex-direction: row;
    gap: 10px;
    padding-left: 0;
    padding-top: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,.13);
  }
  .svc-rail::-webkit-scrollbar { display: none; }
  .svc-rail::before,
  .svc-rail__marker { display: none; }

  .svc-rail__item {
    flex: 0 0 auto;
    width: auto;
    min-width: 160px;
    grid-template-columns: auto 1fr;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.05);
  }
  .svc-rail__item:hover,
  .svc-rail__item.is-active { padding-left: 16px; }
  .svc-rail__item.is-active { border-color: rgba(91,147,255,.65); background: rgba(91,147,255,.14); }
}

/* Phone */
@media (max-width: 767px) {
  .svc-showcase__inner { padding-block: 64px 56px; }
  .svc-panel__text { font-size: var(--tx-sm); }
  .svc-panel__chips { margin-bottom: 26px; }
  .svc-btn { padding-left: 18px; gap: 12px; }
  .svc-btn__ico { width: 32px; height: 32px; }
  .svc-controls { flex-wrap: wrap; gap: 12px; }
  .svc-nav { width: 44px; height: 44px; }
  .svc-toggle { order: 3; margin-left: 0; }
  .svc-counter { margin-left: auto; }
}

@media (max-width: 480px) {
  .svc-panel__kicker::after { display: none; }
  .svc-panel__chips li { font-size: 11px; padding: 5px 12px; }
  .svc-rail__item { min-width: 148px; }
}

/* Motion-sensitive visitors: no autoplay, no parallax, no wipe */
@media (prefers-reduced-motion: reduce) {
  .svc-showcase *,
  .svc-showcase *::before,
  .svc-showcase *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .svc-rail__track { display: none; }
}
