/* =============================
   Identifix Base Header Styles
   Used across all page types (main-store, product-pages)
   ============================= */

.identifix-custom-header {
    background-color: var(--solera-jacarta);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Adjust sticky header position when WordPress admin bar is visible */
body.admin-bar .identifix-custom-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .identifix-custom-header {
        top: 46px;
    }
}

.identifix-header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.identifix-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.identifix-logo-img {
    max-height: 70px;
    width: auto;
    display: block;
}

.identifix-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.identifix-contact-us-btn {
    display: inline-block;
    background-color: var(--solera-sun);
    color: var(--solera-jacarta) !important;
    padding: 0rem 1.5rem !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    height: 70px;
    line-height: 70px;
    vertical-align: middle;
}

.identifix-contact-us-btn:hover {
    background-color: var(--solera-sun);
    color: var(--solera-jacarta) !important;
    text-decoration: none;
}

/* Hamburger Button (Hidden on Desktop) */
.identifix-hamburger {
    display: none;
}

/* Mobile Menu Panel (Hidden on Desktop) */
.identifix-mobile-nav {
    display: none;
}

/* =============================
   Mobile Responsive Header
   ============================= */

@media (max-width: 768px) {
    .identifix-custom-header {
        padding: 0.75rem 0;
    }

    .identifix-header-content {
        flex-direction: row;
        gap: 0.5rem;
    }

    .identifix-logo-img {
        max-height: 30px;
    }

    /* Hide Contact Us button on mobile, show hamburger */
    .identifix-contact-us-btn {
        display: none;
    }

    .identifix-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: transparent !important;
        border: 0;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
        height: 70px;
        -webkit-tap-highlight-color: transparent !important;
    }

    .identifix-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--solera-white);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* Animate to X when open */
    .identifix-custom-header.mobile-open .identifix-hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .identifix-custom-header.mobile-open .identifix-hamburger span:nth-child(2) {
        opacity: 0;
    }
    .identifix-custom-header.mobile-open .identifix-hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile nav panel */
    .identifix-mobile-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: var(--solera-jacarta);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    }

    .identifix-mobile-nav.is-open {
        display: block;
    }

    /* Mobile CTA link */
    .identifix-mobile-cta {
        display: block;
        background: var(--solera-sun);
        color: var(--solera-jacarta) !important;
        font-weight: bold !important;
        font-size: 1rem;
        text-transform: uppercase;
        text-align: center;
        text-decoration: none !important;
        padding: 1rem;
    }

    .identifix-mobile-cta:hover {
        color: var(--solera-jacarta) !important;
        opacity: 0.9;
    }
}
