@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap");
@import url("resets.css");
@import url("about.css");
@import url("blogPage.css");

:root {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #010615;
    --primary-color: #ddd;
    --secondary-color: #555;
    --bg-color: #f2f2f2;
}

body {
    height: 100dvh;
    display: grid;
    background-color: var(--bg-color);
}

.nav {
    display: flex;
    place-content: space-between;
    place-items: center;
    position: relative;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--primary-color);

    .nav__logo {
        width: inherit;
        height: 2rem;
        filter: grayscale(1);
    }

    .nav__list {
        display: none;
        position: absolute;
        top: 2.5rem;
        right: 0.6rem;
        left: 6rem;
        font-size: 1.1rem;
        height: 30dvh;
        place-content: space-between;
        place-items: center;
        flex-direction: column;
        padding: 1.5rem;
        background-color: #000000e8;
        backdrop-filter: blur(6px);
        border: 1px solid var(--secondary-color);
        border-radius: 0.3rem;

        a {
            color: #fff;
        }

        a:hover {
            text-decoration: underline;
            color: #010615;
        }
    }

    .material-symbols-outlined {
        cursor: pointer;
    }
}

main {
    margin: 1.5rem;
}

.container {
    .hero__text h1 {
        font-size: 3.2rem;
        font-weight: 800;
        text-transform: capitalize;
        line-height: 1;
    }

    .hero__text p {
        font-size: 1.1rem;
        line-height: 1.4;
        color: #333;
        margin: 1.2rem 0;
    }

    form {
        text-align: center;

        #email {
            padding: 0.5rem 0.8rem;
            border: 2px solid #333;
            background-color: transparent;
            border-radius: 2rem;
            margin: 0.3rem 0;
            width: 100%;
        }

        .cta {
            font-size: 0.85rem;
            color: #fff;
            background-color: #010615;
            padding: 0.6rem 1.3rem;
            margin-top: 0.4rem;
            border: none;
            border-radius: 2rem;
            width: 100%;
        }
    }

    .hero__image {
        margin: 2rem 0;

        img {
            border-radius: 0.4rem;
            height: 14rem;
            object-fit: cover;
        }
    }

    .blog-section {
        margin-top: 3.5rem;

        .blog-card {
            padding: 1rem;
            margin: 0 0 0.5rem 0;
            border-radius: 0.35rem;
            border: 2px solid #010615;
            background-color: #f5f5f5;

            a {
                color: #002cb3;
            }
        }
    }

    .contact-section {
        /* use colors in this section for entire site */
        background-color: #010615;
        color: #bcbcbc;
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        margin-top: 1rem;
        border-radius: 0.35rem;
        margin-top: 4rem;

        h2 {
            color: #e5ecf9;
        }

        p {
            margin: 1rem 0;
        }

        button {
            border: none;
            border-radius: 2rem;
            padding: 0.5rem 1.5rem;
            color: #010615;
            background-color: #fff;
            cursor: pointer;
        }
    }
}

footer {
    text-align: center;
    color: #fff;
    background-color: #000;
    padding: 0.5rem;
}

/*post styling*/ /*!FIX THIS*/

main {
    .blog--article {
        margin: 0 0 1rem 0;

        h2 {
            font-size: 3rem;
            margin: 0 0 1.5rem 0;
        }

        h3 {
            font-size: 1.9rem;
            margin: 2rem 0 0.6rem 0;
        }

        p {
            margin: 0.5rem 0;
        }

        img {
            border-radius: 0.45rem;
            height: 15rem;
            object-fit: cover;
            object-position: center;
        }
    }
}

@media screen and (width >= 768px) {
    .nav {
        place-content: space-around;

        .material-symbols-outlined {
            display: none;
        }

        .nav__list {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            position: initial;
            height: unset;
            padding: 0;
            border: none;
            background-color: transparent;
            font-size: 1rem;

            a {
                color: #000;
            }
        }
    }

    main {
        margin: 2rem 3rem;
    }

    .container {
        .hero__text h1 {
            font-size: 3.5rem;
        }

        .hero__section {
            .wrapper {
                display: grid;
                grid-template-columns: 2fr 1fr;
                place-items: center;
                gap: 1rem;
            }
        }

        .hero__image img {
            height: 17rem;
        }

        .blog-section {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            place-items: end;
            gap: 1rem;

            h2 {
                font-size: 3.2rem;
                align-self: baseline;
            }
        }

        .contact-section {
            padding: 1.5rem;
        }
    }
}

@media screen and (width >= 992px) {
    main {
        margin: 2rem 5rem;
    }

    .container {
        .hero__text h1 {
            font-size: 4.5rem;
        }
    }
}

@media screen and (width >= 1200px) {
    main {
        margin: 2rem 11rem;
    }
}

/*576px, 768px, 992px, and 1200px*/
