/* COMPANY/P1 — header, overlay menu (kiểu Starlink), footer */

/* ===== Header ===== */
.p1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--p1-header-h);
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}

/*
 * blur(16px)+saturate() trên header FIXED, full chiều ngang từng làm cuộn giật: trình duyệt phải tính lại lớp mờ này
 * ở MỌI frame trong suốt lúc cuộn (không chỉ lúc bật/tắt class), vì nội dung phía sau luôn đổi. Hạ xuống blur(10px),
 * bỏ saturate() (chồng thêm một phép lọc nữa lên blur càng nặng) — nền đã đủ đậm (rgba .88) nên vẫn mờ sương rõ, nhẹ tay hơn nhiều.
 */
.p1-header--scrolled,
.p1-header.is-menu-open {
    background: rgba(0, 84, 220, .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--p1-border);
    box-shadow: 0 8px 30px rgba(0, 40, 120, .3);
}

.p1-header__inner {
    height: var(--p1-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Header tràn hết chiều ngang như Starlink (logo sát trái, hành động sát phải). */
.p1-header .p1-header__inner {
    max-width: none;
    padding: 0 var(--p1-gutter);
}

/* Menu ngang kiểu Starlink: chữ trắng đậm, mục đang hover/mở có nền xám mờ bo 4px. */
.p1-header__nav {
    display: none;
    align-items: center;
    align-self: stretch;
    position: relative;
    gap: 4px;
    flex: 1;
    margin-left: 28px;
}

.p1-header__nav > a,
.p1-nav-dd__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 0;
    border-radius: 30px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.p1-header__nav > a:hover,
.p1-nav-dd__btn:hover,
.p1-nav-dd.is-open .p1-nav-dd__btn {
    background: rgba(255, 255, 255, .14);
}

.p1-nav-dd__btn i {
    font-size: 10px;
    transition: transform .2s ease;
}

.p1-nav-dd.is-open .p1-nav-dd__btn i {
    transform: rotate(180deg);
}

/* Panel 3 cột (Tìm hiểu / Hỗ trợ / Công ty), gắn mép trái với đầu menu, ngay dưới header. */
.p1-nav-dd__panel {
    position: absolute;
    left: 0;
    top: calc(100% - 6px);
    width: min(780px, calc(100vw - 2 * var(--p1-gutter)));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Nền dịu thay cho trắng tinh: gradient trắng → xanh rất nhạt; quầng sáng hr-pricing-bg1.png nằm ở ::before bên dưới. */
    background: linear-gradient(160deg, #ffffff 0%, #f2f6ff 55%, #e9f3ff 100%);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 14px;
    overflow: hidden; /* bo góc cắt cả quầng sáng nền */
    box-shadow: 0 24px 60px rgba(0, 40, 120, .28), 0 2px 8px rgba(0, 40, 120, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.p1-nav-dd.is-open .p1-nav-dd__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Quầng sáng xanh tím + xanh ngọc (hr-pricing-bg1.png) ở góc phải trên panel: mờ (opacity .4) để chữ vẫn rõ, tạo chiều sâu sang hơn nền trắng. */
.p1-nav-dd__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/hr-pricing-bg1.png") right -40px top -170px / 560px auto no-repeat;
    opacity: .4;
    pointer-events: none;
}

.p1-nav-dd__col {
    position: relative; /* nằm trên lớp nền ::before */
    padding: 24px 26px 18px;
    min-height: 210px;
}

.p1-nav-dd__col + .p1-nav-dd__col {
    border-left: 1px solid rgba(11, 31, 68, .08);
}

/* Cầu nối vô hình từ nút xuống panel để rê chuột không bị đóng giữa chừng (panel bắt đầu ở mép trái menu, không ngay dưới nút). */
.p1-nav-dd.is-open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 34px);
    height: 34px;
}

.p1-nav-dd__col a.p1-nav-dd__head,
.p1-nav-dd__head {
    display: block;
    margin: 0 0 4px;
    padding: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #5a6b88;
}

.p1-nav-dd__col a.p1-nav-dd__head:hover {
    color: var(--p1-brand-1);
}

.p1-nav-dd__col a {
    display: block;
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0b1f44;
    transition: color .25s ease, background .25s ease, padding-left .3s var(--p1-ease-out);
}

/* Rê chuột: nền xanh nhạt trong suốt + chữ trượt nhẹ sang phải. */
.p1-nav-dd__col a:hover {
    color: var(--p1-brand-1);
    background: rgba(0, 104, 255, .07);
    padding-left: 16px;
}

.p1-header__logo {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
   /* letter-spacing: .1em;*/
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    color: #fff;
}

/* Chữ thương hiệu: bù khoảng trống cuối do letter-spacing để chữ nhìn cân với khoảng cách menu. */
.p1-header__brand {
    margin-right: -.28em;
    line-height: 1;
}

/*
 * Logo chữ 2 màu: phần chính trắng, phần nhấn (đuôi tên miền / từ sau) vàng kim cùng tông tiêu đề hero
 * — kèm vệt sáng ánh kim chạy qua, CÙNG kỹ thuật với .p1-topthemes__title-shine (băng "Giao diện nổi bật").
 */
.p1-header__brand-accent {
    background-image: linear-gradient(110deg, #f8cd4f 0%, #eaaa3b 38%, #fff3c4 46%, #ffcc00 50%, #fff8dc 54%, #eaaa3b 62%, #f8cd4f 100%);
    background-size: 300% 100%;
    background-position: 120% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
    .p1-header__brand-accent {
        animation: p1HeaderBrandShine 7s ease-in-out infinite;
    }
}

@keyframes p1HeaderBrandShine {
    0%, 58% { background-position: 120% center; }
    78%, 100% { background-position: -20% center; }
}

.p1-header__logo img {
    height: 30px;
    width: auto;
    display: block;
}

.p1-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Nhóm nút phân đoạn (giống "Cá nhân | Doanh nghiệp") + nút tròn (giống biểu tượng toàn cầu/tài khoản). */
.p1-header__seg {
    display: none;
    padding: 3px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

.p1-header__seg a {
    padding: 5px 14px;
    border-radius:30px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    transition: background .2s ease, color .2s ease;
}

.p1-header__seg a:hover {
    color: #fff;
}

.p1-header__seg a.is-active {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.p1-header__circle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    transition: background .2s ease;
}

.p1-header__circle:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/*
 * Nút "Liên hệ ngay" (điện thoại / máy tính bảng): kính mờ gần trong suốt, viền trắng mảnh, chữ trắng — cùng ngôn ngữ với nút burger bên cạnh
 * và các nút kính mờ ở hero; thay cho nút trắng đặc chói trên nền tối.
 */
.p1-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: background .35s var(--p1-ease-out), border-color .35s var(--p1-ease-out), transform .35s var(--p1-ease-out);
}

.p1-header__cta:hover,
.p1-header__cta:focus-visible {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-1px);
}

.p1-header__cta:active {
    transform: scale(.97);
}

.p1-header__burger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .04);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.p1-header__burger span {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.p1-header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.p1-header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.p1-header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
    .p1-header__nav { display: flex; }
    .p1-header__seg { display: inline-flex; }
    .p1-header__circle { display: inline-flex; }
    .p1-header__cta { display: none; }
    .p1-header__burger { display: none; }
}

/* ===== Overlay menu toàn màn hình ===== */
.p1-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #0044b8;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
    overflow-y: auto;
}

