/**
 * BAAZ Navigation Fix
 */

/* Global Color Variables */
:root {
    --baaz-primary-dark: #161c54;
    --baaz-secondary-dark: #02023F;
    --baaz-orange: #FF6B35;
}

/* Override dark text colors globally */
.text-secondary-900,
.text-gray-800,
.text-gray-900 {
    color: var(--baaz-primary-dark) !important;
}

/* Reduce section padding */
.section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

@media (min-width: 768px) {
    .section {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
}

/* Override Tailwind padding classes */
.py-16 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

.py-20 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.py-24 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}

@media (min-width: 768px) {
    .md\:py-20 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .md\:py-24 {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
}

/* ========================================
   NAVBAR STYLES
   ======================================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#navbar .container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 24px;
    width: auto;
    max-height: 24px;
}

#navbar .logo-white {
    display: block;
}

#navbar .logo-black {
    display: none;
}

#navbar.scrolled .logo-white {
    display: none;
}

#navbar.scrolled .logo-black {
    display: block;
}

/* Desktop Navigation */
.navbar-desktop {
    display: none;
    align-items: center;
    gap: 24px;
}

@media (min-width: 1024px) {
    .navbar-desktop {
        display: flex;
    }
}

.desktop-menu-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu-list a,
#navbar .nav-link,
#navbar .desktop-menu-list a {
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.desktop-menu-list a:hover,
#navbar .nav-link:hover,
#navbar .desktop-menu-list a:hover {
    color: var(--baaz-orange) !important;
}

#navbar.scrolled .desktop-menu-list a,
#navbar.scrolled .nav-link {
    color: var(--baaz-primary-dark) !important;
}

#navbar.scrolled .desktop-menu-list a:hover,
#navbar.scrolled .nav-link:hover {
    color: var(--baaz-orange) !important;
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

#navbar.scrolled #mobile-menu-btn {
    color: var(--baaz-primary-dark);
}

@media (min-width: 1024px) {
    #mobile-menu-btn {
        display: none !important;
    }
}

#mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    pointer-events: none;
}

#mobile-menu-btn .close-icon {
    display: none;
}

#mobile-menu-btn.active .menu-icon {
    display: none;
}

#mobile-menu-btn.active .close-icon {
    display: block;
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */

#mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.97);
    z-index: 9998;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

.mobile-menu-content {
    padding: 32px 24px;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list a,
.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-menu-list a:hover,
.mobile-nav-link:hover {
    color: var(--baaz-orange);
}

.mobile-lang-switcher {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* WordPress Admin Bar Compatibility */
body.admin-bar #navbar {
    top: 32px;
}

body.admin-bar #mobile-menu {
    top: 112px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #navbar {
        top: 46px;
    }

    body.admin-bar #mobile-menu {
        top: 126px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ========================================
   CARD STYLES
   ======================================== */

/* Impact Cards */
.impact-card {
    background-color: rgb(249, 250, 251);
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.impact-card:hover {
    background-color: #FFF7ED;
}

/* Process Cards */
.process-card {
    background-color: rgb(249, 250, 251);
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.process-card:hover {
    background-color: #FFF7ED;
}

/* Services Section Images - Remove Shadow */
#services .rounded-2xl.shadow-2xl {
    box-shadow: none !important;
}
