/* Full-bleed, reset box và ảnh dùng chung từ .pql-page (modimoshion-layout.css).
   Ở đây chỉ alias biến màu về --pql-shared-* để tái dùng bảng màu chung. */
.pql-about-page {
    --navy: var(--pql-shared-navy);
    --red: var(--pql-shared-red);
    --ink: var(--pql-shared-ink);
    --muted: var(--pql-shared-muted);
    --line: var(--pql-shared-line);
}

/* ================= HERO ABOUT ================= */
/* 1 ảnh nhà máy full nền; chữ nằm trên lớp trắng mờ bên trái; số liệu ở dải đáy. */
.pql-about-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

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

/* Lớp trắng mờ: đậm bên trái, tan dần sang phải để ảnh lộ nhà máy. */
.pql-about-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 42%,
            rgba(255, 255, 255, .5) 62%,
            rgba(255, 255, 255, 0) 85%);
}

/* Vùng chữ chính (lề ngang lấy từ .pql-shared-container). */
.pql-about-hero__inner {
    position: relative;
    padding-top: clamp(26px, 4.5vw, 58px);
    padding-bottom: clamp(16px, 2.5vw, 30px);
}

/* Logo Pioneer góc trái trên. */
.pql-about-hero__logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: clamp(20px, 4vw, 46px);
    text-decoration: none;
    width: max-content;
}

.pql-about-hero__logo-mark {
    flex: 0 0 auto;
}

.pql-about-hero__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.pql-about-hero__logo-text strong {
    color: var(--navy);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 900;
    letter-spacing: .05em;
}

.pql-about-hero__logo-text em {
    margin-top: 4px;
    color: var(--red);
    font-size: .55rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .17em;
}

/* Khối tiêu đề + mô tả, giới hạn bề ngang để nằm gọn vùng trắng. */
.pql-about-hero__copy {
    max-width: min(70%, 955px);
}

.pql-about-hero__title {
    margin: 0 0 clamp(10px, 1.4vw, 16px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.015em;
    text-transform: uppercase;
    font-size: clamp(2.1rem, 5.6vw, 4.3rem);
    white-space: nowrap;
}

.pql-about-hero__title span {
    color: var(--navy);
}

.pql-about-hero__title strong {
    color: var(--red);
    font-weight: 900;
}

.pql-about-hero__lead {
    margin: 0 0 clamp(16px, 2vw, 24px);
    color: var(--navy);
    font-size: clamp(1rem, 1.8vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
}

.pql-about-hero__body {
    margin: 0;
    color: #33405c;
    font-size: clamp(.86rem, 1.05vw, 1rem);
    font-weight: 500;
    line-height: 1.75;
}

/* ================= DẢI SỐ LIỆU ĐÁY ================= */
/* Lề ngang lấy từ .pql-shared-container, chỉ set padding dọc. */
.pql-about-hero__metrics {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 22px);
    margin: 0;
    padding-top: clamp(30px, 5vw, 64px);
    padding-bottom: clamp(22px, 3vw, 38px);
    padding-left: 0;
    list-style: none;
}

/* Mỗi chỉ số: icon trên, số ở giữa, nhãn dưới — canh trái theo mẫu. */
.pql-about-hero__metric {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-left: clamp(12px, 1.4vw, 20px);
}

/* Vạch ngăn dọc mảnh trước mỗi chỉ số (bỏ ở chỉ số đầu). */
.pql-about-hero__metric::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(20, 33, 61, .14);
}

.pql-about-hero__metric:first-child {
    padding-left: 0;
}

.pql-about-hero__metric:first-child::before {
    display: none;
}

.pql-about-hero__metric-icon {
    width: clamp(34px, 3.6vw, 46px);
    height: clamp(34px, 3.6vw, 46px);
    margin-bottom: 4px;
    fill: var(--navy);
}

.pql-about-hero__metric-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.05;
}

