/* ======================================================
   AUTODOZVOLA.HR — PREMIUM FLOATING HEADER
   ====================================================== */

:root {
    --ad-header-navy: #102b50;
    --ad-header-blue: #1769ed;
    --ad-header-muted: #64748b;
}

.ad-premium-header,
.ad-premium-header *,
.ad-premium-header *::before,
.ad-premium-header *::after {
    box-sizing: border-box;
}

.ad-premium-header {
    position: sticky;
    top: 12px;
    z-index: 9999;
    width: calc(100% - 40px);
    max-width: 1720px;
    margin: 12px auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body.admin-bar .ad-premium-header {
    top: 44px;
}

.ad-header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 86px;
    padding: 12px 24px;
    border: 1px solid rgba(214, 226, 243, .9);
    border-radius: 100px;
    background: rgba(255, 255, 255, .97);
    box-shadow:
        0 10px 36px rgba(16, 43, 80, .10),
        0 2px 7px rgba(16, 43, 80, .04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        box-shadow .25s ease,
        min-height .25s ease;
}

.ad-premium-header.is-scrolled .ad-header-shell {
    box-shadow: 0 12px 42px rgba(16, 43, 80, .16);
}

/* LOGO */

.ad-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
    color: var(--ad-header-navy);
    text-decoration: none;
}

.ad-header-brand:hover {
    text-decoration: none;
}

.ad-header-brand-symbol {
    display: grid;
    grid-template-columns: repeat(2, 15px);
    grid-template-rows: repeat(2, 15px);
    gap: 4px;
    flex-shrink: 0;
    transform: rotate(-12deg);
}

.ad-header-brand-symbol span {
    border-radius: 3px;
    background: #c9a568;
}

.ad-header-brand-symbol span:nth-child(1),
.ad-header-brand-symbol span:nth-child(4) {
    background: #102b50;
}

.ad-header-brand-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-header-brand-content strong {
    color: #102b50;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1.2px;
    white-space: nowrap;
}

.ad-header-brand-content strong span {
    color: #28637b;
}

.ad-header-brand-content small {
    color: #6a7f9b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
    white-space: nowrap;
}

/* NAVIGATION */

.ad-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.ad-header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ad-header-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ad-header-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 11px 12px;
    border-radius: 30px;
    color: #233d5f;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .2s ease,
        color .2s ease;
}

.ad-header-menu > li > a:hover {
    background: #eef5ff;
    color: #1769ed;
    text-decoration: none;
}

.ad-header-menu > li.current-menu-item > a,
.ad-header-menu > li.current_page_item > a,
.ad-header-menu > li.current-menu-ancestor > a,
.ad-header-menu > li > a.ad-nav-active {
    background: #1769ed;
    color: #fff;
}

/* SOUS-MENUS WORDPRESS */

.ad-header-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 10;
    min-width: 210px;
    margin: 0;
    padding: 9px;
    border: 1px solid #e1e9f4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(16,43,80,.12);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: .2s ease;
}

.ad-header-menu li:hover > .sub-menu,
.ad-header-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ad-header-menu .sub-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 9px;
    color: #233d5f;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.ad-header-menu .sub-menu a:hover {
    background: #eef5ff;
    color: #1769ed;
}

/* ACTIONS */

.ad-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ad-header-language {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ad-header-flag {
    font-size: 18px;
}

/* BOUTON CONTACT */

.ad-header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 17px;
    border-radius: 40px;
    background: linear-gradient(135deg, #1769ed, #0751ce);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 17px rgba(23,105,237,.18);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.ad-header-contact:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 9px 23px rgba(23,105,237,.25);
}

.ad-header-contact svg {
    width: 17px;
    height: 17px;
}

.ad-header-contact-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    font-size: 14px;
}

/* MOBILE TOGGLE */

.ad-header-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid #e0e9f5;
    border-radius: 13px;
    background: #f4f8ff;
    cursor: pointer;
}

.ad-header-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #102b50;
    transition: transform .2s ease, opacity .2s ease;
}

.ad-header-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ad-header-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.ad-header-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* DESKTOP COMPACT */

@media (max-width: 1350px) {
    .ad-header-shell {
        gap: 14px;
        padding: 12px 18px;
    }

    .ad-header-brand-content strong {
        font-size: 19px;
    }

    .ad-header-menu > li > a {
        padding: 10px 8px;
        font-size: 10px;
    }

    .ad-header-actions {
        gap: 9px;
    }
}

/* TABLET + MOBILE */

@media (max-width: 1150px) {
    .ad-premium-header {
        width: calc(100% - 28px);
    }

    .ad-header-shell {
        min-height: 72px;
        padding: 11px 17px;
        border-radius: 25px;
    }

    .ad-header-toggle {
        display: flex;
    }

    .ad-header-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        width: 100%;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 15px;
        border: 1px solid #e1e9f4;
        border-radius: 22px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(16,43,80,.14);
    }

    .ad-header-nav.is-open {
        display: block;
    }

    .ad-header-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .ad-header-menu > li > a {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-height: 43px;
        padding: 12px 14px;
        font-size: 12px;
    }

    .ad-header-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: 3px 0 8px 15px;
        padding: 4px;
        border: 0;
        border-left: 2px solid #e0e9f5;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* PETITS ÉCRANS */

@media (max-width: 600px) {
    .ad-premium-header {
        width: calc(100% - 20px);
        margin: 10px auto;
        top: 8px;
    }

    body.admin-bar .ad-premium-header {
        top: 54px;
    }

    .ad-header-shell {
        min-height: 65px;
        gap: 8px;
        padding: 10px 13px;
        border-radius: 21px;
    }

    .ad-header-brand {
        gap: 9px;
    }

    .ad-header-brand-symbol {
        grid-template-columns: repeat(2, 11px);
        grid-template-rows: repeat(2, 11px);
        gap: 3px;
    }

    .ad-header-brand-content strong {
        font-size: 17px;
        letter-spacing: -.9px;
    }

    .ad-header-brand-content small {
        font-size: 6px;
        letter-spacing: .6px;
    }

    .ad-header-language,
    .ad-header-contact {
        display: none;
    }

    .ad-header-toggle {
        width: 41px;
        height: 41px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-premium-header *,
    .ad-premium-header *::before,
    .ad-premium-header *::after {
        transition: none !important;
    }
}





/* ==================================================
   HEADER PREMIUM — AJUSTEMENT ACCUEIL
   ================================================== */

body.home .ad-premium-header {
    margin-top: 8px;
    margin-bottom: 0;
}

body.home .ad-header-shell {
    border-radius: 100px;
}

body.home .site-main {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 600px) {
    body.home .ad-premium-header {
        margin-top: 8px;
    }

    body.home .ad-header-shell {
        border-radius: 22px;
    }
}






/* ==================================================
   AUTODOZVOLA.HR — MENU PRINCIPAL PREMIUM
   ================================================== */

@media (min-width: 1151px) {

    .ad-header-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
    }

    .ad-header-menu > li > a {
        padding: 12px 15px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: -0.15px;
        border-radius: 50px;
        transition:
            color .2s ease,
            background .2s ease;
    }

    .ad-header-menu > li > a:hover {
        color: #1769ed;
        background: #edf4ff;
    }

    .ad-header-menu > li > a.ad-nav-active {
        color: #fff;
        background: #1769ed;
    }
}

@media (max-width: 1150px) {

    .ad-header-menu {
        gap: 5px;
    }

    .ad-header-menu > li > a {
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 13px;
    }
}