/* =========================================
   NAVBAR STYLES
   ========================================= */


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

body { font-family: var(--font-family); }   


.navbar {
    background-color: var(--white);
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #B6000033;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}



.nav-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0.8rem 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

/* --- 1. LOGO --- */
.nav-logo {
  width: auto;
  height: 50px;
  margin-left: 2rem;
  align-items: center;
}

.nav-logo img {
    margin-top: 10px;
    width: 100%;
    height: auto;
    object-fit: contain;
}



/* --- 2. LINKS (Middle) --- */
.nav-collapse {
    display: flex;
    gap: 35px;
    align-items: center;
}

/* However, we want links in middle and button at end. 
   So we split the difference using margins or flex properties. */

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 35px;
    
    
    

    
}

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: var(--p2);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link.active{
    border-bottom: 2px solid var(--accent);
}

.nav-links:hover{
    color: var(--accent);
}

/* --- 3. CTA BUTTON (End) --- */
.btn-nav-cta {
    background-color: transparent;
    color:var(--text); /* Dark text for contrast */
    padding: 10px 24px;
    border-radius: 26px;
    border: 2px solid var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.3s;
}

.btn-nav-cta:hover {
    transform: translateY(-2px) scale(1.05);
    
    
}
.nav-btn-wrapper {
    height: auto;
    display: flex;
    justify-content:  end;
    margin-left: 15rem;
    text-decoration: none;
}

.nav-right-section
{
    display: flex;
    align-items: center;
}
/* Mobile inline CTA (hidden on desktop) */
.nav-inline-cta {
    display: none;
}
/* --- MOBILE TOGGLE --- */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    font-size: var(--h3);
    cursor: pointer;
    border-radius: 4px;
    z-index: 1002;
}
.mobile-menu-btn i{
    color: var(--white);
   
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 997;
    pointer-events: auto;
}

.mobile-overlay.active {
    display: block;
}

  @media (max-width: 1200px) {
    
    .nav-btn-wrapper {
        margin-left: 5rem;
        margin-right:3rem ;
    }
  }
/* =========================================
   RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 992px) {
   .navbar {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
  .nav-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0.8rem 16px 0; /* tighten side padding for phones */
  }
  /* Match dropdown offset to nav height */
  .nav-collapse {
    top: 80px; /* adjust if your mobile nav height differs */
  }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 20px;
    }
    .nav-logo img{
        width: clamp(120px, 25vw, 150px);

    }   
    .nav-logo{
        margin-left:8px;
    }

    /* Show inline CTA beside hamburger; hide list CTA to avoid duplicates */
    .nav-inline-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 26px;
        border: 2px solid var(--accent);
        color: var(--accent);
        font-weight: 600;
        font-size: 13px;
        text-decoration: none;
        white-space: nowrap;
        margin-right: 10px;
    }

    .nav-btn-wrapper {
        display: none;
    }

    /* Hide navigation links and CTA button by default on mobile */
    .nav-collapse {
        position: fixed;
        left: 0;
        right: 0;
        top: 80px;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* Class added by JS to show menu */
    .nav-collapse.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Stack links vertically */
    .nav-links {
        flex-direction: column;
        margin: 0; /* Remove centering margin */
        gap: 25px;
        margin-bottom: 10px;
        padding: 20px ;
        border: 2px solid hsla(8, 100%, 59%,0.4);
        width: 100%;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Mobile overrides: make navbar truly viewport-wide and align dropdown */
    .navbar {
      width: 100%;
      max-width: 100%;
      left: 0;
      right: 0;
    }
    .nav-container {
      max-width: 1440px;
      width: 100%;
      margin: 0 auto;
      padding: 0.8rem 16px 0; /* tighten side padding for phones */
    }
    /* Match dropdown offset to nav height */
    .nav-collapse {
      top: 80px; /* adjust if your mobile nav height differs */
    }
}