/* ==========================================================================
   Lozy main header menu — 2026 redesign
   Loaded AFTER assets/sass/header/header.css, so these rules win.
   Everything is namespaced .lz-* so nothing else on the site is affected.
   Markup : resources/views/partials/header/nav-main.blade.php
   Data   : config/menu.php
   ========================================================================== */

.lz-topbar,
.lz-header,
.lz-panel,
.lz-cta,
.lz-row,
.lz-promo-cta,
.lz-navlink,
.lz-call,
.lz-burger {
    font-family: inherit;
}

/* ---------- utility strip above the header ---------- */
.lz-topbar {
    background: #F5F5F5;
    color: #171717;
    border-bottom: 1px solid rgba(23, 23, 26, .10);
    font-size: 12.5px;
    line-height: 1.4;
}

.lz-topbar-in {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 var(--containerfluid);
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lz-topbar-claim {
    margin: 0;
    color: #45454B;
}

.lz-topbar-claim b {
    color: #171717;
    font-weight: 600;
}

.lz-topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lz-topbar-links a {
    color: #e9ebee;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .18s ease;
}

.lz-topbar-links a:hover {
    color: #fff;
}

.lz-topbar-call {
    color: #171717 !important;
}

.lz-topbar-call .lz-ic {
    opacity: .9;
}

/* ---------- header bar ---------- */
header.lz-header {
    display: block;
    padding: 0;
    height: var(--headerheight);
    background: #fff;
    border-bottom: 1px solid var(--line, #e8eaee);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky-header, 999);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.lz-header-in {
    max-width: 1560px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--containerfluid);
    display: flex;
    align-items: center;
    gap: 18px;
}

.lz-logo {
    flex: 0 0 auto;
    display: block;
}

.lz-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.lz-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.lz-nav-list {
    display: flex !important;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lz-item {
    position: static;
}

.lz-navlink {
    appearance: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--black, #111418);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 9px;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.lz-navlink:hover {
    background: #f7f8fa;
    color: var(--primary);
}

.lz-item.is-open>.lz-navlink {
    background: #fff4f4;
    color: var(--primary);
}

.lz-chev {
    opacity: .5;
    transition: transform .2s ease;
}

.lz-item.is-open .lz-chev {
    transform: rotate(180deg);
}

/* ---------- right side: call + quote ---------- */
.lz-acts {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lz-call {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line, #e8eaee);
    border-radius: 10px;
    color: var(--primary);
    background: #fff;
    transition: background .18s ease, border-color .18s ease;
}

.lz-call:hover {
    background: #f7f8fa;
    border-color: #d8dce1;
}

.lz-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 18px;
    border-radius: 9px;
    white-space: nowrap;
    transition: background .18s ease;
}

.lz-cta:hover {
    background: #c4141c;
}

.lz-cta .lz-ic {
    width: 15px;
    height: 15px;
}

.lz-burger {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line, #e8eaee);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    color: var(--black, #111418);
}

/* ---------- mega panel ---------- */
.lz-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line, #e8eaee);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 26px 50px -26px rgba(17, 20, 24, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 5;
}

.lz-panel[hidden] {
    display: none;
}

.lz-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lz-panel-in {
    max-width: 1560px;
    margin: 0 auto;
    padding: 28px var(--containerfluid) 22px;
}

.lz-cols {
    display: grid;
    gap: 26px 30px;
    grid-template-columns: repeat(var(--lz-cols, 1), minmax(0, 1fr));
}

.lz-cols:has(.lz-promo) {
    grid-template-columns: repeat(var(--lz-cols, 1), minmax(0, 1fr)) 262px;
}

.lz-group {
    min-width: 0;
}

.lz-group+.lz-group {
    padding-left: 30px;
    border-left: 1px solid var(--line, #e8eaee);
}

.lz-gh {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #9098a1;
}

.lz-multicol {
    columns: 3;
    column-gap: 28px;
}

.lz-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    color: var(--black, #111418);
    padding: 8px 10px;
    border-radius: 9px;
    break-inside: avoid;
    transition: background .16s ease;
}

.lz-row:hover {
    background: #f7f8fa;
}

.lz-rbody {
    display: block;
    min-width: 0;
}

.lz-rl {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.008em;
    color: var(--black, #111418);
}

.lz-row:hover .lz-rl {
    color: var(--primary);
}

.lz-rd {
    display: block;
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 2px;
}

.lz-row-arrow {
    flex: 0 0 auto;
    margin-top: 3px;
    width: 14px;
    height: 14px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity .16s ease, transform .16s ease;
}

.lz-row:hover .lz-row-arrow {
    opacity: 1;
    transform: none;
}

.lz-chip {
    display: inline-block;
    background: #fff4f4;
    color: #c4141c;
    border: 1px solid #f6cfd1;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 7px;
    margin-left: 7px;
    vertical-align: 1px;
}

.lz-promo {
    background: #f7f8fa;
    border: 1px solid var(--line, #e8eaee);
    border-radius: 14px;
    padding: 18px;
    align-self: start;
}

.lz-promo-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--line, #e8eaee);
    color: var(--primary);
}

.lz-promo-stat {
    margin: 12px 0 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9098a1;
}

.lz-promo-t {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--black, #111418);
}

.lz-promo-b {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
}

.lz-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #c4141c;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.lz-promo-cta .lz-ic {
    width: 14px;
    height: 14px;
    opacity: 1;
    transform: none;
    color: inherit;
}

.lz-promo-cta:hover {
    text-decoration: underline;
}

.lz-panel-foot {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line, #e8eaee);
}

.lz-panel-foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.lz-panel-foot a:hover {
    text-decoration: underline;
}

/* ---------- mobile off-canvas menu (.ham-pop): working accordion ----------
   The toggle JS (.nav-toggle → .has-sub.is-expanded) already existed but the
   CSS for the sub-lists and the caret was never written, so every sub-list
   was permanently visible. These rules close that gap. */
.ham-pop .model-body .nav-list .has-sub>.nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: none;
    border: 0;
    padding: 6px 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--black, #111418);
    transition: color .2s ease;
}

.ham-pop .model-body .nav-list .has-sub>.nav-toggle:hover {
    color: var(--primary);
}

.ham-pop .model-body .nav-list .nav-caret {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin: 0 8px 6px 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.ham-pop .model-body .nav-list .has-sub.is-expanded>.nav-toggle .nav-caret {
    transform: rotate(-135deg);
    margin-bottom: 0;
}

.ham-pop .model-body .nav-list .nav-sublist {
    display: none;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ham-pop .model-body .nav-list .has-sub.is-expanded>.nav-sublist {
    display: block;
}

.ham-pop .model-body .nav-list .nav-sublist li+li {
    border-top: 1px solid rgba(17, 20, 24, .08);
}

.ham-pop .model-body .nav-list .nav-sublist li a {
    display: block;
    padding: 12px 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--black, #111418);
    text-decoration: none;
    transition: color .18s ease;
}

.ham-pop .model-body .nav-list .nav-sublist li a:hover {
    color: var(--primary);
}

.ham-pop .model-body .nav-list .nav-sublist .nav-sub-viewall {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 1366px) {
    .ham-pop .model-body .nav-list .has-sub>.nav-toggle {
        font-size: 25px;
    }
}

@media (max-width: 675px) {
    .ham-pop .model-body .nav-list .has-sub>.nav-toggle {
        font-size: 24px;
    }
}

/* ---------- keyboard + motion ---------- */
.lz-navlink:focus-visible,
.lz-row:focus-visible,
.lz-cta:focus-visible,
.lz-call:focus-visible,
.lz-burger:focus-visible,
.lz-promo-cta:focus-visible,
.lz-panel-foot a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
    .lz-navlink {
        font-size: 14px;
        padding: 12px 8px;
    }

    .lz-header-in,
    .lz-nav {
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .lz-topbar-claim {
        display: none;
    }
}

@media (max-width: 1024px) {

    .lz-nav-list,
    .lz-cta {
        display: none !important;
    }

    .lz-burger {
        display: inline-flex !important;
    }

    .lz-nav {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .lz-topbar-links a:not(.lz-topbar-call) {
        display: none;
    }

    .lz-topbar-in {
        justify-content: center;
    }

    .lz-logo img {
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lz-panel,
    .lz-row,
    .lz-navlink,
    .lz-row-arrow,
    .lz-chev {
        transition: none !important;
    }
}