.p1-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.p1-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--p1-brand-grad);
    pointer-events: none;
}

.p1-overlay__inner {
    position: relative;
    max-width: var(--p1-container);
    margin: 0 auto;
    padding: calc(var(--p1-header-h) + 40px) 20px 60px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p1-overlay__close {
    position: absolute;
    top: 22px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.p1-overlay__nav {
    margin-bottom: 48px;
}

.p1-overlay__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p1-overlay__list > li {
    border-bottom: 1px solid var(--p1-border);
}

.p1-overlay__list > li > a {
    display: block;
    padding: 13px 4px;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff;
    transition: color .2s ease, padding-left .2s ease;
}

.p1-overlay__list > li > a:hover {
    color: var(--p1-accent-2);
    padding-left: 14px;
}

.p1-overlay__sublist {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.p1-overlay__sublist li a {
    font-size: 14px;
    color: var(--p1-text-muted);
    font-weight: 500;
}

.p1-overlay__sublist li a:hover {
    color: #fff;
}

.p1-overlay__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    color: var(--p1-text-muted);
    font-size: 14px;
}

.p1-overlay__contact p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p1-overlay__contact i {
    color: var(--p1-accent-2);
}

.p1-overlay__social {
    display: flex;
    gap: 10px;
}

.p1-overlay__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.p1-overlay__social a:hover {
    background: var(--p1-accent-grad);
    border-color: transparent;
}

body.p1-menu-open {
    overflow: hidden;
}

/* ===== Footer ===== */
.p1-footer {
    background: linear-gradient(180deg, #0b3fb5 0, #082d80 100%);
    padding: 64px 0 0;
    color: var(--p1-text-muted);
    font-size: 14px;
}

.p1-footer__brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 16px;
}

.p1-footer p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    line-height: 1.6;
}

.p1-footer p i {
    color: var(--p1-accent-2);
    margin-top: 3px;
}

.p1-footer a:hover {
    color: #fff;
}

.p1-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.p1-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--p1-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.p1-footer__social a:hover {
    background: var(--p1-accent-grad);
    border-color: transparent;
}

.p1-footer__heading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 18px;
}

