/* ============================================================
   SERVICE PAGE — service-page.css
   Inherits base styles from ../style.css
============================================================ */

/* ── Service page nav overrides ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  grid-template-columns: unset;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--green) !important;
  color: #000 !important;
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.85; }

/* Hide hamburger on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--off-black);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px, 5vw, 80px);
  gap: 20px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }

.mobile-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
}
.mobile-cta {
  color: var(--green) !important;
  font-weight: 700;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Back link ── */
.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 48px;
  transition: color 0.2s;
}
.sp-back:hover { color: var(--green); }
.sp-back span { transition: transform 0.2s; }
.sp-back:hover span { transform: translateX(-4px); }

/* ── Hero ── */
.sp-hero {
  padding: calc(var(--nav-h) + 60px) 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.sp-hero-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sp-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.sp-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
  background: var(--green-dim);
  border: 1px solid rgba(0,226,149,0.2);
  padding: 4px 12px;
  border-radius: 2px;
}

.sp-headline {
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 28px;
  white-space: pre-line;
}

.sp-tagline {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--off-white);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 56px;
}

/* Hero stats */
.sp-hero-stats {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  row-gap: 24px;
}

.sp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-stat-num {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.sp-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sp-hero-divider {
  height: 1px;
  background: var(--border);
  margin-top: 80px;
}

/* ── Shared section layout ── */
.sp-section {
  border-bottom: 1px solid var(--border);
}

.sp-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.sp-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
  padding-top: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.sp-section-content {
  min-width: 0;
}

/* What It Is */
.sp-section-text p {
  font-size: 17px;
  color: var(--off-white);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 680px;
}
.sp-section-text p:last-child { margin-bottom: 0; }

/* How We Do It — process steps */
.sp-process-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.sp-step:first-child { border-top: 1px solid var(--border); }

.sp-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.sp-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.sp-step-desc {
  font-size: 15px;
  color: var(--off-white);
  line-height: 1.65;
}

/* Past Work grid */
.sp-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.sp-work-card {
  background: var(--off-black);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
  position: relative;
}
.sp-work-card:hover { background: var(--surface); }

/* ── Linked / clickable card ── */
.sp-work-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.sp-work-card--link:hover {
  background: var(--surface);
  border-color: var(--green);
  box-shadow: 0 0 32px rgba(0, 226, 149, 0.12), inset 0 0 60px rgba(0, 226, 149, 0.04);
  transform: translateY(-2px);
}

/* Dark overlay fades in on hover */
.sp-work-card--link .sp-work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
  pointer-events: none;
}

.sp-work-card--link:hover .sp-work-card-overlay {
  opacity: 1;
}

/* Centered CTA box */
.sp-work-card-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--green);
  padding: 18px 40px;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(8px) scale(0.96);
  transition: transform 0.25s ease;
}

.sp-work-card--link:hover .sp-work-card-overlay-inner {
  transform: translateY(0) scale(1);
}

.sp-work-card-overlay-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 16px;
  box-shadow: 0 0 16px rgba(0, 226, 149, 0.4);
}

.sp-work-card-overlay-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 16px rgba(0, 226, 149, 0.7);
}

.sp-work-card--link .sp-work-credit {
  color: var(--green);
}

.sp-work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.sp-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
  transition: filter 0.4s, transform 0.5s;
}
.sp-work-card:hover .sp-work-thumb img {
  filter: brightness(0.9);
  transform: scale(1.04);
}

.sp-work-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sp-work-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sp-work-desc {
  font-size: 14px;
  color: var(--off-white);
  line-height: 1.6;
  flex: 1;
}

.sp-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-work-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

.sp-work-credit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── CTA ── */
.sp-cta {
  padding: 120px 40px;
  text-align: center;
  background: var(--off-black);
  border-top: 1px solid var(--border);
  padding-bottom: calc(120px + var(--ticker-h));
}

.sp-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.sp-cta-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--off-white);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.sp-cta-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.05;
}

.sp-cta-sub {
  font-size: 17px;
  color: var(--off-white);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sp-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 40px;
  }
  .sp-section-label {
    position: static;
  }
  .sp-work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .sp-hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }
  .sp-section-inner { padding: 48px 20px; }
  .sp-headline { white-space: normal; }
  .sp-hero-stats { gap: 28px; }
  .sp-work-grid { grid-template-columns: 1fr; }
  .sp-cta { padding: 80px 20px calc(80px + var(--ticker-h)); }
  .sp-step { grid-template-columns: 36px 1fr; gap: 16px; }
}
