/*
Theme Name: Blocksy Child - Quality Remodeling
Description: Child theme for Blocksy with custom header and template parts for qualityremodeling.us
Author: Custom Development
Template: blocksy
Version: 1.0.0
*/

/* ============================================
   Quality Remodeling Custom Header Styles
   ============================================ */

/* Container */
.qr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Top Header Bar */
.qr-top-header-bar {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.qr-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-icon {
    width: 16px;
    height: 16px;
    color: #ffffff;
    flex-shrink: 0;
}

.qr-contact-link,
.qr-contact-text {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.qr-contact-link:hover {
    color: #FFD700;
}

/* Logo Section */
.qr-logo-section {
    background-color: #ffffff;
    padding: 25px 0;
    border-bottom: 2px solid #f0f0f0;
}

.qr-logo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.qr-logo-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 250px;
}

.qr-logo-wrapper {
    display: flex;
    align-items: center;
}

.qr-logo {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.qr-tagline {
    text-align: left;
}

.qr-tagline p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Badges Section */
.qr-badges-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.qr-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-badge-item {
    display: flex;
    align-items: center;
}

.qr-badge {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.qr-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

.qr-badge-text {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qr-licensed,
.qr-insured {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    padding: 6px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.25);
    transition: all 0.3s ease;
}

.qr-licensed:hover,
.qr-insured:hover {
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.35);
    transform: translateY(-1px);
}

/* Social Icons */
.qr-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.qr-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qr-social-link:hover {
    background-color: #FFD700;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.qr-social-link svg {
    width: 20px;
    height: 20px;
}

/* Navigation Bar */
.qr-navigation-bar {
    background-color: #000000;
    padding: 0;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.qr-navigation-bar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.qr-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.qr-nav-menu li {
    margin: 0;
    padding: 0;
}

.qr-nav-link {
    display: block;
    padding: 18px 28px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.qr-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.qr-nav-link:hover,
.qr-nav-link:focus {
    color: #FFD700;
    background-color: rgba(255, 215, 0, 0.1);
}

.qr-nav-link:hover::after,
.qr-nav-link:focus::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.qr-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #ffffff;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.qr-mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFD700;
}

.qr-hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.qr-mobile-menu-toggle[aria-expanded="true"] .qr-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.qr-mobile-menu-toggle[aria-expanded="true"] .qr-hamburger-line:nth-child(2) {
    opacity: 0;
}

.qr-mobile-menu-toggle[aria-expanded="true"] .qr-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.qr-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.qr-mobile-menu-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.qr-mobile-menu-content {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 60px 20px 20px;
    position: relative;
    color: #ffffff;
}

.qr-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FFD700;
    color: #000000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.qr-mobile-menu-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.qr-mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-mobile-nav-menu li {
    margin: 0;
    padding: 0;
}

.qr-mobile-nav-menu .qr-nav-link {
    display: block;
    padding: 18px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qr-mobile-nav-menu .qr-nav-link:hover,
.qr-mobile-nav-menu .qr-nav-link:focus {
    background-color: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

.qr-mobile-nav-menu .qr-nav-link::after {
    display: none;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .qr-container {
        padding: 0 15px;
    }
    
    .qr-logo-content {
        gap: 20px;
    }
    
    .qr-logo {
        max-height: 90px;
    }
    
    .qr-badge {
        height: 40px;
    }
    
    .qr-nav-link {
        padding: 16px 22px;
        font-size: 14px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .qr-top-header-bar {
        font-size: 14px;
    }
    
    .qr-top-header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .qr-logo-section {
        padding: 20px 0;
    }
    
    .qr-logo-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .qr-logo-branding {
        align-items: center;
        text-align: center;
        min-width: auto;
    }
    
    .qr-tagline {
        text-align: center;
    }
    
    .qr-logo {
        max-height: 80px;
    }
    
    .qr-tagline p {
        font-size: 16px;
    }
    
    .qr-badges-section {
        align-items: center;
        gap: 12px;
    }
    
    .qr-badges-row {
        justify-content: center;
    }
    
    .qr-badge {
        height: 40px;
    }
    
    .qr-badge-text {
        justify-content: center;
    }
    
    .qr-licensed,
    .qr-insured {
        padding: 5px 10px;
        font-size: 9px;
    }
    
    .qr-social-link {
        width: 35px;
        height: 35px;
    }
    
    .qr-social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .qr-navigation-bar {
        padding: 12px 0;
    }
    
    .qr-mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .qr-nav-menu {
        display: none;
    }
    
    .qr-navigation-bar .qr-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .qr-top-header-bar {
        padding: 10px 0;
        font-size: 13px;
        font-weight: 600;
    }
    
    .qr-logo-section {
        padding: 15px 0;
    }
    
    .qr-logo {
        max-height: 70px;
    }
    
    .qr-tagline p {
        font-size: 14px;
    }
    
    .qr-badges-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .qr-badge {
        height: 45px;
    }
    
    .qr-badge-text {
        flex-direction: column;
        gap: 8px;
    }
    
    .qr-licensed,
    .qr-insured {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .qr-social-icons {
        gap: 12px;
    }
    
    .qr-social-link {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 200px;
}

/* Ensure header doesn't interfere with Blocksy */
.professionalhandyman1-custom-header {
    position: relative;
    z-index: 1000;
}

/* Hide default Blocksy header if needed */
body.professionalhandyman1-child-theme .site-header {
    display: none;
}
