/* ── SERVICES PAGE ────────────────────────────────────── */

/* Hero */
.svc-hero {
  position: relative;
  background: var(--void);
  padding: 8rem 3rem 5rem;
  overflow: hidden;
  transition: background 0.3s;
}
.svc-hero .hero-grid-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  opacity: 0.3; pointer-events: none;
}
[data-theme="light"] .svc-hero .hero-grid-canvas { opacity: 0.15; }
[data-theme="default"] .svc-hero .hero-grid-canvas { opacity: 0.08; }

.svc-hero-content { position: relative; z-index: 2; max-width: 700px; }
.svc-hero-title {
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--champagne);
  margin-bottom: 1.25rem;
}
.svc-hero-title em { font-style: var(--heading-style, italic); color: var(--gold); }
.svc-hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}

/* Section intro header (reused above the marquee) */
.services-section { background: var(--deep); overflow: hidden; transition: background 0.3s; }
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ── GIS Feature highlight (video removed — text only) ── */
.gis-feature-block {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 0 0 3rem;
  border-bottom: 0.5px solid var(--border2);
}
.gis-feature-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--champagne);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}
.gis-feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.gis-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gis-feature-list li {
  font-size: 12px;
  color: var(--champagne);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.gis-feature-list li i {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}

/* Marquee track */
.service-marquee-outer {
  overflow: hidden;
  border-top: 0.5px solid var(--border2);
  border-bottom: 0.5px solid var(--border2);
  margin: 0 -3rem; /* bleed to edges */
}
.service-marquee-track {
  display: flex;
  gap: 1px;
  width: max-content;
  animation: serviceScroll 55s linear infinite;
  background: var(--border2);
}
/* hover-pause is managed by JS after user interacts with next/prev buttons */
@keyframes serviceScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.service-card {
  background: var(--card);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: visible;
  transition: background 0.2s;
  cursor: default;
  min-width: 190px;
  flex-shrink: 0;
}
.service-card:hover { background: var(--card2); }
.service-card:hover .sc-num { color: var(--gold); }
.sc-num {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.sc-icon { font-size: 20px; color: var(--gold-dim); margin-bottom: 0.75rem; display: block; }
.sc-title { font-size: 13px; font-weight: 500; color: var(--champagne); line-height: 1.4; }
.sc-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.service-card:hover .sc-bar { width: 100%; }

/* Marquee prev/next controls */
.service-marquee-controls {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border-top: 0.5px solid var(--border2);
}
.smc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 48px;
  background: var(--card);
  border: none;
  border-right: 0.5px solid var(--border2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.smc-btn:last-child { border-right: none; border-left: 0.5px solid var(--border2); }
.smc-btn svg { width: 18px; height: 18px; }
.smc-btn:hover { color: var(--gold); background: var(--card2); }

/* Floating service tooltip */
#sc-floating-tooltip {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 270px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--tooltip-bg);
  border: 0.5px solid var(--border);
  padding: 1.25rem 1.25rem 1rem;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.sc-tooltip-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.sc-tooltip-intro {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-style: italic;
  line-height: 1.5;
}
.sc-tooltip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem 0;
}
.sc-tooltip-list li {
  font-size: 11px;
  color: var(--text);
  padding: 2px 0 2px 14px;
  position: relative;
  line-height: 1.5;
}
.sc-tooltip-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}
.sc-tooltip-deliverable {
  font-size: 11px;
  color: var(--gold-light);
  border-top: 0.5px solid var(--border2);
  padding-top: 0.5rem;
  margin-top: 0.4rem;
  font-style: italic;
  line-height: 1.5;
}

/* CTA */
.svc-cta-section {
  background: var(--panel);
  padding: 6rem 3rem;
  text-align: center;
  transition: background 0.3s;
}
.svc-cta-inner { max-width: 620px; margin: 0 auto; }
.svc-cta-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 1rem 0 2.5rem;
}
.svc-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .gis-feature-block { padding: 0 0 2rem; }
}

/* ── SERVICES RESPONSIVE ──────────────────────────────── */
@media (max-width: 720px) {
  .svc-hero { padding: 6rem 1.25rem 4rem; }
  .svc-cta-section { padding: 4rem 1.25rem; }
  .service-marquee-outer { margin: 0 -1.25rem; } /* keep edge bleed aligned with mobile section padding */
}
