/*
    PAGE: CAT AN LANDING PAGE
    SCOPED TO: .cat-page (body) + tất cả class prefix .cat-
    Design tokens: đỏ #E51B23 / đen #050505 / xám text #555 / border #E5E5E5
*/

/* ==========================================================================
   RESET TRONG PHẠM VI .cat-page
   ========================================================================== */
.cat-page {
    --cat-font-main: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    font-family: var(--cat-font-main);
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

.cat-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cat-page a {
    color: inherit;
    text-decoration: none;
}

.cat-page ul,
.cat-page ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-page h1,
.cat-page h2,
.cat-page h3,
.cat-page p {
    margin: 0;
}

.cat-page button {
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
}

/* Offset cho anchor scroll vì header fixed */
.cat-page .cat-hero,
.cat-page .cat-section,
.cat-page .cat-footer {
    scroll-margin-top: 90px;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.cat-page .cat-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   HEADER
   - Fixed top để có thể trượt ẩn/hiện theo hướng scroll.
   - Default transparent ở đầu trang; thêm nền khi đã scroll.
   ========================================================================== */
.cat-page .cat-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transform: translateY(0);
    transition: transform 0.32s ease, background-color 0.32s ease, box-shadow 0.32s ease;
    will-change: transform;
}

/* Trạng thái ẩn — trượt lên trên hoàn toàn */
.cat-page .cat-header.cat-header--hidden {
    transform: translateY(-110%);
}

/* Trạng thái hiện */
.cat-page .cat-header.cat-header--visible {
    transform: translateY(0);
}

/* Đã scroll qua threshold — nền tối + shadow */
.cat-page .cat-header.cat-header--scrolled {
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cat-page .cat-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.cat-page .cat-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cat-page .cat-header__logo {
    height: 56px;
    width: auto;
}

.cat-page .cat-header__logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.cat-page .cat-header__logo-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.cat-page .cat-header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cat-page .cat-header__logo-text strong {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.cat-page .cat-header__logo-text em {
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    margin-top: 3px;
    opacity: 0.85;
}

.cat-page .cat-header__nav {
    display: flex;
}

.cat-page .cat-header__menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.cat-page .cat-header__link {
    position: relative;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.cat-page .cat-header__link:hover {
    color: #E51B23;
}

.cat-page .cat-header__link.cat-is-active::after,
.cat-page .cat-header__link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #E51B23;
}

.cat-page .cat-header__toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cat-page .cat-header__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.cat-page .cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cat-page .cat-btn__icon {
    display: inline-flex;
}

.cat-page .cat-btn--primary {
    background: #E51B23;
    color: #fff;
}

.cat-page .cat-btn--primary:hover {
    background: #C9151C;
}

.cat-page .cat-btn--outline {
    border: 2px solid #fff;
    color: #fff;
}

.cat-page .cat-btn--outline:hover {
    background: #fff;
    color: #111;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.cat-page .cat-hero {
    position: relative;
    min-height: 600px;
    background-color: #050505;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.22) 100%),
        var(--cat-hero-bg, linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%));
    background-size: cover;
    background-position: center right;
    color: #fff;
    padding-top: 110px;
    padding-bottom: 60px;
}

.cat-page .cat-hero__inner {
    display: flex;
    align-items: center;
    min-height: 480px;
}

.cat-page .cat-hero__content {
    max-width: 620px;
}

.cat-page .cat-hero__eyebrow {
    display: inline-block;
    color: #E51B23;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 14px;
}

.cat-page .cat-hero__title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cat-page .cat-hero__subtitle {
    font-size: 17px;
    line-height: 1.55;
    color: #e8e8e8;
    margin-bottom: 22px;
}

.cat-page .cat-hero__bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.cat-page .cat-hero__bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.cat-page .cat-hero__check {
    display: inline-flex;
    flex-shrink: 0;
}

.cat-page .cat-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   SECTION CHUNG
   ========================================================================== */
.cat-page .cat-section {
    padding: 56px 0;
    background: #fff;
}

.cat-page .cat-section--alt {
    background: #F7F7F7;
}

.cat-page .cat-section__title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    color: #111;
}

.cat-page .cat-section__rule {
    display: block;
    width: 44px;
    height: 3px;
    background: #E51B23;
    margin: 10px auto 38px;
    border-radius: 2px;
}

/* ==========================================================================
   SERVICES (Dịch vụ chính)
   ========================================================================== */
.cat-page .cat-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.cat-page .cat-service {
    position: relative;
    text-align: center;
    padding: 16px 28px;
}

.cat-page .cat-service + .cat-service::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #E5E5E5;
}

