:root {
    --min-width: 375px;
    --max-width: 1440px;
    --clr-primary-1: hsl(0, 100%, 100%);
    --clr-primary-2: hsl(0, 0%, 63%);
    --clr-primary-3: hsl(0, 0%, 27%);
    --clr-primary-4: hsl(0, 0%, 0%);
    --fs-1: 16px;
    --ff-1: "League Spartan", sans-serif;
    --fw-1: 500;
    --fw-2: 600;
    --fw-3: 700;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100dvh;
scrollbar-width: 0;
}

body::-webkit-scrollbar {
    display: none;
    -ms-overflow-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

a {
    text-decoration: none;
}


/* Global Setup */
body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.7fr 1fr;
    /* Key change: 2/3 for first row, 1/3 for footer */
    min-height: 100dvh;
}

header {
    grid-column: 1 / 2;
    grid-row: 1 / 1;
}

header nav {
    display: flex;
    align-items: center;
    height: 150px;
}

nav .logo {
    margin-inline: 2em 2em;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-inline: 1em 1em;
}

nav ul li a {
    color: var(--clr-primary-1);
    font-family: var(--ff-1);
    font-size: var(--fs-1);
    font-weight: var(--fw-1);
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
}

nav ul li a::before {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--clr-primary-1);
    position: absolute;
    bottom: -.5em;
    left: 0;
}

nav ul li a:hover::before {
    width: 100%;
    transition: width 200ms ease-in-out;
}

nav .menu-btn {
    display: none;
}

main {
    grid-column: 2 / 3;
    grid-row: 1 / 1;
    position: relative;
}

main .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-family: var(--ff-1);
    font-size: calc(var(--fs-1) + 2rem);
    font-weight: var(--fw-2);
    margin-block: 2em .5em;
    width: 60%;
    text-transform: lowercase;
}

.title::first-letter {
    text-transform: uppercase;
}

.text {
    font-family: var(--ff-1);
    font-weight: var(--fw-2);
    color: var(--clr-primary-2);
    font-size: var(--fs-1);
    widtH: 60%;
    line-height: 25px;
}

main .content .show-btn {
    width: 60%;
    height: 3em;
    margin-block-start: 2em;
    text-align: left;
    background-color: transparent;
}

main .content .show-btn a {
    color: var(--clr-primary-4);
    font-size: calc(var(--fs-1) + .1rem);
    font-weight: var(--fw-1);
    text-transform: uppercase;
    letter-spacing: 15px;
}

main .content .show-btn:hover a {
    color: var(--clr-primary-2);
    transition: 200ms ease-in-out;
}

/* Slide Buttons */
main .buttons {
    position: absolute;
    bottom: 0;
    left: 0;
}

main .buttons .d-btn {
    width: 8em;
    height: 8em;
    background-color: var(--clr-primary-4);
    margin: 0;
}

main .buttons .d-btn i {
    color: var(--clr-primary-1);
    font-size: calc(var(--fs-1) + .5rem);
}

main .buttons .d-btn:hover {
    background-color: var(--clr-primary-3);
    transition: 200ms ease-in-out;
}

footer {
    grid-column: 1 / 3;
    grid-row: 2 / 2;
    display: flex;
    flex-wrap: wrap;
}

footer section {
    width: calc(100% / 3);
    height: 100%;
}

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

footer .section2 {
    display: block;
}

footer .section2 h2,
footer .section2 p {
    font-family: var(--ff-1);
}

footer .section2 h2 {
    font-size: calc(var(--fs-1) + .1rem);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-inline-start: 2em;
    margin-block: 5em 1em;
}

footer .section2 p {
    color: var(--clr-primary-2);
    margin-inline: 2em 3em;
    line-height: 25px;
}

/* Responsive: Stack vertically on small screens */
@media (max-width: 850px) {
    body {
        height: 100dvh;
        grid-template-columns: 1fr;
        /* grid-template-rows: 1fr 1fr 1fr; */
        /* All equal height */
    }

    header {
        grid-column: 1 / 1;
        /* grid-row: 1 / 2; */
        height: 600px;
    }

    header nav {
        position: relative;
    }

    header nav .logo {
        position: absolute;
        top: 40%;
        left: 45%;
        transform: translate(-50%, -50%) scale(1.2);
    }

    header nav ul {
        display: none;
    }

    header nav ul.active {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100px;
        background-color: var(--clr-primary-1);
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    header nav ul li a {
        color: var(--clr-primary-4);
        font-weight: var(--fw-3);
        letter-spacing: .5px;
    }

    header nav .menu-btn {
        display: block;
        position: absolute;
    }

    header nav .menu-btn .menu {
        width: 4em;
        height: 4em;
        background-color: transparent;
        border: none;
        outline: none;
        position: absolute;
        top: -3.5em;
        left: 2.5em;
        cursor: pointer;
    }

    header nav .menu-btn .close-menu {
        display: none;
    }

    main {
        grid-column: 1 / 2;
        grid-row: 2 / 2;
        container-name: center;
        container-type: inline-size;
    }

    @container center (min-width < 900px) {
        main .buttons {
             position: absolute;
             top: -12em;
             border: solid green;
         }
     }

    main .content {
        margin-block: 0 0;
        padding-bottom: 5em;
    }

    main .content .title {
        width: 80%;

    }

    main .content .text {
        width: 80%;
        font-size: calc(var(--fs-1) + .3rem);
        line-height: 28px;
        margin-inline: 2em 2em;
    }

    main .content .show-btn {
        width: 80%;
        margin-block-start: 2em;
    }

    main .buttons {
        width: 100%;
        height: 100px;
        position: absolute;
        top: -6.5em;
        right: 10px;
        display: flex;
        justify-content: flex-end;
    }


    footer {
        height: auto;
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        display: block;
    }

    footer section {
        width: 100%;
        height: calc(100% / 3);
    }

    footer section:nth-child(2) h2 {
        font-size: calc(var(--fs-1) + .3rem);
        font-weight: var(--fw-3);
    }

    footer section:nth-child(2) p {
        font-size: calc(var(--fs-1) + .3rem);
        line-height: 28px;
        margin-inline: 2em 2em;
    }
}