/* HEADER */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--blue) url(../images/bg_banner.png) no-repeat center 40% / cover;

    &#inicio p {
        width: 75%;
    }

    .marca {
        position: absolute;
        top: 5%;
        left: 3%;
        width: 9vw;
        height: auto;
        z-index: 1;
    }

    #banner {
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
        }
    }

    .containerTexts {
        position: absolute;
        gap: 1.5vw;
        top: 55.5%;
        left: 7%;
        width: 38vw;
        z-index: 1;
        transform: translateY(-50%);

        h1,
        span {
            line-height: 4.25vw;
            letter-spacing: .2vw;
        }

        h1 {
            width: 100%;
            font-size: 3.2vw;
            text-transform: uppercase;

            span {
                display: block;
                font-size: 2.98vw;
                color: var(--blue-3);
            }
        }

        button {
            position: relative;
            margin-top: 1vw;
            overflow: hidden;
            isolation: isolate;
            border: none;
            background-color: var(--blue-3);
        }
    }
}

/* MAIN */
main {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* SECTIONS */
section {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    width: 100%;
    height: auto;
    padding: 8vw 7vw;
    overflow: hidden;
}

/* COMPONENTES */
.simpleStyle {
    justify-content: space-between;

    img {
        width: 40.8vw;
        height: 31.2vw;
        object-fit: contain;
        object-position: center;
    }

    .containerTexts {
        width: 33vw;
    }

    h1,
    span {
        color: var(--blue);
    }

    p {
        color: var(--almost-black);
    }
}

.highlightBlock {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;

    .purpose-left,
    .purpose-right {
        width: 50%;
    }

    .purpose-left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 4vw;
        padding: 5vw 4vw 4vw 7vw;
        background: var(--blue-2);
    }

    .purpose-right {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--blue);
    }

    .purpose-item {
        display: flex;
        align-items: flex-start;
        gap: 2vw;

        img {
            flex-shrink: 0;
            width: 4vw;
            height: 4vw;
            object-fit: contain;
            object-position: center;
        }

        div {
            width: 27vw;
        }

        h2 {
            margin: .5vw 0 .5vw;
        }
    }

    .purpose-highlight {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 1.5vw;
        width: 38.8vw;
        height: auto;
        padding: 6vw 2vw;
        margin-left: -17vw;
        border: .5vw solid white;

        h1,
        .destaque {
            text-align: right;
        }

        .destaque {
            display: block;
        }

        p {
            width: 95%;
            text-align: right;
        }
    }
}

.carousel {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    border: 0;
    background-color: transparent;

    .trilha {
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    .slide {
        position: relative;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        flex: 0 0 100%;
        gap: 2vw;
        width: 100%;
        height: 100%;
        overflow: hidden;
        padding: 0 7vw;
        background: transparent url(../images/bg_carousel.png) no-repeat center top / cover;

        h1 {
            margin-bottom: -.8vw;
        }

        &#slide1 p {
            width: 38vw;
        }

        p {
            position: relative;
            width: 42vw;

            &.quotes {
                width: 30vw;
                margin: 1vw 0 0 3vw;
                letter-spacing: .08vw;

                &::before,
                &::after {
                    position: absolute;
                    font-size: 5vw;
                    line-height: normal;
                    font-family: 'openSymbolRegular', Arial, Helvetica, sans-serif;
                }

                &::before {
                    content: '“';
                    top: -1.2vw;
                    left: 0;
                    margin-left: -3vw;
                }

                &::after {
                    content: '”';
                    bottom: -4vw;
                    right: unset;
                    margin-left: .9vw;
                }
            }
        }
    }

    .seta {
        position: absolute;
        bottom: 3vw;
        width: 3.2vw;
        height: 3.2vw;
        z-index: 5;
        border: none;
        transition: filter .3s ease;

        &:hover {
            filter: brightness(1.5) drop-shadow(0 0 .5vw rgba(255, 255, 255, .6));
        }

        &.hide {
            display: none;
        }

        &.direita {
            right: 2.5vw;
            background: transparent url(../images/arrow_white.png) center / contain no-repeat;
        }

        &.esquerda {
            right: 15vw;
            transform: scaleX(-1);
            background: transparent url(../images/arrow_white.png) center / contain no-repeat;
        }
    }
}

