/* rem and em do NOT depend on html font-size in media queries!
Instead, 1rem = 1em = 16px */

/**************************/
/* BELOW 1312px */
/**************************/


@media (max-width: 82em) {

    .menu-links {
        column-gap: 2rem;
    }

    .menu-links-list {
        gap: 1.4rem;
    }

    .menu-link:link,
    .menu-link:visited {
        font-size: 1.2rem;
    }

    .menu-link-desktop-view-cta:link,
    .menu-link-desktop-view-cta:visited {
        font-size: 1.2rem;
    }

    .menu-nav-pages-link {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* 1136px */
/*
@media (max-width: 71em) {
        .menu-links {
        column-gap: 1.6rem;
    }

    .menu-links-list {
        gap: 1.2rem;
    }

    .menu-link:link,
    .menu-link:visited {
        font-size: 1rem;
    }

    .menu-link-desktop-view-cta:link,
    .menu-link-desktop-view-cta:visited {
        font-size: 1rem;
    }
} */

@media (max-width: 71em) {
    .menu-links {
        display: none;
    }

    /* MOBILE NAVIGATION */
    .btn-mobile-nav {
        display: block;
        z-index: 9999;
    }

    .menu-links {
        background-color: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease-in;
        gap: 2.4rem;

        /* Hide navigation */
        /* Allows NO transitions at all */
        /* display: none; */

        /* 1) Hide it visually */
        opacity: 0;

        /* 2) Make it unaccessible to mouse and keyboard */
        pointer-events: none;

        /* 3) Hide it from screen readers */
        visibility: hidden;
    }

    .menu-links-categoria {
        width: 80%;
        text-align: center;
    }

    .menu-link-desktop-view-cta {
        display: inline-block;
    }

    .menu-links-list {
        flex-direction: column;
    }

    .menu-link:link,
    .menu-link:visited {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav-open .menu-links {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-open .icon-mobile-nav[name="close-outline"] {
        display: block;
    }

    .nav-open .icon-mobile-nav[name="menu-outline"] {
        display: none;
    }
}

/**************************/
/* BELOW 1024px */
/**************************/

@media (max-width: 64em) {
    html {
        /* 9px / 16px = 56.25 */
        font-size: 56.25%;
    }
}

/**************************/
/* BELOW 940px (Tablets) */
/**************************/

@media (max-width: 59em) {
    html {
        font-size: 50%;
    }
}

/**************************/
/* BELOW 768px */
/**************************/

@media (max-width: 48em) {
    .hero {
        /* height: 60rem; */
    }

    .hero-section p {
        font-size: 3.2rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .bemvindo-section-box {
        flex-direction: column;
    }

    .bemvindo-section-box p {
        border-left: none;
        padding: 0;
    }

    .detalhes-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 4.8rem;
    }

    .section-head-equip-instr {
        grid-template-columns: 5fr 1fr;
    }

    .nossos-servicos-z-pattern {
        row-gap: 6.4rem;
    }

    .img-left,
    .img-right {
        border-radius: none;
    }

    .nossos-servicos-img {
        border-radius: 4.4rem;
    }

    .nsbd-right::after,
    .nsbd-left::after {
        display: none;
    }

    .nossos-servicos-box-details {
        padding: 0 4rem;

        justify-content: start;
    }

    .get-solution-box {
        width: 90%;
    }

    .sectores {
        gap: 1.6rem;
    }

    .nome-sector {
        font-size: 1.4rem;
    }

    .footer-box {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        row-gap: 4.8rem;
    }

    .f-box:nth-child(1) {
        grid-row: 2;
        grid-column: 1 / 3;
    }
}


/**************************/
/* BELOW 544 (Phones) */
/**************************/

@media (max-width: 34em) {
    .detalhes-cards {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 4.8rem;
    }

    .section-head-equip-instr {
        grid-template-columns: 1fr;
    }

    .nossos-servicos-z-pattern {
        grid-template-columns: 1fr;
        row-gap: 6.4rem;
    }

    .nossos-servicos-box-details {
        padding: 0;
    }

    .nossos-servicos-img:nth-child(4) {
        grid-row: 3 / 4;
    }

    .nsbd-item:nth-child(8) {
        grid-row: 7 / 8;
    }

    .get-solution-box {
        width: 100%;
    }

    .sectores {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.4rem;
    }

    .nome-sector {
        font-size: 1.2rem;
    }

    .footer-box {
        grid-template-columns: repeat(2, 1fr) !important;
        line-height: 1.4;
    }

    .f-box {
        height: auto;
    }

    .f-box:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 3 / 4;
    }

    .f-box:nth-child(2) {
        grid-row: 1 / 2;
    }

    .f-box:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }

    .menu-nav-pages {
        display: none;
    }
}
