/* THE CONSULTING PAGE (/consultoria) AND ITS CASES (/consultoria/cases) — Views/Consultoria. The consulting deck as a page: navy
   sections for the consulting itself, white and light blue for the case. Loaded after institucional.css, which brings the cover, the waves,
   the wall, the contact section and the footer; everything here is scoped to .ec-page. Sizes follow the home's, not the 10 / 25 / 50 scale. */

.ec-page {
    --ec-sky: #9ccbf2;
    --ec-text: #dbe9f7;
}

.ec-page .ec-accent {
    color: var(--ec-sky);
}

.ec-page .ec-kicker {
    font-size: 13px;
    color: #8a9099;
}

/* DEMOS — the work as it is done today on a notebook, an arrow, and the same work asked to the AI on a phone. */

.ec-page .ec-demos {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding-block: 80px 110px;
    background: var(--eh-navy);
}

.ec-page .ec-demos .ec-demos__item img {
    width: 100%;
    max-width: 1180px;
    height: auto;
    margin-inline: auto;
}

.ec-page .ec-consequence img {
    width: 100%;
    height: auto;
}

/* AGENDA — the six steps: the title on navy, one light band per step, each a tone darker. */

.ec-page .ec-agenda {
    display: flex;
    background: var(--eh-navy);
}

.ec-page .ec-agenda .ec-agenda__head {
    display: flex;
    flex: 0 0 34%;
    align-items: center;
    padding-block: 60px;
}

.ec-page .ec-agenda .ec-agenda__title {
    max-width: 7em;
    font-size: clamp(28px, 3.4vw, 50px);
    font-weight: 500;
    line-height: 1.18;
    color: #ffffff;
}

.ec-page .ec-agenda .ec-agenda__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.ec-page .ec-agenda .ec-agenda__list li {
    display: flex;
    flex: 1;
}

