/* ========================================
   Modern Header & Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
}

.header.glass {
    background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.header .logo:hover {
    opacity: 0.9;
}

/* Navigation */
.header .nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header .nav a {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
}

.header .nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header .nav a.active {
    background: rgba(255, 255, 255, 0.15);
}

.header .nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #FF9900;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.header .nav a:hover::after,
.header .nav a.active::after {
    transform: scaleX(1);
}

/* Search Bar in Header (Optional) */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    display: flex;
}

.header-search input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 0.95rem;
}

.header-search button {
    padding: 10px 20px;
    background: #FF9900;
    color: #232F3E;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #FFA724;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ========================================
   Modern Footer
   ======================================== */

.footer {
    background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #FF9900;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 5px 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #FF9900;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: #FF9900;
    transform: translateY(-3px);
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */

.footer-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-mobile-nav .nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
}

.footer-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 8px;
    min-width: 60px;
}

.footer-mobile-nav a:hover,
.footer-mobile-nav a.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.footer-mobile-nav .icon {
    font-size: 1.5rem;
    margin-bottom: 3px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Logo adjustments for tablet */
    .header .logo {
        font-size: 1.3rem;
    }

    .header .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #232F3E;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .header .nav.active {
        display: flex;
    }

    .header .nav a {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .header-search {
        display: none;
    }

    .footer-mobile-nav {
        display: block;
    }

    /* Hide footer sections on mobile */
    .footer-grid,
    .social-links,
    .footer-bottom {
        display: none !important;
    }

    .footer {
        display: none !important;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Add padding to content to avoid mobile nav overlap */
    body {
        padding-bottom: 60px;
    }
}

@media (min-width: 769px) {
    .footer-mobile-nav {
        display: none !important;
    }

    .whatsapp-float {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .header .logo {
        font-size: 1.2rem;
    }

    .header .logo::before {
        font-size: 1.5rem;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }
}
