/**
 * LocalMax — Página inicial
 *
 * Hero e resumo visual da metodologia LSA.
 */

.home-page {
    overflow-x: clip;
}

/* Hero
-------------------------------------------------------------- */
.home-hero {
    position: relative;
    color: var(--lm-color-white);
    background-color: var(--lm-color-dark);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.home-hero__overlay {
    background:
        linear-gradient(
            90deg,
            rgb(10 12 11 / 96%) 0%,
            rgb(10 12 11 / 88%) 55%,
            rgb(10 12 11 / 62%) 100%
        );
}

.home-hero__content {
    min-height: max(43rem, 100svh);
    padding-block: clamp(8.5rem, 15vh, 11rem) clamp(4.5rem, 9vh, 7rem);
}

.home-hero__eyebrow {
    color: var(--lm-color-primary);
}

.home-hero__title {
    max-width: 61rem;
    margin-bottom: 1.75rem;
    color: var(--lm-color-white);
    font-size: clamp(2.75rem, 6.3vw, 5.75rem);
}

.home-hero__title span {
    color: var(--lm-color-primary);
}

.home-hero__lead {
    max-width: 52rem;
    margin-bottom: 2rem;
    color: rgb(255 255 255 / 76%);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.7;
}

.home-hero__button {
    flex: 0 0 auto;
}

.home-hero__helper {
    max-width: 27rem;
    color: rgb(255 255 255 / 68%);
    font-size: var(--lm-font-size-sm);
    line-height: 1.55;
}

.home-hero__channels {
    margin-top: clamp(2.75rem, 6vh, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 14%);
}

.home-hero__channels li {
    color: rgb(255 255 255 / 72%);
    font-size: var(--lm-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-hero__channels img {
    flex: 0 0 auto;
    object-fit: contain;
}

/* Methodology aliases
-------------------------------------------------------------- */
.lsa-section {
    --lsa-heading: var(--lm-color-ink);
    --lsa-text: var(--lm-color-text);
    --lsa-accent: var(--lm-color-primary);
    --lsa-accent-dark: var(--lm-color-primary-hover);
    --lsa-background: var(--lm-color-surface);
    --lsa-surface: var(--lm-color-white);
    --lsa-border: var(--lm-color-border);
    --lsa-line: #cfd4da;

    padding-block: var(--lm-section-space) !important;
}


    /* Section
    -------------------------------------------------- */
    .lsa-section {
        position: relative;
        overflow: hidden;
        color: var(--lsa-text);
        background-color: var(--lsa-background);
    }

    .lsa-section .lsa-header {
        max-width: 880px;
    }

    .lsa-section .lsa-eyebrow {
        margin-bottom: 1rem;
        color: var(--lsa-accent-dark);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .lsa-section .lsa-title {
        max-width: 820px;
        margin-inline: auto;
        color: var(--lsa-heading);
        font-size: clamp(2.25rem, 5vw, 4.5rem);
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.045em;
        text-wrap: balance;
    }

    .lsa-section .lsa-lead {
        max-width: 760px;
        margin-inline: auto;
        color: var(--lsa-text);
        font-size: clamp(1rem, 1.6vw, 1.2rem);
        line-height: 1.7;
        text-wrap: pretty;
    }

    /* Shared icons
    -------------------------------------------------- */
    .lsa-section .lsa-icon {
        display: block;
        flex: 0 0 auto;
        width: 1.75rem;
        height: 1.75rem;
        color: var(--lsa-accent-dark);
        stroke-width: 1.7;
    }

    /* Desktop flywheel
    -------------------------------------------------- */
    .lsa-section .lsa-flywheel {
        position: relative;
        width: min(100%, 920px);
        height: 620px;
        margin-inline: auto;
    }

    .lsa-section .lsa-flywheel-flow {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none;
    }

    .lsa-section .lsa-flywheel-path {
        fill: none;
        stroke: var(--lsa-line);
        stroke-width: 2;
        stroke-linecap: round;
        marker-end: url("#lsa-arrowhead");
    }

    .lsa-section .lsa-flywheel-orbit {
        fill: none;
        stroke: #e5e8eb;
        stroke-width: 1;
        stroke-dasharray: 5 8;
    }

    .lsa-section .lsa-flywheel-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .lsa-section .lsa-step {
        position: absolute;
        z-index: 2;
        display: flex;
        width: 174px;
        min-height: 112px;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--lsa-heading);
        text-align: center;
        background-color: var(--lsa-surface);
        border: 1px solid var(--lsa-border);
        border-radius: 1rem;
        box-shadow: 0 0.75rem 2rem rgba(17, 17, 17, 0.06);
    }

    .lsa-section .lsa-step-1 {
        top: 18px;
        left: 50%;
        transform: translateX(-50%);
    }

    .lsa-section .lsa-step-2 {
        top: 150px;
        right: 46px;
    }

    .lsa-section .lsa-step-3 {
        right: 46px;
        bottom: 74px;
    }

    .lsa-section .lsa-step-4 {
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    .lsa-section .lsa-step-5 {
        bottom: 74px;
        left: 46px;
    }

    .lsa-section .lsa-step-6 {
        top: 150px;
        left: 46px;
    }

    .lsa-section .lsa-step-number {
        position: absolute;
        top: 0.625rem;
        left: 0.75rem;
        color: var(--lsa-accent-dark);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.06em;
    }

    .lsa-section .lsa-step .lsa-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.6rem;
    }

    .lsa-section .lsa-step-name {
        font-size: 0.82rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .lsa-section .lsa-flywheel-core {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 3;
        display: flex;
        width: 230px;
        height: 142px;
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--lsa-heading);
        text-align: center;
        background-color: var(--lsa-surface);
        border: 1px solid rgba(0, 168, 84, 0.35);
        border-radius: 50%;
        box-shadow:
            0 1.5rem 4rem rgba(17, 17, 17, 0.08),
            0 0 0 0.5rem rgba(0, 230, 118, 0.06);
        transform: translate(-50%, -50%);
    }

    .lsa-section .lsa-core-name {
        color: var(--lsa-heading);
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .lsa-section .lsa-core-description {
        margin-top: 0.5rem;
        color: var(--lsa-text);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    /* Mobile and tablet sequence
    -------------------------------------------------- */
    .lsa-section .lsa-mobile-cycle {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .lsa-section .lsa-mobile-step {
        position: relative;
        display: flex;
        min-height: 78px;
        padding: 1rem;
        align-items: center;
        gap: 1rem;
        background-color: var(--lsa-surface);
        border: 1px solid var(--lsa-border);
        border-radius: 0.875rem;
    }

    .lsa-section .lsa-mobile-step:not(:last-child) {
        margin-bottom: 1.5rem;
    }

    .lsa-section .lsa-mobile-step:not(:last-child)::after {
        position: absolute;
        top: calc(100% + 1px);
        left: 2.15rem;
        width: 1px;
        height: 1.5rem;
        content: "";
        background-color: var(--lsa-line);
    }

    .lsa-section .lsa-mobile-step:not(:last-child)::before {
        position: absolute;
        z-index: 1;
        bottom: -1.5rem;
        left: calc(2.15rem - 3px);
        width: 7px;
        height: 7px;
        content: "";
        border-right: 1px solid var(--lsa-line);
        border-bottom: 1px solid var(--lsa-line);
        transform: rotate(45deg);
    }

    .lsa-section .lsa-mobile-icon {
        display: flex;
        width: 2.3rem;
        height: 2.3rem;
        flex: 0 0 2.3rem;
        align-items: center;
        justify-content: center;
        color: var(--lsa-accent-dark);
        background-color: rgba(0, 230, 118, 0.1);
        border-radius: 50%;
    }

    .lsa-section .lsa-mobile-icon .lsa-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .lsa-section .lsa-mobile-number {
        display: block;
        margin-bottom: 0.15rem;
        color: var(--lsa-accent-dark);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .lsa-section .lsa-mobile-name {
        color: var(--lsa-heading);
        font-size: 0.9rem;
        font-weight: 750;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .lsa-section .lsa-cycle-return {
        display: flex;
        margin-top: 1rem;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--lsa-text);
        font-size: 0.75rem;
        font-weight: 600;
    }

    .lsa-section .lsa-cycle-return svg {
        width: 1rem;
        height: 1rem;
        color: var(--lsa-accent-dark);
    }

    /* Detail cards
    -------------------------------------------------- */
    .lsa-section .lsa-details-heading {
        color: var(--lsa-heading);
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        font-weight: 700;
        letter-spacing: -0.035em;
    }

    .lsa-section .lsa-details-intro {
        max-width: 650px;
        color: var(--lsa-text);
        line-height: 1.7;
    }

    .lsa-section .lsa-card {
        position: relative;
        overflow: hidden;
        background-color: var(--lsa-surface);
        border-color: var(--lsa-border) !important;
        box-shadow: 0 0.5rem 1.5rem rgba(17, 17, 17, 0.035);
        transition:
            transform 250ms ease,
            border-color 250ms ease,
            box-shadow 250ms ease;
    }

    .lsa-section .lsa-card::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        content: "";
        background-color: var(--lsa-accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 250ms ease;
    }

    .lsa-section .lsa-card-header {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .lsa-section .lsa-card-icon {
        display: flex;
        width: 3.25rem;
        height: 3.25rem;
        flex: 0 0 3.25rem;
        align-items: center;
        justify-content: center;
        color: var(--lsa-accent-dark);
        background-color: rgba(0, 230, 118, 0.09);
        border: 1px solid rgba(0, 168, 84, 0.15);
        border-radius: 0.875rem;
    }

    .lsa-section .lsa-card-icon .lsa-icon {
        width: 1.65rem;
        height: 1.65rem;
    }

    .lsa-section .lsa-card-number {
        display: block;
        margin-bottom: 0.2rem;
        color: var(--lsa-accent-dark);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.1em;
    }

    .lsa-section .lsa-card-title {
        margin: 0;
        color: var(--lsa-heading);
        font-size: 1.05rem;
        font-weight: 750;
        letter-spacing: -0.015em;
    }

    .lsa-section .lsa-card-category {
        display: block;
        margin-top: 0.15rem;
        color: #676767;
        font-size: 0.78rem;
        font-weight: 500;
    }

    .lsa-section .lsa-card-description {
        color: var(--lsa-text);
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .lsa-section .lsa-benefit {
        margin-top: auto;
        padding: 1rem;
        background-color: rgba(0, 230, 118, 0.055);
        border-left: 3px solid var(--lsa-accent);
        border-radius: 0.35rem 0.75rem 0.75rem 0.35rem;
    }

    .lsa-section .lsa-benefit-label {
        display: block;
        margin-bottom: 0.35rem;
        color: var(--lsa-accent-dark);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .lsa-section .lsa-benefit-text {
        color: var(--lsa-heading);
        font-size: 0.88rem;
        line-height: 1.55;
    }

    @media (hover: hover) and (pointer: fine) {
        .lsa-section .lsa-card:hover {
            border-color: rgba(0, 168, 84, 0.55) !important;
            box-shadow:
                0 1.25rem 2.75rem rgba(17, 17, 17, 0.08),
                0 0 1.5rem rgba(0, 230, 118, 0.07);
            transform: translateY(-0.5rem);
        }

        .lsa-section .lsa-card:hover::before {
            transform: scaleX(1);
        }
    }

    .lsa-section .lsa-card:focus-within {
        border-color: rgba(0, 168, 84, 0.55) !important;
        box-shadow:
            0 1.25rem 2.75rem rgba(17, 17, 17, 0.08),
            0 0 1.5rem rgba(0, 230, 118, 0.07);
        transform: translateY(-0.5rem);
    }

    .lsa-section .lsa-card:focus-within::before {
        transform: scaleX(1);
    }

    @media (max-width: 991.98px) {
        .lsa-section .lsa-title {
            letter-spacing: -0.035em;
        }
    }

    @media (max-width: 575.98px) {
        .lsa-section .lsa-title {
            font-size: 2.25rem;
        }

        .lsa-section .lsa-card-header {
            align-items: flex-start;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .lsa-section .lsa-card,
        .lsa-section .lsa-card::before {
            transition: none;
        }

        .lsa-section .lsa-card:hover,
        .lsa-section .lsa-card:focus-within {
            transform: none;
        }
    }


@media (max-width: 991.98px) {
    .home-hero__overlay {
        background: rgb(10 12 11 / 88%);
    }

    .home-hero__content {
        min-height: 46rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        background-position: 62% center;
    }

    .home-hero__content {
        min-height: 100svh;
        padding-top: 7.5rem;
    }

    .home-hero__title {
        font-size: clamp(2.55rem, 12vw, 3.65rem);
    }

    .home-hero__button {
        width: 100%;
    }

    .home-hero__channels li {
        letter-spacing: 0.14em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__button:hover,
    .home-hero__button:focus-visible {
        transform: none;
    }
}

/* Home — seções editoriais
-------------------------------------------------------------- */
.home-problem,
.home-segments,
.home-cases,
.home-resources,
.home-about,
.home-final-cta {
    padding-block: var(--lm-section-space);
}

.home-problem,
.home-about {
    color: rgb(255 255 255 / 72%);
    background-color: var(--lm-color-dark);
}

.home-problem__card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background-color: rgb(255 255 255 / 4%);
    border: 1px solid var(--lm-color-border-dark);
    border-radius: var(--lm-radius-md);
}

.home-problem__number,
.home-about__principle > span {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--lm-color-primary);
    font-size: var(--lm-font-size-xs);
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-problem__card h3 {
    margin-bottom: 0.85rem;
    color: var(--lm-color-white);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.home-problem__card p {
    line-height: 1.65;
}

.home-problem__closing {
    max-width: 58rem;
    margin-top: clamp(2rem, 5vw, 4rem);
    padding-top: 2rem;
    color: var(--lm-color-white);
    border-top: 1px solid var(--lm-color-border-dark);
    font-family: var(--lm-font-heading);
    font-size: clamp(1.2rem, 2.25vw, 1.65rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.home-segments,
.home-resources {
    background-color: var(--lm-color-surface);
}

.home-segment-card__icon svg {
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-segment-card__link {
    color: var(--lm-color-ink);
    font-size: var(--lm-font-size-sm);
    font-weight: 750;
    text-decoration: none;
}

.home-segment-card__link span {
    display: inline-block;
    margin-left: 0.3rem;
    color: var(--lm-color-primary-hover);
    transition: transform var(--lm-transition);
}

.home-segment-card__link::after {
    position: absolute;
    inset: 0;
    content: "";
}

.home-segment-card:focus-within {
    outline: 3px solid rgb(7 204 97 / 25%);
    outline-offset: 3px;
}

.home-cases .lm-case-card__title,
.home-resources .lm-resource-card__title {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.home-about__copy {
    max-width: 39rem;
    font-size: clamp(1rem, 1.35vw, 1.125rem);
}

.home-about__copy p:last-child {
    margin-bottom: 0;
}

.home-about__principle {
    min-height: 12rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    background-color: rgb(255 255 255 / 4%);
    border: 1px solid var(--lm-color-border-dark);
    border-radius: var(--lm-radius-md);
}

.home-about__principle h3 {
    color: var(--lm-color-white);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.3;
}

.home-final-cta {
    background-color: var(--lm-color-white);
}

.home-final-cta__panel {
    padding: clamp(2rem, 7vw, 5rem);
}

.home-final-cta__panel .lm-cta__content {
    max-width: 52rem;
}

.home-final-cta__panel .lm-cta__text {
    max-width: 43rem;
}

@media (hover: hover) and (pointer: fine) {
    .home-segment-card:hover .home-segment-card__link span {
        transform: translateX(0.25rem);
    }
}

@media (max-width: 767.98px) {
    .home-cases .lm-button,
    .home-resources .lm-button {
        width: 100%;
    }

    .home-about__principle {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-segment-card__link span {
        transition: none;
    }

    .home-segment-card:hover .home-segment-card__link span {
        transform: none;
    }
}
