/***************************************
BELOW 1344px (Smaller desktops)
***************************************/

@media (max-width: 84em) {
    .hero {
        max-width: 120rem;
    }

    .heading-primary {
        font-size: 4.4rem;
    }
}

/***************************************
BELOW 1200px (Landscape desktops)
***************************************/
@media (max-width: 75em) {
    html {
        font-size: 56.25%;
    }

    .grid {
        column-gap: 4.8rem;
        row-gap: 6.4rem;
    }

    .heading-secondary {
        font-size: 3.6rem;
    }

    .heading-tertiary {
        font-size: 2.4rem;
    }

    .header {
        padding: 0 3.2rem;
    }

    .hero {
        gap: 4.8rem;
    }

    .main-nav-list {
        gap: 3.2rem;
    }

    .section-hero {
        padding: 3.2rem 0rem;
    }

    .logo {
        height: 3.6rem;
        margin-left: -16.8rem;
    }

    .timeline-item-inverted .timeline-item {
        font-size: 1.8rem;
    }

    .item-date {
        font-size: 1.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .left-col {
        grid-row: 2 / 3;
        grid-column: 1 / -1;
        border-top: 2px solid #000;
    }

    .footer-logo {
        right: -5.4rem
    }




}

/***************************************
BELOW 944px (Tablets)
***************************************/
@media (max-width: 59em) {
    html {
        font-size: 50%;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 0 8rem;
        gap: 6.4rem;
    }

    .hero-img {
        width: 50%;
    }

    .hero-text-box,
    .hero-img-box {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 3.2rem;
    }

    .logos img {
        height: 4.8rem;
    }

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

    .main-nav {
        background-color: #fffffff1;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);

        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease-in;

        /* display: none; */

        opacity: 0;

        pointer-events: none;

        visibility: hidden;
    }

    .nav-open .main-nav {
        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;
    }



    .main-nav-list {
        flex-direction: column;
        gap: 4.8rem;
    }

    .main-nav-link:link,
    .main-nav-link:visited {
        font-size: 3rem;
    }

    .footer {
        flex-wrap: wrap-reverse;
    }
}

/***************************************
BELOW 704px (Smaller tablets)
***************************************/

@media (max-width: 44em) {

    .timeline-item,
    .timeline-item-inverted {
        grid-template-columns: 1fr 0.3rem 5fr;
    }

    .timeline-item .item-date {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        min-width: 5.6rem;
    }

    .timeline-item-inverted .item-date {
        min-width: 5.6rem;

    }

    .timeline-item .item-mid {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .timeline-item .item-content {
        grid-column: 3 / 4;
    }
}

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

@media (max-width: 34em) {
    .grid {
        row-gap: 4.8rem;
    }

    .grid--2-cols,
    .grid--3-cols,
    .grid--4-cols {
        grid-template-columns: 1fr;
    }

    .btn,
    .btn:link,
    .btn:visited {
        padding: 2.4rem 1.6rem;
    }

    .section-hero {
        padding: 2.4rem 0 6.4rem 0;

    }

    .hero {
        padding: 0 3.2rem;
    }

    .hero-img {
        width: 80%;
    }

    .step-img-box:nth-child(2) {
        grid-row: 1;
    }

    .step-img-box:nth-child(6) {
        grid-row: 5;
    }

    .step-img-box {
        transform: translateY(2.4rem);
    }

    .hero-btns a {
        display: inline-block;
    }

    .hero-btns {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3.2rem;
    }

    .cta-form-grid {
        grid-template-columns: 1fr;
    }
}