/* ============================================================
   GALMAVECA — Capabilities page stylesheet
   Loaded after styles.css. Sections:
     1. Core execution services (alternating rows)

   The page hero moved to styles.css when contact, industries and
   case-studies started using it too.

   The .service-row rules were moved here from home.css when the five
   services left the home page; the home now shows compact cards instead.
   ============================================================ */


/* ============================================================
   1. CORE EXECUTION — alternating rows
   ============================================================ */
.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  margin-top: var(--space-12);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;

  /* Clears the sticky header when arriving via #sourcing, #export, etc.
     Falls back gracefully: without the anchor the value is never used. */
  scroll-margin-top: calc(var(--header-height) + var(--space-8));
}

.service-row__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-soft-surface);
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-row:hover .service-row__media img {
  transform: scale(1.04);
}

.service-row__number {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.service-row__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  line-height: var(--leading-tight);
}

.service-row__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.service-row__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-row__list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.service-row__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background-color: var(--color-accent);
}

@media (min-width: 1024px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    scroll-margin-top: calc(var(--header-height-desktop) + var(--space-10));
  }

  .service-row:nth-child(even) .service-row__media {
    order: 2;
  }
}