.cardsFlip {
    flex-wrap: wrap;
    gap: 3.5vw 2.5vw;
    padding: 7vw;
    background-color: var(--gray-opacity);

    .card-inner {
        position: relative;
        width: 20vw;
        height: 30vw;
        cursor: pointer;
        background: var(--white);
        transition: transform 1s;
        transform-style: preserve-3d;
        box-shadow: 0px 0px 9px rgba(0, 0, 0, .4);

        &.is-flipped {
            transform: rotateY(180deg);
        }

        img {
            position: absolute;
            height: auto;
        }

        p {
            text-align: left;
        }

        .front,
        .back {
            position: absolute;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 2vw;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            transform: translate(-50%, -50%);
        }

        .back {
            padding: 0 2vw;
            overflow: hidden;
            background: var(--blue);
            transform: translate(-50%, -50%) rotateY(180deg);

            p {
                font-size: 1.15vw;
                line-height: 1.7vw;
            }

            .icon {
                position: relative;
                width: 4vw;
                height: 4vw;
                object-fit: contain;
            }
        }

        .front {
            p {
                position: absolute;
                bottom: 10%;
                left: 10%;
                width: 75%;
                text-wrap: balance;
                letter-spacing: .05vw;
            }

            .foto {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }

            .buttonFlip {
                top: 2%;
                right: 3%;
                width: 2vw;
                z-index: 1;
            }
        }
    }
}

.performance {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 40vw;

    .performance-intro {
        width: 24vw;

        h1 {
            color: var(--blue);
            font-size: 3.35vw;
            line-height: 1.05;
        }

        p {
            margin-top: 2vw;
            color: var(--almost-black);
        }
    }

    .performance-data {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
        width: 55vw;
    }

    .data-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

        .timeline {
            position: absolute;
            top: 3.5vw;
            left: calc(50% + 3.82vw);
            width: 6vw;
            transform-origin: left center;
            border-top: .2vw dashed var(--blue-2);
        }

        .icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 7vw;
            height: 7vw;
            margin-bottom: 1.8vw;
            border-radius: 50%;
            background: linear-gradient(to bottom, #75ccd2 25%, #81a2af 88%);

            img {
                width: 50%;
                height: 50%;
                object-fit: contain;
                object-position: center;
            }
        }

        >strong {
            color: var(--blue-2);
            font-size: 2.7vw;
        }

        p {
            width: 10vw;
            margin-top: .7vw;
            font-size: 1.35vw;
            line-height: 1.35;
            text-align: center;
            color: var(--almost-black);
        }
    }
}

.business {
    display: flex;
    flex-direction: column;
    padding: 8vw 0;
    gap: 7vw;

    .business-card {
        position: relative;
        width: 88vw;
        margin: 0 auto;
        overflow: hidden;
        background-color: transparent;
    }

    .business-content {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        width: 50%;
        height: 40vw;
        max-height: 40vw;
        z-index: 1;
        overflow: hidden;
        padding: 2.5vw 3.5vw;
        border: .1vw solid var(--blue-2);
        border-right: 0;

        h2 {
            font-size: 3.2vw;
            line-height: 1.05;
            color: var(--blue);
            font-family: 'montserratRegular', Arial, Helvetica, sans-serif;

            strong {
                display: block;
            }
        }

        >p {
            width: 100%;
            font-size: 1.2vw;
            line-height: 1.45;
            color: var(--almost-black);
        }
    }

    .business-item {
        h3 {
            margin: 0 0 .35vw;
        }

        p {
            font-size: 1.15vw;
            line-height: 1.45;
            color: var(--almost-black);
        }
    }

    .business-image {
        position: absolute;
        top: 0;
        left: 25%;
        z-index: 2;
        width: 50%;
        height: 100%;

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }
}

