/* Import Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Header Styles - Colin D. Ward Tax Services */

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #0C1248 0%, #1a2356 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem auto;
    display: block;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

header .location {
    font-size: 1rem;
    opacity: 0.8;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 0;
}

/* Increased to create more space below header */
main {
    margin-top: 240px; 
} 

/* Mobile Responsive Styles for Header */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 1.2rem 0;
    }
    
    .header-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 0.8rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    header .location {
        font-size: 0.9rem;
    }

    main {
        padding: 2.5rem 0;
        margin-top: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    header {
        padding: 1rem 0;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 0.6rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header .subtitle {
        font-size: 0.95rem;
    }

    main {
        margin-top: 170px;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.hamburger-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.hamburger-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.hamburger-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Menu Dropdown */
.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0C1248 0%, #1a2356 100%);
    border-top: 3px solid #D03737;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.menu-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 400px;
}

.menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-nav li:last-child {
    border-bottom: none;
}

.menu-nav a {
    display: block;
    padding: 18px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 40px;
    color: #ffffff;
}

.menu-nav a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #D03737;
    transition: width 0.3s ease;
}

.menu-nav a:hover:before {
    width: 4px;
}

.menu-nav i {
    font-size: 1.2rem;
    color: #D03737;
    width: 20px;
    text-align: center;
}

/* Special styling for Client Portal link */
.menu-nav a.client-portal {
    background: rgba(208, 55, 55, 0.1);
    border-left: 4px solid #D03737;
}

.menu-nav a.client-portal:hover {
    background: rgba(208, 55, 55, 0.2);
}

/* Mobile Responsive Additions */
@media (max-width: 768px) {
    .hamburger-menu {
        top: 15px;
        left: 15px;
    }

    .hamburger-toggle {
        font-size: 1.6rem;
        width: 45px;
        height: 45px;
    }

    .menu-nav a {
        padding: 16px 25px;
        font-size: 1rem;
    }

    .menu-nav a:hover {
        padding-left: 35px;
    }
}

@media (max-width: 480px) {
    .hamburger-menu {
        top: 12px;
        left: 12px;
    }

    .hamburger-toggle {
        font-size: 1.5rem;
        width: 42px;
        height: 42px;
    }

    .menu-nav a {
        padding: 14px 20px;
        gap: 10px;
    }

    .menu-nav a:hover {
        padding-left: 30px;
    }
}

/* Smooth transitions for menu animation */
.hamburger-toggle .fa-bars,
.hamburger-toggle .fa-times {
    transition: all 0.3s ease;
}

.hamburger-toggle.active .fa-bars {
    transform: rotate(90deg);
}