/* ============ HEADER (giống trang landing) ============ */
:root {
    --hp-blue: #0a4fc1;
    --hp-blue-hover: #083f9c;
    --hp-navy: #0a2a66;
    --hp-muted: #5b6780;
    --hp-line: #e8edf5;
}

/* overflow-x:hidden trên html/body làm hỏng position:sticky -> dùng clip */
html,
body {
    overflow-x: clip;
}

#header.hp-site-header {
    position: sticky;
    top: 0;
    z-index: 990;
    background: #fff;
    border-bottom: 1px solid var(--hp-line);
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.admin-bar #header.hp-site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #header.hp-site-header {
        top: 46px;
    }
}

.hp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
    max-width: calc(var(--container, 1160px) + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

.hp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

.hp-brand__mark {
    width: 36px;
    height: 32px;
    flex-shrink: 0;
}

.hp-brand__name {
    display: block;
    font-weight: 700;
    color: var(--hp-navy);
    font-size: 18px;
    letter-spacing: .02em;
    line-height: 1.2;
}

.hp-brand__tag {
    display: block;
    font-size: 12.5px;
    color: var(--hp-muted);
    line-height: 1.3;
    margin-top: 3px;
}

.hp-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.hp-nav__menu {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-nav__menu li {
    position: relative;
    margin: 0;
    list-style: none;
}

.hp-nav__menu a {
    display: block;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--hp-navy);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.hp-nav__menu a:hover,
.hp-nav__menu .current-menu-item > a,
.hp-nav__menu .current-menu-ancestor > a {
    color: var(--hp-blue);
}

/* menu con */
.hp-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 10;
}

.hp-nav__menu li:hover > .sub-menu,
.hp-nav__menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-nav__menu .sub-menu a {
    padding: 9px 16px;
    font-size: 14.5px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: var(--hp-blue);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}

.hp-btn:hover {
    color: #fff;
    background: var(--hp-blue-hover);
}

.hp-ico {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hp-menu-toggle {
    display: none;
    margin: 0;
    padding: 6px;
    min-height: 0;
    background: none;
    border: 0;
    color: var(--hp-navy);
    cursor: pointer;
}

.hp-mobile-nav {
    display: none;
}

@media (max-width: 1100px) {
    .hp-nav,
    .hp-nav__menu {
        gap: 16px;
    }

    .hp-nav__menu a {
        font-size: 14.5px;
    }
}

@media (max-width: 960px) {
    .hp-nav__menu {
        display: none;
    }

    .hp-menu-toggle {
        display: inline-flex;
    }

    .hp-mobile-nav {
        display: none;
        background: #fff;
        border-top: 1px solid var(--hp-line);
        padding: 6px 24px 14px;
    }

    .hp-mobile-nav.open {
        display: block;
    }

    .hp-mobile-nav__menu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .hp-mobile-nav__menu li {
        margin: 0;
        list-style: none;
    }

    .hp-mobile-nav__menu a {
        display: block;
        padding: 12px 0;
        font-weight: 500;
        color: var(--hp-navy);
        text-decoration: none;
        border-bottom: 1px solid #eef2f8;
    }

    .hp-mobile-nav__menu li:last-child a {
        border-bottom: 0;
    }

    .hp-mobile-nav__menu .current-menu-item > a {
        color: var(--hp-blue);
    }
}

@media (max-width: 640px) {
    .hp-header__inner {
        height: 62px;
        padding: 0 16px;
        gap: 12px;
    }

    .hp-brand {
        gap: 10px;
    }

    .hp-brand__mark {
        width: 30px;
        height: 27px;
    }

    .hp-brand__name {
        font-size: 15px;
    }

    .hp-brand__tag {
        font-size: 11px;
    }

    .hp-btn {
        padding: 9px 13px;
        font-size: 14px;
    }

    .hp-mobile-nav {
        padding: 4px 16px 12px;
    }
}

@media (max-width: 640px) {
    /* logo được co lại, nút gọi + menu luôn nằm trong màn hình */
    .hp-brand {
        flex-shrink: 1;
        min-width: 0;
    }

    .hp-brand > span {
        min-width: 0;
    }

    .hp-brand__name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hp-brand__tag {
        display: none;
    }

    .hp-nav {
        flex-shrink: 0;
        gap: 6px;
    }

    /* nút gọi chỉ còn icon tròn */
    .hp-btn {
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .hp-btn__txt {
        display: none;
    }

    .hp-menu-toggle {
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
    }
}


/* ============ FOOTER (giống trang landing) ============ */
#footer.hp-site-footer {
    background: #071d47;
    color: #d4ddee;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.hp-footer {
    padding: 56px 0;
}

.hp-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    max-width: calc(var(--container, 1160px) + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

.hp-footer .hp-footer__title {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
    text-transform: none;
}

.hp-footer .hp-footer__heading {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0;
    text-transform: none;
}

.hp-footer p {
    margin: 0 0 10px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #d4ddee;
}

.hp-footer em {
    font-size: 15.5px;
    color: #d4ddee;
}

.hp-footer .hp-footer__hot {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.hp-footer .hp-footer__site {
    font-size: 15.5px;
    color: #d4ddee;
    text-decoration: underline;
}

.hp-footer a:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .hp-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 0 16px;
    }

    .hp-footer {
        padding: 44px 0;
    }
}


/* ============ TIÊU ĐỀ TRANG (Sản phẩm, Dịch vụ, Dự án) – template-parts/hp-page-hero.php ============ */
.hp-hero-title {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    background:
        radial-gradient(circle at 88% 18%, rgba(22, 96, 224, .5), transparent 46%),
        linear-gradient(135deg, #071d47, #0a2a66);
    color: #fff;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ảnh đại diện của trang: nằm bên phải, mờ dần sang trái */
.hp-hero-title__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52%;
    background-size: cover;
    background-position: center;
    opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}

/* tam giác lấy từ logo */
.hp-hero-title__tri {
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 300px;
    height: 270px;
    background: rgba(255, 255, 255, .05);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.hp-hero-title__inner {
    position: relative;
    z-index: 1;
    max-width: calc(var(--container, 1160px) + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

.hp-hero-title__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
    font-size: 14px;
    color: rgba(212, 221, 238, .75);
}

.hp-hero-title__crumbs a {
    color: rgba(212, 221, 238, .9);
    text-decoration: none;
}

.hp-hero-title__crumbs a:hover {
    color: #fff;
}

.hp-hero-title__crumbs .sep {
    opacity: .5;
}

.hp-hero-title__crumbs .current {
    color: #fff;
    font-weight: 500;
}

.hp-hero-title .hp-hero-title__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #f3e0ab;
}

.hp-hero-title .hp-hero-title__h1 {
    max-width: 760px;
    margin: 0;
    font-family: "Be Vietnam Pro", system-ui, sans-serif !important;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}

.hp-hero-title__lead {
    max-width: 660px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.7;
    color: #d4ddee;
}

.hp-hero-title__lead p {
    margin: 0;
    color: inherit;
    font-family: inherit !important;
}

.hp-hero-title__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hp-hero-title__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.hp-hero-title__btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-hero-title__btn:hover {
    transform: translateY(-1px);
}

.hp-hero-title__btn.is-gold,
.hp-hero-title__btn.is-gold:hover {
    color: #0a2a66;
}

.hp-hero-title__btn.is-gold {
    background: linear-gradient(180deg, #f3e0ab, #d6ad5a);
    box-shadow: 0 10px 24px rgba(214, 173, 90, .35);
}

.hp-hero-title__btn.is-ghost,
.hp-hero-title__btn.is-ghost:hover {
    color: #fff;
}

.hp-hero-title__btn.is-ghost {
    border-color: rgba(255, 255, 255, .7);
}

.hp-hero-title__btn.is-ghost:hover {
    background: rgba(255, 255, 255, .1);
}

/* khoảng cách với nội dung bên dưới */
.hp-hero-title + #content,
.hp-hero-title + .page-wrapper {
    padding-top: 40px;
}

@media (max-width: 960px) {
    .hp-hero-title__img {
        width: 100%;
        opacity: .18;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 640px) {
    .hp-hero-title {
        padding: 36px 0 44px;
    }

    .hp-hero-title__inner {
        padding: 0 16px;
    }

    .hp-hero-title__crumbs {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .hp-hero-title .hp-hero-title__h1 {
        font-size: 30px;
    }

    .hp-hero-title__lead {
        font-size: 15.5px;
    }

    .hp-hero-title__btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .hp-hero-title__tri {
        width: 200px;
        height: 180px;
    }
}
