/* =========================================================
   Services page — list + photo grid
   Depends on theme tokens defined in theme.css
   ========================================================= */

/* Hero section */
.services-hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Intro text below the heading */
.services-hero .lead {
  max-width: 46rem;
  color: var(--text-muted);
  text-align: justify;
}

/* Main two-column layout */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Left: service list card
   Old theme used --surface-secondary (no longer exists).
   Now we use the dark surface + text-on-dark tokens. */
.svc-list-card {
  border-radius: var(--radius-card-lg);
  padding: 2.25rem 2.5rem;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-strong);
}

/* Service list */
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-list li + li {
  margin-top: .5rem;
}

.svc-list a {
  display: block;
  padding: .5rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  letter-spacing: .01em;
  transition:
    background-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

/* Hover: slightly deepen the dark card and slide link */
.svc-list a:hover,
.svc-list a:focus {
  background: color-mix(in srgb, var(--surface) 82%, #000 18%);
  color: var(--surface-dark);
  transform: translateX(2px);
}

/* Right: photo grid */
.svc-photo-grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.svc-photo {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.svc-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Manage-service images page cards (shared with services_manage.html) */
.svc-img-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}

.svc-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .services-hero {
    padding-top: 2.5rem;
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-photo-grid {
    order: 1;
    margin-bottom: 1.5rem;
  }

  .svc-list-card {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .svc-list-card {
    padding: 1.5rem;
  }
}

/* Empty state inside dark list card */
.svc-empty {
  padding: .5rem .9rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--text-on-dark) 65%, transparent);
  background: color-mix(in srgb, #fff 6%, transparent);
}
/* Active service link */
.svc-list a.is-active {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  color: var(--surface-dark);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