.cat-page .cat-service__icon {
    color: #050505;
    margin: 0 auto 18px;
    display: inline-flex;
}

.cat-page .cat-service__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #111;
}

.cat-page .cat-service__desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: #555;
}

/* ==========================================================================
   PROCESS (Quy trình làm việc)
   ========================================================================== */
.cat-page .cat-process__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

.cat-page .cat-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
}

.cat-page .cat-step + .cat-step::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 30px;
    width: 18px;
    height: 2px;
    background: #E51B23;
}

.cat-page .cat-step + .cat-step::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid #E51B23;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.cat-page .cat-step__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #E51B23;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 12px;
}

.cat-page .cat-step__icon {
    color: #050505;
    display: inline-flex;
    margin-bottom: 12px;
}

.cat-page .cat-step__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #111;
}

.cat-page .cat-step__desc {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* ==========================================================================
   PACKAGES (Các gói hỗ trợ)
   ========================================================================== */
.cat-page .cat-packages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

.cat-page .cat-pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cat-page .cat-pkg:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cat-page .cat-pkg--featured {
    border-color: #E51B23;
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(229, 27, 35, 0.12);
}

.cat-page .cat-pkg__ribbon {
    position: absolute;
    top: 12px;
    left: -6px;
    background: #E51B23;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cat-page .cat-pkg__ribbon::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 6px;
    height: 5px;
    background: #8b0d12;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.cat-page .cat-pkg__head {
    text-align: center;
    margin-bottom: 18px;
}

.cat-page .cat-pkg__icon {
    color: #050505;
    display: inline-flex;
    margin-bottom: 12px;
}

.cat-page .cat-pkg__title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #111;
}

.cat-page .cat-pkg__desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: #555;
}

.cat-page .cat-pkg__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
    margin-bottom: 18px;
    border-top: 1px solid #F0F0F0;
    flex: 1;
}

.cat-page .cat-pkg__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

.cat-page .cat-pkg__tick {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background: #E51B23;
    border-radius: 3px;
    position: relative;
}

.cat-page .cat-pkg__tick::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cat-page .cat-pkg__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid #E51B23;
    color: #E51B23;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cat-page .cat-pkg__cta:hover {
    background: #E51B23;
    color: #fff;
}

.cat-page .cat-packages__note {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #777;
    font-style: italic;
}

/* ==========================================================================
   AUDIENCE (Phù hợp với ai?)
   ========================================================================== */
.cat-page .cat-audience__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.cat-page .cat-aud {
    position: relative;
    text-align: center;
    padding: 12px 22px;
}

.cat-page .cat-aud + .cat-aud::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #E5E5E5;
}

.cat-page .cat-aud__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F0F0F0;
    color: #050505;
    margin: 0 auto 14px;
}

.cat-page .cat-aud__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #111;
}

.cat-page .cat-aud__desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: #555;
}

/* ==========================================================================
   FOOTER LIÊN HỆ
   ========================================================================== */
.cat-page .cat-footer {
    background: #0a0a0a;
    color: #fff;
    padding: 50px 0 28px;
    border-top: 3px solid #E51B23;
}

.cat-page .cat-footer__title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 32px;
    color: #fff;
}

.cat-page .cat-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-page .cat-contact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #fff;
}

.cat-page .cat-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #E51B23;
    border-radius: 50%;
}

.cat-page .cat-contact__icon--zalo {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.4px;
}

.cat-page .cat-contact__zalo-text {
    letter-spacing: 0.4px;
}

.cat-page .cat-contact__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.cat-page .cat-contact__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
}

.cat-page .cat-contact__value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.cat-page .cat-contact__note {
    font-size: 13px;
    color: #bdbdbd;
}

.cat-page .cat-footer__note {
    text-align: center;
    padding: 22px 0 6px;
    font-size: 13.5px;
    color: #cfcfcf;
    line-height: 1.55;
}

.cat-page .cat-footer__copy {
    text-align: center;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.4px;
}

/* ==========================================================================
   STICKY CTA (chỉ mobile — desktop ẩn)
   ========================================================================== */
.cat-page .cat-sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #0a0a0a;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.cat-page .cat-sticky__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cat-page .cat-sticky__btn--call {
    background: #E51B23;
}

.cat-page .cat-sticky__btn--zalo {
    background: #111;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-page .cat-sticky__icon {
    display: inline-flex;
}

