/* THE CLAPS METHODOLOGY section — match production reference */

.methodology-section {
  background: #ffffff;
}

.methodology-section .container {
  max-width: 80rem;
}

/* Decorative dot pattern top-left */
.methodology-dot-pattern {
  position: absolute;
  top: 48px;
  left: 32px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, #cbd5e1 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.55;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .methodology-dot-pattern {
    top: 64px;
    left: 64px;
    width: 160px;
    height: 160px;
  }
}

/* Timeline container */
.methodology-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-left: 0;
}

@media (min-width: 768px) {
  .methodology-timeline {
    gap: 2rem;
    padding-left: 4.5rem;
  }

  .methodology-timeline::before {
    content: "";
    position: absolute;
    left: 1.55rem;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      #cbd5e1 0,
      #cbd5e1 6px,
      transparent 6px,
      transparent 14px
    );
    z-index: 0;
  }
}

/* Each step row */
.methodology-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .methodology-step {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }
}

/* Numbered timeline markers */
.methodology-marker {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

@media (min-width: 768px) {
  .methodology-marker {
    position: absolute;
    left: -4.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    font-size: 0.9375rem;
  }
}

.methodology-marker-teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.methodology-marker-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.methodology-marker-coral {
  background: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
}

/* Step cards */
.methodology-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 768px) {
  .methodology-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 220px;
    border-radius: 28px;
  }
}

.methodology-card:hover {
  transform: translateY(-3px);
}

/* Text content */
.methodology-card-content {
  flex: 1;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .methodology-card-content {
    padding: 2rem 1.75rem 2rem 2rem;
    max-width: 52%;
  }
}

.methodology-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.methodology-card-title {
  font-family: inherit;
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f2744;
  margin-bottom: 0.625rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .methodology-card-title {
    font-size: 1.5rem;
  }
}

.methodology-card-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

@media (min-width: 768px) {
  .methodology-card-desc {
    font-size: 1rem;
  }
}

/* Image area */
.methodology-card-visual {
  position: relative;
  flex-shrink: 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .methodology-card-visual {
    width: 42%;
    min-height: auto;
  }
}

.methodology-blob {
  position: absolute;
  inset: 12% 8% 8% 12%;
  border-radius: 45% 55% 52% 48% / 48% 45% 55% 52%;
  opacity: 0.55;
  z-index: 0;
}

.methodology-card-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  padding: 1rem 1.25rem 1.25rem;
}

@media (min-width: 768px) {
  .methodology-card-image {
    max-width: 100%;
    max-height: 220px;
    padding: 1.25rem 1.5rem 1.5rem 0.5rem;
  }
}

/* CTA button */
.methodology-section .methodology-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.28) !important;
}

.methodology-section .methodology-cta-btn:hover {
  box-shadow: 0 18px 36px rgba(13, 148, 136, 0.34) !important;
}