.ec-page .ec-agenda .ec-agenda__list li:nth-child(1) { background: #f5f9fc; }
.ec-page .ec-agenda .ec-agenda__list li:nth-child(2) { background: #edf3fa; }
.ec-page .ec-agenda .ec-agenda__list li:nth-child(3) { background: #e5eef8; }
.ec-page .ec-agenda .ec-agenda__list li:nth-child(4) { background: #dde9f6; }
.ec-page .ec-agenda .ec-agenda__list li:nth-child(5) { background: #d5e4f4; }
.ec-page .ec-agenda .ec-agenda__list li:nth-child(6) { background: #cddff2; }

.ec-page .ec-agenda .ec-agenda__list .ec-agenda__row {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px clamp(20px, 5vw, 80px) 30px clamp(20px, 4vw, 60px);
    font-size: clamp(16px, 1.55vw, 22px);
    font-weight: 500;
    color: var(--eh-ink);
}

.ec-page .ec-agenda .ec-agenda__list .ec-agenda__row .ec-agenda__accent {
    font-weight: 600;
    color: var(--eh-blue);
}

.ec-page .ec-agenda .ec-agenda__list .ec-agenda__row .ec-agenda__number {
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 300;
    font-variant-numeric: lining-nums;
    line-height: 1;
    color: #9fb2c9;
}

.ec-page .ec-agenda .ec-agenda__list .ec-agenda__row:hover .ec-agenda__number {
    color: var(--eh-blue);
}

/* STEP — one navy slide: where it is in the six, the title in two tones, the paragraphs each beside a bar, and the picture. */

.ec-page .ec-step {
    position: relative;
    display: flex;
    min-height: 620px;
    background: var(--eh-navy);
    scroll-margin-top: 0;
}

.ec-page .ec-step .ec-step__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-block: 80px 90px;
    padding-right: clamp(20px, 4vw, 64px);
}

.ec-page .ec-progress {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

.ec-page .ec-progress .ec-progress__mark {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.ec-page .ec-progress .ec-progress__mark.is-current {
    background: var(--ec-sky);
}

.ec-page .ec-step .ec-step__title {
    display: flex;
    flex-direction: column;
    max-width: 18em;
    margin-top: 38px;
    font-size: clamp(24px, 2.9vw, 40px);
    font-weight: 500;
    line-height: 1.18;
    color: #ffffff;
}

.ec-page .ec-step .ec-step__body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 40em;
    margin-top: 44px;
}

.ec-page .ec-step .ec-step__paragraph {
    padding-left: 22px;
    border-left: 3px solid rgba(156, 203, 242, 0.45);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ec-text);
    opacity: 0.85;
}

.ec-page .ec-step .ec-step__paragraph--lead {
    border-left-color: var(--ec-sky);
    font-weight: 600;
    color: #ffffff;
    opacity: 1;
}

.ec-page .ec-step .ec-step__paragraph b {
    font-weight: 700;
    color: #a8d5fb;
}

.ec-page .ec-step .ec-step__paragraph strong {
    font-weight: 700;
    color: #ffffff;
}

.ec-page .ec-step .ec-step__picture,
.ec-page .ec-area .ec-area__picture {
    position: relative;
    flex: 0 0 var(--eh-picture);
    margin-top: -46px;
    overflow: hidden;
    clip-path: var(--eh-seam);
}

.ec-page .ec-step .ec-step__picture img,
.ec-page .ec-area .ec-area__picture img {
    position: absolute;
    inset: 0 0 0 16px;
    width: calc(100% - 16px);
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}

.ec-page .ec-step .ec-step__device {
    display: flex;
    flex: 0 0 var(--eh-picture);
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
}

.ec-page .ec-step .ec-step__device img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
}

/* FLOW — a mapped process shown as a deliverable: the sheet on navy, its name beside it. */

.ec-page .ec-flow {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 50px);
    padding-block: 60px;
    background: var(--eh-navy);
}

.ec-page .ec-flow .ec-flow__text {
    flex: 0 0 30%;
    padding-right: 0;
}

.ec-page .ec-flow .ec-flow__title {
    margin-top: 34px;
    font-size: clamp(24px, 2.9vw, 40px);
    font-weight: 500;
    line-height: 1.18;
    color: #ffffff;
}

.ec-page .ec-flow .ec-flow__title .ec-accent {
    display: block;
}

.ec-page .ec-flow .ec-flow__caption {
    max-width: 14em;
    margin-top: 38px;
    padding-left: 22px;
    border-left: 3px solid var(--ec-sky);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
}

.ec-page .ec-flow .ec-flow__sheet {
    flex: 1;
    min-width: 0;
    padding-right: clamp(16px, 3vw, 48px);
}

.ec-page .ec-flow .ec-flow__sheet img {
    width: 100%;
    height: auto;
}

.ec-page .ec-flows-ai {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding-block: 70px 100px;
    background: var(--eh-navy);
}

.ec-page .ec-flows-ai .ec-flows-ai__item img {
    width: 100%;
    max-width: 1320px;
    height: auto;
    margin-inline: auto;
}

/* ABOUT — the deck's "Sobre a eesier": the picture on the left, the statement on the company's blue. */

.ec-page .ec-about {
    display: flex;
    min-height: 600px;
    background: var(--eh-blue);
}

.ec-page .ec-about .ec-about__picture {
    position: relative;
    flex: 0 0 52%;
    overflow: hidden;
}

.ec-page .ec-about .ec-about__picture > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 67% 50%;
}

/* The side wave is the left edge of a picture; mirrored, it is the right edge of this one. */

.ec-page .ec-about .ec-about__wave {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    transform: scaleX(-1);
}

.ec-page .ec-about .ec-about__wave .eh-side-wave .eh-side-wave__line {
    stroke: var(--ec-sky);
}

.ec-page .ec-about .ec-about__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    min-width: 0;
    padding-block: 70px;
    padding-left: clamp(20px, 3vw, 48px);
    color: var(--ec-text);
}

.ec-page .ec-about .ec-about__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: clamp(28px, 3.4vw, 48px);
    color: #ffffff;
}