/* ==========================================================================
   RESPONSIVE — MOBILE / TABLET ≤ 768px
   ========================================================================== */
@media (max-width: 768px) {
    .cat-page .cat-container {
        padding: 0 20px;
    }

    /* HEADER */
    .cat-page .cat-header {
        position: fixed;
        background: rgba(0, 0, 0, 0.92);
    }

    .cat-page .cat-header__inner {
        height: 68px;
    }

    .cat-page .cat-header__logo {
        height: 44px;
    }

    .cat-page .cat-header__toggle {
        display: inline-flex;
        order: 2;
    }

    .cat-page .cat-header.cat-header--menu-open .cat-header__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .cat-page .cat-header.cat-header--menu-open .cat-header__bar:nth-child(2) {
        opacity: 0;
    }

    .cat-page .cat-header.cat-header--menu-open .cat-header__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .cat-page .cat-header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.96);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .cat-page .cat-header.cat-header--menu-open .cat-header__nav {
        max-height: 480px;
    }

    .cat-page .cat-header__menu {
        flex-direction: column;
        gap: 0;
        padding: 8px 0 16px;
    }

    .cat-page .cat-header__menu li {
        width: 100%;
    }

    .cat-page .cat-header__link {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .cat-page .cat-header__link.cat-is-active::after,
    .cat-page .cat-header__link:hover::after {
        display: none;
    }

    /* HERO */
    .cat-page .cat-hero {
        padding-top: 96px;
        padding-bottom: 48px;
        min-height: auto;
        background-position: 65% center;
        background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%),
            var(--cat-hero-bg, linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%));
    }

    .cat-page .cat-hero__inner {
        min-height: auto;
    }

    .cat-page .cat-hero__title {
        font-size: 30px;
    }

    .cat-page .cat-hero__subtitle {
        font-size: 15px;
    }

    .cat-page .cat-hero__bullets li {
        font-size: 14.5px;
    }

    .cat-page .cat-hero__cta {
        flex-direction: column;
        gap: 12px;
    }

    .cat-page .cat-hero__cta .cat-btn {
        width: 100%;
    }

    /* SECTION CHUNG */
    .cat-page .cat-section {
        padding: 40px 0;
    }

    .cat-page .cat-section__title {
        font-size: 22px;
    }

    /* SERVICES */
    .cat-page .cat-services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .cat-page .cat-service {
        padding: 8px 8px;
    }

    .cat-page .cat-service + .cat-service::before {
        display: none;
    }

    .cat-page .cat-service__icon svg {
        width: 46px;
        height: 46px;
    }

    .cat-page .cat-service__title {
        font-size: 13.5px;
    }

    .cat-page .cat-service__desc {
        font-size: 13px;
    }

    /* PROCESS — timeline dọc */
    .cat-page .cat-process__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        position: relative;
        padding-left: 18px;
    }

    .cat-page .cat-process__grid::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: rgba(229, 27, 35, 0.25);
    }

    .cat-page .cat-step {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 14px;
        text-align: left;
        padding: 4px 0;
        align-items: start;
    }

    .cat-page .cat-step__badge {
        grid-row: 1 / span 2;
        margin: 0;
        position: relative;
        z-index: 1;
    }

    .cat-page .cat-step__icon {
        display: none;
    }

    .cat-page .cat-step__title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .cat-page .cat-step__desc {
        font-size: 13.5px;
    }

    .cat-page .cat-step + .cat-step::before,
    .cat-page .cat-step + .cat-step::after {
        display: none;
    }

    /* PACKAGES */
    .cat-page .cat-packages__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cat-page .cat-pkg {
        padding: 24px;
    }

    .cat-page .cat-pkg__cta {
        width: 100%;
    }

    /* AUDIENCE */
    .cat-page .cat-audience__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 12px;
    }

    .cat-page .cat-aud + .cat-aud::before {
        display: none;
    }

    .cat-page .cat-aud:nth-child(5) {
        grid-column: 1 / -1;
    }

    .cat-page .cat-aud__icon {
        width: 56px;
        height: 56px;
    }

    .cat-page .cat-aud__icon svg {
        width: 30px;
        height: 30px;
    }

    /* FOOTER */
    .cat-page .cat-footer {
        padding: 40px 0 84px;
    }

    .cat-page .cat-footer__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cat-page .cat-contact {
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 6px;
    }

    .cat-page .cat-footer__note {
        font-size: 13px;
    }

    /* STICKY CTA — hiện trên mobile */
    .cat-page .cat-sticky {
        display: grid;
    }
}
