/* ═══════════════════════════════════════════════════════════
   Service page shared styles
   Requires ../styles.css to be loaded first (provides :root vars)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────── */
.svc-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-deep);
  overflow: hidden;
  padding-top: 72px;
}

/* Background video — sits behind canvas and overlay */
.svc-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  display: block;
  /* Subdue the video: darken, desaturate and cool the tone
     so it reads as atmosphere rather than subject matter   */
  filter: brightness(0.55) saturate(0.70) contrast(1.05);
}

.svc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* Canvas streams sit over video, mix-blend lets video
     colour bleed through subtly where streams are dark   */
  mix-blend-mode: screen;
  opacity: 0.55;
}

.svc-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Heavy dark on left where text sits, opens right      */
  background:
    linear-gradient(
      105deg,
      rgba(8, 16, 28, 0.62) 0%,
      rgba(8, 16, 28, 0.55) 35%,
      rgba(8, 16, 28, 0.42) 65%,
      rgba(8, 16, 28, 0.28) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 16, 28, 0.35) 0%,
      transparent 30%,
      transparent 70%,
      rgba(8, 16, 28, 0.45) 100%
    );
  pointer-events: none;
}

.svc-hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.svc-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.svc-breadcrumb a:hover { color: var(--white); }
.svc-breadcrumb span[aria-hidden] { color: var(--text-dim); }

/* ── Hero text ───────────────────────────────────────────── */
.svc-number {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.svc-number span { color: var(--text-dim); }

.svc-hero-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.svc-hero-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(254, 102, 3, 0.15);
  border: 1px solid rgba(254, 102, 3, 0.30);
  border-radius: 14px;
  color: var(--orange);
}
.svc-hero-icon svg {
  width: 26px;
  height: 26px;
}

.svc-title {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0;
}

.svc-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 40px;
}

.svc-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Shared section helpers ──────────────────────────────── */
.svc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.svc-section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 16px;
}

.svc-section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* ── Challenge cards ─────────────────────────────────────── */
.svc-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-pain-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: background var(--transition), border-color var(--transition),
              transform 0.3s ease, box-shadow 0.3s ease;
}
.svc-pain-card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.30);
}

.svc-pain-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
}

.svc-pain-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.svc-pain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── What we do — two-column layout ─────────────────────── */
.svc-what-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.svc-capability-list {
  list-style: none;
  margin-top: 40px;
  padding: 0;
}

.svc-capability-list li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
  transition: border-color var(--transition);
}
.svc-capability-list li:first-child { padding-top: 0; }
.svc-capability-list li:last-child  { border-bottom: none; padding-bottom: 0; }
.svc-capability-list li:hover       { border-bottom-color: rgba(255,255,255,0.12); }



.svc-capability-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
  line-height: 1.35;
}

.svc-capability-list p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.svc-what-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 16px;
}

/* ── Why Loop Horizon ────────────────────────────────────── */
.svc-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.svc-why-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: background var(--transition), border-color var(--transition),
              transform 0.3s ease;
}
.svc-why-card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.svc-why-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 2px;
}

.svc-why-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.svc-why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Proof points ────────────────────────────────────────── */
.svc-proof-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.svc-proof-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(3, 165, 165, 0.50);
  border-radius: var(--radius);
  color: #03A5A5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  margin-bottom: 4px;
}
.svc-proof-all:hover {
  background: rgba(3, 165, 165, 0.10);
  border-color: rgba(3, 165, 165, 0.80);
  color: #03A5A5;
  transform: translateY(-2px);
}
.svc-proof-all:focus-visible {
  outline: 2px solid #03A5A5;
  outline-offset: 3px;
}
.svc-proof-all:active {
  transform: translateY(0);
}

.svc-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.svc-proof-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: background var(--transition), transform 0.3s ease,
              box-shadow 0.3s ease;
}
.svc-proof-card:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.svc-proof-bar {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--bar-color);
  margin-bottom: 22px;
}

.svc-proof-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── CTA strip ───────────────────────────────────────────── */
.svc-cta-strip {
  background: var(--bg-deep);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.svc-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg,
    rgba(254,102,3,0.10) 0%,
    rgba(3,165,165,0.06) 60%,
    rgba(255,193,0,0.04) 100%
  );
  border: 1px solid rgba(254,102,3,0.22);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.svc-cta-inner h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.25;
}

.svc-cta-inner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 500px;
}

/* ── Service nav indicator (active page in dropdown) ─────── */
.nav-drop-item.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-what-layout { gap: 48px; }
}

@media (max-width: 900px) {
  .svc-pain-grid   { grid-template-columns: 1fr; gap: 16px; }
  .svc-what-layout { grid-template-columns: 1fr; gap: 40px; }
  .svc-what-visual { order: -1; }
  .svc-illustration { max-width: 360px; }
  .svc-why-grid    { grid-template-columns: 1fr; }
  .svc-proof-grid  { grid-template-columns: 1fr; }
  .svc-cta-inner   { flex-direction: column; text-align: center; padding: 40px 36px; }
  .svc-cta-inner p { max-width: none; }
}

@media (max-width: 640px) {
  .svc-hero        { min-height: 65svh; }
  .svc-hero-inner  { padding-top: 40px; padding-bottom: 56px; }
  .svc-title       { font-size: 40px; }
  .svc-cta-inner   { padding: 32px 24px; }
  .svc-why-card    { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .svc-pain-card   { padding: 28px 24px; }
}
