/* =========================================================
   DHANVESTTOR NAVBAR 
   ========================================================= */ 
#overlay {
    z-index: 9998 !important; 
}

#mobileMenu {
    z-index: 9999 !important; 
}

/* 1. SITE HEADER (Now Sticky & Full Width) */
.site-header {
    position: sticky; /* Sticks naturally to the top when scrolling */
    top: 0; /* Removes the 18px floating gap */
    left: 0;
    width: 100%;
    z-index: 9999;
    
    /* Move the background and glass effect here so it spans the full width */
   background: #f8f3eb !important; /* Solid fallback */
    background: rgba(248, 243, 235, 0.95) !important; /* Glassmorphism using Ivory Silk */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(23, 59, 61, 0.1); /* Subtle line at the bottom */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* 1. BRAND & LOGO (Fixed: No longer absolute center) */
.brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand img {
    height: 75px;
    width: auto;
    display: block;
}

.brand-text-fallback {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #243c40;
}

/* 2. THE SHELL (Removed the floating pill look) */
.header-shell {
    position: relative;
    width: 100%; /* Take full width of the screen */
    max-width: 1400px; /* Keeps the content centered on huge screens */
    height: 80px; /* Slightly taller for a standard sticky header */
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    
    /* Removed the rounded borders and inner backgrounds so it sits flat */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* 3. STRICT 3-COLUMN LAYOUT */
.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1; /* Pushes center to exact middle */
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2; /* Gives nav links more room to stay centered */
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes Logo to the far right */
    gap: 20px;
    flex: 1; 
}

/* =========================================================
   INVESTOR LOGIN BUTTON (Styled as a Box)
   ========================================================= */ 
.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 2px solid #243c40; /* Box Border */
    border-radius: 30px; /* Rounded pill shape */
    color: #243c40;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-link:hover {
    background-color: #243c40;
    color: #ffffff;
}

/* =========================================================
   DESKTOP NAV & TYPOGRAPHY (Now in Center)
   ========================================================= */ 
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav > a, 
.nav-dropdown-trigger {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #243c40;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.desktop-nav > a::after,
.nav-dropdown-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 1px;
    background: #cf6a3b;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav > a:hover, 
.desktop-nav > a.is-active,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: #cf6a3b;
}

.desktop-nav > a:hover::after, 
.desktop-nav > a.is-active::after,
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown.is-open .nav-dropdown-trigger::after {
    transform: scaleX(1);
}

/* =========================================================
   SOLUTIONS DROPDOWN
   ========================================================= */ 
.nav-dropdown {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    gap: 7px;
}

.nav-dropdown-trigger span:last-child {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger span:last-child,
.nav-dropdown.is-open .nav-dropdown-trigger span:last-child {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 390px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    
    background: rgba(255, 253, 249, 0.95); 
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(38px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: 
        0 25px 70px rgba(23, 59, 61, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
        
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10020;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -13px;
    height: 13px;
}

.nav-dropdown-panel > a {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-panel > a:hover {
    background: #f8f3eb;
    transform: translateX(2px);
}

.nav-dropdown-panel strong {
    display: block;
    margin-bottom: 3px;
    color: #243c40;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.nav-dropdown-panel small {
    display: block;
    color: #3e160c;
    font-size: 11px;
    line-height: 1.45;
}

.nav-dropdown-panel .panel-all {
    margin-top: 4px;
    padding: 13px 15px;
    border-top: 1px solid #e8dfd5;
    color: #cf6a3b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.nav-dropdown-panel .panel-all:hover {
    background: #fff7f1;
    transform: none;
}

/* =========================================================
   RIGHT ACTIONS (CTA & Hamburger)
   ========================================================= */ 
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #243c40;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
    background: #cf6a3b;
    transform: translateY(-2px);
}

/* =========================================================
   MOBILE BUTTON
   ========================================================= */ 
.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2ece3;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: #243c40;
    border-radius: 2px;
    transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

/* =========================================================
   MOBILE RESPONSIVENESS (TABLETS & PHONES)
   ========================================================= */ 
@media (max-width: 980px) {
    /* 1. Force header to touch the absolute top */
    .site-header { 
        top: 0 !important; 
        left: 0 !important;
        right: 0 !important;
        background: #fdfaf6 !important; /* Solid background for mobile */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* 2. Force shell to stretch 100% and remove curves */
    .header-shell { 
        width: 100% !important; 
        max-width: 100% !important;
        height: 70px !important; 
        padding: 0 20px !important; 
        border-radius: 0 !important; /* Removes the curves completely */
        margin: 0 !important;
    }
    
    /* Hide desktop elements */
    .header-center, .header-left, .header-cta { 
        display: none !important; 
    }
    
    /* Spread Hamburger and Logo apart */
    .header-right { 
        flex: 1;
        justify-content: space-between !important; 
        width: 100%;
        gap: 0;
    }
    
    .menu-toggle { display: block; }
    
    .brand img { 
        height: 50px !important; /* Fixed height for tablet */
        width: auto !important;
    }
}

@media (max-width: 640px) {
    /* Ensure phone view also has zero gaps and zero curves */
    .site-header { 
        top: 0 !important; 
    }
    
    .header-shell { 
        width: 100% !important; 
        padding: 0 15px !important; 
        border-radius: 0 !important;
    }
    
    .brand img { 
        height: 42px !important; /* Fixed height for mobile */
        width: auto !important;
    }
}
/* ============================================== */
/* 3D BUTTON PHYSICS (HOVER & CLICK)              */
/* ============================================== */

/* Target all major buttons across the site */
.btn, .btn-primary, .btn-dark, .btn-login, .nav-login-btn, .subscribe-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    /* Base 3D shadow */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(0);
}

/* 3D Lift on Hover */
.btn:hover, .btn-primary:hover, .btn-dark:hover, .btn-login:hover, .nav-login-btn:hover, .subscribe-btn:hover {
    transform: translateY(-4px) !important; /* Lifts up */
    box-shadow: 0 15px 25px rgba(23, 59, 61, 0.2) !important; /* Deep colored shadow */
}

/* Physical 'Click' Effect */
.btn:active, .btn-primary:active, .btn-dark:active, .btn-login:active, .nav-login-btn:active, .subscribe-btn:active {
    transform: translateY(2px) scale(0.96) !important; /* Presses down into the screen */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important; /* Shadow compresses */
    transition: all 0.1s ease !important; /* Instant snap down */
}