/**
 * Process Steps — child theme / Avada
 */

.cire-process-steps {
  --cire-ps-accent: #cb2b2b;
  --cire-ps-fg: #1a1a1a;
  --cire-ps-muted: #5c5c5c;
  --cire-ps-border: #e5e5e5;
  --cire-ps-bg: #ffffff;
  --cire-ps-muted-bg: rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: "Questrial", system-ui, sans-serif;
  color: var(--cire-ps-fg);
}

.cire-process-steps *,
.cire-process-steps *::before,
.cire-process-steps *::after {
  box-sizing: border-box;
}

.cire-process-steps__number-line {
  display: block;
  flex-shrink: 0;
  height: 1px;
  background: var(--cire-ps-accent);
}

.cire-process-steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  background: var(--cire-ps-border);
  border: 1px solid var(--cire-ps-border);
}

@media (min-width: 768px) {
  .cire-process-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cire-process-steps__grid--cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .cire-process-steps__grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cire-process-steps__grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cire-process-steps__grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cire-process-steps__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  align-items: start;
  margin: 0;
  padding: 2rem;
  background: var(--cire-ps-bg);
  transition: background-color 0.2s ease;
}

.cire-process-steps__card:hover {
  background: var(--cire-ps-muted-bg);
}

.cire-process-steps__number-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cire-process-steps__number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cire-ps-accent);
}

.cire-process-steps__number-line {
  width: 2rem;
}

.cire-process-steps__icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1rem;
  color: var(--cire-ps-fg);
  stroke: currentColor;
  flex-shrink: 0;
}

.cire-process-steps__title-slot {
  margin: 0 0 0.75rem;
}

.cire-process-steps__card-title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--cire-ps-fg);
}

@media (min-width: 768px) {
  /* Vaste titelruimte (2 regels) — body-tekst start op dezelfde hoogte */
  .cire-process-steps__title-slot {
    height: 3.5rem;
    margin-bottom: 0.75rem;
    overflow: visible;
  }
}

.cire-process-steps__card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--cire-ps-muted);
}

/* Avada / Fusion Builder */
.fusion-builder-column .cire-process-steps,
.fusion-text .cire-process-steps {
  width: 100% !important;
  float: none !important;
}

.fusion-builder-column .cire-process-steps__grid {
  display: grid !important;
}

.fusion-builder-column .cire-process-steps__grid > .cire-process-steps__card,
.fusion-builder-column .cire-process-steps__card {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
}

@media (min-width: 768px) {
  .fusion-builder-column .cire-process-steps__title-slot {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
    max-height: none !important;
  }
}

.fusion-builder-column .cire-process-steps h3.cire-process-steps__card-title {
  margin: 0 !important;
  padding: 0 !important;
}
