/**
 * Impactiqa — service.css
 * Service panel page layout.
 * All 4 services use light backgrounds with dark text.
 */

/* ── Panel variables ─────────────────────────────────────────────────────── */
:root {
  --panel-mute: rgba(10,10,10,.55);
  --panel-rule: rgba(10,10,10,.14);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html, body { height: 100%; }
body {
  background: var(--panel-bg);
  color: var(--panel-fg);
  overflow-x: hidden;
}
main {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.service-hero {
  padding: 0 8vw 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-hero .headline {
  margin-top: 8px;
}

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.service-section {
  padding: 80px 8vw 0;
  border-top: 1px solid var(--panel-rule);
}
.service-section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 48px;
}

/* ── Capabilities grid ───────────────────────────────────────────────────── */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
}
.capability-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--panel-rule);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 300;
  line-height: 1.3;
}
.capability-item:nth-child(odd) {
  padding-right: 40px;
  border-right: 1px solid var(--panel-rule);
}
.capability-item:nth-child(even) {
  padding-left: 40px;
}

/* ── Process steps ───────────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--panel-rule);
}
.process-step {
  background: var(--panel-bg);
  padding: 40px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--panel-mute);
  margin-bottom: 20px;
}
.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.step-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--panel-mute);
}

/* ── Related cases ───────────────────────────────────────────────────────── */
.related-cases {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--panel-rule);
}
.related-case-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--panel-bg);
  text-decoration: none;
  color: var(--panel-fg);
  cursor: pointer;
  transition: background .2s;
}
.related-case-card:hover {
  background: rgba(10,10,10,.04);
}
.related-case-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform .5s ease;
}
.related-case-card:hover .related-case-image {
  transform: scale(1.03);
}
.related-case-body {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.related-case-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--panel-mute);
}
.related-case-client {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.related-case-headline {
  font-size: 14px;
  font-weight: 300;
  color: var(--panel-mute);
  line-height: 1.5;
  max-width: 480px;
}
.related-case-arrow {
  position: absolute;
  right: 40px;
  bottom: 32px;
  font-size: 20px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s, transform .25s;
}
.related-case-card:hover .related-case-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── CTA strip ───────────────────────────────────────────────────────────── */
.service-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 64px 8vw 80px;
  border-top: 1px solid var(--panel-rule);
  margin-top: 80px;
}
.service-cta-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.service-cta-btn {
  display: inline-flex;
  text-decoration: none;
  flex-shrink: 0;
}
.service-cta-btn .vl {
  background: #0a0a0a;
  color: #f7f6f4;
  padding: 14px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service-cta-btn .vi {
  padding: 14px 16px;
  font-size: 16px;
  color: #0a0a0a;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .capability-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .capability-item:nth-child(even) {
    padding-left: 0;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .related-case-card {
    grid-template-columns: 160px 1fr;
  }
  .service-cta {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .service-section {
    padding: 60px 6vw 0;
  }
  .service-hero {
    padding: 0 6vw 60px;
  }
  .related-case-card {
    grid-template-columns: 1fr;
  }
  .related-case-image {
    aspect-ratio: 16 / 7;
  }
  .related-case-arrow {
    display: none;
  }
  .service-cta {
    padding: 60px 6vw 60px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .related-case-image,
  .related-case-card,
  .related-case-arrow { transition: none; }
}
