* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --default-white: rgba(255, 255, 255, 0.7);
    --default-black: #5C5C5C;
    --orange: #F97316;
    --dark-blue: #0A2633;
    --default-blue: #0C3646;
}

body {
    background: #E9E9E9;
    min-height: 500vh;
}


h1,
h2,
h3 {
    font-family: "Outfit", sans-serif;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

p,
a,
button,
address,
small {
    font-family: "Inter", sans-serif;
}

.contrast {
    color: var(--orange);
}

.subtitle-container {
    text-align: center;
    margin-bottom: 3rem;

    h2 {
        font-size: 2.4rem;
        font-weight: 600;
    }

    p {
        margin: 1rem 0;
        font-weight: 400;
    }
}

.subtitle-container.dark {
    h2 {
        color: #2E2E2E;
    }

    p {
        color: var(--default-black);
    }
}

.subtitle-container.white {
    h2 {
        color: #FFFFFF;
    }

    p {
        color: var(--default-white);
    }
}

.max-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;

    >* {
        position: relative;
        z-index: 3;
    }
}

.cta-whatsapp {
    background-color: var(--orange);
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.cta-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;

    .name {
        font-family: "Outfit", sans-serif;
        font-weight: 700;
        font-size: 1.3rem;

        span {
            color: #076589;
            letter-spacing: -1px;
        }
    }
}

/* Modal */
#modal {
    margin: auto;
    max-width: 600px;
    width: 95%;
    border: none;
    border-radius: 20px;
    margin: auto calc(auto - 1rem);
    z-index: 100;

    header {
        width: 100%;
        height: 15vh;
        overflow: hidden;
        position: relative;

        .text-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
            margin-left: 1rem;
            color: #FFF;
            gap: 4px;

            h2 {
                font-weight: 800;
                width: 80%;
            }

            div {
                font-family: "Inter", sans-serif;
                color: var(--default-white);
                font-size: 0.9rem;
            }
        }

        >* {
            position: relative;
            z-index: 3;
        }

        .img-service {
            position: absolute;
            width: 100%;
            z-index: 1;
        }

        .btn-closeModal {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.25);
            border: none;
            display: flex;
            padding: 10px;
            border-radius: 100px;
            cursor: pointer;
            z-index: 3;
            color: #FFF;
            transition: opacity 0.3s ease;
        }

        .btn-closeModal:focus {
            outline: none;
        }

        .btn-closeModal:hover {
            opacity: 0.8;
        }
    }

    header::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(10, 38, 51), rgba(10, 38, 51, 0.8), rgba(10, 38, 51, 0.2));
        z-index: 2;
    }

    .content {
        padding: 1.4rem;

        h3 {
            text-transform: uppercase;
            color: var(--dark-blue);
            margin-bottom: 10px;
            letter-spacing: 1px;
            font-size: 1.1rem;
        }

        p,
        li {
            color: rgb(74, 85, 101);
        }

        li {
            font-family: "Inter", sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 1rem;

            svg {
                flex-shrink: 0;
                flex-grow: 0;
            }
        }

        li:last-child,
        section:last-child {
            margin-bottom: 0px;
        }

        section {
            margin-bottom: 2rem;
        }
    }

    .footer {
        width: 100%;
        max-height: 30vh;
        background-color: rgb(249, 250, 251);
        padding: 1rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        border-top: 1px solid rgb(243, 244, 246);

        .cta-whatsapp {
            max-width: 320px;
            width: 100%;
            justify-content: center;
            font-family: "Inter", sans-serif;
            border-radius: 10px;
            padding: 12px;
        }
    }
}

#modal:focus {
    outline: none;
}

#modal::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Animation */
#modal[open] {
    animation: fadeInScale 0.3s ease forwards;
}

