:root {
    --primary-color: #FBD304;
    --secondary-color: #141D1F;
    --tertiary-color: #8A8A95;
    --alternate-color: #ffffff;
    --black-color: #000000;
    --rgba-color: rgba(255, 255, 255, 0.5);
    --desktop-container: 86%;
    --mobile-container: 90%;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: 0;
    list-style: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    line-height: 1.75;
    font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
    font-weight: normal;
}

.container {
    margin: 0 auto;
    width: var(--desktop-container);
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


a {
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

h1,
h2,
h3,
h4 {
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2rem, 2.5vw, 2.25rem);
    font-weight: 300;
}

section {
    padding: 3rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4.5rem;
    font-weight: 300;
}

#navbar2,
#menu-btn {
    display: none;
}

.btn {
    padding: 0.3125rem 1.25rem;
    color: var(--alternate-color);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

html,
body {
    width: auto !important;
    overflow-x: hidden !important;
}

/* end of general styling */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    width: 100%;
    background-color: var(--rgba-color);
}

#navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-right: 2rem;
}

.logo {
    font-size: 1.5rem;
    margin-left: 1rem;
}

/* end of header styling */

section[id="home"] .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(min-content, 1fr));
    place-items: center;
    gap: 2rem;
}

.banner p:nth-of-type(3) {
    padding-bottom: 1rem;
}

.banner svg {
    width: 1rem;
    height: 1rem;
    top: .25rem;
    position: relative;
}

.banner>p {
    font-size: large;
    font-weight: lighter;
}

.banner_img {
    clip-path: polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);
}

.text {
    margin-top: 1rem;
}

/* end of about styling */

section[id="brands"] .container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    place-items: center;
}

picture[class="brand_logo"] {
    width: 6rem;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.brand_logo:nth-child(5) {
    filter: initial;
    -webkit-filter: initial;
}

/* end of brand styling */

section[id="products"] .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(min-content, 1fr));
    gap: 2rem;
    align-items: center;
}

.products_column svg {
    display: block;
    margin: auto;
}


.products_column img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

iframe {
    padding: 1rem;
}

.review {
    background-color: var(--primary-color);
    padding: 0.5rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.other {
    overflow-x: hidden;
    position: relative;
    margin: 0 auto;
    width: 86%;
    gap: 2rem;
    padding-bottom: 2rem;
    text-align: center;
}

.products_column {
    position: relative;
}

.products_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 1rem;
    max-width: fit-content;
    padding: 0 0.5rem;
    color: var(--secondary-color);
    background: var(--primary-color);
    text-transform: capitalize;
}

.mySwiper .swiper-pagination-bullet {
    background-color: var(--secondary-color);
}

.mySwiper .swiper-wrapper {
    padding-bottom: 1rem;
}

.cards {
    margin-top: 1rem;
}

.cards li {
    color: var(--secondary-color);
}

.cards>li {
    list-style: inside;
    list-style-type: circle;
}

.div_column {
    height: 100%;
}

/* end of products styling */

section[id="contact"] .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(min-content, 1fr));
    place-items: center;
}

section[id="contact"] {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: var(--secondary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('./imgs/20317-background-moz.jpg');

    @supports (background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('./imgs/20317-background.webp')) {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('./imgs/20317-background.webp');
    }
}

.color {
    color: var(--alternate-color);
}


section[id="contact"] article {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
}


iframe {
    max-width: 100%;
    object-fit: cover;
    display: block;

}

.frame {
    border: 1px solid var(--alternate-color);
    border-radius: 0.3125rem;
}


/* end of contact styling */

.credit {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}


/* end of footer styling */

@media screen and (max-width: 64rem) {
    .container {
        width: var(--desktop-container);
    }

    #navbar {
        display: none;
    }

    #navbar2 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 16rem;
        background-color: var(--primary-color);
        transition: all 0.3s ease-out;
    }

    #navbar2 li {
        margin: 2.5rem 0;
        width: 100%;
    }

    #navbar2 li a {
        color: var(--secondary-color);
        line-height: 1;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #navbar2 a:hover {
        color: var(--tertiary-color);
    }

    #navbar2.active {
        left: 0;
    }

    #menu-btn {
        display: inline-block;
        cursor: pointer;
        background-color: transparent;
        margin: 0.5rem auto;
        margin-right: 1rem;
    }

    /*end of hamburger menu */

    section[id="brands"] .container {
        grid-template-columns: repeat(3, minmax(min-content, 1fr));
        place-items: center;
    }
}

/* end of media queries for large screens */

@media screen and (max-width: 51.25rem) {
    section[id="products"] .container {
        grid-template-columns: repeat(2, minmax(min-content, 1fr));
    }

    .other {
        width: 86%;
    }

    header {
        background-color: var(--alternate-color);
    }
}

/* end of media queries for medium screens */

@media screen and (max-width:37.5rem) {
    .container {
        width: var(--mobile-container);
    }

    header {
        background-color: var(--alternate-color);
    }

    h1,
    .text {
        text-align: center;
    }

    section[id="home"] .container {
        grid-template-columns: minmax(min-content, 1fr);
        width: 100%; /*enable image width to cover the whole viewport width */
    }

    .container .banner {
        width: var(--mobile-container);
    }

    section[id="brands"] .container {
        grid-template-columns: repeat(2, minmax(min-content, 1fr));
        place-items: center;
    }

    section[id="products"] .container {
        grid-template-columns: minmax(min-content, 1fr);
    }

    ul[class="cards"] li,  ul[class="review"] li {
        font-size: 0.875rem; /* 14px */
    }

    .other {
        width: 90%;
    }

    section[id="contact"] .container {
        grid-template-columns: minmax(min-content, 1fr);
        gap: 2rem;
    }

    #product p {
        font-size: 0.875rem;
    }

    .mySwiper .swiper-pagination-bullet {
        padding: 0.25rem
    }

    .banner_img {
        clip-path: initial;
    }
}

/* end of media queries for small phones */

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}