/* ============================================================
   2026 UNIVERSAL HEADER — header-2026-universal.css
   Loaded via parts/mainmenu-v8.php for any template using
   get_header('2026_universal').

   Page-template control via $GLOBALS['cp_header']:
     'variant' => 'dark'   — white logo + white hamburger (over hero images)
     'variant' => 'light'  — dark logo + dark hamburger (over white pages)
     'cta'     => ['text' => '…', 'url' => '…']  or  false
   ============================================================ */

/* ---- BASE ---- */
.header-2026 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001; /* above #cp-nav-overlay (10000) */
    height: 80px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.h26-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 32px;
}

/* ---- LOGO ---- */
.h26-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.h26-logo .logo-full {
    display: block;
    width: 219px;
    height: auto;
}

.h26-logo .logo-icon {
    display: none;
    width: 49px;
    height: auto;
}

/* ---- RIGHT SIDE ---- */
.h26-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ---- CTA BUTTON ---- */
.h26-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #0275B3;
    color: #fff !important;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.h26-cta:hover,
.h26-cta:focus {
    background: #186188;
    color: #fff !important;
    text-decoration: none !important;
}

/* ---- HAMBURGER ---- */
.h26-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    line-height: 0;
}

.h26-bar {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 1px;
    transition: background-color 0.25s ease, transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X when nav is open */
.h26-hamburger[aria-expanded="true"] .h26-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.h26-hamburger[aria-expanded="true"] .h26-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.h26-hamburger[aria-expanded="true"] .h26-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   VARIANT: DARK
   White logo + white hamburger bars over dark/image backgrounds.
   Logo src is set in PHP; no CSS logo swap needed.
   ============================================================ */
.header-2026.variant-dark {
    background: transparent;
}

.header-2026.variant-dark .h26-bar {
    background: #fff;
}

/* ============================================================
   VARIANT: LIGHT
   Dark logo + dark hamburger bars over white/light backgrounds.
   ============================================================ */
.header-2026.variant-light {
    background: transparent;
}

.header-2026.variant-light .h26-bar {
    background: #121E23;
}

/* ============================================================
   STICKY STATE
   Solid white bar — JS swaps logo src to dark version.
   ============================================================ */
html.sticky2 .header-2026 {
    background: #fff;
    box-shadow: 0 1px 0 #eaeaea;
}

html.sticky2 .header-2026 .h26-bar {
    background: #121E23;
}

/* ============================================================
   MOBILE  (≤ 767px)
   Always solid white, icon-only logo, no CTA button.
   ============================================================ */
@media (max-width: 767px) {
    .header-2026 {
        background: #121E23 !important;
        box-shadow: none !important;
        height: 64px;
    }

    .h26-logo .logo-full {
        display: none !important;
    }

    .h26-logo .logo-icon {
        display: block !important;
    }

    .h26-cta {
        display: none;
    }

    .h26-bar {
        background: #fff !important;
    }
}

/* ============================================================
   HEADER WHEN NAV OVERLAY IS OPEN
   Strip the sticky white background so the header floats
   cleanly over the dark overlay regardless of scroll position.
   ============================================================ */
body.cp-nav-open .header-2026 {
    background: transparent !important;
    box-shadow: none !important;
}

body.cp-nav-open .header-2026 .logo-full {
    filter: brightness(0) invert(1) !important;
}

body.cp-nav-open .header-2026 .h26-bar {
    background: #fff !important;
}

/* ============================================================
   FULL-SCREEN NAV OVERLAY
   ============================================================ */
#cp-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    background: #121E23;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cp-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

body.cp-nav-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

body.cp-nav-open .header-2026 {
    padding-right: var(--scrollbar-width, 0px);
}

/* ---- Left image panel ---- */
.cno-left {
    width: 41.67%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.cno-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

.cno-image.is-active {
    opacity: 0.4;
}

/* ---- Right content panel ---- */
/* padding-top clears the fixed 80px header bar sitting above the overlay */
.cno-right {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 80px 48px 48px;
}

/* ---- Nav content ---- */
.cno-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Primary links */
.cno-primary-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cno-primary-links li {
    position: relative;
}

.cno-primary-links li a {
    font-family: "Normalidad Wide", sans-serif;
    font-weight: 350;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: 5.4px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-block;
}

.cno-primary-links li a:hover {
    color: #0275B3;
}

/* Active indicator — blue bar on left */
.cno-primary-links li.active a {
    padding-left: 16px;
}

.cno-primary-links li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: #0275B3;
    border-radius: 1px;
}

/* Section labels (Our Solutions / Retail Partnerships) */
.cno-section-label {
    font-family: "Normalidad Wide", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 3.24px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px;
}

/* Section link list */
.cno-section-links {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.56;
    color: #fff;
    margin: 0;
}

.cno-section-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cno-section-links a:hover,
.cno-section-links a.active {
    color: #0275B3;
}

.cno-sep {
    opacity: 0.45;
    margin: 0 10px;
}

/* Social links */
.cno-socials {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.46;
    color: #fff;
    margin-top: auto;
    padding-top: 32px;
}

.cno-socials a {
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cno-socials a:hover {
    color: #0275B3;
}

.cno-arrow {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ---- Hero form label alignment (overrides any inherited centering) ---- */
.exp-form label,
.exp-form .wpcf7-form p,
.exp-form .wpcf7-form span.wpcf7-form-control-wrap {
    text-align: left;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .cno-left {
        display: none;
    }

    .cno-right {
        padding: 100px 24px 40px; /* extra top padding gives nav room to breathe */
    }

    .cno-primary-links li a {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .cno-nav {
        gap: 28px;
    }

    /* Stack solution/retail links vertically and hide / separators */
    .cno-sep {
        display: none;
    }

    .cno-section-links a {
        display: block;
        padding: 4px 0;
    }

    /* Stack socials vertically */
    .cno-socials {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cno-socials .cno-sep {
        display: none;
    }
}