#modal.is-closing {
    animation: fadeOutScale 0.3s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.fade-up {
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-dinamic {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
}
.fade-up-dinamic.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Header */
header {
    #navbar {
        background-color: rgba(0, 0, 0, .2);
        position: fixed;
        width: 100%;
        z-index: 9;

        .max-content {
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
    }

    .menu-hamburguer,
    .close-menu-hamburguer {
        background: none;
        display: flex;
        cursor: pointer;
        border: none;
        display: none;
    }

    .navigation {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.4rem;

        a {
            color: var(--default-white);
            transition: color 0.4s ease;
        }

        a:hover {
            color: var(--orange);
        }
    }

    .menu-container-mobile {
        position: fixed;
        top: 0;
        right: 0;
        padding: 120px 0 0;
        width: 220px;
        height: 100dvh;
        background: #0C3646;
        display: none;
        transform: translateX(280px);
        transition: transform 0.4s ease-in-out;
        z-index: 11;

        .close-menu-hamburguer {
            display: flex;
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 5;
            color: #FFF;
        }

        .navigation {
            flex-direction: column;
        }
    }

    .menu-container-mobile.opened {
        transform: translateX(0);
    }

    #hero {
        width: 100%;
        min-height: 100vh;
        position: relative;
        padding-top: 80px;

        >* {
            position: relative;
            z-index: 3;
        }

        .max-content {
            .content {
                min-height: 80vh;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: center;
                width: 50%;
                gap: 1.6rem;

                h1 {
                    color: #FFFFFF;
                    font-size: clamp(2rem, 1rem + 3vw, 4rem);
                    line-height: 1.2;
                }

                p {
                    color: var(--default-white);
                    line-height: 1.3;
                }

                .btn-container {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    width: 100%;

                    a {
                        border-radius: 10px;
                        padding: 12px 20px;
                        max-width: 200px;
                        width: 100%;
                        text-align: center;
                    }

                    .cta-whatsapp {
                        justify-content: center;
                    }

                    .view-services {
                        border: 1px solid var(--default-white);
                        color: var(--default-white);
                        transition: background 0.3s ease, color 0.3s ease;
                    }

                    .view-services:hover {
                        background: var(--orange);
                        color: #FFF;
                        border: 1px solid var(--orange);
                    }
                }
            }
        }
    }

    #hero::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: #0A2633 url('../assets/hero.webp');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        z-index: 1;

        -webkit-mask-image: url('../assets/waves-hero.svg'), linear-gradient(#000, #000);

        mask-image: url('../assets/waves-hero.svg'), linear-gradient(#000, #000);

        -webkit-mask-repeat: no-repeat, no-repeat;
        mask-repeat: no-repeat, no-repeat;

        -webkit-mask-position: bottom center, top center;
        mask-position: bottom center, top center;

        -webkit-mask-size: calc(100% + 80px) auto, 100% calc(100% - calc(100vw * 0.1286) + 3px);
        mask-size: calc(100% + 80px) auto, 100% calc(100% - calc(100vw * 0.1286) + 3px);
       
    }
}

main {

    >* {
        margin: 8rem 0;
    }

    #works {
        .cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem;

            .card {
                background-color: rgba(255, 255, 255, 0.3);
                backdrop-filter: blur(6px);
                gap: 1rem;
                text-align: center;
                padding: 1.4rem;
                border: 1px solid var(--dark-blue);
                border-radius: 8px;

                img {
                    width: 80px;
                }

                h3 {
                    font-size: 1.4rem;
                    color: var(--dark-blue);
                    margin: 1rem 0;
                }

                p {
                    color: var(--default-black);
                }
            }
        }
    }

    #services {
        .cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;

            .card-service {
                background: #FFFFFF;
                overflow: hidden;
                border-radius: 30px;
                border: 1px solid rgba(10, 38, 51, 0.3);

                img {
                    width: 100%;
                }

                .content {
                    display: flex;
                    flex-direction: column;
                    gap: 1.1rem;
                    padding: 1.6rem 1rem;

                    h3 {
                        font-size: 1.4rem;
                        color: var(--dark-blue);
                    }

                    p {
                        color: var(--default-black);
                    }

                    .btn-container {
                        display: flex;
                        flex-direction: column;
                        align-items: stretch;
                        gap: 10px;

                        .view-more {
                            padding: 10px 12px;
                            border-radius: 60px;
                            border: 1px solid #D6DBE1;
                            background: none;
                            color: #2E2E2E;
                            font-weight: 600;
                            font-size: 1rem;
                            cursor: pointer;
                            transition: background-color 0.4s ease,
                                color 0.4s ease;
                        }

                        .view-more:hover {
                            background-color: #e7e9ee;
                        }

                        .cta-whatsapp {
                            justify-content: center;
                        }
                    }
                }
            }
        }
    }

    #two-section {
        width: 100%;
        min-height: 600px;
        position: relative;
        padding: 3rem 0;
        margin: 20rem 0 15rem;

        >* {
            position: relative;
            z-index: 4;
        }

        .max-content {
            #benefits {
                .cards {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                    gap: 2rem;

                    .card {
                        background: linear-gradient(to bottom, rgba(14, 69, 89, 0.9), rgba(11, 50, 65, 0.9));
                        backdrop-filter: blur(6px);
                        padding: 2rem 1rem;
                        border: 1px solid #286076;
                        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
                        border-radius: 12px;
                        color: #FFF;
                        display: flex;
                        flex-direction: column;
                        align-items: flex-start;
                        gap: 12px;

                        .icon {
                            width: 48px;
                            height: 48px;
                            display: grid;
                            place-items: center;
                            background: #FFF;
                            border-radius: 5px;
                        }

                        h3 {
                            font-family: "Inter", sans-serif;
                        }

                        .line {
                            width: 32px;
                            height: 2px;
                            background-color: var(--orange);
                        }

                        .desc {
                            color: var(--default-white);
                            line-height: 1.4;
                        }

                        .tag {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            gap: 8px;
                            margin-top: 1rem;
                            background-color: #0E3B4C;
                            border: 1px solid #286076;
                            border-radius: 8px;
                            padding: 8px;
                            width: 100%;
                            font-size: 0.9rem;

                            span {
                                color: var(--orange);
                            }
                        }
                    }
                }
            }

            #testimonials {
                margin-top: 8rem;

                .cards {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
                    gap: 1rem;


                    .card-testimonial {
                        padding: 1rem;
                        background-color: rgba(255, 255, 255, 0.1);
                        border: 1px solid rgba(214, 219, 225, 0.3);
                        border-radius: 20px;
                        color: #FFFFFF;

                        .perfil {
                            display: flex;
                            align-items: center;
                            gap: 10px;

                            h4 {
                                font-family: "Inter", sans-serif;
                                margin-bottom: 8px;
                            }
                        }

                        .feedback {
                            margin: 1rem 0;
                            line-height: 1.4;
                            color: var(--default-white);
                        }
                    }

                }
            }

        }
    }

    #two-section::before {
        content: '';
        position: absolute;
        top: -180px;
        bottom: -180px;
        left: 0;
        right: 0;
        background-color: var(--default-blue);
        z-index: 3;
        pointer-events: none;

        -webkit-mask-image:
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top.svg'),
            linear-gradient(#000, #000),
            url('../assets/waves-two-section-bottom.svg'),
            url('../assets/waves-two-section-bottom-transparent.svg'),
            url('../assets/waves-two-section-bottom-transparent.svg');

        mask-image:
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top.svg'),
            linear-gradient(#000, #000),
            url('../assets/waves-two-section-bottom.svg'),
            url('../assets/waves-two-section-bottom-transparent.svg'),
            url('../assets/waves-two-section-bottom-transparent.svg');

        -webkit-mask-position:
            center top,
            60% top,
            center top,
            center,
            center bottom,
            60% bottom,
            center bottom;

        mask-position:
            center top,
            60% top,
            center top,
            center,
            center bottom,
            60% bottom,
            center bottom;

        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;


        -webkit-mask-size:
            1920px auto,
            1920px auto,
            1920px auto,
            100% calc(100% - 360px + 2px),
            1920px auto,
            1920px auto,
            1920px auto;

        mask-size:
            1920px auto,
            1920px auto,
            1920px auto,
            100% calc(100% - 360px + 2px),
            1920px auto,
            1920px auto,
            1920px auto;
    }

    #contact {

        .max-content {

            .content {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 2rem;


                .contact-form {
                    font-family: "Inter", sans-serif;
                    padding: 24px;
                    background-color: #ffffff;
                    display: flex;
                    flex-direction: column;
                    gap: 20px;
                    border-radius: 20px;

                    h2 {
                        color: #1e293b;
                        font-size: 24px;
                        font-weight: 700;
                        margin: 0 0 4px 0;
                    }

                    .form-row {
                        display: flex;
                        gap: 16px;

                        .form-group {
                            flex: 1;
                        }
                    }

                    .form-group {
                        display: flex;
                        flex-direction: column;
                        gap: 8px;

                        label {
                            color: #334155;
                            font-size: 14px;
                            font-weight: 600;
                        }

                        input,
                        select,
                        textarea {
                            width: 100%;
                            padding: 12px 16px;
                            border: 1px solid #e2e8f0;
                            border-radius: 8px;
                            font-size: 15px;
                            color: #1e293b;
                            background-color: #ffffff;
                            outline: none;
                            transition: border-color 0.2s ease, box-shadow 0.2s ease;

                            &::placeholder {
                                color: #94a3b8;
                                opacity: 1;
                            }

                            &:focus {
                                border-color: #F97316;
                                box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
                            }
                        }

                        select {
                            appearance: none;
                            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
                            background-repeat: no-repeat;
                            background-position: right 16px center;
                            padding-right: 40px;
                        }

                        textarea {
                            resize: vertical;
                            min-height: 120px;
                            font-family: inherit;
                        }
                    }

                    .btn-submit {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 8px;
                        background-color: #F97316;
                        color: #ffffff;
                        border: none;
                        border-radius: 6px;
                        padding: 14px 24px;
                        font-size: 16px;
                        font-weight: 700;
                        cursor: pointer;
                        transition: background-color 0.2s ease, box-shadow 0.2s ease;
                        outline: none;
                        margin-top: 8px;

                        &:hover {
                            background-color: #ea580c;
                        }

                        &:focus {
                            box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.4);
                        }

                        svg {
                            display: inline-block;
                            vertical-align: middle;
                            stroke-width: 2.5;
                        }
                    }
                }

                @media (max-width: 480px) {
                    .contact-form {
                        .form-row {
                            flex-direction: column;
                            gap: 20px;
                        }
                    }
                }

                .maps {
                    background: #FFF;
                    border-radius: 20px;
                    overflow: hidden;

                    iframe {
                        width: 100%;
                        height: 320px;
                    }

                    .info-container {
                        padding: 2rem;
                        display: flex;
                        flex-direction: column;
                        gap: 1rem;

                        .info {
                            display: flex;
                            align-items: center;
                            gap: 8px;

                            a,
                            p,
                            address {
                                color: var(--default-black);
                                font-size: 1.1rem;
                            }

                            address {
                                font-style: normal;
                            }

                        }
                    }
                }
            }


        }

    }

    #cta-end {
        width: 100%;
        min-height: 400px;
        position: relative;
        padding: 3rem 1rem;
        margin: 20rem 0 0;

        * {
            position: relative;
            z-index: 4;
        }

        h2 {
            font-size: 2.6rem;
            line-height: 1.2;
        }

        p {
            margin: 2rem 0;
            font-size: 1.2rem;
        }

        .cta-whatsapp {
            max-width: 320px;
            width: 100%;
            margin: 0 auto;
            justify-content: center;
            gap: 8px;
            font-size: 1.2rem;
            padding: 16px;
        }

        .details {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;

            color: #FFF;
            font-family: "Inter", sans-serif;
        }
    }

    #cta-end::before {
        content: '';
        position: absolute;
        top: -180px;
        bottom: -180px;
        left: 0;
        right: 0;
        background-color: var(--default-blue);
        z-index: 3;
        pointer-events: none;

        -webkit-mask-image:
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top.svg'),
            linear-gradient(#000, #000);

        mask-image:
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top-transparent.svg'),
            url('../assets/waves-two-section-top.svg'),
            linear-gradient(#000, #000);


        -webkit-mask-position:
            center top,
            60% top,
            center top,
            center;

        mask-position:
            center top,
            60% top,
            center top,
            center;


        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;


        -webkit-mask-size:
            1920px auto,
            1920px auto,
            1920px auto,
            100% calc(100% - 360px + 2px);

        mask-size:
            1920px auto,
            1920px auto,
            1920px auto,
            100% calc(100% - 360px + 2px);
    }
}

