/* ==============================================
   FILE: assets/css/header.css
   ART-FOCUS STUDIO — artfocus-theme  v3.3
   FIX: посилена ізоляція десктоп-елементів на мобільному
   Мобільний: ТІЛЬКИ лого + бургер
   Десктоп:   лого + меню + соцмережі + телефон
   ============================================== */

/* ── RESET (scoped) ── */
#artf-masthead *,
#artf-masthead *::before,
#artf-masthead *::after { box-sizing: border-box; }

#artf-masthead ul,
#artf-masthead li  { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#artf-masthead li::before { content: none !important; }
#artf-masthead a   { text-decoration: none !important; }

/* ── HEADER SHELL ── */
#artf-masthead {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 9000;
    pointer-events: none;
}

/* ── CONTAINER ── */
.artf-container { padding: 0 40px; }

/* ── ROW ── */
.artf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 24px;
    margin-top: 10px;
    background: rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    transition: background 0.3s, border-color 0.3s, margin-top 0.3s;
    gap: 16px;
}

.artf-row.is-scrolled {
    margin-top: 4px;
    background: rgba(8, 8, 8, 0.94);
    border-color: rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
}

/* ── ЛОГОТИП (завжди видимий) ── */
.artf-logo {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    text-decoration: none !important;
}

.artf-logo-main {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.artf-logo-sub {
    font-family: 'Unbounded', sans-serif;
    font-size: 7px;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    white-space: nowrap;
}

.artf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
    line-height: 0;
}

/* ── БУРГЕР ── */
.artf-burger {
    display: none; /* базово прихований — показується тільки @media ≤1199px */
    position: relative;
    width: 32px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    z-index: 9001;
}

.artf-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity   0.25s ease,
        width     0.3s ease;
}

.artf-burger .artf-b2 { width: 70%; margin-left: auto; }

.artf-burger.is-active .artf-b1 { transform: translateY(10px) rotate(45deg);  width: 100%; }
.artf-burger.is-active .artf-b2 { opacity: 0; transform: scaleX(0); }
.artf-burger.is-active .artf-b3 { transform: translateY(-10px) rotate(-45deg); width: 100%; }

/* ── ДЕСКТОП-БЛОК ── */
/* Прихований за замовчуванням — показується ТІЛЬКИ на ≥1200px */
.artf-desk-block {
    display: none;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

/* Навігація всередині десктоп-блоку */
.artf-desk-nav { display: flex; align-items: center; }

.artf-desk-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 2px;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.artf-desk-menu > li {
    position: relative;
    list-style: none !important;
}

.artf-desk-menu > li > a {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 8px 13px;
    border-radius: 8px;
    display: block;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color 0.18s, background 0.18s;
    line-height: 1;
}

.artf-desk-menu > li > a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Dropdown */
.artf-desk-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    transform: translateY(6px);
    background: rgba(10, 10, 10, 0.98);
    min-width: 290px;
    padding: 8px !important;
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 10000;
    list-style: none !important;
    margin: 0 !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.artf-desk-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -18px; left: 0;
    width: 100%; height: 18px;
    background: transparent;
}

.artf-desk-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.artf-desk-menu .sub-menu li { list-style: none !important; }

.artf-desk-menu .sub-menu li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.055) !important;
}

.artf-desk-menu .sub-menu li a {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    padding: 10px 14px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border-radius: 8px;
    line-height: 1.45;
    text-decoration: none !important;
    border: none !important;
    transition: background 0.15s, color 0.15s;
}

.artf-desk-menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

/* ── ДЕСКТОП ACTIONS ── */
.artf-desk-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.artf-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.artf-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    text-decoration: none !important;
    transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.18s;
}

.artf-social-btn svg { display: block; flex-shrink: 0; }

.artf-social-btn.artf-social-tg:hover {
    background: rgba(33, 150, 243, 0.18);
    border-color: rgba(33, 150, 243, 0.65);
    color: #29b6f6;
    transform: translateY(-1px);
}

.artf-social-btn.artf-social-ig:hover {
    background: rgba(225, 48, 108, 0.14);
    border-color: rgba(225, 48, 108, 0.6);
    color: #f06292;
    transform: translateY(-1px);
}

.artf-actions-divider {
    display: block;
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    flex-shrink: 0;
}

.artf-phone-desk {
    display: inline-flex;
    align-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    padding: 9px 17px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.18s;
}

.artf-phone-desk:hover {
    background: #fff;
    color: #000 !important;
    border-color: #fff;
    transform: translateY(-1px);
}

/* ==============================================
   МОБІЛЬНИЙ ≤ 1199px
   Показуємо: ТІЛЬКИ лого + бургер
   Все інше — жорстко заблоковано
   ============================================== */
@media (max-width: 1199px) {

    .artf-container { padding: 0; }

    .artf-row {
        padding: 10px 16px;
        margin: 8px 12px 0;
        border-radius: 14px;
        gap: 0;
    }

    /* Лого — менший шрифт */
    .artf-logo-main { font-size: 18px; }
    .artf-logo-sub  { font-size: 6.5px; }
    .artf-icon      { padding: 0 4px; }
    .artf-icon svg  {
        width: 18px !important; height: 18px !important;
        min-width: 18px !important; max-width: 18px !important;
    }

    /* ── Бургер — показати ── */
    .artf-burger { display: flex !important; }

    /* ════════════════════════════════════════════
       КРИТИЧНО: весь десктоп-блок та всі його
       дочірні елементи — жорстко приховані.
       Подвійний селектор (#artf-masthead .artf-desk-block)
       перебиває будь-який зовнішній CSS теми.
    ════════════════════════════════════════════ */
    #artf-masthead .artf-desk-block,
    #artf-masthead .artf-desk-nav,
    #artf-masthead .artf-desk-menu,
    #artf-masthead .artf-desk-actions,
    #artf-masthead .artf-social-icons,
    #artf-masthead .artf-social-btn,
    #artf-masthead .artf-actions-divider,
    #artf-masthead .artf-phone-desk {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
}

/* ==============================================
   ДЕСКТОП ≥ 1200px
   Бургер схований, десктоп-блок показаний
   ============================================== */
@media (min-width: 1200px) {

    /* ── Бургер — приховати ── */
    #artf-masthead .artf-burger { display: none !important; }

    /* ── Десктоп-блок — показати ── */
    #artf-masthead .artf-desk-block { display: flex !important; }
}