/* 
   Consolidated Navigation and Footer Styles
   This file contains all navbar and footer related CSS
*/

/* ========================================
   NAVBAR STYLES
   ======================================== */

/* Base Navbar Styles */
.navbar-scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Sticky Navbar */
.site-navbar,
nav.fixed,
nav,
#navbar-container > nav,
#navbar-container nav,
header > nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 50 !important;
    background-color: white !important;
    border-bottom: 2px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

/* Active Page Link Styles */
.active-link {
    color: #3b82f6 !important;
    font-weight: 600 !important;
    position: relative !important;
}

.active-link::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 2px !important;
    bottom: -4px !important;
    left: 0 !important;
    background-color: #3b82f6 !important;
    display: block !important;
}

/* Navbar Link Styles */
.nav-link,
#navbar-container a,
.site-navbar a,
nav a,
header a:not([class*="btn"]),
#mobile-menu a {
    display: inline-block !important;
    background-color: transparent !important;
    color: #1f2937 !important; /* text-gray-800 */
    font-weight: 500 !important; /* font-medium */
    padding: initial !important;
    border-radius: 0 !important;
    transition: color 0.3s ease !important;
    transform: none !important;
}

/* Navbar Link Hover Effects */
.nav-link:hover,
#navbar-container a:hover,
.site-navbar a:hover,
nav a:hover,
header a:not([class*="btn"]):hover {
    color: #3b82f6 !important; /* text-blue-500 */
    background-color: transparent !important;
    transform: none !important;
}

/* Remove hover transform effects */
.site-navbar,
.site-navbar *:not(.active-link),
nav,
nav *:not(.active-link),
#navbar-container,
#navbar-container *:not(.active-link),
.nav-link:not(.active-link),
.nav-logo,
.nav-menu,
header a:not(.active-link) {
    transform: none !important;
    box-shadow: none !important;
}

/* Prevent any hover transform effects */
.site-navbar:hover,
.site-navbar *:hover,
nav:hover,
nav *:hover,
#navbar-container:hover,
#navbar-container *:hover,
.nav-link:hover,
.nav-logo:hover,
.nav-menu:hover,
header a:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Override card hover selectors that might affect navbar */
.rounded-lg.shadow-md:hover nav a,
.rounded-xl.shadow-md:hover nav a,
.bg-white.shadow-md:hover nav a,
.product-card:hover nav a,
.team-card:hover nav a {
    transform: none !important;
    box-shadow: none !important;
}

/* Override icon animations for navbar */
nav svg,
nav i,
nav img,
#navbar-container svg,
#navbar-container i,
#navbar-container img {
    transform: none !important;
    transition: none !important;
}

nav svg:hover,
nav i:hover,
nav img:hover,
#navbar-container svg:hover,
#navbar-container i:hover,
#navbar-container img:hover {
    transform: none !important;
}

/* Prevent arrow icon on navbar links */
.nav-link::after:not(.active-link::after),
#navbar-container a::after:not(.active-link::after),
.site-navbar a::after:not(.active-link::after),
nav a::after:not(.active-link::after),
header a:not([class*="btn"])::after:not(.active-link::after) {
    content: none !important;
}

/* Override any other hover effects */
nav a::before,
nav a::after:not(.active-link::after),
#navbar-container a::before,
#navbar-container a::after:not(.active-link::after) {
    display: none !important;
}

/* Mobile menu button styles */
.site-navbar button,
nav button {
    background-color: transparent !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem !important;
}

/* Hamburger menu icon styles */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1f2937;
    transition: all 0.3s ease;
}

/* Hamburger animation for open state */
.menu-open .hamburger-line:nth-child(1) {
    opacity: 0;
    transform: translateY(0);
}

.menu-open .hamburger-line:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .hamburger-line:nth-child(3) {
    opacity: 0;
    transform: translateY(0);
}

/* Mobile Menu Animation */
.nav-menu-enter {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
}

.nav-menu-enter-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.nav-menu-exit {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.nav-menu-exit-active {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Enhanced mobile menu styles */
.mobile-menu {
    background-color: white !important;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mobile-menu a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.25rem !important;
    margin: 0.5rem 0 !important;
    transition: background-color 0.3s ease !important;
    text-align: center !important;
    width: 100% !important;
}

/* Mobile navigation vertical layout */
.mobile-menu .flex-col {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Ensure proper vertical spacing for mobile navigation */
.mobile-menu .space-y-4 > * + * {
    margin-top: 1rem !important;
}

/* Vertical navigation for all screens */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .active-link {
        background-color: rgba(59, 130, 246, 0.1) !important;
        border-radius: 0.25rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .active-link::after {
        display: none !important;
    }
}

/* ========================================
   FOOTER STYLES - CORPORATE & PROFESSIONAL
   ======================================== */

.corporate-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    margin-top: 0;
    padding: 50px 0 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.footer-address {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-address p {
    margin: 0 0 5px 0;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-column a:hover {
    color: #3b82f6;
}

.footer-column a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-bottom {
    background-color: #f1f5f9;
    border-top: 1px solid #e5e7eb;
    padding: 25px 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .corporate-footer {
        padding: 40px 0 0 0;
    }
    
    .footer-content {
        padding: 0 15px;
        gap: 30px;
        padding-bottom: 30px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        text-align: center;
    }
    
    .footer-bottom-content {
        padding: 0 15px;
    }
}

@media (max-width: 640px) {
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content {
        gap: 25px;
        padding-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .corporate-footer {
        padding: 30px 0 0 0;
    }
    
    .footer-content {
        padding: 0 10px;
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .footer-logo .logo {
        height: 40px;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-address {
        font-size: 0.85rem;
    }
    
    .footer-column h4 {
        font-size: 0.95rem;
    }
    
    .footer-column a {
        font-size: 0.85rem;
    }
    
    .footer-bottom-content {
        padding: 0 10px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}