footer {
    background-color: #020618;
    padding: 3rem 0;

    h3 {
        color: #FFFFFF;
    }

    p,
    a,
    address {
        color: var(--default-white);
    }

    .max-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, max-content));
        gap: 5rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(69, 85, 108, 0.3);

        .content {
            display: flex;
            flex-direction: column;
            gap: 2rem;

            p {
                line-height: 1.4;
            }

            ul {
                display: flex;
                flex-direction: column;
                gap: 1rem;
            }
        }
    }

    small {
        display: block;
        padding: 0 1rem;
        text-align: center;
        width: 100%;
        margin: 2rem 0 0;
        color: rgba(255, 255, 255, .4);
    }

}

/* Responsive */
@media (max-width: 420px) {
    header {
        #hero {
            .max-content {
                .content {
                    .btn-container {
                        a {
                            max-width: 100%;
                        }
                    }
                }
            }
        }
    }

    main {
        #works {
            .cards {
                grid-template-columns: 1fr 1fr;
                gap: 8px;

                .card {
                    background: none;
                    border: none;
                    padding: 1rem;

                    img {
                        width: 96px;
                    }

                    p {
                        display: none;
                    }
                }
            }
        }

        #two-section {
            margin: 15rem 0;
        }

        #cta-end {
            margin: 15rem 0 0;
        }
    }
}

@media (max-width: 820px) {
    header {
        #navbar {
            .navigation {
                display: none;
            }

            .menu-hamburguer {
                display: flex;
            }
        }

        .menu-container-mobile {
            display: block;
        }

        #hero {
            .max-content {

                .content {
                    width: 100%;

                    .btn-container {
                        flex-direction: column;
                        align-items: flex-start;
                    }
                }
            }
        }

        #hero::before {
            background-position: 60% center;
        }
    }
}