﻿@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --main-color: #0056A4;
    --second-color: #f4f4f5;
    --other-color: #1a1a1a;
    --other-color-2: #666;
    --h1-font: 30px;
    --h2-font: 25px;
    --h3-font: 20px;
    --p-font: 16px;
    --m-h1-font: 22px;
    --m-h2-font: 20px;
    --m-h3-font: 18px;
    --m-p-font: 14px;
}

/*-------------------------------- HEADER ------------------------------*/
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 80px;
    background-color: var(--second-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
}

.header-logo {
    max-width: 200px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .navbar li {
        list-style: none;
        padding: 0 20px;
        position: relative;
    }

        .navbar li a {
            text-decoration: none;
            font-size: var(--p-font);
            font-weight: 600;
            color: #1a1a1a;
            position: relative;
            transition: color 0.3s ease;
        }

            .navbar li a:hover {
                color: var(--main-color);
            }

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background-color: var(--second-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-button i {
    font-size: 12px;
}

.dropdown-content li {
    padding: 10px 20px;
}

    .dropdown-content li a {
        text-decoration: none;
        color: var(--other-color);
        display: block;
    }

.language-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    .language-dropdown i {
        font-size: 20px;
        border-radius: 50%;
        color: var(--other-color);
        transition: background 0.3s ease;
    }

    .language-dropdown:hover i {
        color: var(--main-color);
    }

.language-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--second-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-dropdown:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

.language-menu li {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

    .language-menu li a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--other-color);
        font-weight: 600;
        transition: color 0.3s ease;
        font-size: var(--m-p-font);
    }

.language-menu img {
    width: 22px;
    height: 14px;
    margin-right: 8px;
    border-radius: 3px;
}

#blog {
    display: inline-block;
    border: 2px solid #666;
    padding: 6px 25px;
    border-radius: 5px;
}

    #blog:hover {
        border: 2px solid var(--main-color);
    }

.catalog-button {
    padding: 8px 15px;
    background-color: var(--main-color);
    color: var(--second-color) !important;
    border-radius: 12px;
    transition: all 0.5s ease !important;
    display: block;
}

    .catalog-button:hover {
        transform: scale(1.05);
    }

        .catalog-button:hover::after {
            width: 0 !important;
        }

.mobile {
    display: none;
    align-items: center;
}

#close-menu {
    display: none;
}

@media (min-width: 1301px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-button {
        pointer-events: none;
    }
}

@media (max-width: 1300px) {
    .header {
        padding: 20px 20px;
    }

    .navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: var(--second-color);
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.5s;
    }

        .navbar.active {
            right: 0px;
        }

        .navbar li {
            margin-bottom: 25px;
        }

    .dropdown .dropdown-content {
        display: none;
        position: static;
        background: none;
        box-shadow: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-button {
        cursor: pointer;
    }

    .dropdown-content li {
        margin-top: 10px;
        padding: 2px 12px;
        margin-left: 12px;
        font-size: 14px;
    }

        .dropdown-content li:last-child {
            margin-bottom: 0;
        }

    .mobile {
        display: flex;
        align-items: center;
        margin-left: auto;
        display: flex;
        align-items: center;
    }

        .mobile i {
            color: var(--other-color);
            font-size: 25px;
        }

    #close-menu {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        color: var(--other-color);
        font-size: 20px;
    }
}

/*--------------------------------- FOOTER ------------------------------*/
.footer {
    background: var(--second-color);
    padding: 80px 13% 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 3.5rem;
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 70px;
}

.footer-col img {
    max-width: 200px;
}

.footer-col h4 {
    color: var(--other-color);
    margin-bottom: 1.5rem;
    font-size: 20px;
    display: inline-block;
    border-bottom: 2px solid var(--other-color);
    padding-bottom: 0.5rem;
}

.footer-col li {
    margin-bottom: 16px;
    list-style: none;
}

    .footer-col li a {
        display: block;
        color: var(--other-color);
        font-size: var(--p-font);
        font-weight: 400;
        transition: all .40s ease;
        text-decoration: none;
    }

        .footer-col li a:hover {
            transform: translateY(-3px) translateX(-5px);
            color: var(--main-color);
        }

.footer-col p {
    color: var(--other-color);
    font-size: 16px;
    line-height: 30px;
    margin: 20px 0;
}

.icons a {
    display: inline-block;
    font-size: 22px;
    color: var(--other-color);
    margin-right: 17px;
    transition: all .40s ease;
}

    .icons a:hover {
        color: var(--main-color);
        transform: translateY(-5px);
    }

.copyright {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
}

    .copyright p {
        margin: 0;
        color: black;
        font-size: 14px;
        font-weight: 500;
    }


@media(max-width: 1690px) {
    .footer {
        padding: 50px 5% 40px;
    }
}

@media(max-width: 1120px) {
    .footer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, auto));
        gap: 2rem;
    }
}

@media(max-width: 700px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    #footer-phone {
        margin-bottom: 50px;
    }
}

/*------------------------------------- FLOAT -----------------------------------*/
.whatsapp-float {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
}

.whatsapp-float {
    bottom: 40px;
    background-color: #25D366;
    color: white;
    font-size: 30px;
}

    .whatsapp-float:hover {
        transform: scale(1.15);
    }

@media (max-width: 700px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}
