:root {
    /* Legacy aliases: old components stay compatible while consuming V1 tokens. */
    --beoi-primary: var(--hctclient01-color-primary);
    --beoi-primary-dark: var(--hctclient01-color-primary-hover);
    --beoi-text: var(--hctclient01-color-text);
    --beoi-white: var(--hctclient01-color-surface);
    --beoi-border: var(--hctclient01-color-border);
    --beoi-container: var(--hctclient01-container-lg);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--beoi-text);
    background: var(--beoi-white);
    font-family: var(--hctclient01-font-family-base);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.beoi-container {
    width: min(
        calc(100% - 32px),
        var(--beoi-container)
    );
    margin-inline: auto;
}

.beoi-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    color: #fff;
    background: #000;
    transform: translateY(-160%);
}

.beoi-skip-link:focus {
    transform: translateY(0);
}

/* Header */

.beoi-header {
    position: relative;
    z-index: 100;
    background: #fff;
}

.beoi-header__inner {
    display: flex;
    min-height: 138px;
    align-items: center;
    gap: 32px;
}

.beoi-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    color: var(--beoi-primary);
}

.beoi-brand__symbol {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 3px double currentColor;
    border-radius: 50%;
    font-size: var(--hctclient01-text-section-title);
}

.beoi-brand__name {
    font-size: var(--hctclient01-text-panel-title);
    font-weight: 500;
    white-space: nowrap;
}

.beoi-desktop-nav {
    min-width: 0;
    margin-left: auto;
}

.beoi-header__cta {
    flex: 0 0 auto;
    padding: 13px 27px;
    border-radius: 999px;
    color: #fff;
    background: var(--beoi-primary);
    font-size: var(--hctclient01-text-body-lg);
    text-transform: uppercase;
}

.beoi-header__cta:hover {
    background: var(--beoi-primary-dark);
}

/* Desktop menu */

.hct-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.hct-menu--pc {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hct-menu-item {
    position: relative;
}

.hct-menu-item__head {
    display: flex;
    align-items: center;
}

.hct-menu-link {
    display: block;
    padding: 14px 0;
    font-size: var(--hctclient01-text-body-lg);
    white-space: nowrap;
}

.hct-menu-item.is-current > .hct-menu-item__head > .hct-menu-link,
.hct-menu-item.is-active > .hct-menu-item__head > .hct-menu-link {
    color: var(--beoi-white);
}

.hct-menu-toggle {
    width: 28px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hct-menu-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.hct-sub-menu,
.hct-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 12px 20px;
    background: transparent;
}

.hct-sub-menu .hct-menu-link {
    padding: 9px 0;
}

.hct-mega-menu {
    display: grid;
    width: min(900px, 85vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.hct-mega-menu__title {
    margin: 0 0 12px;
    color: var(--beoi-primary);
    font-size: var(--hctclient01-text-body-lg);
}

.hct-mega-menu__items {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Mobile */

.beoi-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
}

.beoi-mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--beoi-primary);
}

.beoi-mobile-menu {
    border-top: 1px solid var(--beoi-border);
    background: #fff;
}

.hct-menu--mobile {
    padding: 12px 0 22px;
}

.hct-menu--mobile .hct-menu-item {
    border-bottom: 1px solid var(--beoi-border);
}

.hct-menu--mobile .hct-menu-item__head {
    justify-content: space-between;
}

.hct-menu--mobile .hct-menu-link {
    flex: 1;
    padding: 13px 0;
}

.hct-menu--mobile .hct-sub-menu,
.hct-menu--mobile .hct-mega-menu {
    position: static;
    width: 100%;
    padding: 0 0 10px 18px;
    border: 0;
    box-shadow: none;
}

/* Main */

.beoi-main {
    min-height: 420px;
}

.beoi-home-hero {
    padding-bottom: 36px;
}

.beoi-home-main-banner {
    overflow: hidden;
}

/* Breadcrumb */

.beoi-breadcrumb {
    border-top: 1px solid var(--beoi-border);
    border-bottom: 1px solid var(--beoi-border);
    background: #fafafa;
}

.beoi-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin: 0;
    list-style: none;
}

.beoi-breadcrumb__item:not(:last-child)::after {
    margin-left: 8px;
    color: #999;
    content: "/";
}

/* Footer */

.beoi-footer {
    padding: 78px 0 28px;
    color: #fff;
    background: var(--beoi-primary);
}

.beoi-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(160px, 0.7fr)
        minmax(260px, 1.2fr)
        minmax(250px, 1fr);
    gap: 70px;
}

.beoi-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: var(--hctclient01-text-panel-title);
}

.beoi-footer__brand-symbol {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border: 3px double #fff;
    border-radius: 50%;
}

.beoi-footer__about p {
    max-width: 420px;
    margin: 0;
    font-size: var(--hctclient01-text-body-lg);
    line-height: 1.8;
}

.beoi-footer__title {
    margin: 10px 0 24px;
    font-size: var(--hctclient01-text-card-title);
    text-transform: uppercase;
}

.beoi-footer .hct-menu--pc {
    display: block;
}

.beoi-footer .hct-menu-link {
    padding: 4px 0;
    color: #fff;
}

.beoi-footer .hct-menu-toggle,
.beoi-footer .hct-sub-menu,
.beoi-footer .hct-mega-menu {
    display: none;
}

.beoi-footer__contact {
    padding: 0;
    margin: 0;
    list-style: none;
}

.beoi-footer__contact li {
    margin-bottom: 10px;
}

.beoi-footer__fanpage {
    min-height: 150px;
    padding: 24px;
    color: #333;
    background: #fff;
}

.beoi-footer__bottom {
    padding-top: 25px;
    margin-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    font-size: var(--hctclient01-text-body-lg);
}

@media (max-width: 1100px) {
    .beoi-header__inner {
        min-height: 94px;
    }

    .beoi-desktop-nav,
    .beoi-header__cta {
        display: none;
    }

    .beoi-mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .beoi-brand__symbol {
        width: 58px;
        height: 58px;
        font-size: var(--hctclient01-text-panel-title);
    }

    .beoi-brand__name {
        font-size: var(--hctclient01-text-card-title);
    }

    .beoi-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .beoi-container {
        width: min(calc(100% - 24px), var(--beoi-container));
    }

    .beoi-header__inner {
        min-height: 76px;
    }

    .beoi-brand__symbol {
        width: 48px;
        height: 48px;
    }

    .beoi-brand__name {
        font-size: var(--hctclient01-text-card-title);
    }

    .beoi-footer {
        padding-top: 48px;
    }

    .beoi-footer__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .beoi-footer__bottom {
        margin-top: 45px;
        font-size: var(--hctclient01-text-body);
    }
}

/*=========*/
.beoi-language-switcher {
    display: flex;
    align-items: center;
}

.beoi-language-switcher__list {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.beoi-language-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: var(--hctclient01-text-caption);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.beoi-language-switcher__link.is-active {
    cursor: default;
}

.beoi-language-switcher__link.is-disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.beoi-mobile-menu .beoi-language-switcher {
    margin-bottom: 16px;
}