/* ==========================================================================
   Method — Método Latitud 360 (Section VI)
   Background #EFF4FF (match portfolio) — tema light, header centralizado
   ========================================================================== */

.method {
    position: relative;
    background: #EFF4FF;
    overflow: hidden;
    padding-top: var(--section-pad-lg);
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--hero-clip-v)),
        calc(100% - var(--hero-clip-h)) 100%,
        var(--hero-clip-h) 100%,
        0 calc(100% - var(--hero-clip-v))
    );
}

/* ===== Header ===== */

.method__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(6px, 0.42vw, 8px);
    position: relative;
    z-index: 2;
    margin-bottom: var(--gap-md);
}

.method__label {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.63vw, 12px);
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-label);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: #212121;
}

.method__line {
    display: inline-block;
    width: var(--line-width);
    height: 0;
    border-top: 1px solid var(--color-primary);
    flex-shrink: 0;
}

.method__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-section-lg);
    line-height: 1.19;
    color: #212121;
    max-width: clamp(320px, 56vw, 760px);
    text-wrap: balance;
}

.method__intro {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #51525C;
    max-width: min(100%, clamp(300px, 75vw, 960px));
    margin-top: clamp(16px, 1.04vw, 20px);
    text-wrap: pretty;
}

/* ===== Content (2 colunas) ===== */

.method__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(8px, 1vw, 14px);
    position: relative;
    z-index: 2;
    padding-bottom: var(--section-pad-md);
}

/* ===== Steps (coluna esquerda) ===== */

.method__steps {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-card);
}

.method__step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--gap-content);
    row-gap: clamp(2px, 0.21vw, 4px);
}

.method__step-header {
    display: contents;
}

.method__step-number {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-step-number);
    line-height: 1.4;
    color: #212121;
    flex-shrink: 0;
}

.method__step-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--fs-step);
    line-height: 1.27;
    color: #212121;
}

.method__step-description {
    grid-column: 2;
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: #212121;
}

/* ===== Illustration (coluna direita) ===== */

.method__illustration {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
}

.method__illustration img {
    display: block;
    width: auto;
    max-width: min(100%, clamp(480px, 39vw, 777.6px));
    height: auto;
    margin-left: auto;
}

/* ===== CTA (centralizado no rodapé da seção) ===== */

.method__cta-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-bottom: var(--section-pad-md);
}

.method__cta-border {
    padding: clamp(6px, 0.42vw, 8px);
    border-radius: clamp(12px, 0.83vw, 16px);
    border: 1px solid transparent;
    background:
        linear-gradient(#EFF4FF, #EFF4FF) padding-box,
        linear-gradient(302.1deg, rgba(21, 94, 239, 0.39) 24.57%, rgba(21, 94, 239, 0) 70.33%) border-box;
}

.method__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 0.63vw, 12px);
    padding: var(--cta-pad-y) var(--cta-pad-x);
    background: #1F3A5F;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--cta-font);
    line-height: 1.33;
    border-radius: clamp(10px, 0.63vw, 12px);
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.method__cta:hover {
    background: #2a4f7a;
}

.method__cta svg {
    width: var(--cta-icon);
    height: var(--cta-icon);
}

/* ===== Responsivo ===== */

@media (max-width: 768px) {
    .method {
        clip-path: none;
    }

    .method__header {
        align-items: center;
        text-align: center;
    }

    .method__intro {
        width: min(100%, clamp(300px, 92vw, 520px));
        max-width: none;
    }

    .method__content {
        grid-template-columns: 1fr;
        gap: clamp(24px, 2.08vw, 32px);
    }

    .method__steps {
        max-width: none;
    }

    .method__illustration {
        justify-content: center;
        margin-left: clamp(-12px, -0.83vw, -16px);
        margin-right: clamp(-12px, -0.83vw, -16px);
        width: calc(100% + clamp(24px, 1.67vw, 32px));
    }

    .method__illustration img {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }

    .method__cta {
        padding: var(--cta-pad-y) clamp(20px, 1.46vw, 28px);
        white-space: normal;
        text-align: center;
        width: 100%;
    }

    .method__cta-border {
        width: 100%;
    }
}
