/**
 * Section layout, cards, audit, pills, steps
 */

section {
  padding: var(--space-10) 0;
}

.section-title {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--primary);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 48ch;
  margin: -0.5rem auto 2rem;
  font-size: 0.95rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr));
  gap: var(--space-5);
}

.cards.cards-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}

.cards.cards-center .card {
  flex: 0 1 20rem;
  max-width: 23.75rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border: var(--border-width) solid var(--overlay-primary-06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--overlay-secondary-12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--secondary-dark);
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  stroke: currentColor;
}

/* Core services cards */
#services .cards {
  gap: 1.35rem;
}

#services .card {
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  border: var(--border-width) solid var(--overlay-primary-08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#services .card:hover {
  transform: translateY(-0.1875rem);
  box-shadow: var(--shadow-card-hover);
}

#services .service-visual {
  height: 9.25rem;
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-width) solid var(--overlay-primary-08);
}

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

#services .service-content {
  padding: var(--space-4) 1.1rem var(--space-5);
}

#services .service-meta {
  margin: 0 0 0.65rem;
  padding-left: 0.55rem;
  border-left: var(--border-width-3) solid var(--secondary-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

#services .card h3 {
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

#services .card p {
  line-height: 1.6;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 43.75em) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col .content h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--primary);
}

.two-col .content p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

/* Audit section */
.audit-section .section-intro {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--overlay-secondary-06);
  border-radius: var(--radius);
  border: var(--border-width) solid var(--overlay-secondary-12);
}

.audit-section .section-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.audit-section .pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.audit-section .pill {
  padding: 0.85rem var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 11.25rem;
}

.audit-section .pill strong {
  margin-bottom: 0.25rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  background: var(--surface);
  border: var(--border-width) solid var(--overlay-primary-10);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow-pill);
  min-width: 0;
}

@media (max-width: 31.25em) {
  .pill {
    border-radius: var(--radius);
    font-size: 0.8rem;
    padding: var(--space-2) 0.9rem;
  }
}

.pill strong {
  display: block;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-bottom: 0.15rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-6);
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border-left: var(--border-width-4) solid var(--secondary);
}

.step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.step h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
