/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e8e8e8;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    scrollbar-width: none;
}

/* Firefox */
* {
    scrollbar-width: none; 
}

/* Chrome, Safari, Edge */
*::-webkit-scrollbar {
    display: none; 
}

/* NAVIGATION BAR */
.topNav {
    width: 80%;
    max-width: 1300px;
    margin-top: 30px;
    padding: 5px 15px 5px 15px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 5px;
    align-items: center;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    z-index: 9999999;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* GENERIC NAV BUTTON */
.navButton {
    background: none;
    border: none;
    padding: 5px 5px;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    color: #222;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 10%;
    transition: background-size 0.35s ease, background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

/* REMOVE PERSISTENT FOCUS OUTLINE */
.navButton:focus {
    outline: none;
    background-size: 100% 10%;
}

/* ICON CONTAINERS */
.iconLang,
.iconContact {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

/* SVG ICONS USE CURRENT COLOR FOR FILL AND STROKE */
.navButton svg {
    width: 40px;
    height: 40px;
    /* z-index: 2; */
    fill: currentColor;
    stroke: currentColor;
    stroke-width: .1;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* LANGUAGE BUTTON BASE STATE ENGLISH ACTIVE */
.navLangToggle[data-lang="en"] {
    background-image: linear-gradient(green, green);
}

/* LANGUAGE BUTTON BASE STATE SPANISH ACTIVE */
.navLangToggle[data-lang="es"] {
    background-image: linear-gradient(red, red);
}

/* CONTACT BUTTON BASE STATE ALWAYS RED */
.navContact {
    background-image: linear-gradient(red, red);
    display: block;
}

/* CONTACT BUTTON PERSISTENT FILLED STATE WHEN MODAL OPEN */
.navContact.padOpen {
    background-size: 100% 100%;
    color: #fff;
}

.navContact.padOpen svg {
    fill: #fff;
    stroke: #fff;
}

/* DESKTOP HOVER STATES ONLY */
@media (hover: hover) and (pointer: fine) {

    .navLangToggle[data-lang="en"]:hover,
    .navLangToggle[data-lang="es"]:hover,
    .navContact:hover,
    .navContact:active {
        background-size: 100% 100%;
        color: #fff;
    }

    .navButton:hover svg {
        fill: #fff;
        stroke: #fff;
    }

    .navButton:hover {
        transform: translateY(-1px);
    }

    .navButton:active {
        transform: translateY(0);
    }
}

/* RESET STATE WHEN NOT HOVERED, NOT ACTIVE, NOT PADOPEN */
.navButton:not(:hover):not(:active):not(.padOpen) {
    background-size: 100% 10%;
    color: #222;
}

/* NAV TITLE ON LEFT */
.navTitle {
    font-size: 35px;
    font-weight: 400;
    color: #4f4f4f;
    padding-left: 3%;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    white-space: normal;
    overflow: hidden;
}

/* LANGUAGE SPECIFIC TEXT BLOCKS */
.btnEnglish {
    display: inline;
}

.btnSpanish {
    display: none;
}

/* MOBILE HOVER BLOCK FOR THE TWO BUTTONS ONLY */
@media (hover: none) and (pointer: coarse) {

    .navLangToggle:hover,
    .navContact:hover {
        background-size: 100% 10%;
        color: #222;
    }

    .navLangToggle:hover svg,
    .navContact:hover svg {
        fill: currentColor;
        stroke: currentColor;
    }
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 800px) {

    body {
        padding-top: 0;
    }

    .topNav {
        width: 80%;
        max-width: 1400px;
        padding: 15px;
        margin-bottom: 0;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(20px);
    }

    #saleButton {
        margin-top: 20px;
        margin-bottom: 35px;
    }

    .mobileBreak {
        display: inline;
    }
}
