/**
 * Header and Footer Styles for Location Pages
 * Professional navigation and footer design
 */

/* ==========================================
   HEADER STYLES
   ========================================== */

header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #1e293b 0%, #1e40af 100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo:hover {
    transform: scale(1.05);
    color: #60a5fa;
}

/* Navigation Menu */
nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    list-style: none;
    list-style-type: none;
    position: relative;
}

.nav-menu li::before {
    content: '' !important;
    display: none !important;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a:hover::before {
    width: 80%;
}

.nav-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #60a5fa;
    border-radius: 2px;
}

/* CTA Button in Nav */
.nav-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease !important;
}

.nav-cta::before {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ==========================================
   FOOTER STYLES
   ========================================== */

footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="footerGrid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23footerGrid)"/></svg>');
    opacity: 0.5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
    padding-left: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 0;
    position: relative;
    transition: all 0.3s ease;
}

.footer-section ul li::before {
    content: '→' !important;
    color: #2563eb !important;
    margin-right: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover::before {
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, #2563eb, #10b981);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Header */
    .header-container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 2rem 0;
    }
    
    nav.active {
        left: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        padding: 1.2rem 2rem;
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav-menu a::before {
        display: none;
    }
    
    .nav-menu a.active::after {
        left: 2rem;
        transform: none;
        width: 4px;
        height: 100%;
        bottom: 0;
        border-radius: 0 4px 4px 0;
    }
    
    .nav-cta {
        margin: 1rem 2rem;
        text-align: center;
        border-radius: 12px !important;
    }
    
    /* Mobile Footer */
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 2rem;
        gap: 2.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-container {
        padding: 0 1rem 1.5rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* ==========================================
   MOBILE MENU JAVASCRIPT TOGGLE
   ========================================== */

/* Add this class via JavaScript when menu button is clicked */
body.menu-open {
    overflow: hidden;
}

body.menu-open nav {
    left: 0;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    header,
    .logo,
    .nav-menu a,
    .mobile-menu-btn,
    footer,
    .social-links a {
        transition: none !important;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    header,
    footer,
    .mobile-menu-btn {
        display: none;
    }
}