.ec-page .ec-about .ec-about__title img {
    width: auto;
    height: 0.92em;
}

.ec-page .ec-about .ec-about__lead {
    max-width: 24em;
    font-size: clamp(17px, 1.7vw, 24px);
    line-height: 1.4;
}

.ec-page .ec-about .ec-about__lead b {
    font-weight: 700;
    color: #ffffff;
}

.ec-page .ec-about .ec-about__lead .ec-about__years {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    color: var(--eh-warm);
}

.ec-page .ec-about .ec-about__lead .ec-about__years svg {
    position: absolute;
    bottom: -0.2em;
    left: -1%;
    width: 102%;
    max-width: none;
    height: 0.26em;
    overflow: visible;
    fill: var(--eh-warm);
}

/* INVITE — the closing invitation: to the cases on the consulting page, to the consulting on the cases page. */

.ec-page .ec-invite {
    position: relative;
}

.ec-page .ec-invite .ec-invite__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-block: 80px 130px;
}

.ec-page .ec-invite .ec-invite__title {
    font-size: clamp(23px, 2.8vw, 40px);
    color: var(--eh-ink);
}

.ec-page .ec-invite .ec-invite__title span {
    color: var(--eh-blue);
}

.ec-page .ec-invite .ec-invite__lead {
    max-width: 32em;
    margin-bottom: 14px;
    font-size: clamp(16px, 1.35vw, 19px);
    color: var(--eh-muted);
}

/* CASE — who the client is and the overview of what was implemented; then one section per area. */

.ec-page .ec-client {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 50px clamp(30px, 5vw, 80px);
    padding-block: 70px 120px;
}

.ec-page .ec-client .ec-client__text {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding-right: 0;
}

.ec-page .ec-client .ec-client__place {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--eh-line);
}

.ec-page .ec-client .ec-client__title {
    max-width: 16em;
    font-size: clamp(23px, 2.8vw, 40px);
    color: var(--eh-ink);
}

.ec-page .ec-client .ec-client__title span {
    display: block;
    color: var(--eh-blue);
}

.ec-page .ec-client .ec-client__headline {
    margin-top: 14px;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 600;
    color: var(--eh-ink);
}

.ec-page .ec-client .ec-client__description {
    max-width: 34em;
    font-size: 16px;
    line-height: 1.6;
    color: var(--eh-muted);
}

.ec-page .ec-client .ec-client__overview {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding-left: 0;
}

.ec-page .ec-client .ec-client__lead {
    font-size: 15px;
    font-weight: 700;
    color: var(--eh-blue);
}

.ec-page .ec-overview {
    display: flex;
    flex-direction: column;
}

.ec-page .ec-overview .ec-overview__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 4px;
    border-top: 1.5px solid #cfdff0;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 500;
    color: var(--eh-ink);
}

.ec-page .ec-overview li:last-child .ec-overview__row {
    border-bottom: 1.5px solid #cfdff0;
}

.ec-page .ec-overview .ec-overview__row .eh-arrow {
    width: 28px;
    height: 14px;
    color: var(--eh-blue);
}

.ec-page .ec-overview .ec-overview__row:hover {
    color: var(--eh-blue);
}

.ec-page .ec-overview .ec-overview__row:hover .eh-arrow {
    transform: translateX(5px);
}

.ec-page .ec-area {
    position: relative;
    display: flex;
    min-height: 480px;
}

.ec-page .ec-area .ec-area__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-block: 70px 110px;
    padding-right: clamp(20px, 4vw, 64px);
}

.ec-page .ec-area .ec-area__kicker {
    font-size: 15px;
    font-weight: 700;
    color: var(--eh-line);
}

