@use './typography';
@use './colors';
@use './layout-spacing';

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Clash Display Regular", sans-serif;
}

* {
    box-sizing: border-box;
}

// BUTTON 
button {
    all: unset;
    cursor: pointer;
}

// NAVBAR
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.02), 0px 2px 4px rgba(0, 0, 0, 0.08);
    transition: top .3s;
    z-index: 9999;

    ul {
        list-style: none;
        margin: 0;

        li {
            button {
                width: 40px;
                height: 40px;
                cursor: pointer;
            }
        }
    }

    .menu {
        position: absolute;
        top: 83px;
        left: 0;
        right: 0;
        overflow: hidden;
        z-index: 999;

        img {
            display: none;
        }

        .button-mobile {
            display: none;
        }
    }
}

// ACCORDION
.accordion {
    &.hide {
        .accordion-header {
            cursor: pointer;

            img {
                transform: rotate(0deg);
            }
        }

        .accordion-body {
            height: 0;
            overflow: hidden;

        }
    }

    .accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        border-radius: 8px;
        background: #FF9903;

        img {
            transform: rotate(180deg);
        }
    }

    .accordion-body {
        margin-top: 16px;

        img {
            width: 100%;
            height: auto;
        }
    }
}

// FOOTER 
footer {
    .company {
        width: 240px;
    }

    .links {
        width: calc(100% - 300px);

        div {
            width: calc(33.3% - 40px);
        }
    }
}

// INPUT
input[type="text"],
input[type="email"] {
    display: block;
    background: transparent;
    border: none;
    border-bottom: solid 1px #D1D1D1;
    padding-bottom: 8px;
    outline: none;
    width: 100%;
    font-family: "Clash Display Regular";
    font-size: 16px;

    &:focus {
        border-bottom: solid 1px #FF9903;
    }
}

textarea {
    width: 100%;
    display: block;
    background: transparent;
    border: solid 1px #D1D1D1;
    padding: 8px;
    font-family: "Clash Display Regular";
    font-size: 16px;
    height: 200px;
    resize: vertical;
}

@media (min-width: 768px) and (max-width: 992px) {
    nav .menu {
        .image {
            display: none;
        }
    }
}

@media (max-width: 767px) {
    nav .menu .button-mobile {
        display: block;
    }

    nav .menu .link {
        flex-direction: column;
    }

    nav .menu .image {
        display: none;
    }

    nav .download,
    nav .buy-card {
        display: none;
    }


    footer .company,
    footer .links,
    footer .links div {
        width: 100%;
    }
}