/* =============================================================================
   Header CSS for £100 Website Business
   Dedicated header and navigation styles - EXACT COPY FROM WORKING HEADER.HTML
   ============================================================================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 250ms ease-in-out;
    width: 100%;
    border-bottom: 1px solid #dee2e6;
}

.site-header.scrolled {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 70px;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 150px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    max-width: 600px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 150ms ease-in-out;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
}

/* Navigation Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2c5aa0;
    transition: width 250ms ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.375rem;
    min-width: 200px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 250ms ease-in-out;
    z-index: 1000;
    border: 1px solid #dee2e6;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    transition: background-color 150ms ease-in-out;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Desktop CTA - hidden on mobile */
.desktop-cta {
    display: none;
}

@media (min-width: 768px) {
    .desktop-cta {
        display: flex !important;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #2c5aa0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    white-space: nowrap;
}

.btn:hover {
    background: #1e3f73;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #212529;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1022;
    border-radius: 0.25rem;
    transition: background-color 150ms ease-in-out;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.mobile-menu-toggle:active {
    background-color: #e9ecef;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #212529;
    transition: all 150ms ease-in-out;
    transform-origin: center;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Trust Bar */
.trust-bar {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 0;
}

.trust-signals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.trust-signal i {
    color: #28a745;
    font-size: 1rem;
    font-style: normal;
    font-weight: bold;
}

.trust-signal i::before {
    content: "✓";
}

/* Mobile Styles */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 300ms ease-in-out;
        z-index: 1021;
        overflow-y: auto;
        order: 2;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #dee2e6;
        margin: 0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        border: none;
        background: none;
        text-align: left;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms ease-in-out, padding 300ms ease-in-out;
        border: none;
        padding: 0;
        width: 100%;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 400px;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        margin-left: 1rem;
        border-left: 2px solid #2c5aa0;
    }
    
    .header-cta {
        margin-top: 2rem;
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid #dee2e6;
    }
    
    .header-cta .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Hide desktop CTA on mobile */
    .header-content > .header-cta {
        display: none !important;
    }
    
    /* Trust Signals Mobile */
    .trust-signals {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    
    .trust-signal {
        font-size: 0.75rem;
        gap: 0.25rem;
        min-width: 0;
        text-align: center;
        flex: 1;
        min-width: 120px;
    }
    
    /* Mobile overlay */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 300ms ease-in-out;
        z-index: -1;
    }
    
    .main-nav.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .logo {
        order: 1;
        min-width: 100px;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .header-content {
        position: relative;
        z-index: 1020;
        padding: 0.75rem 0;
    }
    
    /* Ensure mobile menu is above everything */
    .mobile-menu-toggle {
        z-index: 1022 !important;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-dropdown::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 10px;
        background: transparent;
    }
    
    .dropdown-menu {
        border-top: 3px solid #2c5aa0;
    }
    
    .trust-signals {
        gap: 2rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .header-content {
        padding: 1.5rem 0;
    }
    
    .logo img {
        height: 60px;
        max-width: 200px;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .main-nav {
        gap: 3rem;
    }
}
