/* CSS riêng cho template Services (templ_services.php). Chỉ enqueue ở trang dùng template này.
   Full-bleed/reset/ảnh dùng chung từ .pql-page; container ngang dùng .pql-shared-container. */
.pql-services-page {
    --navy: var(--pql-shared-navy);
    --red: var(--pql-shared-red);
    --ink: var(--pql-shared-ink);
    --muted: var(--pql-shared-muted);
}

/* ================= HERO SERVICES ================= */
.pql-services-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Ảnh nền phủ toàn hero. */
.pql-services-page .pql-services-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: -2;
}

/* Lớp navy mờ: đậm bên trái cho chữ trắng nổi, tan dần sang phải để lộ máy. */
.pql-services-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
            rgba(13, 27, 62, .96) 0%,
            rgba(13, 27, 62, .9) 32%,
            rgba(13, 27, 62, .5) 52%,
            rgba(13, 27, 62, .1) 70%,
            rgba(13, 27, 62, 0) 100%);
}

.pql-services-hero__inner {
    position: relative;
    padding-top: clamp(28px, 4.5vw, 60px);
    padding-bottom: clamp(28px, 4.5vw, 60px);
    color: #fff;
}

/* Khối chữ bên trái, giới hạn bề rộng để chừa ảnh máy bên phải. */
.pql-services-hero__copy {
    max-width: 600px;
}

/* Nhãn nhỏ trên tiêu đề (OUR SERVICES). */
.pql-services-hero__kicker {
    display: block;
    margin-bottom: clamp(10px, 1.4vw, 16px);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
}

/* Tiêu đề lớn 2 dòng. */
.pql-services-hero__title {
    margin: 0;
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: .3px;
    color: #fff;
}

.pql-services-hero__lead {
    max-width: 540px;
    margin: clamp(14px, 1.8vw, 22px) 0 0;
    font-size: clamp(.95rem, 1.25vw, 1.05rem);
    color: rgba(255, 255, 255, .8);
    line-height: 1.7;
}

/* Hàng badge ưu điểm: icon tròn viền mờ + nhãn. */
/* Hàng badge: 1 hàng ngang trên desktop, chỉ xuống dòng khi màn hình hẹp. */
.pql-services-hero__badges {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(16px, 1.8vw, 26px);
    margin: clamp(22px, 2.8vw, 34px) 0 0;
    padding: 0;
    list-style: none;
    /* Thoát giới hạn bề rộng khối chữ để 4 badge đủ chỗ nằm 1 hàng. */
    width: max-content;
    max-width: min(760px, 100%);
}

.pql-services-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(.8rem, .95vw, .9rem);
    font-weight: 600;
    white-space: nowrap;
    color: rgba(255, 255, 255, .92);
}

.pql-services-hero__badge svg,
.pql-services-hero__badge img {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    fill: #fff;
    object-fit: contain;
}

/* ================= TRUSTED PARTNER ================= */
/* Dải nền nhà máy tối: nội dung trái, 3 số liệu phải như mẫu. */
.pql-services-trusted {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 190px;
    background: var(--navy);
    color: #fff;
}

.pql-services-page .pql-services-trusted__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pql-services-trusted__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(13, 27, 62, .82);
}

.pql-services-trusted__inner {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(520px, 1.5fr);
    align-items: center;
    gap: clamp(34px, 5vw, 76px);
    min-height: 190px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.pql-services-trusted__copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .03em;
}

.pql-services-trusted__copy p {
    max-width: 430px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: .86rem;
    line-height: 1.55;
}

.pql-services-trusted__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.pql-services-trusted__metric {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 6px clamp(16px, 2.2vw, 32px);
    border-left: 1px solid rgba(255, 255, 255, .24);
}

.pql-services-trusted__metric:first-child {
    border-left: 0;
}

.pql-services-trusted__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #fff;
}

.pql-services-trusted__icon svg,
.pql-services-page .pql-services-trusted__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    fill: currentColor;
}

.pql-services-trusted__text {
    display: grid;
    min-width: 0;
}

.pql-services-trusted__text strong {
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1;
}

.pql-services-trusted__text small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .pql-services-trusted__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pql-services-trusted__copy {
        text-align: center;
    }

    .pql-services-trusted__copy p {
        margin-right: auto;
        margin-left: auto;
    }

    .pql-services-trusted__metric:first-child {
        border-left: 1px solid rgba(255, 255, 255, .24);
    }
}

@media (max-width: 640px) {
    .pql-services-trusted__metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pql-services-trusted__metric,
    .pql-services-trusted__metric:first-child {
        justify-content: center;
        border-left: 0;
    }

    .pql-services-trusted__text {
        min-width: 120px;
    }
}

/* ================= CTA CUỐI TRANG ================= */
/* CTA cố định: icon headset + nội dung + 2 nút + phone/email từ ACF Options. */
.pql-services-cta {
    padding: 18px 0;
    border-top: 1px solid #e9ecf2;
    border-bottom: 1px solid #e9ecf2;
    background: #f7f8fa;
}

.pql-services-cta__inner {
    display: grid;
    grid-template-columns: minmax(340px, .85fr) minmax(540px, 1.15fr);
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
}

/* Cột trái: icon headset + nội dung. */
.pql-services-cta__intro {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 5px;
}

.pql-services-cta__headset {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: var(--red);
    font-size: 3.4rem;
}

.pql-services-cta__copy h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.pql-services-cta__copy p {
    max-width: 440px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.4;
}

/* Panel trắng nổi chứa hai nút và thông tin liên hệ như mẫu. */
.pql-services-cta__panel {
    display: grid;
    grid-template-columns: auto minmax(185px, auto);
    align-items: center;
    gap: 22px;
    min-height: 72px;
    padding: 14px 20px;
    border: 1px solid #eef0f4;
    background: #fff;
    box-shadow: 0 10px 28px rgba(13, 27, 62, .1);
}

.pql-services-cta__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pql-services-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 150px;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid var(--navy);
    color: var(--navy);
    background: #fff;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.pql-services-cta__btn--primary {
    border-color: var(--red);
    color: #fff;
    background: var(--red);
}

.pql-services-cta__btn--primary:hover {
    border-color: var(--pql-shared-red-dark);
    background: var(--pql-shared-red-dark);
}

.pql-services-cta__btn--secondary:hover {
    color: #fff;
    background: var(--navy);
}

.pql-services-cta__contact {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
    border-left: 1px solid var(--pql-shared-line);
    font-style: normal;
}

.pql-services-cta__contact a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

/* Icon cân giữa theo text và to ngang cỡ chữ. */
.pql-services-cta__contact i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    color: var(--navy);
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .pql-services-cta__inner {
        grid-template-columns: 1fr;
    }

    .pql-services-cta__intro {
        max-width: 560px;
        margin: 0 auto;
    }

    .pql-services-cta__panel {
        width: min(100%, 680px);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .pql-services-cta__inner {
        justify-items: center;
        text-align: center;
    }

    .pql-services-cta__intro,
    .pql-services-cta__panel {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .pql-services-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .pql-services-cta__btn {
        width: 100%;
    }

    .pql-services-cta__contact {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 14px 0 0;
        border-top: 1px solid var(--pql-shared-line);
        border-left: 0;
    }
}

/* ================= RESPONSIVE HERO ================= */
@media (max-width: 640px) {
    .pql-services-page .pql-services-hero__bg {
        object-position: center;
    }

    .pql-services-hero__title {
        font-size: clamp(1.6rem, 8vw, 2.3rem);
    }

    .pql-services-hero__badges {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .pql-services-hero__badge {
        font-size: .82rem;
    }
}
