/* Header and footer reusable components */

.bep-header-hotline {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--bep-primary), #0878f9);
    box-shadow: 0 7px 20px rgba(11, 79, 156, .2);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bep-header-hotline:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(11, 79, 156, .28);
}

.bep-header-hotline__icon {
    display: inline-flex;
    width: 35px;
    min-width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bep-primary);
    background: #fff;
    font-size: 14px;
}

.bep-header-hotline__text {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.bep-header-hotline__text small {
    color: rgba(255, 255, 255, .78);
    font-size: 10px;
}

.bep-header-hotline__text strong {
    color: #fff;
    font-size: 14px;
}

/* Footer */
.bep-footer-company h3,
.bep-footer-quote h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
}

.bep-footer-company > p,
.bep-footer-quote > p {
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.65;
}

.bep-footer-contact-list,
.bep-footer-links ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bep-footer-contact-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
    color: rgba(255, 255, 255, .74);
    font-size: 13px;
    line-height: 1.5;
}

.bep-footer-contact-list a,
.bep-footer-links a {
    color: rgba(255, 255, 255, .74);
    text-decoration: none;
}

.bep-footer-contact-list a:hover,
.bep-footer-links a:hover {
    color: #fff;
}

.bep-footer-links li {
    position: relative;
    padding-left: 15px;
    font-size: 13px;
}

.bep-footer-links li::before {
    position: absolute;
    left: 0;
    color: var(--bep-accent);
    content: "›";
}

.bep-footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.bep-footer-socials a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.bep-footer-socials a:hover {
    border-color: var(--bep-accent);
    color: #fff;
    background: var(--bep-accent);
}

.bep-footer-quote {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
}

.bep-footer-quote__badge {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(244, 155, 36, .22);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bep-footer-quote__buttons {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.bep-footer-quote__buttons a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bep-footer-quote__buttons a:last-child {
    border-color: var(--bep-accent);
    background: var(--bep-accent);
}

.bep-footer-quote__buttons a:hover {
    color: #fff;
    border-color: #fff;
}

/* Flatsome footer support */
.footer-wrapper .widget-title,
.footer-wrapper h3 {
    color: #fff;
}

.footer-wrapper {
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 849px) {
    .bep-header-hotline__text small {
        display: none;
    }

    .bep-header-hotline {
        min-height: 40px;
        padding: 5px 10px;
    }
}

@media (max-width: 549px) {
    .bep-header-hotline__text {
        display: none;
    }

    .bep-header-hotline {
        min-width: 40px;
        padding: 5px;
    }
}
/* =========================================================
   HEADER DESKTOP – BẾP CÔNG NGHIỆP
   ========================================================= */

@media (min-width: 850px) {

    /* Khung header chính */
    .header-main {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #e8eef5;
    }

    .header-main .header-inner {
        min-height: 78px;
        align-items: center;
    }

    /* Logo */
    .header-main .logo img {
        max-height: 54px;
        width: auto;
        object-fit: contain;
    }

    /* Khoảng cách danh sách menu */
    .header-nav-main {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .header-nav-main > li {
        position: relative;
        margin: 0 !important;
    }

    /* Link menu cấp 1 */
    .header-nav-main > li > a {
        position: relative;
        display: flex;
        min-height: 44px;
        align-items: center;
        gap: 5px;
        padding: 0 14px !important;
        border-radius: 7px;
        color: #23364d;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.015em;
        text-transform: uppercase;
        transition:
            color 0.2s ease,
            background-color 0.2s ease;
    }

    /* Gạch nhấn dưới menu */
    .header-nav-main > li > a::after {
        position: absolute;
        right: 14px;
        bottom: 3px;
        left: 14px;
        height: 2px;
        border-radius: 2px;
        background: #f49b24;
        content: "";
        opacity: 0;
        transform: scaleX(0);
        transform-origin: center;
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .header-nav-main > li:hover > a,
    .header-nav-main > li.active > a,
    .header-nav-main > li.current-menu-item > a,
    .header-nav-main > li.current-menu-ancestor > a {
        color: #0b4f9c;
        background: #f2f7fc;
    }

    .header-nav-main > li:hover > a::after,
    .header-nav-main > li.active > a::after,
    .header-nav-main > li.current-menu-item > a::after,
    .header-nav-main > li.current-menu-ancestor > a::after {
        opacity: 1;
        transform: scaleX(1);
    }

    /* Mũi tên menu con */
    .header-nav-main > li.has-dropdown > a i {
        margin-left: 1px;
        color: #718096;
        font-size: 10px;
        transition: transform 0.2s ease;
    }

    .header-nav-main > li.has-dropdown:hover > a i {
        color: #0b4f9c;
        transform: rotate(180deg);
    }

    /* Dropdown */
    .header-nav-main .nav-dropdown {
        min-width: 245px;
        padding: 10px;
        border: 1px solid #e2eaf3;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 18px 45px rgba(17, 55, 95, 0.16);
    }

    /* Mũi nhọn trên dropdown */
    .header-nav-main .nav-dropdown::before {
        position: absolute;
        top: -7px;
        left: 30px;
        width: 13px;
        height: 13px;
        border-top: 1px solid #e2eaf3;
        border-left: 1px solid #e2eaf3;
        background: #fff;
        content: "";
        transform: rotate(45deg);
    }

    /* Từng menu con */
    .header-nav-main .nav-dropdown > li {
        margin: 0;
        border: 0 !important;
    }

    .header-nav-main .nav-dropdown > li > a {
        position: relative;
        display: flex;
        min-height: 43px;
        align-items: center;
        padding: 10px 13px 10px 30px !important;
        border: 0 !important;
        border-radius: 7px;
        color: #33475f;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        text-transform: none;
        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            padding-left 0.2s ease;
    }

    .header-nav-main .nav-dropdown > li > a::before {
        position: absolute;
        left: 13px;
        color: #f49b24;
        content: "›";
        font-size: 18px;
        line-height: 1;
    }

    .header-nav-main .nav-dropdown > li > a:hover {
        padding-left: 34px !important;
        color: #0b4f9c;
        background: #f1f7fd;
    }

    /* Khối hotline */
    .header-main .bep-header-hotline {
        margin-left: 12px;
        box-shadow: 0 8px 22px rgba(11, 79, 156, 0.19);
    }

    /* Header sticky */
    .header-wrapper.stuck .header-main,
    .header-wrapper .stuck .header-main {
        border-bottom-color: transparent;
        box-shadow: 0 8px 28px rgba(17, 48, 82, 0.12);
    }
}
/* Laptop nhỏ: thu nhẹ khoảng cách menu */
@media (min-width: 850px) and (max-width: 1100px) {
    .header-nav-main > li > a {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 12px;
    }

    .header-nav-main > li > a::after {
        right: 9px;
        left: 9px;
    }

    .header-main .bep-header-hotline {
        margin-left: 6px;
    }

    .bep-header-hotline__text small {
        display: none;
    }
}