/* ==========================================================================
   PROVEN COOPERATIVE — SERVICES PAGE STYLES
   Reference: Doc/services.md & Doc/DESIGN_SYSTEM.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   Services Hero Section
   -------------------------------------------------------------------------- */
.services-hero {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background-color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .services-hero {
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
  }
}

.services-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .services-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background-color: var(--bg-tint);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-green-700);
}

[data-theme="dark"] .hero-feature-chip {
  color: var(--color-gold-500);
}

/* --------------------------------------------------------------------------
   Sticky Category Filter Bar & Overview Cards Grid
   -------------------------------------------------------------------------- */
.services-filter-sticky {
  position: sticky;
  top: 80px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  z-index: 95;
  transition: background-color var(--transition-normal);
}

.category-chips-list {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-chips-list::-webkit-scrollbar {
  display: none;
}

.category-chip-btn {
  padding: 0.5rem 1.125rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-tint);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.category-chip-btn:hover {
  border-color: var(--color-green-700);
  color: var(--color-green-700);
}

.category-chip-btn.active,
.category-chip-btn:focus-visible {
  background: var(--color-green-700);
  color: var(--color-white) !important;
  border-color: var(--color-green-700);
}

[data-theme="dark"] .category-chip-btn.active {
  background: var(--color-gold-500);
  color: #000000 !important;
  border-color: var(--color-gold-500);
}

.overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.overview-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.overview-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.overview-tagline {
  font-size: var(--text-sm);
  color: var(--color-green-700);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .overview-tagline {
  color: var(--color-gold-500);
}

/* --------------------------------------------------------------------------
   Alternating Service Detail Blocks
   -------------------------------------------------------------------------- */
.service-detail-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
  scroll-margin-top: 140px;
}

@media (min-width: 1024px) {
  .service-detail-block {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.service-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .service-block-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Alternating media left / right pattern */
  .service-detail-block.reverse .service-block-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail-block.reverse .service-block-content {
    order: 1;
  }

  .service-detail-block.reverse .service-block-media {
    order: 2;
  }
}

.service-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-green-50);
  color: var(--color-green-700);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .service-badge {
  background: var(--bg-surface-elevated);
  color: var(--color-gold-500);
  border-color: var(--border-subtle);
}

.service-title {
  margin-bottom: 0.5rem;
}

.service-tagline-lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-green-700);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .service-tagline-lead {
  color: var(--color-gold-500);
}

.service-deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-base);
  color: var(--text-main);
  line-height: 1.5;
}

.deliverable-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-green-700);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

[data-theme="dark"] .deliverable-check {
  background: var(--color-gold-500);
  color: #000000;
}

.service-best-for {
  padding: 0.875rem 1rem;
  background: var(--bg-tint);
  border-left: 3px solid var(--color-green-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  color: var(--text-main);
  margin-bottom: 2rem;
}

[data-theme="dark"] .service-best-for {
  border-left-color: var(--color-gold-500);
}

/* Service Block Media Box (4:3 aspect with soft green offset shape) */
.service-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-green-900) 0%, #104133 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--color-white);
  border: 1px solid var(--border-subtle);
}

.service-media-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  width: 140px;
  height: 140px;
  color: var(--color-gold-500);
  pointer-events: none;
}

.service-media-caption {
  position: relative;
  z-index: 2;
}

.service-media-caption h4 {
  font-size: var(--text-xl);
  color: var(--color-gold-500);
  margin-bottom: 0.25rem;
}

.service-media-caption p {
  font-size: var(--text-xs);
  color: #dcece3;
  margin: 0;
}

