/**
 * Dark Header Styles - QC Technologies
 * Consistent dark header across all pages
 * Version: 3.0
 */

/* ===== BASE PHONE STYLE ===== */
/* Desktop gets orange pill, mobile overrides to transparent below */

/* ===== DARK HEADER ===== */
.header {
    background: #1a1a1a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo img {
    height: 48px;
    width: auto;
}

.header__logo-text {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 1.7rem !important;
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff !important;
    text-transform: uppercase;
}

/* Address */
.header__address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header__address svg {
    width: 16px;
    height: 16px;
    fill: #FF6B00 !important;
    flex-shrink: 0;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper svg {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.6) !important;
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-size: 0.9rem;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.header-search input:focus {
    border-color: #FF6B00 !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    font-family: 'Barlow', 'Arial', sans-serif;
    font-size: 1.15rem !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus {
    color: #FF6B00 !important;
}

/* Phone CTA - Desktop only (hidden on mobile via media query below) */
.header__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Desktop phone button - orange pill ONLY on screens 900px and wider */
@media screen and (min-width: 900px) {
    .header__phone {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        background: #FF6B00 !important;
        color: #fff !important;
        padding: 12px 22px !important;
        padding-right: 16px !important;
        border-radius: 25px !important;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.2rem !important;
        white-space: nowrap;
    }

    .header__phone svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .header__phone:hover {
        background: #e55b00 !important;
        transform: translateY(-2px);
    }
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff !important;
    border-radius: 2px;
}

/* Hide address on smaller screens */
@media (max-width: 1024px) {
    .header__address {
        display: none !important;
    }
    
    /* Search bar is shown as fixed element below header on mobile - see search.css */
    /* Don't hide it here! */
}

/* Mobile/Tablet adjustments - applies to all screens BELOW desktop (900px) */
@media (max-width: 899px) {
    .nav {
        display: none !important;
    }
    
    /* Keep original layout - shifted slightly right */
    .header__inner {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        padding: 0 10px 0 20px;
        position: relative; /* Required for absolute positioning of phone */
    }
    
    /* Logo - bigger, moved left */
    .header__logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: -5px;
    }
    
    .header__logo img {
        height: 55px;
    }
    
    .header__logo-text {
        display: none !important;
    }
    
    /* Phone - NO orange background on mobile/tablet, just text/icon */
    .header__phone {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        background: none !important;
        background-color: transparent !important;
        background-image: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        color: #FF6B00 !important;
        font-size: 1.1rem !important;
        font-weight: 700;
        text-decoration: none;
        position: absolute;
        left: 53%;
        top: 55%;
        transform: translate(-50%, -50%) !important;
    }
    
    .header__phone span {
        display: inline !important;
        color: #FF6B00 !important;
    }
    
    .header__phone svg {
        width: 24px;
        height: 24px;
        fill: #FF6B00 !important;
    }
    
    /* IMPORTANT: No transform change on hover - prevents position flash */
    .header__phone:hover,
    .header__phone:focus,
    .header__phone:active {
        background: none !important;
        background-color: transparent !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* Hamburger menu - white bars, slightly right, moved down a little */
    .menu-toggle {
        display: flex;
        margin-right: 15px;
        margin-top: 5px;
    }
    
    .menu-toggle span {
        background: #fff !important;
    }
}
