/* ==========================================================================
   SAI Asia Group — inner page components (About, etc.)
   Builds on sai-theme.css (colours, buttons, .sai-rule, .sai-cta).
   ========================================================================== */

/* ---------- Page masthead ---------- */
.sai-page-hero {
    position: relative;
    overflow: hidden;
    background: #0f141b;
    color: #fff;
    padding: 84px 0 76px;
}
.sai-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 16, 26, .93) 0%, rgba(10, 16, 26, .75) 50%, rgba(10, 16, 26, .35) 100%);
}
.sai-page-hero .container { position: relative; z-index: 2; }
.sai-page-hero h1 {
    font-family: var(--sai-font);
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    text-transform: none;
    color: #fff;
    margin-bottom: 20px;
}
main.sai-prose-justify .sai-page-hero p {
    font-family: var(--sai-font);
    font-size: clamp(16px, 1.6vw, 19px);
    color: rgba(255, 255, 255, .88);
    margin: 0;
    text-align: left;
}
.sai-crumb {
    display: flex;
    gap: 10px;
    font-family: var(--sai-font);
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 18px;
}
.sai-crumb a { color: rgba(255, 255, 255, .7); }
.sai-crumb a:hover { color: #fff; }

/* ---------- Tabs ---------- */
.sai-tabs-bar { background: #fff; border-bottom: 1px solid var(--sai-line); }
.sai-tabs { display: flex; gap: 36px; overflow-x: auto; font-family: var(--sai-font); }
.sai-tabs a {
    position: relative;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--sai-muted);
    white-space: nowrap;
}
.sai-tabs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--sai-red);
    transform: scaleX(0);
    transition: transform .25s;
}
.sai-tabs a:hover { color: var(--sai-ink); }
.sai-tabs a.is-active { color: var(--sai-ink); font-weight: 600; }
.sai-tabs a.is-active::after,
.sai-tabs a:hover::after { transform: scaleX(1); }

/* ---------- Blocks & type ---------- */
.sai-block { padding: 80px 0; background: #fff; }
.sai-block-soft { background: var(--sai-soft); }
.sai-eyebrow {
    display: block;
    font-family: var(--sai-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sai-red);
    margin-bottom: 10px;
}
.sai-h2 {
    font-family: var(--sai-font);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    color: var(--sai-ink);
    margin-bottom: 16px;
}
main.sai-prose-justify .sai-lead,
main.sai-prose-justify .sai-body { text-align: left; font-family: var(--sai-font); }
.sai-lead { font-size: 19px; line-height: 1.6; color: var(--sai-ink); font-weight: 500; margin-bottom: 14px; }
.sai-body { font-size: 15px; line-height: 1.8; color: var(--sai-muted); margin-bottom: 28px; }
.sai-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.sai-section-head .sai-link { margin: 0 0 18px; }

.sai-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-family: var(--sai-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--sai-ink);
}
.sai-link i { color: var(--sai-red); transition: transform .25s; }
.sai-link:hover { color: var(--sai-red); }
.sai-link:hover i { transform: translateX(4px); }

/* ---------- Pillars ---------- */
.sai-pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.sai-pillars li { display: flex; gap: 16px; align-items: flex-start; }
.sai-pillar-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(200, 32, 43, .08);
    color: var(--sai-red);
    font-size: 19px;
}
.sai-pillars h4 {
    font-family: var(--sai-font);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    color: var(--sai-ink);
    margin: 2px 0 4px;
}
main.sai-prose-justify .sai-pillars p {
    font-family: var(--sai-font);
    font-size: 14px;
    color: var(--sai-muted);
    margin: 0;
    text-align: left;
}

/* ---------- Photo stack ---------- */
.sai-photo-stack { position: relative; padding-bottom: 70px; }
.sai-photo-stack::before {
    content: "";
    position: absolute;
    top: -18px;
    right: -18px;
    width: 45%;
    height: 55%;
    border: 3px solid var(--sai-red);
}
.sai-photo-main {
    position: relative;
    z-index: 1;
    width: 88%;
    margin-left: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.sai-photo-inset {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .15);
}

/* ---------- Stats ---------- */
.sai-stats { background: var(--sai-charcoal); padding: 48px 0; }
.sai-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sai-stat {
    padding: 8px 28px;
    border-left: 1px solid rgba(255, 255, 255, .14);
    font-family: var(--sai-font);
}
.sai-stat:first-child { border-left: 0; padding-left: 0; }
.sai-stat strong {
    display: block;
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.sai-stat strong::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--sai-red);
    margin: 12px 0;
}
.sai-stat span { font-size: 14px; color: rgba(255, 255, 255, .75); }

