/* Header CSS */

.nw-nav__link:hover, .nw-nav__link.active {
    color: #fcc803;
}

.nw-nav__link:hover::after, .nw-nav__link.active::after {
    width: 100%;
}

.nw-topbar {
    width: 100%;
    background: #111827;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 500;
}

.nw-topbar__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nw-topbar__left, .nw-topbar__right {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.nw-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nw-topbar__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--nw-primary);
}

.nw-topbar__link {
    transition: color 0.25s ease;
}

.nw-topbar__link:hover {
    color: #ffffff;
}

.nw-nav-placeholder {
    display: none;
    width: 100%;
    height: 94px;
}

.nw-nav-placeholder.is-show {
    display: block;
}

.nw-header__main {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--nw-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.nw-header__main.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nw-header__inner {
    width: 100%;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    min-width: 0;
}

.nw-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    min-width: 0;
}

.nw-logo__img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 245px;
    object-fit: contain;
    flex: 0 0 auto;
}

.nw-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nw-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 2.25vw, 42px);
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.nw-nav__item {
    position: relative;
    flex: 0 0 auto;
}

.nw-nav__link {
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 94px;
    color: var(--nw-text);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nw-nav__link::after {
    background-color: #fcc803;
    content: "";
    position: absolute;
    left: 50%;
    bottom: 27px;
    width: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--nw-primary);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nw-nav__link:hover, .nw-nav__link[aria-current="page"] {
    color: #000000;
}

.nw-nav__link:hover::after, .nw-nav__link[aria-current="page"]::after {
    width: 30px;
}

.nw-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.nw-quote {
    height: 48px;
    min-width: 138px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--nw-primary);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(252, 200, 3, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nw-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(252, 200, 3, 0.38);
}

.nw-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--nw-border);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.nw-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: #111111;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nw-menu-btn[data-open="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nw-menu-btn[data-open="true"] span:nth-child(2) {
    opacity: 0;
}

.nw-menu-btn[data-open="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nw-drawer-head, .nw-drawer-quote {
    display: none;
}

.nw-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nw-overlay.is-show {
    opacity: 1;
    pointer-events: auto;
}

.nw-product-card.is-show {
    transform: translateY(0);
    opacity: 1;
}

.nw-service-card.is-show {
    transform: translateY(0);
    opacity: 1;
}

.nw-lightbox.is-show {
    display: flex;
}

@media (max-width: 1440px) and (min-width: 1025px) {

    .nw-topbar {
        font-size: 13px;
    }

    .nw-topbar__inner {
        min-height: 38px;
    }

    .nw-header__inner {
        height: 84px;
        gap: 18px;
    }

    .nw-logo__img {
        height: 52px;
        max-width: 215px;
    }

    .nw-nav__list {
        gap: clamp(14px, 1.35vw, 22px);
    }

    .nw-nav__link {
        height: 84px;
        font-size: 15px;
    }

    .nw-nav__link::after {
        bottom: 24px;
    }

    .nw-quote {
        height: 44px;
        min-width: 118px;
        padding: 0 20px;
        font-size: 14px;
    }

}

@media (max-width: 1180px) and (min-width: 1025px) {

    .nw-nav__list {
        gap: 12px;
    }

    .nw-nav__link {
        font-size: 14px;
    }

}

@media (max-width: 1024px) and (min-width: 769px) {

    .nw-topbar {
        font-size: 13px;
    }

    .nw-topbar__inner {
        min-height: 38px;
    }

    .nw-topbar__left, .nw-topbar__right {
        gap: 14px;
    }

    .nw-topbar__item--location {
        display: none;
    }

    .nw-header__inner {
        height: 78px;
    }

    .nw-logo__img {
        height: 52px;
        max-width: 210px;
    }

    .nw-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
        width: min(430px, 82%);
        max-width: 100%;
        height: 100dvh;
        display: block;
        background: #ffffff;
        box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16);
        transform: translateX(105%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nw-nav.is-open {
        transform: translateX(0);
    }

    .nw-drawer-head {
        height: 78px;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--nw-border);
    }

    .nw-drawer-head strong {
        font-size: 18px;
    }

    .nw-drawer-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 10px;
        background: #f3f4f6;
        color: #111111;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

    .nw-nav__list {
        display: block;
        padding: 16px 24px;
    }

    .nw-nav__item {
        border-bottom: 1px solid #f1f5f9;
    }

    .nw-nav__link {
        width: 100%;
        height: 58px;
        font-size: 17px;
        justify-content: space-between;
    }

    .nw-nav__link::after {
        display: none;
    }

    .nw-drawer-quote {
        display: flex;
        margin: 20px 24px 0;
        height: 48px;
        border-radius: 999px;
        background: var(--nw-primary);
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 800;
    }

    .nw-menu-btn {
        display: flex;
    }

    .nw-quote {
        min-width: 124px;
        height: 44px;
        padding: 0 22px;
        font-size: 14px;
    }

}

@media (max-width: 768px) {

    .nw-topbar {
        font-size: 12px;
    }

    .nw-topbar__inner {
        min-height: 36px;
        justify-content: center;
    }

    .nw-topbar__left {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .nw-topbar__right, .nw-topbar__item--link {
        display: none;
    }

    .nw-topbar__item {
        gap: 6px;
    }

    .nw-topbar__icon {
        width: 15px;
        height: 15px;
    }

    .nw-header__inner {
        height: 70px;
        gap: 10px;
    }

    .nw-logo__img {
        height: 48px;
        max-width: 190px;
    }

    .nw-quote {
        display: none;
    }

    .nw-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .nw-nav {
        position: fixed;
        top: 70px;
        left: 0;
        z-index: 1100;
        width: 100%;
        max-width: 100%;
        max-height: 0;
        overflow-y: hidden;
        overflow-x: hidden;
        display: block;
        background: #ffffff;
        border-bottom: 1px solid var(--nw-border);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
        transition: max-height 0.28s ease;
    }

    .nw-nav.is-open {
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
    }

    .nw-drawer-head {
        display: none;
    }

    .nw-nav__list {
        display: block;
        padding: 8px 15px 12px;
    }

    .nw-nav__item {
        border-bottom: 1px solid #f1f5f9;
    }

    .nw-nav__item:last-child {
        border-bottom: none;
    }

    .nw-nav__link {
        width: 100%;
        height: 54px;
        font-size: 17px;
        justify-content: space-between;
    }

    .nw-nav__link::after {
        display: none;
    }

    .nw-drawer-quote {
        display: flex;
        margin: 10px auto;
        height: 48px;
        border-radius: 12px;
        background: var(--nw-primary);
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 800;
        width:85%;
    }

    .nw-product-card.is-show {
        transform: translateY(0) !important;
        opacity: 1;
    }

}

@media (max-width: 390px) {

    .nw-logo__img {
        height: 42px;
        max-width: 160px;
    }

    .nw-menu-btn {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

}
