/*
 * InvestmentWP — Header Layouts CSS (Standalone)
 * -----------------------------------------------
 * All selectors are scoped under .site-header so they
 * NEVER conflict with Bootstrap 5, the page body, or
 * any other theme CSS.
 *
 * Breakpoints:
 *   - Mobile   : < 768px
 *   - Tablet   : 768px – 991px
 *   - Desktop  : >= 992px
 *
 * @package InvestmentWP
 */

/* ============================================================
   0. CSS RESETS / SCOPE
   Every header inherits box-sizing and resets any
   margin/padding that Bootstrap or main.css might set.
   ============================================================ */
.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}

/* ============================================================
   1. CORE HEADER SHELL
   Applies to every header template.
   ============================================================ */
.site-header {
    position: relative;
    width: 100%;
    z-index: 999;
    background: #fff;
}

/* Sticky modifier */
.site-header.inwp-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Transition for scrolled state */
.site-header.inwp-header--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, .10);
}

/* ============================================================
   2. SHARED INNER WRAPPER  (.hv-inner)
   Used inside every header's main row.
   Replaces `.row .col-*` so no Bootstrap dependency needed.
   ============================================================ */
.hv-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
}

/* Logo slot — never shrinks */
.hv-logo {
    flex: 0 0 auto;
}

.hv-logo a,
.hv-logo .site-title a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.hv-logo img {
    display: block;
    max-height: 60px;
    width: auto;
}

.hv-logo .site-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Nav slot — grows to fill available space */
.hv-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Actions slot — right side items */
.hv-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: 16px;
}

/* ============================================================
   3. DESKTOP NAV MENU  (.hv-nav__menu)
   Base styles for ALL header nav menus.
   ============================================================ */
.hv-nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.hv-nav__menu>li {
    position: relative;
}

