/* ============================================================
   SK CHIT FUNDS — FLOATING LIQUID PILL HEADER (Light Theme)
   ============================================================ */

:root {
    --green-950: #082F2B;
    --green-500: #0b6b3a;
    --green-300: #A8C5B5;
    --brand-gold: #b8892f;
}

/* FLOATING HEADER CONTAINER */
.floating-header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-header.header-hidden {
    transform: translateY(-150%);
}

/* THE PILL NAVIGATION (White Glassmorphism) */
.pill-nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 12px 24px;
    border-radius: 999px;
    
    /* White Glassmorphism */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(11, 107, 58, 0.1);
    box-shadow: 0 8px 32px rgba(8, 47, 43, 0.08);
    
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.pill-nav.scrolled {
    background: #ffffff;
    border-color: rgba(11, 107, 58, 0.2);
    box-shadow: 0 12px 40px rgba(8, 47, 43, 0.12);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Removed white background hack - letting the transparent logo blend into the white header */
.logo-img {
    height: 38px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img { transform: scale(1.05); }

.logo-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--green-950) !important; /* Dark green text */
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.logo:hover .logo-text { color: var(--green-500) !important; }

/* NAVIGATION LINKS */
.nav-links {
    position: relative;
    display: flex;
    gap: 8px;
    background: rgba(11, 107, 58, 0.05); /* Very light green backing */
    padding: 6px;
    border-radius: 999px;
}

.liquid-indicator {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    border-radius: 999px;
    background: rgba(11, 107, 58, 0.1);
    border: 1px solid rgba(11, 107, 58, 0.15);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    opacity: 0;
}

.nav-item {
    position: relative;
    z-index: 2;
    padding: 10px 24px;
    border-radius: 999px;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-950) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item:hover, .nav-item.active { color: var(--green-500) !important; }

/* CTA BUTTON */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--green-500);
    color: #ffffff !important;
    border-radius: 999px;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--green-950);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 107, 58, 0.3);
}

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(11, 107, 58, 0.2);
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 10002;
}

.toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--green-950); /* Dark green bars */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================================
   MOBILE DRAWER (Keeping it dark green for premium contrast)
   ============================================================ */
.mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 340px;
    height: 100vh;
    background: var(--green-950);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    z-index: 10000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.mobile-close {
    background: transparent;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.mobile-close:hover { opacity: 1; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0 32px;
    width: 100%;
}

.mobile-nav-item {
    display: block;
    padding: 18px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:last-child { border-bottom: none; }

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-gold) !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nav-links { display: none !important; }
    .nav-cta { display: none !important; }
    .mobile-toggle { display: flex !important; }
    .logo-text { display: none !important; }
}

@media (max-width: 640px) {
    .floating-header { top: 16px; padding: 0 16px; }
    .pill-nav { padding: 10px 16px; }
    .logo-img { height: 32px; max-width: 100px; }
}