/* ---------- Vision / mission ---------- */
.sai-vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.sai-vm-card { padding: 40px 36px; background: var(--sai-soft); border-top: 3px solid var(--sai-red); }
.sai-vm-dark { background: var(--sai-charcoal); }
.sai-vm-num { font-family: var(--sai-font); font-size: 14px; font-weight: 700; color: var(--sai-red); letter-spacing: .1em; }
.sai-vm-card h3 {
    font-family: var(--sai-font);
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    color: var(--sai-ink);
    margin: 8px 0 14px;
}
main.sai-prose-justify .sai-vm-card p {
    font-family: var(--sai-font);
    font-size: 15px;
    line-height: 1.8;
    color: var(--sai-muted);
    margin: 0;
    text-align: left;
}
.sai-vm-dark h3 { color: #fff; }
main.sai-prose-justify .sai-vm-dark p { color: rgba(255, 255, 255, .78); }

/* ---------- Company cards ---------- */
.sai-co-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 10px; }
.sai-co-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    color: var(--sai-ink);
    transition: transform .3s, box-shadow .3s;
}
.sai-co-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, .1); color: var(--sai-ink); }
.sai-co-media { aspect-ratio: 16 / 9; overflow: hidden; }
.sai-co-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sai-co-card:hover .sai-co-media img { transform: scale(1.06); }
.sai-co-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; font-family: var(--sai-font); }
.sai-co-cat {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sai-red);
    margin-bottom: 8px;
}
.sai-co-body h3 {
    font-family: var(--sai-font);
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    color: var(--sai-ink);
    margin-bottom: 10px;
}
main.sai-prose-justify .sai-co-body p { font-size: 14px; line-height: 1.7; color: var(--sai-muted); margin-bottom: 18px; text-align: left; }
.sai-co-more { margin-top: auto; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.sai-co-more i { color: var(--sai-red); transition: transform .25s; }
.sai-co-card:hover .sai-co-more { color: var(--sai-red); }
.sai-co-card:hover .sai-co-more i { transform: translateX(4px); }

.sai-co-next { background: var(--sai-charcoal); justify-content: flex-end; min-height: 260px; }
.sai-co-next .sai-co-body { justify-content: flex-end; flex: 0 0 auto; padding: 32px 28px; }
.sai-co-next h3,
.sai-co-next:hover .sai-co-more,
.sai-co-next .sai-co-more { color: #fff; }
main.sai-prose-justify .sai-co-next p { color: rgba(255, 255, 255, .72); }
.sai-co-next:hover { color: #fff; }

/* ---------- CEO quote ---------- */
.sai-quote {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 60px 44px;
    background: var(--sai-soft);
    border-left: 4px solid var(--sai-red);
}
.sai-quote-mark { position: absolute; top: 30px; right: 40px; font-size: 64px; color: rgba(200, 32, 43, .12); }
.sai-quote blockquote {
    font-family: var(--sai-font);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.45;
    color: var(--sai-ink);
    margin: 0 0 32px;
    padding-right: 70px;
}
.sai-quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sai-quote-foot .sai-link { margin: 0; }
.sai-quote-who { display: flex; align-items: center; gap: 14px; font-family: var(--sai-font); }
.sai-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--sai-charcoal);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.sai-quote-who strong { display: block; font-size: 16px; color: var(--sai-ink); }
.sai-quote-who span { font-size: 13px; color: var(--sai-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .sai-block { padding: 60px 0; }
    .sai-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .sai-stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .sai-co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sai-photo-stack { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 767px) {
    .sai-block { padding: 48px 0; }
    .sai-page-hero { padding: 56px 0 50px; }
    .sai-vm-grid,
    .sai-co-grid { grid-template-columns: 1fr; }
    .sai-vm-card { padding: 30px 24px; }
    .sai-quote { padding: 40px 24px 30px; }
    .sai-stat { padding: 4px 16px; }
    .sai-photo-stack::before { right: 0; top: -10px; }
    .sai-photo-main { width: 94%; margin-right: 10px; }
    .sai-quote blockquote { padding-right: 0; }
    .sai-quote-mark { display: none; }
}