.hv-nav__menu>li>a {
    display: block;
    padding: 8px var(--hv-menu-gap, 14px);
    color: var(--hv-menu-color, var(--inwp-header-text, #1a1a2e));
    font-size: var(--hv-menu-font-size, 14px);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.hv-nav__menu>li>a:hover,
.hv-nav__menu>li:hover>a,
.hv-nav__menu>li.current-menu-item>a,
.hv-nav__menu>li.current-menu-ancestor>a {
    color: var(--hv-menu-hover, var(--inwp-primary, #0073aa));
}

/* Dropdown submenu */
.hv-nav__menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 200;
}

.hv-nav__menu li:hover>.sub-menu,
.hv-nav__menu li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hv-nav__menu .sub-menu a {
    display: block;
    padding: 9px 18px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.hv-nav__menu .sub-menu a:hover {
    background: #f5f7fa;
    color: var(--inwp-primary, #0073aa);
}

/* Third level */
.hv-nav__menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Right-side dropdowns — flip left */
.hv-nav__menu>li:last-child .sub-menu,
.hv-nav__menu>li:nth-last-child(2) .sub-menu {
    left: auto;
    right: 0;
}

/* ============================================================
   4. HEADER ACTIONS  (search, CTA button, etc.)
   ============================================================ */
/* Search toggle button */
.hv-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: inherit;
    border-radius: 4px;
}

.hv-search-btn:hover {
    color: var(--inwp-primary, #0073aa);
}

/* CTA button */
.hv-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--inwp-primary, #0073aa);
    color: #fff !important;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, transform .15s, box-shadow .2s;
    border: 2px solid transparent;
}

.hv-cta-btn:hover {
    background: var(--inwp-primary-dark, #005a87);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 115, 170, .35);
}

/* Ghost CTA (for transparent / overlay headers) */
.hv-cta-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .7);
    color: #fff !important;
}

.hv-cta-btn--ghost:hover {
    background: rgba(255, 255, 255, .15);
    box-shadow: none;
}

/* ============================================================
   5. MOBILE HAMBURGER TOGGLE  (.hv-toggle)
   ============================================================ */
.hv-toggle {
    display: none;
    /* hidden on desktop */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 2px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    color: inherit;
    flex-shrink: 0;
}

.hv-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* Active / open state — X animation */
.hv-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hv-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hv-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   6. TOP BAR  (.hv-topbar)
   ============================================================ */
.hv-topbar {
    background: var(--inwp-topbar-bg, #0a2540);
    color: var(--inwp-topbar-text, #a0b4cc);
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.hv-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.hv-topbar__left,
.hv-topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hv-topbar a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.hv-topbar a:hover {
    color: #fff;
}

.hv-topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hv-topbar svg {
    flex-shrink: 0;
    opacity: .8;
}

/* Social links in topbar */
.hv-topbar__social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hv-topbar__social a {
    display: flex;
    align-items: center;
}

/* ============================================================
   7. MAIN HEADER ROW (the band with logo + nav)
   ============================================================ */
.hv-header-main {
    padding: 0;
}

.hv-container {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   8. SEARCH MODAL  (.hv-search-modal)
   Shared across all header types.
   ============================================================ */
.hv-search-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.hv-search-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hv-search-modal__box {
    background: #fff;
    border-radius: 10px;
    padding: 28px 30px;
    width: min(560px, 94vw);
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
    transform: translateY(-10px);
    transition: transform .25s;
}

.hv-search-modal.is-open .hv-search-modal__box {
    transform: translateY(0);
}

.hv-search-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    display: flex;
    align-items: center;
}

.hv-search-modal .search-form {
    display: flex;
    gap: 8px;
}

.hv-search-modal .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}

.hv-search-modal .search-field:focus {
    border-color: var(--inwp-primary, #0073aa);
}

.hv-search-modal .search-submit {
    padding: 10px 20px;
    background: var(--inwp-primary, #0073aa);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* ============================================================
   9. MOBILE OVERLAY  (.hv-overlay)
   Shared dimmer behind drawer / side-panel / vertical panel.
   ============================================================ */
.hv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.hv-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   10. MOBILE DRAWER  (.hv-drawer)
   Shared right-side slide-in for layouts 01–17.
   ============================================================ */
.hv-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(340px, 92vw);
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -4px 0 32px rgba(0, 0, 0, .15);
    overflow: hidden;
    will-change: transform;
}

.hv-drawer.is-open {
    transform: translateX(0);
}

.hv-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.hv-drawer__logo img {
    max-height: 42px;
    width: auto;
}

.hv-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #333;
    border-radius: 4px;
    transition: background .15s;
}

.hv-drawer__close:hover {
    background: #f5f5f5;
}

.hv-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 20px;
}

/* Mobile nav inside drawer */
.hv-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-mobile-nav li {
    border-bottom: 1px solid #f4f4f4;
}

.hv-mobile-nav li:last-child {
    border-bottom: none;
}

.hv-mobile-nav .hv-mobile-nav__row {
    display: flex;
    align-items: stretch;
}

.hv-mobile-nav a {
    flex: 1;
    display: block;
    padding: 14px 20px;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.hv-mobile-nav a:hover {
    color: var(--inwp-primary, #0073aa);
    background: #fafafa;
}

/* Sub-menu toggle arrow inside drawer */
.hv-submenu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    width: 48px;
    cursor: pointer;
    color: #555;
    border-left: 1px solid #f0f0f0;
    flex-shrink: 0;
    transition: transform .25s;
}

.hv-submenu-arrow.is-open {
    transform: rotate(180deg);
}

/* Sub-menus in drawer */
.hv-mobile-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    display: none;
    background: #fafafa;
}

.hv-mobile-nav .sub-menu.is-open {
    display: block;
}

.hv-mobile-nav .sub-menu a {
    font-size: 13px;
    font-weight: 400;
    color: #444;
    padding: 11px 20px;
}

/* CTA inside drawer */
.hv-drawer__cta {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.hv-drawer__cta .hv-cta-btn {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   11. INFO ITEMS  (phone / email / address snippets)
   ============================================================ */
.hv-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hv-info__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: inherit;
}

.hv-info__item a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.hv-info__item a:hover {
    color: var(--inwp-primary, #0073aa);
}

.hv-info__item svg {
    flex-shrink: 0;
    opacity: .75;
}

.hv-info__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .65;
}

.hv-info__value {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   12. SOCIAL ICON ROW
   ============================================================ */
.hv-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hv-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
    opacity: .7;
    transition: opacity .2s, transform .2s;
}

.hv-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ============================================================
   13. LAYOUT-SPECIFIC OVERRIDES
   Each variant gets its own scope via its body class.
   ============================================================ */

/* ---- 13a. DEFAULT HEADER ---- */
.header-default .hv-header-main {
    padding: 14px 0;
}

/* ---- 13b. STACKED HEADER ---- */
.header-stacked .hv-top-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.header-stacked .hv-nav-row {
    padding: 0;
    background: var(--inwp-primary, #0073aa);
}

.header-stacked .hv-nav-row .hv-nav__menu>li>a {
    color: #fff;
    padding: 13px 16px;
}

.header-stacked .hv-nav-row .hv-nav__menu>li>a:hover {
    color: rgba(255, 255, 255, .75);
}

.header-stacked .hv-nav-row .hv-nav__menu .sub-menu {
    top: 100%;
}

/* ---- 13c. DARK HEADER ---- */
.header-dark {
    background: #1a1a2e;
    color: #e8e8e8;
}

.header-dark .hv-header-main {
    padding: 14px 0;
}

.header-dark .hv-nav__menu>li>a {
    color: #e8e8e8;
}

.header-dark .hv-nav__menu>li>a:hover {
    color: #fff;
}

.header-dark .hv-nav__menu .sub-menu {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, .1);
}

.header-dark .hv-nav__menu .sub-menu a {
    color: #ccc;
}

.header-dark .hv-nav__menu .sub-menu a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.header-dark .hv-cta-btn {
    background: #fff;
    color: #1a1a2e !important;
}

.header-dark .hv-toggle {
    color: #e8e8e8;
}

/* ---- 13d. TRANSPARENT HEADER ---- */
.header-transparent {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
}

.header-transparent .hv-header-main {
    padding: 18px 0;
}

.header-transparent .hv-nav__menu>li>a {
    color: #fff;
}

.header-transparent .hv-nav__menu>li>a:hover {
    color: rgba(255, 255, 255, .75);
}

.header-transparent .hv-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

/* Body padding for transparent (set in PHP inline) */
body.has-transparent-header .site-main {
    padding-top: 0;
}

/* ---- 13e. COLORED HEADER ---- */
.header-colored {
    background: var(--header-accent, #0073aa);
    color: #fff;
}

.header-colored .hv-header-main {
    padding: 14px 0;
}

.header-colored .hv-nav__menu>li>a {
    color: rgba(255, 255, 255, .9);
}

.header-colored .hv-nav__menu>li>a:hover {
    color: #fff;
}

.header-colored .hv-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

/* ---- 13f. OVERLAY HEADER ---- */
.header-overlay {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
}

.header-overlay .hv-header-main {
    padding: 20px 0;
}

.header-overlay .hv-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
    gap: 3px;
}

.header-overlay .hv-toggle-label {
    color: #fff;
    font-size: 13px;
    letter-spacing: .5px;
}

/* ---- 13g. CENTERED HEADER ---- */
.header-centered .hv-header-main {
    padding: 14px 0;
}

.header-centered .hv-wrap {
    flex-direction: column;
    gap: 10px;
}

.header-centered .hv-nav {
    justify-content: center;
    width: 100%;
}

.header-centered .hv-actions {
    margin-left: 0;
}

/* ---- 13h. ELEGANT HEADER ---- */
.header-elegant {
    border-bottom: 1px solid #eee;
}

.header-elegant .hv-header-main {
    padding: 12px 0;
}

.header-elegant .hv-nav__menu>li>a {
    font-weight: 400;
    letter-spacing: .3px;
}

/* ---- 13i. CREATIVE HEADER ---- */
.header-creative .hv-header-main {
    padding: 16px 0;
}

.header-creative .hv-nav__menu>li>a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: var(--inwp-primary, #0073aa);
    transition: width .25s;
    margin-top: 2px;
}

.header-creative .hv-nav__menu>li>a:hover::after,
.header-creative .hv-nav__menu>li.current-menu-item>a::after {
    width: 100%;
}

/* ---- 13j. MODERN HEADER ---- */
.header-modern .hv-topbar {
    font-size: 12px;
    padding: 6px 0;
}

.header-modern .hv-header-main {
    padding: 12px 0;
    border-bottom: 2px solid var(--inwp-primary, #0073aa);
}

/* ---- 13k. BUSINESS HEADER ---- */
.header-business .hv-header-main {
    padding: 14px 0;
}

.header-business .hv-info__item .hv-info__label {
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #888;
}

/* ---- 13l. MINIMAL HEADER ---- */
.header-minimal {
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.header-minimal .hv-header-main {
    padding: 12px 0;
}

.header-minimal .hv-nav__menu>li>a {
    font-size: 13px;
}

/* ---- 13m. PROFESSIONAL HEADER ---- */
.header-professional-1 .hv-topbar {
    background: #f7f8fa;
    color: #555;
    border-bottom: 1px solid #eee;
}

.header-professional-1 .hv-header-main {
    padding: 14px 0;
    border-bottom: 3px solid var(--inwp-primary, #0073aa);
}

/* ---- 13n. LANDING HEADER ---- */
.header-landing {
    background: #0a2540;
    color: #fff;
}

.header-landing .hv-header-main {
    padding: 18px 0;
}

.header-landing .hv-nav__menu>li>a {
    color: rgba(255, 255, 255, .85);
}

.header-landing .hv-nav__menu>li>a:hover {
    color: #fff;
}

.header-landing .hv-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}

/* ---- 13o. STACKED HEADER (nav bar) ---- */
.header-stacked .hv-header-main {
    padding: 14px 0;
}

/* ---- 13p. TOP-BAR-MENU HEADER ---- */
.header-top-bar-menu .hv-topbar {
    background: #263043;
    color: #b0bec5;
}

.header-top-bar-menu .hv-header-main {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

/* ---- 13q. DOUBLE MENU HEADER ---- */
.header-double-menu .hv-topbar {
    background: var(--inwp-primary, #0073aa);
    color: rgba(255, 255, 255, .85);
}

.header-double-menu .hv-topbar a:hover {
    color: #fff;
}

.header-double-menu .hv-top-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.header-double-menu .hv-top-nav-menu li>a {
    padding: 0 10px;
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, .15);
    line-height: 1;
}

.header-double-menu .hv-top-nav-menu li:last-child>a {
    border-right: none;
}

.header-double-menu .hv-top-nav-menu li>a:hover {
    color: #fff;
}

.header-double-menu .hv-header-main {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* ---- 13r. CATEGORIES MENU HEADER ---- */
.header-categories-menu .hv-header-main {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.hv-categories-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--inwp-primary, #0073aa);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.hv-categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    z-index: 300;
    display: none;
    padding: 6px 0;
}

.hv-categories-dropdown.is-open {
    display: block;
}

.hv-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-categories-list li a {
    display: block;
    padding: 9px 16px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s;
}

.hv-categories-list li a:hover {
    background: #f5f5f5;
    color: var(--inwp-primary, #0073aa);
}

/* ---- 13s. E-COMMERCE HEADER ---- */
.header-ecommerce .hv-search-bar {
    flex: 1;
    max-width: 480px;
}

.header-ecommerce .hv-search-bar .search-form {
    display: flex;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.header-ecommerce .hv-search-bar .search-field {
    flex: 1;
    padding: 9px 14px;
    border: none;
    outline: none;
    font-size: 14px;
}

.header-ecommerce .hv-search-bar .search-submit {
    padding: 9px 16px;
    background: var(--inwp-primary, #0073aa);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.header-ecommerce .hv-ecom-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-ecommerce .hv-ecom-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: background .15s;
}

.header-ecommerce .hv-ecom-icon:hover {
    background: #f5f5f5;
}

.header-ecommerce .hv-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--inwp-primary, #0073aa);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.header-ecommerce .hv-header-main {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.header-ecommerce .hv-nav-bar {
    background: var(--inwp-primary, #0073aa);
    padding: 0;
}

.header-ecommerce .hv-nav-bar .hv-nav__menu>li>a {
    color: rgba(255, 255, 255, .9);
    padding: 12px 16px;
}

.header-ecommerce .hv-nav-bar .hv-nav__menu>li>a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.header-ecommerce .hv-nav-bar .hv-nav__menu .sub-menu {
    background: #fff;
}

.header-ecommerce .hv-nav-bar .hv-nav__menu .sub-menu a {
    color: #333;
}

/* ---- 13t. MEGA MENU HEADER ---- */
.header-mega-menu .hv-header-main {
    padding: 14px 0;
}

.hv-nav__menu .hv-mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 600px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
    padding: 20px;
    display: none;
    z-index: 200;
}

.hv-nav__menu>li:hover>.hv-mega-panel {
    display: flex;
    gap: 20px;
}

.hv-mega-col {
    flex: 1;
}

.hv-mega-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.hv-mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-mega-col ul li a {
    display: block;
    padding: 6px 0;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: color .15s;
}

.hv-mega-col ul li a:hover {
    color: var(--inwp-primary, #0073aa);
}

/* ---- 13u. SPLIT HEADER ---- */
.header-split .hv-header-main {
    padding: 14px 0;
}

.header-split .hv-wrap {
    gap: 20px;
}

.header-split .hv-split-left,
.header-split .hv-split-right {
    flex: 1;
}

.header-split .hv-split-right {
    display: flex;
    justify-content: flex-end;
}

.header-split .hv-split-left .hv-nav {
    justify-content: flex-start;
}

/* ---- 13v. SIDE MENU HEADER ---- */
.header-side-menu .hv-header-main {
    padding: 14px 0;
}

/* The side panel */
.hv-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90vw);
    height: 100%;
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -4px 0 32px rgba(0, 0, 0, .15);
}

.hv-side-panel.is-open {
    transform: translateX(0);
}

.hv-side-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.hv-side-panel__close {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #333;
    border-radius: 4px;
}

.hv-side-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.hv-side-panel__footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

/* Side-menu hamburger button */
.hv-side-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
}

.hv-side-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hv-side-toggle__bars span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* ---- 13w. VERTICAL HEADER ---- */
.header-vertical {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #eee;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.header-vertical .hv-vertical-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 0 20px;
}

.header-vertical .hv-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.header-vertical .hv-vertical-nav {
    flex: 1;
    padding: 10px 0;
}

.header-vertical .hv-nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.header-vertical .hv-nav__menu>li>a {
    padding: 12px 24px;
    border-left: 3px solid transparent;
}

.header-vertical .hv-nav__menu>li>a:hover,
.header-vertical .hv-nav__menu>li.current-menu-item>a {
    border-left-color: var(--inwp-primary, #0073aa);
    background: #f7f9fb;
}

.header-vertical .hv-nav__menu .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 20px;
    display: none;
}

.header-vertical .hv-nav__menu li.is-open>.sub-menu {
    display: block;
}

.header-vertical .hv-vertical-footer {
    padding: 20px 24px 10px;
    border-top: 1px solid #f0f0f0;
}

/* Mobile FAB for vertical */
.hv-vertical-fab {
    display: none;
    /* shown on mobile via media query */
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1101;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--inwp-primary, #0073aa);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
}

.hv-vertical-fab span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* Body offset for vertical header */
body.has-vertical-header {
    padding-left: 260px;
}

/* ============================================================
   14. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- TABLET  768px – 991px ---- */
@media (min-width: 768px) and (max-width: 991px) {
    .hv-nav__menu>li>a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .hv-cta-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .header-ecommerce .hv-search-bar {
        max-width: 300px;
    }
}

/* ---- MOBILE  < 768px ---- */
@media (max-width: 767px) {

    /* Show hamburger on mobile */
    .hv-toggle {
        display: flex;
    }

    /* Hide desktop nav */
    .hv-nav {
        display: none;
    }

    /* Adjust main row for mobile (logo + toggle side by side) */
    .hv-wrap {
        justify-content: space-between;
    }

    .hv-header-main {
        padding: 10px 0;
    }

    /* Top bar shown on mobile to support Tradingview Ticker */
    .hv-topbar {
        display: block;
    }

    /* Stacked nav bar hidden on mobile */
    .header-stacked .hv-nav-row {
        display: none;
    }

    /* E-commerce: hide nav bar on mobile */
    .header-ecommerce .hv-nav-bar {
        display: none;
    }

    /* E-commerce: hide search bar on mobile */
    .header-ecommerce .hv-search-bar {
        display: none;
    }

    /* E-commerce: show icon strip on mobile */
    .header-ecommerce .hv-ecom-icons {
        display: flex;
    }

    /* Centered: undo column layout on mobile */
    .header-centered .hv-wrap {
        flex-direction: row;
        gap: 0;
    }

    /* Vertical: slide out on mobile, FAB visible */
    .header-vertical {
        transform: translateX(-100%);
        pointer-events: none;
    }

    .header-vertical.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .hv-vertical-fab {
        display: flex;
    }

    body.has-vertical-header {
        padding-left: 0;
    }

    /* Overlay header: non-absolute on mobile */
    .header-overlay,
    .header-transparent {
        position: relative;
        background: #fff;
        color: #1a1a2e;
    }

    .header-overlay .hv-toggle,
    .header-transparent .hv-toggle {
        color: #1a1a2e;
        border-color: #1a1a2e;
    }

    /* Side panel toggle visible on all sizes */
    .hv-side-toggle {
        display: flex;
    }
}

/* ---- DESKTOP >= 768px ---- */
@media (min-width: 768px) {
    .hv-toggle {
        display: none !important;
    }

    .hv-nav,
    .hv-actions {
        display: flex !important;
    }
}

/* ============================================================
   15. DEFAULT HEADER (special — uses .inwp-header__* classes)
   No scoping conflict since it's own detailed CSS.
   ============================================================ */
.inwp-header__main {
    padding: 14px 0;
}

.inwp-container {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

.inwp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.inwp-header__logo {
    flex: 0 0 auto;
}

.inwp-header__logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.inwp-header__logo .inwp-site-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--inwp-header-text, #1a1a2e);
    text-decoration: none;
}

.inwp-header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.inwp-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.inwp-header__actions .inwp-mobile-toggle {
    display: none;
}

/* Default header mobile drawer */
.inwp-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.inwp-mobile-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.inwp-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(340px, 92vw);
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -4px 0 32px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.inwp-mobile-drawer.is-open {
    transform: translateX(0);
}

.inwp-mobile-drawer[hidden] {
    display: flex;
}

/* ---- Default header responsive ---- */
@media (max-width: 767px) {
    .inwp-header__nav {
        display: none;
    }

    .inwp-header__actions .inwp-search-toggle,
    .inwp-header__actions .inwp-cta-btn {
        display: none;
    }

    .inwp-header__actions .inwp-mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: 2px solid var(--inwp-header-text, #1a1a2e);
        border-radius: 4px;
        cursor: pointer;
        padding: 5px;
        color: var(--inwp-header-text, #1a1a2e);
    }

    .inwp-header__actions .inwp-mobile-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
    }
}

@media (min-width: 768px) {
    .inwp-header__actions .inwp-mobile-toggle {
        display: none !important;
    }
}

/* ============================================================
   16. MOBILE DRAWER (shared partial — .hv-drawer)
   Used when get_template_part('mobile-drawer') is included.
   ============================================================ */

/* The partial renders the hv-drawer class directly */

/* ============================================================
   17. NAV MENU FALLBACK (when wp_nav_menu uses .nav-menu class)
   ============================================================ */
.hv-nav .nav-menu,
.hv-nav .inwp-nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.hv-nav .nav-menu>li>a,
.hv-nav .inwp-nav__menu>li>a {
    display: block;
    padding: 8px 14px;
    color: var(--inwp-header-text, #1a1a2e);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.hv-nav .nav-menu>li>a:hover,
.hv-nav .nav-menu>li.current-menu-item>a,
.hv-nav .inwp-nav__menu>li>a:hover {
    color: var(--inwp-primary, #0073aa);
}

.hv-nav .nav-menu>li {
    position: relative;
}

.hv-nav .nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 200;
}

.hv-nav .nav-menu>li:hover>.sub-menu,
.hv-nav .nav-menu>li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hv-nav .nav-menu .sub-menu a {
    display: block;
    padding: 9px 18px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.hv-nav .nav-menu .sub-menu a:hover {
    background: #f5f7fa;
    color: var(--inwp-primary, #0073aa);
}

/* ============================================================
   18. CTA BUTTON MODIFIERS
   ============================================================ */

/* Pill variant (modern-header) */
.hv-cta-btn--pill {
    border-radius: 50px;
    padding: 9px 24px;
}

/* Outline variant (elegant-header) */
.hv-cta-btn--outline {
    background: transparent;
    border: 2px solid var(--inwp-primary, #0073aa);
    color: var(--inwp-primary, #0073aa) !important;
}

.hv-cta-btn--outline:hover {
    background: var(--inwp-primary, #0073aa);
    color: #fff !important;
    box-shadow: none;
}

/* ============================================================
   19. LAYOUT WRAP MODIFIERS
   ============================================================ */

/* Split header — 3-column grid */
.hv-wrap--split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.hv-wrap--split .hv-nav--split-left {
    justify-content: flex-start;
}

.hv-wrap--split .hv-actions--split-right {
    justify-content: flex-end;
}

/* Centered header — nav left, logo center, actions right */
.hv-wrap--centered {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.hv-wrap--centered .hv-nav--left {
    justify-content: flex-start;
}

.hv-wrap--centered .hv-logo--center {
    text-align: center;
    justify-self: center;
}

.hv-wrap--centered .hv-actions--right {
    justify-content: flex-end;
}

/* Landing header — logo left, actions right only */
.hv-wrap--landing {
    justify-content: space-between;
}

/* Nav center only row */
.hv-wrap--nav-center {
    justify-content: center;
    gap: 20px;
}

.hv-wrap--center-logo {
    justify-content: center;
    position: relative;
}

.hv-wrap--center-logo .hv-logo--center {
    margin: 0 auto;
}

/* ============================================================
   20. SIDE PANEL / SIDE MENU HEADER EXTRAS
   ============================================================ */

/* Open button on the header bar (desktop hamburger for side-menu) */
.hv-side-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 2px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    color: inherit;
    flex-shrink: 0;
}

.hv-side-open span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.hv-side-panel .hv-side-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv-side-panel .hv-side-nav li {
    border-bottom: 1px solid #f4f4f4;
}

.hv-side-panel .hv-side-nav li a {
    display: block;
    padding: 13px 20px;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    transition: color .2s, background .15s;
}

.hv-side-panel .hv-side-nav li a:hover {
    color: var(--inwp-primary, #0073aa);
    background: #fafafa;
}

/* ============================================================
   21. VERTICAL HEADER EXTRAS
   ============================================================ */

/* Mobile FAB for vertical header */
.hv-vertical-fab {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--inwp-primary, #0073aa);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(0, 115, 170, .4);
}

.hv-vertical-fab span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.hv-vertical-cta {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.hv-vertical-cta .hv-cta-btn {
    width: 100%;
    justify-content: center;
}

/* Vertical nav sub-menu accordion */
.header-vertical .hv-nav__menu>.menu-item-has-children.is-open>.sub-menu {
    display: block;
}

/* ============================================================
   22. PHONE LINK IN HEADER
   ============================================================ */
.hv-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

.hv-phone:hover {
    color: var(--inwp-primary, #0073aa);
}

/* ============================================================
   23. TOP-BAR SECONDARY NAV
   ============================================================ */
.hv-topbar__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.hv-topbar__menu li a {
    display: block;
    padding: 2px 10px;
    color: inherit;
    font-size: 12px;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, .15);
    transition: color .2s;
    line-height: 1;
}

.hv-topbar__menu li:last-child a {
    border-right: none;
}

.hv-topbar__menu li a:hover {
    color: #fff;
}

/* ============================================================
   24. ECOMMERCE CART ICON
   ============================================================ */
.hv-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    padding: 4px;
}

.hv-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    background: var(--inwp-primary, #0073aa);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ============================================================
   25. SITE NAME (text fallback when no logo image)
   ============================================================ */
.hv-site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.hv-tagline {
    display: block;
    font-size: 11px;
    opacity: .65;
    margin-top: 2px;
    letter-spacing: .3px;
}

/* ============================================================
   26. HEADER-SPECIFIC TOPBAR MODIFIERS
   ============================================================ */
.hv-topbar--stacked {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.hv-topbar--stacked .hv-logo--center {
    text-align: center;
}

/* Header nav-only bar (creative, stacked) */
.hv-header-main--nav-only {
    border-top: 1px solid rgba(0, 0, 0, .07);
    padding: 0 !important;
}

.hv-header-nav-bar {
    border-top: 1px solid rgba(0, 0, 0, .07);
}

/* ============================================================
   27. RESPONSIVE OVERRIDES (mobile/tablet)
   These must come LAST to ensure cascade priority.
   ============================================================ */
@media (max-width: 991px) {

    /* Show hamburger, hide desktop nav */
    .hv-toggle {
        display: flex !important;
    }

    .hv-side-open {
        display: flex !important;
    }

    .hv-nav {
        display: none !important;
    }

    .hv-categories {
        display: none;
    }

    .hv-phone {
        display: none;
    }

    .hv-topbar__menu {
        display: none;
    }

    /* Vertical header becomes overlay on mobile */
    .header-vertical {
        transform: translateX(-110%);
    }

    .header-vertical.is-open {
        transform: translateX(0);
    }

    .hv-vertical-fab {
        display: flex !important;
    }

    /* Creative / stacked - simplify */
    .hv-topbar--creative .hv-logo--center {
        margin: 0 auto;
    }

    /* Split / centered - flatten to flex */
    .hv-wrap--split,
    .hv-wrap--centered {
        display: flex;
        grid-template-columns: unset;
    }
}

@media (max-width: 767px) {
    .hv-cta-btn {
        display: none;
    }

    .hv-search-btn {
        display: none;
    }

    .hv-phone {
        display: none;
    }
}

@media (min-width: 992px) {
    .hv-toggle {
        display: none !important;
    }

    .hv-side-open {
        display: flex !important;
    }

    /* Always visible for side-menu header */
    .hv-vertical-fab {
        display: none !important;
    }

    .header-vertical {
        transform: translateX(0) !important;
    }
}