.ec-page .ec-area .ec-area__title {
    max-width: 18em;
    margin-top: 12px;
    font-size: clamp(22px, 2.5vw, 34px);
    color: var(--eh-ink);
}

.ec-page .ec-area .ec-area__items {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 40em;
    margin-top: 38px;
}

.ec-page .ec-area .ec-area__items .ec-area__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 22px;
    border-left: 3px solid var(--eh-blue);
}

.ec-page .ec-area .ec-area__items .ec-area__item .ec-area__what {
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--eh-ink);
}

.ec-page .ec-area .ec-area__items .ec-area__item .ec-area__result {
    font-size: 15px;
    line-height: 1.55;
    color: var(--eh-muted);
}

.ec-page .ec-area .ec-area__items .ec-area__item .ec-area__result b {
    font-weight: 700;
    color: var(--eh-blue);
}

@media (max-width: 900px) {

    .ec-page .ec-demos {
        gap: 40px;
        padding-block: 60px 80px;
    }

    .ec-page .ec-agenda,
    .ec-page .ec-step,
    .ec-page .ec-flow,
    .ec-page .ec-about,
    .ec-page .ec-area {
        flex-direction: column;
        min-height: 0;
    }

    .ec-page .ec-agenda .ec-agenda__head {
        flex: none;
        padding-block: 50px 40px;
    }

    .ec-page .ec-agenda .ec-agenda__list .ec-agenda__row {
        padding: 22px max(var(--eh-pad), env(safe-area-inset-right, 0px)) 22px max(var(--eh-pad), env(safe-area-inset-left, 0px));
    }

    .ec-page .ec-step .ec-step__text {
        padding-block: 60px 50px;
    }

    .ec-page .ec-step .ec-step__picture,
    .ec-page .ec-area .ec-area__picture {
        flex: none;
        height: 280px;
        margin-top: 0;
        clip-path: none;
    }

    .ec-page .ec-step .ec-step__picture img,
    .ec-page .ec-area .ec-area__picture img {
        inset: 0;
        width: 100%;
    }

    .ec-page .ec-step .ec-step__picture .eh-side-wave,
    .ec-page .ec-area .ec-area__picture .eh-side-wave,
    .ec-page .ec-about .ec-about__wave {
        display: none;
    }

    .ec-page .ec-step .ec-step__device {
        flex: none;
        padding: 0 20px 60px;
    }

    .ec-page .ec-step .ec-step__device img {
        max-height: 440px;
    }

    .ec-page .ec-flow {
        align-items: stretch;
        padding-block: 50px;
    }

    .ec-page .ec-flow .ec-flow__text {
        flex: none;
        padding-right: max(var(--eh-pad), env(safe-area-inset-right, 0px));
    }

    .ec-page .ec-flow .ec-flow__sheet {
        padding-inline: 16px;
        overflow-x: auto;
    }

    .ec-page .ec-flow .ec-flow__sheet img {
        min-width: 640px;
    }

    .ec-page .ec-flows-ai .ec-flows-ai__item {
        overflow-x: auto;
    }

    .ec-page .ec-flows-ai .ec-flows-ai__item img {
        min-width: 760px;
    }

    .ec-page .ec-about .ec-about__picture {
        flex: none;
        height: 260px;
    }

    .ec-page .ec-about .ec-about__text {
        padding-block: 50px 60px;
        padding-left: max(var(--eh-pad), env(safe-area-inset-left, 0px));
    }

    .ec-page .ec-client {
        padding-block: 50px 100px;
    }

    .ec-page .ec-client .ec-client__text {
        padding-right: max(var(--eh-pad), env(safe-area-inset-right, 0px));
    }

    .ec-page .ec-client .ec-client__overview {
        padding-left: max(var(--eh-pad), env(safe-area-inset-left, 0px));
    }

    .ec-page .ec-area .ec-area__text {
        padding-block: 50px 40px;
    }

    .ec-page .ec-invite .ec-invite__text {
        padding-block: 60px 110px;
    }

}
