
/* Common Navigation styles */

/* Structural Layout */
.navigation-wrapper {
    background-color: #f5f7f6;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 80px; 
    display: flex;
    align-items: center;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navigation-wrapper.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Defines 3 distinct lanes */
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px;
}

/* Column Alignment */
.left-column { justify-self: start; display: flex; align-items: center; }
.center-column { display: flex; justify-content: center; }
.right-column { justify-self: end; }

/* Logo Styling */
.logo-wrapper img {
    height: 60px;
    width: auto;
}

/* Nav Links Styling (KEEP THESE FROM YOUR OLD CODE) */
.links-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link a {
    text-decoration: none;
    color: #11122b;
    font-size: 16px;
    transition: 0.5s ease;
    position: relative;
}

@media (hover: hover) {
    .nav-link a:hover {
        color: #2fb7a5;
        letter-spacing: 2px;
    }
}

.nav-link a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1.5px;
    background-color: #e58b2a;
}

/* Mobile Toggle Logic */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* =================================
   NAV RESPONSIVE STYLES
================================= */

@media (max-width: 1024px) {
    .navigation-wrapper {
        padding: 20px 50px;
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }

    .links-wrapper {
        gap: 20px;
    }

    .nav-link a {
        font-size: 15px;
    }
}

/* TABLET & MOBILE (Starts at 768px) */
@media (max-width: 768px) {
    .nav-container {
        padding: 10px 24px;
        grid-template-columns: 1fr auto; /* Only Logo and Toggle */
        height: 80px;
    }

    /* Hide Desktop CTA and Center Nav by default */
    .right-column, .center-column {
        display: none; 
    }

    .menu-toggle {
        display: block; /* Show the hamburger */
        font-size: 28px;
    }

    /* This is the secret to the toggle working */
    .links-wrapper {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px; /* Sits right under the nav bar */
        left: 0;
        width: 100%;
        background-color: #f5f7f6;
        padding: 40px 0;
        gap: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 999;
    }

    /* When JS adds the .active class, show the menu */
    .links-wrapper.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Sits directly below the navigation bar */
        left: 0;
        width: 100%;
        background-color: #f5f7f6; /* Matches your nav background */
        padding: 40px 0;
        gap: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
        text-align: center;
        animation: slideDown 0.3s ease-out;
    }

    /* Optional: Smooth entry animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .center-column.active {
        display: block; /* Ensure the container shows up too */
    }
}

/* SMALL MOBILE (480px) */
@media (max-width: 480px) {
    .navigation-wrapper {
        height: 70px; /* Slimmer nav for small phones */
    }

    .nav-container {
        padding: 0 20px;
    }

    .logo-wrapper img {
        height: 45px; /* Smaller logo */
    }

    .links-wrapper {
        top: 70px;
        padding: 30px 0;
    }

    .nav-link a {
        font-size: 18px; /* Easier to tap with thumbs */
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}