/* header-footer.css - Unified Header and Footer Styles for Virtual Tax Consultants */
:root {
    --primary-color: #003366; /* Deep professional blue */
    --secondary-color: #ff6600; /* Accent orange for calls-to-action */
    --accent-color: #00aaff; /* Light blue for highlights */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== UNIFIED HEADER ==================== */
.main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,51,102,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--secondary-color);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--secondary-color);
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

/* Header Contact */
.header-contact {
    display: none;
    align-items: center;
    gap: 15px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.header-phone i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
    margin-bottom: 20px;
}

.mobile-header span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.close-mobile {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--gray-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-mobile:hover {
    background: var(--light-color);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

.mobile-link {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s;
    display: block;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--light-color);
    color: var(--secondary-color);
    padding-left: 25px;
}

.mobile-contact {
    background: var(--light-color);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.mobile-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.mobile-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.mobile-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mobile-social a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ==================== UNIFIED FOOTER (BLUE THEME) ==================== */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-column p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.footer-contact-item i {
    color: var(--secondary-color);
    width: 20px;
    margin-top: 3px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--secondary-color);
}

/* Till Number Box */
.till-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.till-box strong {
    display: block;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.till-box p {
    color: white;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.float-btn.call {
    background: var(--primary-color);
}

.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.instagram {
    background: #e4405f;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ==================== TABLET STYLES (768px+) ==================== */
@media (min-width: 768px) {
    .header-inner {
        padding: 15px 30px;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .desktop-nav {
        display: block;
    }

    .header-contact {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .floating-buttons {
        bottom: 30px;
        right: 30px;
    }

    .float-btn {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
}

/* ==================== DESKTOP STYLES (992px+) ==================== */
@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 40px;
    }

    .float-btn {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}

/* ==================== LARGE DESKTOP (1200px+) ==================== */
@media (min-width: 1200px) {
    .header-inner {
        padding: 15px 0;
    }
}

/* ==================== MOBILE RESPONSIVE IMPROVEMENTS ==================== */

/* Enhanced Mobile Menu */
@media (max-width: 767px) {
    .main-header {
        padding: 0;
    }
    
    .header-inner {
        padding: 12px 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        font-size: 28px;
        padding: 8px;
        transition: all 0.3s;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    /* Improved Mobile Overlay */
    .mobile-overlay {
        animation: slideInRight 0.3s ease-out;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    .mobile-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .mobile-header span {
        font-size: 1.3rem;
    }
    
    .mobile-menu {
        gap: 8px;
    }
    
    .mobile-link {
        font-size: 1.1rem;
        padding: 12px 15px;
        font-weight: 500;
        border-left: 3px solid transparent;
    }
    
    .mobile-link:hover,
    .mobile-link.active {
        border-left-color: var(--secondary-color);
        background: linear-gradient(90deg, var(--light-color) 0%, transparent 100%);
    }
    
    .mobile-contact {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .mobile-contact p {
        margin-bottom: 12px;
        font-size: 0.95rem;
    }
    
    .mobile-social {
        gap: 12px;
        margin-top: 15px;
    }
    
    .mobile-social a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    /* Footer Mobile Optimization */
    .main-footer {
        padding: 40px 0 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-column p {
        font-size: 0.9rem;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-contact-item {
        font-size: 0.9rem;
    }
    
    .till-box {
        padding: 15px;
    }
    
    .till-box strong {
        font-size: 1.6rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    /* Floating Buttons Mobile */
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

/* ==================== SMALL MOBILE (max-width: 375px) ==================== */
@media (max-width: 375px) {
    .header-inner {
        padding: 10px 12px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        font-size: 24px;
    }
    
    .mobile-link {
        font-size: 1rem;
        padding: 10px 12px;
    }
    
    .mobile-contact p {
        font-size: 0.85rem;
    }
    
    .mobile-social a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .floating-buttons {
        bottom: 12px;
        right: 12px;
    }
    
    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}