/* ============================================================
   BEYOND THE SERP — services.css
   Styles exclusive to the Services listing page.
   The service-card and services-grid components are defined
   in home.css because they appear on both pages. This file
   adds any overrides specific to the full-page layout.
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   PAGE HERO — eyebrow / heading / intro paragraph
───────────────────────────────────────────────────────────── */
.services-hero-eyebrow {
  margin-bottom: 12px;
}

.services-hero-heading {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 800px;
}

.services-hero-intro {
  margin-top: 20px;
  max-width: 560px;
  font-size: 1.1rem;
  color: hsl(263, 50%, 12%, 0.7);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────
   SERVICES FOOTER ROW
───────────────────────────────────────────────────────────── */
.services-footer-row {
  margin-top: 0;
}

/* ─────────────────────────────────────────────────────────────
   CTA BLOCK inner wrap
───────────────────────────────────────────────────────────── */
.cta-inner-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.cta-eyebrow {
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────────────────────────
   SERVICES LIST — horizontal row layout
───────────────────────────────────────────────────────────── */
.services-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-row {
  display: block;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s var(--ease-quart);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row:hover {
  background: var(--surface-elevated);
  color: var(--foreground);
}

.service-row-inner {
  display: grid;
  grid-template-columns: 52px 60px 2fr 3fr 40px;
  gap: 24px;
  align-items: center;
  padding: 36px 8px;
}

/* Number */
.svc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(263, 50%, 12%, 0.4);
  transition: color 0.2s;
}

.service-row:hover .svc-num {
  color: var(--primary);
}

/* Icon */
.svc-icon .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: hsl(263, 73%, 52%, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.service-row:hover .svc-icon .icon-wrap {
  background: var(--primary);
  color: #fff;
}

/* Title */
.svc-title h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  transition: color 0.2s;
}

.service-row:hover .svc-title h3 {
  color: var(--primary);
}

/* Flagship inline badge */
.svc-flagship-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid hsl(263, 73%, 52%, 0.4);
  background: hsl(263, 73%, 52%, 0.1);
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}

/* Description */
.svc-desc {
  font-size: 1rem;
  color: hsl(263, 50%, 12%, 0.65);
  line-height: 1.6;
  margin: 0;
}

/* Arrow */
.svc-arrow {
  display: flex;
  justify-content: flex-end;
  color: hsl(263, 50%, 12%, 0.3);
  transition: color 0.2s, transform 0.2s;
}

.service-row:hover .svc-arrow {
  color: var(--primary);
  transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 1023px) {
  .service-row-inner {
    grid-template-columns: 44px 52px 1fr 1fr 36px;
    gap: 16px;
    padding: 28px 4px;
  }
}

@media (max-width: 767px) {
  .service-row-inner {
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 24px 4px;
  }

  .svc-num {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
  }

  .svc-icon {
    display: none;
  }

  .svc-title {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  .svc-arrow {
    grid-row: 1;
    grid-column: 3;
    align-self: center;
  }

  .svc-desc {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 0.9rem;
  }
}