/* ── Services page styles ────────────────────────── */

/* ── Hero ────────────────────────────────────────── */

.services-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.services-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14, 21, 32, 0.92) 0%,
    rgba(14, 21, 32, 0.75) 50%,
    rgba(14, 21, 32, 0.4) 100%
  );
}

.services-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 60% at 100% -10%,
      rgba(0, 81, 142, 0.2) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 50% at 0% 80%,
      rgba(0, 81, 142, 0.1) 0%,
      transparent 60%
    );
}

.services-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
  padding: var(--space-48) 0;
}

.services-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: 680px;
}

.services-hero-title {
  color: var(--color-text-primary);
}

.services-hero-accent {
  color: var(--color-brand-accent);
}

.services-hero-subtitle {
  color: var(--color-text-muted);
  max-width: 560px;
}

/* Service pills */
.services-hero-pills {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.services-hero-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* Stats row */
.services-hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-32);
  flex-wrap: wrap;
  padding: var(--space-20) 0;
  border-top: 1px solid var(--color-border);
}

.services-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.services-stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-brand-accent);
  line-height: 1;
}

.services-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 120px;
}

.services-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border-md);
  flex-shrink: 0;
}

/* ── Service sections ────────────────────────────── */

.services-service {
  border-top: 1px solid var(--color-border);
}

.services-service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
}

/* Reverse — content left, image right */
.services-service-inner-reverse {
  direction: rtl;
}

.services-service-inner-reverse > * {
  direction: ltr;
}

/* Service media */
.services-service-media {
  border-radius: var(--radius-12);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
}

.services-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Service content */
.services-service-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.services-service-title {
  color: var(--color-text-primary);
}

.services-service-body {
  color: var(--color-text-muted);
}

/* Feature list */
.services-service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.services-service-feature {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.services-service-feature .type-caption {
  color: var(--color-text-muted);
}

/* Build section glow */
.services-service-alt {
  position: relative;
  overflow: hidden;
}

.services-build-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 70% at 100% 50%,
    rgba(0, 81, 142, 0.12) 0%,
    transparent 70%
  );
}

.services-service-alt .services-service-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  .services-service-inner,
  .services-service-inner-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-32);
  }
}

/* ── Why Luxsonic ────────────────────────────────── */

.services-why {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.services-why-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 60% at 50% 100%,
    rgba(0, 81, 142, 0.12) 0%,
    transparent 70%
  );
}

.services-why .section-header-centered {
  position: relative;
  z-index: 1;
}

.services-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
  position: relative;
  z-index: 1;
}

.services-why-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-32);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-12);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.services-why-card:hover {
  border-color: var(--color-border-md);
  box-shadow: var(--shadow-card-hover);
}

.services-why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-12);
  background: var(--color-brand-tint);
  border: 1px solid var(--color-brand-tint-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-accent);
  flex-shrink: 0;
}

.services-why-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.services-why-body {
  color: var(--color-text-muted);
}

@media (max-width: 1023px) {
  .services-why-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Insights preview ────────────────────────────── */

.services-insights {
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.services-insights::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 80% at 100% 50%,
    rgba(0, 81, 142, 0.1) 0%,
    transparent 70%
  );
}

.services-insights .imaging-insights-header,
.services-insights .grid-3 {
  position: relative;
  z-index: 1;
}
