/* Header Styles (Architectural Precision) */

.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,.96);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 32px;
}

/* Logo / Branding */
.brand {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.65rem; /* Larger brand presence */
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--primary);
    line-height: 1;
}

.brand-re, .brand-dot {
    color: var(--tertiary-fixed);
}

.brand-venture {
    color: var(--primary);
}

.brand-dot {
    margin: 0 -0.02em;
}

/* Site Navigation */
.site-nav { 
    display: flex; 
    gap: 32px; 
    align-items: center;
}

.nav-link, .nav-link-with-icon {
    font-size: .82rem; /* Adjusted for uppercase balance */
    color: rgba(26,28,29,.78); 
    font-weight: 700;
    text-transform: uppercase; /* All caps as requested */
    letter-spacing: 0.12em; /* Quality kerning for caps */
    cursor: pointer;
}

.nav-link:hover, .nav-link-with-icon:hover { 
    color: var(--on-surface) !important; 
}

.nav-link.active { 
    color: var(--on-surface); /* Black instead of blue */
}

/* Dropdown Container */
.nav-dropdown {
    position: relative;
    padding: 10px 0;
}

.nav-link-with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dropdown Menu Content */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-ambient);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 24px;
    color: rgba(26,28,29,.7);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: var(--surface-container-low);
    color: var(--primary);
}

/* Chevron Styling */
.chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    opacity: 0.5;
    opacity: 0.5;
}

.nav-dropdown:hover .chevron {
    transform: translateY(1px) rotate(45deg);
}

/* Hamburger Toggle Button (Hidden on Desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px; /* Fixed width */
    height: 20px; /* Fixed height */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
    position: relative;
}

.nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #1a1c1d !important; /* Force visibility */
    transition: all 0.2s ease;
    border-radius: 4px;
}

.nav-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive Adjustments (Mobile/Tablet) */
@media (max-width: 1200px) {
    .header-inner { 
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
        padding: 0 24px !important; /* Premium horizontal spacing */
    }

    .brand { 
        font-size: 1.3rem !important; /* Scaled down for mobile safety */
        max-width: 200px;
        flex-shrink: 1;
        position: relative;
        z-index: 1100; /* Stay above the overlay */
    }

    .nav-toggle { 
        display: flex !important; 
        flex-shrink: 0;
        margin-left: auto;
        margin-right: 0 !important; /* Pull away from the edge */
    }
    
    /* Ensure the button is visible inside the nav */
    .site-nav .btn-investor {
        display: inline-flex;
        width: 100%;
        max-width: 280px;
        margin-top: 20px;
    }

    .site-nav {
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100vh;
        background: var(--surface-container-lowest);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px; /* Tighter vertical rhythm */
        padding: 80px 32px 120px; /* Reduced top padding for better balance */
        opacity: 0; visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s cubic-bezier(0.2, 1, 0.3, 1); /* Sped up slide for mobile */
        z-index: 900;
        overflow-y: auto;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-toggle {
        position: relative;
        z-index: 1000;
    }

    .site-nav .nav-link, .site-nav .nav-link-with-icon {
        font-size: 1.15rem !important; /* Refined main item size */
        padding: 16px 0;
        width: 100%; 
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        text-align: center;
        border-bottom: 1px solid rgba(26,28,29,0.04);
    }

    .site-nav .btn-investor {
        margin-top: 32px;
        width: 100%;
        max-width: 280px; /* Avoid extreme stretching */
    }

    /* Refined dropdowns on mobile */
    .nav-dropdown .dropdown-content {
        position: static;
        opacity: 1; 
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #ffffff !important; /* Pure white as requested */
        padding: 0;
        text-align: center;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.15s ease-out; /* Snappy dropdown */
        border-radius: 8px; /* Softer look */
    }

    .nav-dropdown.is-active .dropdown-content {
        max-height: 500px;
        margin-top: 4px;
        padding: 8px 0;
    }

    .dropdown-content a {
        font-size: 1rem !important; /* Corrected size for sub-items */
        padding: 12px 0 !important;
        display: block;
        opacity: 0.85;
    }
    
    .nav-dropdown .chevron { display: inline-block; }
}
.btn-investor {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-height: 38px; padding: 0 22px; border-radius: var(--radius-lg);
    font-size: .88rem; font-weight: 700;
    background: var(--tertiary-fixed);
    color: #fff;
    text-transform: none; /* Stay normal case as requested */
    letter-spacing: normal;
    transition: all 0.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.btn-investor:hover {
    background: var(--tertiary-container);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 192, 106, 0.15);
}
