/* ==========================================================
   METHOD
========================================================== */
.method {
  background: var(--color-surface);
}

.method__timeline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin: 4rem auto;
  width: 72%;
}

.method__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.method__step-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  min-height: 3rem;
  transition: all 0.3s ease;
}

.method__step.active .method__step-title {
  color: var(--color-primary);
  font-weight: 700;
}

.method__step:hover .method__step-title {
  color: var(--color-primary);
}

.method__circle {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.method__circle::after {
  content: "";
  position: absolute;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--color-primary);

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) scale(0);

  transition: transform 0.3s ease;
}

.method__step.active .method__circle {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(28, 86, 89, 0.06);
}

.method__step.active .method__circle::after {
  transform: translate(-50%, -50%) scale(1);
}

.method__step:hover .method__circle {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(28, 86, 89, 0.06);
}

.method__line {
  position: relative;
  flex: 1;
  height: 3px;
  background: var(--color-border);
  margin: 0 10px 10px;
  border-radius: 999px;
  overflow: hidden;
}

.method__line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--color-primary);
  transition: width 0.45s ease;
}

.method__line.active::after {
  width: 100%;
}

.method__panel {
  max-width: 820px;
  margin: auto;
  padding-top: 2.2rem;
  border-top: 1px solid var(--color-border);
  transition: opacity 0.25s ease;
}

.method__panel-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.method__panel-text {
  font-size: var(--font-size-md);
  line-height: 1.9;
  text-wrap: pretty;
}

.method__panel.fade {
  opacity: 0;
}
/* ==========================================================
   RESPONSIVE   
========================================================== */
@media (max-width: 768px) {
  .method__timeline {
    width: 80%;
    margin: 3rem auto;
  }

  .method__step-title {
    display: none;
  }

  .method__circle {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }

  .method__line {
    height: 2px;
    margin: 0 8px 7px;
  }

  .method__panel {
    padding-top: 1.6rem;
  }

  .method__panel-title {
    font-size: 1.3rem;
  }
}
