/* Ensure the active-menu-item color has no transition so it disappears instantly */
.active-menu-item a {
    color: var(--reyllit-red) !important;
    font-weight: 600 !important;
    transition: none !important; 
}

/* The temporary red feedback for the link being touched */
#mobile-nav ul li a:active {
    color: var(--reyllit-red) !important;
    font-weight: 600 !important;
    background-color: #f9f9f9; /* Slight background shift on click for feedback */
    transition: none !important;
}

/* Keep the rest of your CSS as is */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.header-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container a {
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60%;
    width: auto;
    margin-left: 10px;
    max-width: 150px; 
}

#burger-menu {
    background: none;
    border: none;
    font-size: 0; 
    line-height: 0;
    height: 50px;
    padding: 8px;
    width: auto;
    aspect-ratio: 1/1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin-right: 10px;
    border-radius: 2px;
}

.bar1, .bar2, .bar3 {
    width: 36px;
    height: 5px;
    margin: 2px 0;
    background-color: var(--reyllit-grey);
    border-radius: 2.5px;
    transition: 0.6s;
    transform-origin: left center;
}

#burger-menu:focus-visible {
    outline: 2px solid #606060; 
    outline-offset: 2px; 
}

.burger-change:active {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.burger-change {
    background-color: rgba(48, 48, 48, 0.219);
}

.burger-change .bar1 {
    transform: translate(5.5px, 24px) rotate(-45deg);
    background-color: var(--reyllit-red);
}

.burger-change .bar2 {
    opacity: 0;
}

.burger-change .bar3 {
    transform: translate(5.5px, -24px) rotate(45deg);
    background-color: var(--reyllit-red);
}

#mobile-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    z-index: 5;
    background-color: white;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.6s ease, visibility 0s 0.6s;
}

.desktop-nav {
    display: none;
}

.desktop-nav ul li:hover {
    background-color: #ececec;
}

.desktop-nav ul li:hover a {
    color: var(--reyllit-red)
}

#mobile-nav.nav-active {
    transform: translateX(0%);
    visibility: visible;                                
    pointer-events: auto;
    transition: transform 0.6s ease, visibility 0s 0s;
}

#mobile-nav ul {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    margin: 0;
    padding: 0;
}

#mobile-nav ul li {
    list-style: none;
    background-color: white;
    height: 60px;
    width: 100%;
    /* REMOVED PADDING HERE */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: solid 1px #d3d3d3;
}

#mobile-nav ul li a, .desktop-nav ul li a {
    font-family: 'Montserrat', sans-serif;
}

/* UPDATED LINK STYLES */
#mobile-nav ul li a {
    text-decoration: none;
    color: #606060;
    font-size: clamp(18px, 5vw, 20px);
    font-weight: 200;
    /* MAKE THE LINK FILL THE LI */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Desktop Styles */
@media screen and (min-width: 900px) {
    header {
        height: 60px;
    }

    .header-container {
        width: 100%;
        max-width: 1800px;
    }

    .header-logo {
        height: 60%;
        width: auto;
        margin-left: 50px;
        max-width: none;
    }
    #burger-menu {
        display: none;
    }

    #mobile-nav {
        display: none;
    }

    .desktop-nav {
        display: block;
        margin-right: 50px;
        height: 100%;
    }

    .desktop-nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .desktop-nav ul li {
        list-style: none;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        padding: 0;
    }

    .desktop-nav ul li a {
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        color: #606060;
        font-size: clamp(13px, 1.3vw, 16px);
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

    .desktop-nav .active-menu-item {
        padding-top: 4px;
        border-bottom: solid 4px #E32B2B;
        border-left: none;
        border-right: none;
    }

    .desktop-nav .active-menu-item a {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        color: #E32B2B;
    }
}

@media screen and (max-width: 400px) {
    .header-logo {
        height: 50%;
    }
}