/**
 * Block: Method Steps
 * Steps section with arc decoration, icon pills, and connectors.
 */

.method-steps {
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.method-steps__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.method-steps__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-regular);
    margin-bottom: var(--space-sm);
}

.method-steps__subtitle {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-light);
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Arc wrapper — contains the SVG arc and the pills row */
.method-steps__arc-wrapper {
    position: relative;
    width: 100%;
}

/* Arc SVG decoration */
.method-steps__arc {
    position: relative;
    margin-bottom: var(--space-xl);
}

.method-steps__arc svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Pills row */
.method-steps__pills {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: var(--space-md);
    padding: 0 var(--space-xl);
}

/* Connector line between pills */
.method-steps__pills::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 48px;
    right: 48px;
    height: 2px;
    background: var(--color-light);
    z-index: 0;
}

.method-steps__pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 160px;
}

/* Icon circle */
.method-steps__pill-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-orange);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    flex-shrink: 0;
}

.method-steps__pill-icon img,
.method-steps__pill-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Label below icon */
.method-steps__pill-label {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
    color: var(--color-dark);
    line-height: 1.3;
}

/* ── Background color variants ── */

/* Dark backgrounds (teal, dark, orange): invert text & connector */
.method-steps.bg-teal .method-steps__subtitle,
.method-steps.bg-dark .method-steps__subtitle,
.method-steps.bg-orange .method-steps__subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.method-steps.bg-teal .method-steps__pill-label,
.method-steps.bg-dark .method-steps__pill-label,
.method-steps.bg-orange .method-steps__pill-label {
    color: var(--color-white);
}

.method-steps.bg-teal .method-steps__pills::before,
.method-steps.bg-dark .method-steps__pills::before,
.method-steps.bg-orange .method-steps__pills::before {
    background: rgba(255, 255, 255, 0.25);
}

/* Arc stroke adapts to background */
.method-steps.bg-teal .method-steps__arc svg path,
.method-steps.bg-dark .method-steps__arc svg path {
    stroke: rgba(255, 255, 255, 0.3);
}

.method-steps.bg-orange .method-steps__arc svg path {
    stroke: rgba(255, 255, 255, 0.4);
}

/* On orange background, pill icon uses teal instead of orange */
.method-steps.bg-orange .method-steps__pill-icon {
    background: var(--color-teal);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .method-steps__pill {
        max-width: 130px;
    }
}

@media (max-width: 768px) {
    .method-steps {
        padding: var(--space-2xl) 0;
    }

    .method-steps__arc-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .method-steps__pills {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }

    .method-steps__pills::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .method-steps__pill {
        max-width: none;
        flex-direction: row;
        gap: var(--space-md);
        text-align: left;
    }
}
