/* ─── CSS Variables ─────────────────────────────────── */
:root {
    /* Navy brand colors (kept as is) */
    --navy:        #0A0F1E;
    --navy-mid:    #101828;
    --navy-light:  #1A2540;
    --navy-border: #1E2D4A;
    
    /* Light background colors - NEW */
    --bg-white:    #FFFFFF;
    --bg-offwhite: #F8F9FA;
    --bg-gray:     #F1F3F5;
    --bg-card:     #FFFFFF;
    
    /* Green accent - adjusted for better contrast on light backgrounds */
    --green:       #10B981;     /* Slightly deeper green for light mode */
    --green-dim:   #059669;
    --green-glow:  rgba(16, 185, 129, 0.1);
    --green-glow2: rgba(16, 185, 129, 0.04);
    
    /* Text colors - DARK for light backgrounds */
    --text-primary: #1A202C;
    --text-muted:   #4A5568;
    --text-light:   #718096;
    --white:        #FFFFFF;    /* Kept for buttons, etc. */
    --white-muted:  #A0AEC0;
    --white-faint:  rgba(0,0,0,0.04);
    
    --topbar-h:    40px;
    --nav-h:       72px;
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-offwhite);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

/* ─── Topbar ─────────────────────────────────────────── */
#topbar {
    height: var(--topbar-h);
    background: var(--navy);
    border-bottom: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--white-muted);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1000;
}

#topbar .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#topbar .topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#topbar .topbar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--white-muted);
    text-decoration: none;
    transition: color 0.2s;
}

#topbar .topbar-item:hover { color: var(--green); }

#topbar .topbar-item i {
    color: var(--green);
    font-size: 0.8rem;
}

#topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#topbar .topbar-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white-muted);
}

#topbar .topbar-tagline span {
    color: var(--green);
    font-weight: 600;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background: var(--navy-border);
}

/* ─── Navbar ─────────────────────────────────────────── */
#mainNav {
    height: var(--nav-h);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color, #E2E8F0);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background 0.3s, box-shadow 0.3s;
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1;
}

.logo-text span { color: var(--green); }

/* ===== NAVIGATION LINKS ===== */
.nav-link-custom {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

/* Animated underline */
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--green);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 70%;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--navy) !important;
    /* background: rgba(0, 0, 0, 0.04); */
    transform: translateY(-1px);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu-custom {
    background: var(--bg-white);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.6rem;
    min-width: 240px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dropdown-item-custom::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--green);
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item-custom:hover::before {
    transform: scaleY(1);
}

.dropdown-item-custom i {
    color: var(--green);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.dropdown-item-custom:hover i {
    transform: scale(1.1);
}

.dropdown-item-custom:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--navy);
    transform: translateX(4px);
}

/* ===== CTA BUTTON ===== */
.cta-wrapper {
    margin-left: 0.5rem;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: var(--green);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-cta i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    background: var(--green-dim);
    color: white;
}

.btn-nav-cta:hover i {
    transform: translateX(3px);
}

.btn-nav-cta:active {
    transform: translateY(0);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991.98px) {
    .nav-link-custom {
        justify-content: center;
        padding: 0.75rem !important;
    }
    
    .dropdown-menu-custom {
        background: var(--bg-white);
        border-left: 2px solid var(--green);
        margin-left: 1rem;
    }
    
    .dropdown-item-custom:hover {
        transform: translateX(8px);
    }
    
    .cta-wrapper {
        margin: 1rem auto 0;
        width: 100%;
    }
    
    .btn-nav-cta {
        justify-content: center;
        width: 100%;
    }
}

/* ===== ACTIVE STATE ENHANCEMENT ===== */
.nav-link-custom.active {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green) !important;
}

.nav-link-custom.active::after {
    width: 70%;
    background: var(--green);
}

/* ═══════════════════════════════════════════
    MOBILE MENU - OFF-CANVAS LEFT
═══════════════════════════════════════════ */

/* Hamburger Icon */
.navbar-toggler-custom {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-icon {
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger to Close Animation */
.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu (Off-canvas Left) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-header .logo-mark {
    width: 36px;
    height: 36px;
}

.mobile-menu-header .logo-text {
    flex: 1;
    font-size: 1rem;
}

.mobile-menu-close {
    background: #F1F5F9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--navy);
}

.mobile-menu-close:hover {
    background: var(--green);
    color: white;
}

/* Mobile Menu Body */
.mobile-menu-body {
    flex: 1;
    padding: 1rem 0;
}

/* Mobile Navigation List */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-nav-link i {
    width: 24px;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.mobile-nav-link span {
    flex: 1;
}

.mobile-nav-link:hover {
    background: var(--bg-offwhite);
    color: var(--green);
}

.mobile-nav-link:hover i {
    color: var(--green);
}

.mobile-nav-link.active {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
    border-left-color: var(--green);
}

.mobile-nav-link.active i {
    color: var(--green);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.25rem;
    border-top: 1px solid #E2E8F0;
    margin-top: auto;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--green);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.mobile-cta-btn:hover {
    background: var(--green-dim);
    transform: translateY(-2px);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-social-links a:hover {
    background: var(--green);
    color: white;
}

/* Hide desktop navbar collapse on mobile, show mobile menu */
@media (min-width: 992px) {
    .navbar-toggler-custom,
    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-toggler-custom {
        display: block !important;
    }
}

/* ─── Footer ─────────────────────────────────────────── */
#footer {
    background: var(--green-dim);
    border-top: 1px solid var(--green);
    padding: 4rem 0 0;
}

.footer-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy);
}

.footer-logo-text span { color: var(--white); }

.footer-tagline {
    font-size: 0.83rem;
    color: var(--white);
    margin-top: 0.4rem;
    line-height: 1.6;
    max-width: 260px;
}

.footer-heading {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 1.1rem;
}

.footer-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.55rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover {
    color: var(--white-muted);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--white);
}

.footer-contact-item i {
    color: var(--navy);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover { color: var(--white-muted); }

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--white-muted);
    color: var(--white-muted);
    background: var(--green-glow2);
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid var(--green);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--white);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--white);
}

.footer-bottom-badge span {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* ─── Utility ────────────────────────────────────────── */
.text-green { color: var(--green) !important; }
.bg-navy { background: var(--navy) !important; }

/* ─── Page Content Offset ────────────────────────────── */
main { min-height: 60vh; }

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-offwhite); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    #topbar .topbar-left .topbar-item:last-child { display: none; }
    #topbar .topbar-tagline { display: none; }
    .topbar-divider { display: none; }

    #mainNav .navbar-collapse {
        background: var(--bg-white);
        border: 1px solid #E2E8F0;
        border-radius: 10px;
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .nav-link-custom::after { display: none; }
}