.cta-facilities {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5vw;
    padding: 2.5vw 5vw;
    background-color: var(--blue-dark);

    .containerTexts {
        display: flex;
        align-items: flex-start;
        gap: .8vw;
        width: 40vw;
        margin-right: 5vw;

        h2,
        p {
            font-size: 1.1vw;
            line-height: normal;
        }
    }

    button {
        width: 17vw;
        padding: 1vw 0;
        background-color: var(--blue-2);
    }
}

/* Estado fechado da animação — só desktop (mesmo breakpoint do JS) */
@media (min-width: 769px) {
    .business .business-content {
        left: 25%;
        visibility: hidden;
    }
}

.contact {
    flex-direction: column;

    &:not(#contact-2) {
        padding: 0 7vw 4vw 7vw;
    }

    .office {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        object-fit: cover;
        object-position: center;
    }

    .box {
        position: absolute;
        right: 4.9vw;
        bottom: 3.5vw;
        width: 29vw;
        z-index: 1;
        border-radius: 1.6vw;
        padding: 1.45vw 1.75vw 1.1vw;
        background-color: var(--blue-dark);
        filter: drop-shadow(0px 8px 14px rgba(0, 0, 0, .5));

        h2 {
            font-size: 2.35vw;
            line-height: .95;
            letter-spacing: -.06vw;
            font-family: 'montserratRegular', Arial, Helvetica, sans-serif;
        }

        .description {
            font-size: 1vw;
            line-height: 1.2;
            padding: .5vw 0;
            border-bottom: .08vw solid var(--blue-3);
        }

        .item {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 1vw;
            min-height: 3.2vw;

            &:last-child {
                border-top: .08vw solid var(--blue-3);
            }

            .icon {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 1.75vw;
                height: 1.75vw;
                color: var(--blue-3);

                img {
                    position: relative;
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    object-position: center;
                }
            }

            p,
            a {
                font-size: .9vw;
                line-height: 1.25;
                color: var(--white);
                font-style: normal;
            }

            strong {
                color: var(--blue-3);
            }
        }

        .phone {
            min-height: 3.2vw;

            a {
                font-size: .95vw;
            }
        }
    }

    .contact-form {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1.4vw;
        row-gap: 2vw;
        width: 60vw;

        .line-break {
            grid-column: 1 / -1;
        }

        .required {
            color: var(--blue-2);
        }

        .form-group {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: end;
            min-width: 0;

            label {
                font-family: 'montserratSemiBold', Arial, Helvetica, sans-serif;

                &:not(.radio) {
                    margin-bottom: .4vw;
                }
            }
        }

        /* Estilos dos inputs, textareas e selects */
        .form-group input:not(#curriculo):not([type="radio"]),
        .form-group textarea,
        select {
            width: 100%;
            height: 3vw;
            outline: none;
            font-size: 1vw;
            padding: .5vw 1vw;
            color: #757575;
            border-radius: .6vw;
            -webkit-user-select: text;
            background-color: var(--white);
            border: 1px solid var(--gray-2);
            font-family: 'montserratRegular', Arial, Helvetica, sans-serif;
        }

        .form-group input,
        .form-group textarea,
        select {
            transition: border-color .2s, box-shadow .2s;
        }

        select {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            padding: .5vw 2.5vw .5vw 1vw;
        }

        .select-wrapper {
            position: relative;
            width: 100%;

            &::after {
                content: "";
                position: absolute;
                top: 50%;
                right: 16px;
                width: .5vw;
                height: .5vw;
                border-right: 1.5px solid var(--gray-dark);
                border-bottom: 1.5px solid var(--gray-dark);
                transform: translateY(-50%) rotate(45deg);
                pointer-events: none;
            }
        }

        .form-group input:focus,
        .form-group textarea:focus,
        select:focus {
            border-color: var(--almost-black);
        }

        .form-group textarea {
            height: 10vw;
            resize: vertical;
            margin-top: .5vw;
        }

        .birth {
            display: grid;
            align-items: end;
            grid-template-columns: .7fr .7fr 1.2fr;
            gap: 1vw;
            height: 3vw;
        }

        .options {
            display: flex;
            align-items: center;
            gap: 3vw;
            min-height: 3vw;

            .radio {
                display: flex;
                align-items: center;
                gap: .5vw;
                cursor: pointer;
            }

            input[type="radio"] {
                width: 1.5vw;
                height: 1.5vw;
                margin: 0;
                padding: 0;
                cursor: pointer;
                appearance: none;
                border-radius: 50%;
                border: 1.5px solid var(--blue-2);
            }

            span {
                font-size: 1vw;
                color: var(--almost-black);
                font-family: 'montserratSemiBold', Arial, Helvetica, sans-serif;
            }
        }

        .file-input {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            height: 4vw;
            padding: 0 1vw;
            cursor: pointer;
            border-radius: .8vw;
            border: 1px dashed #B9C3CD;

            input[type="file"] {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
                cursor: pointer;
            }
        }

        .file-label {
            color: #757575;
            padding-left: 1vw;
            font-family: 'montserratRegular', Arial, Helvetica, sans-serif;
        }

        .file-icon {
            width: 1.5vw;
            height: 1.5vw;
            flex: 0 0 auto;
            stroke: var(--gray-dark);
            fill: none;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .button-submit {
            border: none;
            width: 20vw;
            margin: 0 auto;
            padding: 1vw 3.2vw;
            background-color: var(--blue-2);

            &:hover {
                color: var(--white);
                background-color: var(--blue);
            }
        }
    }
}

footer {
    padding: 2.5vw 3vw;
    border-top: 1px solid #16425e;
    background: linear-gradient(110deg, #041c32, var(--blue-dark) 65%, #00182b);

    .footer-content {
        display: grid;
        grid-template-columns: 2.2fr 1fr 0.8fr 1.7fr 0.9fr;
        align-items: start;
        gap: 2.5vw;
    }

    h3 {
        margin: 0 0 0.4vw;
        color: var(--white);
    }

    a {
        color: inherit;
        text-decoration: none;
        transition: color 0.25s;

        &:hover {
            color: var(--blue-3);
        }

        &:focus-visible {
            outline: 2px solid var(--blue-3);
            outline-offset: 4px;
            border-radius: 2px;
        }
    }

    svg {
        flex: 0 0 1.05vw;
        width: 1.05vw;
        height: 1.05vw;
        stroke: var(--white);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    ul {
        display: grid;
        gap: 0.2vw;
    }

    .footer-brand {
        img {
            display: block;
            max-width: 9.5vw;
        }

        p {
            margin-top: 1.3vw;
            font-size: 1.15vw;
            line-height: 1.4;
        }
    }

    .footer-nav,
    .footer-contact {

        li,
        a,
        p {
            font-size: 0.82vw;
            line-height: 1.45;
        }
    }

    .footer-contact {
        font-style: normal;

        ul {
            gap: 0.65vw;
        }

        li {
            display: flex;
            align-items: center;
            gap: 0.7vw;
        }
    }

    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2vw;
        text-align: right;

        nav {
            display: flex;
            gap: 1.1vw;
        }

        nav a {
            display: grid;
            place-items: center;
            width: 1.8vw;
            height: 1.8vw;
        }

        img {
            width: 65%;
            height: 65%;
            object-fit: contain;
        }

        p,
        span {
            font-size: 0.78vw;
            line-height: normal;
            text-align: right;
        }

        span {
            font-family: 'montserratRegular', Arial, Helvetica, sans-serif;
        }
    }
}

/* CASOS ESPECÍFICOS */
#quem-somos {
    .containerTexts {
        width: 37vw;
    }
}

#pilares {
    .purpose-item:nth-child(2) img {
        width: 3vw;
    }

    .purpose-item div {
        width: 31vw;
    }
}

#servicos {
    p {
        width: 80%;
    }
}

#experiencia {
    background-color: var(--gray-opacity);

    strong {
        display: block;
    }
}

#experiencia-2 {
    min-height: auto;
    justify-content: center;
    padding: 10vw 7vw 2vw 7vw;
}

#contact-1 {
    height: 47.2vw;
}