/* nav.css */
.navbar {
    padding: 20px;
    border-bottom: 2px solid var(--Grayscale-100);
    background-color: var(--Grayscale-50) !important;
}

/* Style for nav links */
.navbar-nav .nav-link {
    font-family: var(--font-roboto);
    font-size: var(--fs-headline); /* Set the font size */
    color: var(--Grayscale-700); /* Set the color */
    font-weight: var(--fw-regular); /* Set the font weight */
}

/* Optional: Change color on hover */
.navbar-nav .nav-link:hover {
    color: var(--Butterscotch-800); /* Set the hover color */
}

/* Ensure navbar toggler is properly sized */
.navbar-toggler {
    width: 40px; /* Default Bootstrap size */
    height: 40px; /* Default Bootstrap size */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 8px; /* Rounded square effect */
}

/* Make sure toggler icon is displayed correctly */
.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

/* Desktop Logo */
@media (min-width: 992px) {
    .navbar-brand img {
        width: auto;
        max-width: 280px; /* Increases logo size */
        height: auto;
        display: block;
    }
    .navbar-nav .nav-link.active {
        color: var(--Sienna-500); /* Set the active link color */
        border-bottom: 2px solid var(--Sienna-500); /* Add bottom border */
    }
}

/* Prevent distortion on small screens */
@media (max-width: 991px) {
    .navbar-brand img {
        width: auto;
        max-width: 20px;  /* Force small size on mobile */
        height: auto; /* Force small size on mobile */
        display: block;
    }
    .navbar-toggler {
        width: 40px;
        height: 40px;
        padding: 5px;
    }

    /* Center the nav links */
    .navbar-collapse {
        justify-content: center !important;
    }

    /* Remove container padding if needed for full-width effect */
    .navbar .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Add a top border to every nav item */
    .navbar-nav .nav-item {
        padding: 8px 0;
        text-align: center;
    }
} 

/* Ensure logo is hidden until it fully loads */
#logo {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Ensure no layout shift */
.hidden {
    display: none;
}

/* Show logo once JS confirms it's ready */
#logo.loaded {
    opacity: 1;
    display: block;
}
