/* ==========================================================================
   CEVEK Header — Responsive & Mobile Menu
   Only adds responsive behaviour — desktop styles stay in main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Header scroll hide/show
   -------------------------------------------------------------------------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    transition: transform 0.35s ease;
    will-change: transform;
}

#header .header__inner {
    display: flex;
    align-items: center;
}

#header.header--hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

/* Offset body content so it doesn't hide behind the fixed header */
body {
    padding-top: var(--header-height, 100px);
}

/* --------------------------------------------------------------------------
   1. Burger Button  (hidden on desktop, visible < 1024px)
   -------------------------------------------------------------------------- */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu__line {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animate into X when overlay is open */
body.mobile-nav-open .burger-menu__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.mobile-nav-open .burger-menu__line:nth-child(2) {
    opacity: 0;
}
body.mobile-nav-open .burger-menu__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   2. Mobile Nav Overlay
   -------------------------------------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.35s ease;
}

body.mobile-nav-open .mobile-nav-overlay {
    visibility: visible;
    pointer-events: auto;
}

body.mobile-nav-open .mobile-nav-overlay::before {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   3. Mobile Nav Panel (slides in from right)
   -------------------------------------------------------------------------- */
.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background-color: #1c1c1c;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile-nav-open .mobile-nav {
    transform: translateX(0);
}

/* Header row: logo + close */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__logo svg {
    display: block;
}

.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.mobile-nav__close:hover {
    border-color: #f37233;
    background-color: rgba(243, 114, 51, 0.1);
}

/* --------------------------------------------------------------------------
   4. Mobile Nav Menu Links
   -------------------------------------------------------------------------- */
.mobile-nav__menu {
    padding: 24px 28px;
    flex: 1;
}

.mobile-nav__menu ul,
ul.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav__menu ul li,
ul.mobile-nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav__menu ul li:last-child,
ul.mobile-nav__list li:last-child {
    border-bottom: none;
}

.mobile-nav__menu ul li a,
ul.mobile-nav__list li a {
    display: block;
    padding: 16px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav__menu ul li a:hover,
ul.mobile-nav__list li a:hover {
    color: #f37233;
    padding-left: 8px;
}

.mobile-nav__menu ul li a span,
ul.mobile-nav__list li a span {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Mobile Nav Actions (CTA + toggle)
   -------------------------------------------------------------------------- */
.mobile-nav__actions {
    padding: 0 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 24px 13px 28px;
    background-color: #f37233;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 0;
    transition: background-color 0.3s ease;
    letter-spacing: .6px;
}

.mobile-nav__cta:hover {
    background-color: #e0622a;
}

.mobile-nav__cta svg {
    background-color: #3a3d3f;
    padding: 5px;
    height: 30px;
    width: 30px;
}

.mobile-nav__switch {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4px;
    gap: 0;
}

.mobile-nav__switch-option {
    display: block;
    padding: 10px 24px;
    border-radius: 26px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    flex: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: 0.9px;
}

.mobile-nav__switch-option.is-active {
    background-color: #f37233;
    color: #ffffff;
}

.mobile-nav__switch-option:not(.is-active):hover {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. Mobile Nav Contact
   -------------------------------------------------------------------------- */
.mobile-nav__contact {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav__contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-nav__contact a:hover {
    color: #f37233;
}

/* --------------------------------------------------------------------------
   7. Lock body scroll when menu is open
   -------------------------------------------------------------------------- */
body.mobile-nav-open {
    overflow: hidden;
}

/* ==========================================================================
   Dropdown Menu (desktop)
   ========================================================================== */

#menu .menu-item-has-children {
    position: relative;
}

#menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
    vertical-align: middle;
}

#menu .menu-item-has-children.is-open > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

#menu .sub-menu {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 500;
}

#menu .menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
}

#menu .sub-menu li a:hover {
    color: #f37233;
    padding-left: 28px;
    background-color: #fafafa;
}

#menu .sub-menu li + li {
    border-top: 1px solid #f0f0f0;
}

/* ==========================================================================
   Dropdown Menu (mobile)
   ========================================================================== */

/* Li з підменю — position relative для кнопки */
.mobile-nav__menu .menu-item-has-children {
    position: relative;
}

/* Посилання займає весь простір крім кнопки */
.mobile-nav__menu .menu-item-has-children > a {
    display: block;
    padding-right: 48px;
}

/* Прибираємо ::after стрілку з посилання */
.mobile-nav__menu .menu-item-has-children > a::after {
    display: none;
}

/* Мобільне підменю */
.mobile-nav__menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
}

.mobile-nav__menu .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.mobile-nav__menu .sub-menu li {
    border-bottom: 0 solid rgba(255, 255, 255, 0.04) !important;
}

.mobile-nav__menu .sub-menu li a {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 15px 0 !important;
    padding-right: 0 !important;
}

.mobile-nav__menu .sub-menu li a:hover {
    color: #f37233 !important;
    padding-left: 8px !important;
}

/* Кнопка-стрілка (button, поза межами <a>) */
.dropdown-arrow {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 2px 2px 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.dropdown-arrow::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
}

.menu-item-has-children.is-open > .dropdown-arrow {
    background-color: rgba(243, 114, 51, 0.15);
    border-color: #f37233;
}

.menu-item-has-children.is-open > .dropdown-arrow::after {
    border-color: #f37233;
    transform: rotate(-135deg) translateY(0px) translateX(-1px);
}

/* Показуємо стрілку тільки в мобільному меню */
.mobile-nav__menu .menu-item-has-children > .dropdown-arrow {
    display: inline-flex;
}


/* Фіксуємо позицію стрілки відносно рядка посилання */
.mobile-nav__menu .menu-item-has-children {
    position: relative;
}

.mobile-nav__menu .menu-item-has-children > .dropdown-arrow {
    display: inline-flex;
    top: 8px; /* замість 50% — фіксована відстань від верху */
    transform: none;
}

/*-------- Testimonials hiden --------*/
.stk-b82c13d{
        display: none;
}

/*-------- END Testimonials hiden--------*/

/* ==========================================================================
   8. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }

    #header .menu-box,
    #header .btn-header,
    #header .switch-toggle:not(.mobile-nav__toggle) {
        display: none !important;
    }

    #header .header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 24px;
    }

    #header #branding {
        flex-shrink: 0;
    }
}


@media (max-width: 768px) {
    body {
        padding-top: var(--header-height, 60px);
    }
}

@media (max-width: 600px) {
    #header .header__inner {
        padding: 3px 16px;
    }

    #header #site-title svg {
        width: 140px;
        height: auto;
    }

    .mobile-nav {
        width: 100%;
        max-width: 100vw;
    }

    .mobile-nav__header {
        padding: 16px 20px;
    }

    .mobile-nav__menu {
        padding: 20px 20px;
    }

    .mobile-nav__actions {
        padding: 0 20px 20px;
    }

    .mobile-nav__contact {
        padding: 16px 20px;
    }
    #header .header__inner {
        flex-wrap: wrap;
        flex-direction: row;
    }
}