/**
 * Header Styling
 *
 * @package ASP_Nevada
 */

/* ==========================================================================
   Header Wrapper and Fixed Header Container
   ========================================================================== */

.header-wrapper {
    position: relative;
    width: 100%;
}

header.wp-block-template-part {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #070d43;
    color: #ffffff;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

header.wp-block-template-part.is-compact {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-bar header.wp-block-template-part {
    top: 32px;
}

header.wp-block-template-part>.has-global-padding {
    padding-left: 0;
    padding-right: 0;
}

header.wp-block-template-part a {
    color: #ffffff;
    text-decoration: none;
}

/* Smooth transitions for header groups */
header.wp-block-template-part>.wp-block-group,
header.wp-block-template-part .wp-block-group.alignwide {
    transition: padding 0.3s ease;
}

/* ==========================================================================
   Branding Section
   ========================================================================== */

.header-branding-row {
    gap: 12px;
}

/* Logo */
.header-branding-row .wp-block-site-logo img {
    height: auto;
    object-fit: contain;
    transition: width 0.3s ease, max-width 0.3s ease;
    will-change: width;
}

header.wp-block-template-part.is-compact .header-branding-row .wp-block-site-logo img {
    width: 50px;
}

/* Site Title */
.header-branding-row .wp-block-site-title {
    line-height: 1;
    transition: font-size 0.3s ease;
    will-change: font-size;
}

.header-branding-row .wp-block-site-title a {
    font-weight: 700;
}

header.wp-block-template-part.is-compact .header-branding-row .wp-block-site-title {
    font-size: 1rem;
}

/* Site Tagline */
.header-branding-row .wp-block-site-tagline {
    margin-block-start: 0;
    padding-top: 4px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    transition: font-size 0.3s ease;
    will-change: font-size;
}

header.wp-block-template-part.is-compact .header-branding-row .wp-block-site-tagline {
    font-size: 0.85rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

header.wp-block-template-part .wp-block-navigation-item__content {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

header.wp-block-template-part .wp-block-navigation-item__content:hover {
    color: #cccccc;
    opacity: 0.8;
    text-decoration: none;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
header.wp-block-template-part .wc-block-breadcrumbs {
    background-color: #f8f8f8;
    padding: 10px 0;
    margin-top: 0;
    max-width: none;
    width: 100%;
    min-height: 24px;
    border-top: 1px solid #e0e0e0;
    transition: min-height 0.3s ease, padding 0.3s ease;
}

header.wp-block-template-part.is-compact .wc-block-breadcrumbs {
    min-height: 17px;
}

header.wp-block-template-part .woocommerce-breadcrumb {
    margin: 0 auto;
    max-width: 1200px;
    font-size: 15px;
    color: #777777;
    transition: font-size 0.3s ease;
}

header.wp-block-template-part.is-compact .woocommerce-breadcrumb {
    font-size: 11px;
}

header.wp-block-template-part .woocommerce-breadcrumb {
    padding-left: 20px;
    padding-right: 20px;
}

header.wp-block-template-part .woocommerce-breadcrumb a {
    color: #555555;
}

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

@media (max-width: 782px) {

    .admin-bar header.wp-block-template-part {
        top: 46px;
    }

    header.wp-block-template-part .wp-block-group .wp-block-group {
        padding-left: 0;
        padding-right: 0;
    }

    .header-branding-row {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .header-branding-row>.wp-block-group {
        flex-shrink: 1;
        min-width: 0;
    }

    /* Mobile default state */
    .header-branding-row .wp-block-site-logo img {
        width: 65px;
        max-width: 65px;
        transition: width 0.3s ease, max-width 0.3s ease;
    }

    .header-branding-row .wp-block-site-title a {
        font-size: 15px;
        line-height: 1.1;
    }

    .header-branding-row .wp-block-site-tagline {
        font-size: 12px;
        line-height: 1.1;
    }

    /* Mobile compact state */
    header.wp-block-template-part.is-compact .header-branding-row .wp-block-site-logo img {
        width: 50px;
        max-width: 50px;
        transition: width 0.3s ease, max-width 0.3s ease;
    }

    header.wp-block-template-part.is-compact .header-branding-row .wp-block-site-title a {
        font-size: 15px;
    }

    header.wp-block-template-part.is-compact .header-branding-row .wp-block-site-tagline {
        font-size: 12px;
    }

    /* Mobile breadcrumb sizing */
    header.wp-block-template-part .woocommerce-breadcrumb {
        font-size: 13px;
    }

    header.wp-block-template-part.is-compact .woocommerce-breadcrumb {
        font-size: 10px;
    }
}

@media (max-width: 1199px) {
    header.wp-block-template-part>.wp-block-group>.wp-block-group.alignwide {
        padding-left: 20px;
        padding-right: 20px;
    }
}