/* Rankyx Custom Header & Footer */

/* Custom Header Styling */
.custom-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.dark .custom-header {
    background-color: var(--bg-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--primary-dark);
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.dark .nav-link {
    color: var(--text-light);
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 2px;
    width: 100%;
    background-color: var(--text-dark);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.dark .mobile-menu-toggle span {
    background-color: var(--text-light);
}

/* Adjust main content spacing for fixed header */
.main {
    padding-top: 5rem;
}

/* Custom Footer Styling */
.custom-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.dark .custom-footer {
    background-color: #0F172A;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-branding {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-tagline {
    color: #D1D5DB;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-menu h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide menu on mobile */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Show hamburger icon */
    }
    
    /* Expanded mobile menu styles */
    .main-nav.expanded {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    .dark .main-nav.expanded {
        background-color: var(--bg-dark);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.expanded .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav.expanded .nav-item {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .dark .main-nav.expanded .nav-item {
        border-bottom: 1px solid #2D3748;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
