
/* Remove body padding so the hero background goes all the way to the top of the screen */
body {
    padding-top: 0; 
}

/* ==========================================
   1. MAIN NAVIGATION CONTAINER (DESKTOP)
   ========================================== */
.desktop-nav {
    background: transparent; /* Starts completely transparent over the hero */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: inherit;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Scrolled state: turns solid white with a soft shadow */
.desktop-nav.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    box-sizing: border-box;
    transition: padding 0.3s ease;
}

.desktop-nav.scrolled .nav-container {
    padding: 12px 50px;
}

.brand-logo {
    max-height: 85px; 
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

.desktop-nav.scrolled .brand-logo {
    max-height: 55px; 
}

/* ==========================================
   2. DESKTOP NAVIGATION LINKS
   ========================================== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0 auto;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: #ffffff; /* White text on transparent hero background */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Change link text color to dark when scrolled */
.desktop-nav.scrolled .nav-links a {
    color: #111111;
}

.nav-links a:hover {
    opacity: 0.6;
}

.arrow {
    font-size: 0.75rem;
    margin-left: 2px;
}

/* ==========================================
   3. PREMIER DESKTOP DROPDOWN MENU
   ========================================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff;
    list-style: none;
    padding: 8px 0;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #222 !important;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, padding-left 0.2s;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #000 !important;
    padding-left: 24px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   4. NAV ACTIONS (SOCIALS & CTA BUTTON)
   ========================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.desktop-nav.scrolled .social-icons a {
    color: #111111;
    background: rgba(0, 0, 0, 0.05);
}

.social-icons a:hover {
    opacity: 0.8;
}

.cta-pill {
    background: #ffffff;
    color: #111;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

/* When scrolled, make the CTA pill dark with white text */
.desktop-nav.scrolled .cta-pill {
    background: #111;
    color: #fff;
}

.cta-pill:hover {
    transform: translateY(-2px);
}

/* ==========================================
   5. HAMBURGER BUTTON
   ========================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 0;
    z-index: 1001;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.desktop-nav.scrolled .hamburger-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.desktop-nav.scrolled .hamburger-btn span {
    background: #111111;
}

/* ==========================================
   6. MOBILE FULLSCREEN OVERLAY & FOOTER
   ========================================== */
body.menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
}

.close-btn {
    background: none;
    border: none;
    color: #111;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-content {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-content .sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-content .sidebar-links > li {
    border-bottom: 1px solid #eaeaea;
}

.mobile-menu-content .sidebar-links a {
    display: block;
    padding: 16px 0;
    color: #111;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
}

.sidebar-dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 15px;
    padding-bottom: 10px;
    flex-direction: column;
    gap: 8px;
}

.sidebar-dropdown-menu a {
    padding: 8px 0 !important;
    font-size: 0.95rem !important;
    color: #555 !important;
}

.mobile-cta-wrapper {
    margin: 20px 0;
}

.mobile-cta-pill {
    background: #111;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-footer {
    border-top: 1px solid #eaeaea;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-social-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links-row {
    display: flex;
    gap: 18px;
}

.social-links-row a {
    color: #111;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.social-links-row a:hover {
    opacity: 0.6;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.mobile-contact-info .contact-item {
    font-size: 0.88rem;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
    word-break: break-all;
}

.mobile-contact-info .contact-item i {
    color: #111;
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}

.mobile-contact-info .contact-item:hover {
    color: #111;
}

/* ==========================================
   7. RESPONSIVE BREAKPOINT
   ========================================== */
   @media (max-width: 992px) {
    .nav-links, 
    .nav-actions .social-icons, 
    .nav-actions .cta-pill {
        display: none; /* Hide desktop links, socials, and desktop CTA pill */
    }
    
    .hamburger-btn {
        display: flex !important; /* Force the hamburger button to show */
    }

    .nav-actions {
        display: flex; /* Keep nav-actions wrapper active if it holds the hamburger */
        gap: 10px;
    }

    .nav-container {
        padding: 15px 20px;
    }
    
    .brand-logo {
        max-height: 50px; /* Ensure mobile logo size is optimized */
    }
}