.p1-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p1-footer__links li {
    margin-bottom: 10px;
}

/* Điện thoại + Hotline cùng một hàng: cách nhau bằng vạch đứng; hàng hẹp thì Hotline xuống dòng. */
.p1-footer .p1-footer__phones {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

.p1-footer__phones-item::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-right: 10px;
    vertical-align: -1px;
    background: rgba(255, 255, 255, .35);
}

.p1-footer__phones > a:first-of-type + .p1-footer__phones-item::before {
    display: inline-block;
}

/* Cột "Thông tin công ty": đoạn giới thiệu ngắn + bản đồ nhúng. */
.p1-footer__about {
    margin: 0 0 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.p1-footer__about a {
    color: var(--p1-gold);
    font-weight: 600;
    white-space: nowrap;
}

/*
 * Bản đồ giãn theo chiều cao cột: các cột trong hàng vốn cao bằng nhau (bootstrap row), cột này là flex dọc nên bản đồ (flex:1)
 * lấp đầy phần còn lại → đáy bản đồ thẳng hàng với đáy cột công ty (cột dài nhất). Có chiều cao tối thiểu khi cột ngắn / xếp chồng trên điện thoại.
 */
.p1-footer__col-fill {
    display: flex;
    flex-direction: column;
}

.p1-footer__map {
    flex: 1 1 auto;
    min-height: 150px;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
}

.p1-footer__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto !important; /* iframe của Google có style inline aspect-ratio:16/9 */
    border: 0;
}

/* Ô ảnh đối tác: ảnh phủ kín ô (object-fit: cover), không đệm — không còn viền trắng thừa quanh ảnh. */
.p1-footer__partner-logo {
    width: 96px;
    height: 60px;
    border-radius: 12px;
    background: #fff;
    display: inline-block;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .35);
    box-shadow: 0 6px 16px rgba(0, 20, 80, .22);
    transition: transform .4s var(--p1-ease), border-color .4s var(--p1-ease);
}

.p1-footer__partner-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .7);
}

.p1-footer__partner-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .6s var(--p1-ease-out);
}

.p1-footer__partner-logo:hover img {
    transform: scale(1.08);
}

.p1-footer__bottom {
    margin-top: 32px;
    padding: 18px 0;
    border-top: 1px solid var(--p1-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    font-size: 13px;
}

.p1-footer__bottom p {
    margin: 0;
}