.pql-about-hero__metric-text strong {
    color: var(--red);
    font-size: clamp(1.7rem, 3.6vw, 2.9rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.01em;
}

.pql-about-hero__metric-text em {
    margin-top: 6px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.34;
}

/* ================= WHAT WE DO ================= */
/* Lưới 7 dịch vụ OEM/sourcing, icon và nội dung lấy từ ACF. */
.pql-about-services {
    padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
    background: #f8f9fb;
}

.pql-about-services__head {
    margin: 0 auto clamp(24px, 3vw, 38px);
    text-align: center;
}

.pql-about-services__title {
    position: relative;
    width: fit-content;
    margin: 0 auto 12px;
    padding-bottom: 10px;
    color: var(--navy);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Gạch đỏ ngắn tạo điểm nhấn dưới tiêu đề section. */
.pql-about-services__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 46px;
    height: 3px;
    background: var(--red);
    transform: translateX(-50%);
}

.pql-about-services__intro {
    margin: 0 auto;
    max-width: 820px;
    color: var(--muted);
    font-size: clamp(.82rem, 1vw, .95rem);
    line-height: 1.6;
}

.pql-about-services__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.pql-about-services__card {
    display: flex;
    min-width: 0;
    min-height: clamp(190px, 16vw, 250px);
    padding: clamp(20px, 2.2vw, 34px) clamp(12px, 1.35vw, 22px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pql-about-page .pql-about-services__icon {
    width: clamp(42px, 4vw, 64px);
    height: clamp(42px, 4vw, 64px);
    margin-bottom: 16px;
    object-fit: contain;
}

.pql-about-services__card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pql-about-services__card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

/* ================= WHY CHOOSE PIONEER ================= */
/* Lưới 6 lợi thế mẫu, dùng chung kích thước card và chữ với What We Do. */
.pql-about-why {
    background: #f1f5fb;
}

.pql-about-why__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pql-about-page .pql-about-why__icon {
    fill: none;
    stroke: var(--red);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ================= INDUSTRIES WE SERVE ================= */
/* Lưới ảnh 8 ngành phục vụ, dùng chung tiêu đề section và ảnh đồng nhất tỷ lệ. */
.pql-about-industries {
    padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
    background: #fff;
}

.pql-about-industries__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: clamp(10px, 1.25vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pql-about-industries__card {
    min-width: 0;
    text-align: center;
}

.pql-about-industries__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 4;
    background: #eef1f5;
    border-radius: var(--pql-shared-radius, 6px);
}

.pql-about-industries__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pql-about-industries__card h3 {
    margin: 10px 0 0;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .015em;
    text-transform: uppercase;
}

/* ================= MISSION / VISION / COMMITMENT ================= */
/* 3 giá trị cốt lõi và ảnh lấy từ ACF, dải liên hệ dùng Options toàn site. */
.pql-about-purpose {
    background: #f6f8fb;
}

.pql-about-purpose__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 1.35fr);
    min-height: 340px;
}

.pql-about-purpose__item {
    display: flex;
    min-width: 0;
    padding: 38px clamp(20px, 2.6vw, 42px) 24px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border-right: 1px solid var(--line);
}

/* Card cuối nối trực tiếp với ảnh nên bỏ vạch ngăn bên phải. */
.pql-about-purpose__item:last-of-type {
    border-right: 0;
}

.pql-about-purpose__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    fill: none;
    stroke: var(--red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    object-fit: contain;
}

.pql-about-purpose__item h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.pql-about-purpose__item p {
    margin: 0;
    max-width: 340px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

.pql-about-purpose__item strong {
    margin-top: 16px;
    color: var(--red);
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.pql-about-purpose__visual {
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 100%;
    margin: 0;
}

/* Lớp chuyển trắng mềm nối phần nội dung với ảnh như mẫu. */
.pql-about-purpose__visual::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: min(190px, 50%);
    background: linear-gradient(90deg,
        #f6f8fb 0%,
        rgba(246, 248, 251, .98) 18%,
        rgba(246, 248, 251, .82) 42%,
        rgba(246, 248, 251, .48) 68%,
        rgba(246, 248, 251, .16) 86%,
        transparent 100%);
    pointer-events: none;
}

/* Khóa ảnh trong đúng chiều cao hàng, tránh ảnh tràn đè lên dải liên hệ. */
.pql-about-page .pql-about-purpose__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.pql-about-purpose__contact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 10px clamp(18px, 4vw, 64px);
    list-style: none;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.pql-about-purpose__contact li {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px clamp(12px, 2vw, 30px);
    color: rgba(255, 255, 255, .84);
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
}

.pql-about-purpose__contact li:not(:first-child) {
    position: relative;
}

.pql-about-purpose__contact li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, .18);
}

.pql-about-purpose__contact i {
    flex: 0 0 auto;
    color: var(--red);
    font-size: 1rem;
}

.pql-about-purpose__contact a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pql-about-purpose__contact a:hover,
.pql-about-purpose__contact a:focus-visible {
    color: #fff;
}

/* ================= NỘI DUNG ================= */
.pql-about-content {
    padding: clamp(38px, 6vw, 76px) 0;
}

.pql-about-content :where(h2, h3, h4) {
    color: var(--navy);
    line-height: 1.2;
}

.pql-about-content :where(p, ul, ol) {
    max-width: 820px;
    color: var(--muted);
    font-size: 1rem;
}

.pql-about-content a {
    color: var(--red);
    font-weight: 700;
}

.pql-about-content .wp-block-columns {
    gap: clamp(20px, 4vw, 48px);
}

/* ================= RESPONSIVE ================= */
@media (min-width: 1181px) and (max-width: 1440px) {
    /* Desktop/laptop nhỏ: giảm chữ card để nội dung không chật. */
    .pql-about-services__card h3,
    .pql-about-services__card p {
        font-size: .8rem;
    }
}

@media (min-width: 1181px) {
    /* Desktop: tăng chiều cao ảnh ngành, không ảnh hưởng iPad/mobile. */
    .pql-about-industries__media {
        aspect-ratio: 4 / 4.6;
    }

    /* Laptop/desktop nhỏ: card tự tăng chiều cao, tránh nội dung đè dải liên hệ. */
    .pql-about-purpose__top {
        height: auto;
    }

    .pql-about-purpose__visual {
        min-height: 340px;
    }
}

@media (max-width: 1180px) {
    /* iPad và mobile: bỏ lớp chuyển trắng trên ảnh. */
    .pql-about-purpose__visual::before {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1180px) {
    /* iPad: mỗi hàng 3 cột; item cuối bị lẻ sẽ phủ toàn hàng. */
    .pql-about-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pql-about-services__grid > :last-child:nth-child(3n + 1) {
        grid-column: 1 / -1;
    }

    /* Tablet: ảnh ngành giữ đủ rộng với 4 cột. */
    .pql-about-industries__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* Tablet: 3 giá trị giữ một hàng, ảnh xuống dưới full ngang. */
    .pql-about-purpose__top {
        height: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pql-about-purpose__item {
        min-height: 320px;
    }

    .pql-about-purpose__visual {
        grid-column: 1 / -1;
        min-height: 300px;
    }

    .pql-about-purpose__contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pql-about-purpose__contact li:nth-child(odd)::before {
        display: none;
    }

    .pql-about-purpose__contact li:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, .15);
    }
}

@media (max-width: 860px) {
    /* Tablet: số liệu dùng đủ chiều ngang; phần chữ vẫn giới hạn để dễ đọc. */
    .pql-about-hero__copy {
        max-width: 100%;
    }

    .pql-about-hero__lead,
    .pql-about-hero__body {
        max-width: 74%;
    }

    .pql-about-hero__metric {
        padding-left: 0;
    }

    .pql-about-hero__metric::before {
        left: calc(clamp(10px, 1.2vw, 22px) / -2);
    }

    .pql-about-hero__veil {
        background:
            linear-gradient(90deg,
                rgba(255, 255, 255, .97) 0%,
                rgba(255, 255, 255, .9) 55%,
                rgba(255, 255, 255, .45) 80%,
                rgba(255, 255, 255, .1) 100%),
            linear-gradient(0deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 34%);
    }
}

@media (max-width: 640px) {
    /* Mobile: nền sáng đều, chữ full, số liệu 2 cột. */
    .pql-about-hero__copy {
        max-width: 100%;
    }

    .pql-about-hero__title {
        white-space: normal;
    }

    .pql-about-hero__lead,
    .pql-about-hero__body {
        max-width: none;
    }

    .pql-about-hero__veil {
        background: rgba(255, 255, 255, .92);
    }

    .pql-about-hero__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    /* Mobile: hai cột có padding bằng nhau, vạch ngăn nằm đúng giữa. */
    .pql-about-hero__metric,
    .pql-about-hero__metric:nth-child(even) {
        padding: 0 8px;
    }

    .pql-about-hero__metric:nth-child(odd)::before {
        display: none;
    }

    .pql-about-hero__metric:nth-child(even)::before {
        display: block;
        left: 0;
    }

    .pql-about-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Mobile: item cuối bị lẻ sẽ phủ toàn hàng. */
    .pql-about-services__grid > :last-child:nth-child(odd),
    .pql-about-industries__grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .pql-about-industries__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Mobile: section giá trị tự giãn theo nội dung, tránh dải liên hệ đè lên card. */
    .pql-about-purpose__top {
        height: auto;
        grid-template-columns: 1fr;
    }

    .pql-about-purpose__contact {
        grid-template-columns: 1fr;
    }

    .pql-about-purpose__item {
        padding: 32px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .pql-about-purpose__visual {
        grid-column: auto;
        min-height: 260px;
    }

    .pql-about-purpose__contact li,
    .pql-about-purpose__contact li:nth-child(odd) {
        justify-content: flex-start;
        border-top: 1px solid rgba(255, 255, 255, .15);
        text-align: left;
    }

    .pql-about-purpose__contact li::before {
        display: none;
    }

    .pql-about-purpose__contact li:first-child {
        border-top: 0;
    }

    .pql-about-services__card {
        min-height: 190px;
    }

    .pql-about-content {
        padding: 34px 0;
    }
}

@media (max-width: 420px) {
    /* Mobile hẹp: tiếp tục giữ 2 cột để hiển thị gọn. */
    .pql-about-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pql-about-services__card {
        min-height: 0;
    }
}
