/* ==========================================================================
   SAI Asia Group — brand theme
   Brand colours come from the logo: charcoal + red accent.
   ========================================================================== */

:root {
    --sai-red: #B82025;
    --sai-red-dark: #96181c;
    --sai-ink: #171717;
    --sai-charcoal: #171717;
    --sai-muted: #5e5e5e;
    --sai-line: #e6e6e6;
    --sai-soft: #F4F4F4;
    --sai-font: "Inter", "Helvetica Neue", Arial, sans-serif;

    /* Re-point the template's accent colour to the brand red */
    --theme: var(--sai-red);
    --theme2: var(--sai-red);
    --header: var(--sai-ink);
}

/* ---------- Shared pieces ---------- */
.sai-rule {
    display: block;
    width: 44px;
    height: 3px;
    background: var(--sai-red);
    margin: 0 0 18px;
}
.sai-rule-sm { width: 36px; margin: 0; }

.sai-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 34px;
    font-family: var(--sai-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border: 2px solid transparent;
    border-radius: 0;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s;
    white-space: nowrap;
}
.sai-btn i { transition: transform .25s; }
.sai-btn:hover i { transform: translateX(4px); }
.sai-btn-red { background: var(--sai-red); color: #fff; }
.sai-btn-red:hover { background: var(--sai-red-dark); color: #fff; }
.sai-btn-white { background: #fff; color: var(--sai-ink); }
.sai-btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.sai-btn-white i { color: var(--sai-red); }
.sai-btn-white:hover i { color: #fff; }

/* ---------- Header ---------- */
.sai-header {
    position: relative;      /* in normal flow, not over the hero */
    background: #fff;
    min-height: 84px;        /* reserves space when the bar turns sticky */
    z-index: 999;
}
.sai-header .header-1 { background: #fff; }
.sai-header .header-1 .header-main {
    border-bottom: 0;
    padding: 0;
    min-height: 84px;
}
.sai-header-logo img { display: block; height: 54px; width: auto; }
.sai-header .header-right { gap: 40px; }
.sai-header .header-main .main-menu ul li { margin-inline-end: 40px; }
.sai-header .header-main .main-menu ul li:last-child { margin-inline-end: 0; }
.sai-header .header-main .main-menu ul li a,
.sticky.header-1 .header-main .main-menu ul li a {
    font-family: var(--sai-font);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    color: var(--sai-ink);
    padding: 30px 0;
}
.sai-header .header-main .main-menu > nav > ul > li > a::after { display: none; }
.sai-header .header-main .main-menu > nav > ul > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 22px;
    width: 0;
    height: 2px;
    background: var(--sai-red);
    transition: width .3s;
}
.sai-header .header-main .main-menu > nav > ul > li:hover > a::before,
.sai-header .header-main .main-menu > nav > ul > li.active > a::before { width: 100%; }
.sai-header .header-main .main-menu ul li .submenu { top: 100%; border-top-width: 3px; }
.sai-header .header-main .main-menu ul li .submenu li a { padding: 0 0 0 26px; font-size: 14px; }
.sai-header .sidebar__toggle { color: var(--sai-ink); font-size: 22px; cursor: pointer; }
.sai-header .sticky { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.offcanvas__logo img { height: 42px; width: auto; }

/* ---------- Hero ---------- */
.sai-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f141b;
    color: #fff;
}
.sai-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 70%;
}
.sai-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 16, 26, .92) 0%, rgba(10, 16, 26, .7) 45%, rgba(10, 16, 26, .15) 100%);
}
.sai-hero .container { position: relative; z-index: 2; }
.sai-hero-content { max-width: 760px; padding: 80px 0; }
.sai-hero h1 {
    font-family: var(--sai-font);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
    text-transform: none;
    color: #fff;
    margin-bottom: 22px;
}
.sai-hero .sai-rule { margin-bottom: 20px; }
main.sai-prose-justify .sai-hero p {
    font-family: var(--sai-font);
    font-size: clamp(16px, 1.6vw, 20px);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 32px;
    text-align: left;
}

/* ---------- Intro + business cards ---------- */
.sai-section { padding: 60px 0 70px; background: #fff; }
.sai-intro { margin-bottom: 36px; }
.sai-intro h2 {
    font-family: var(--sai-font);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
    color: var(--sai-ink);
    margin-bottom: 6px;
}
main.sai-prose-justify .sai-intro p {
    font-family: var(--sai-font);
    font-size: 19px;
    color: var(--sai-muted);
    margin: 0;
    text-align: left;
}
.sai-subhead {
    font-family: var(--sai-font);
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    color: var(--sai-ink);
    margin-bottom: 8px;
}
.sai-subhead + .sai-rule { margin-bottom: 22px; }

.sai-biz-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.sai-biz-card {
    display: flex;
    flex-direction: column;
    background: var(--sai-soft);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    color: var(--sai-ink);
    transition: transform .3s, box-shadow .3s;
}
.sai-biz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
    color: var(--sai-ink);
}
.sai-biz-media { aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.sai-biz-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sai-biz-card:hover .sai-biz-media img { transform: scale(1.06); }
.sai-biz-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ece7e1, #d9d2c9);
    color: #8a7f72;
    font-size: 44px;
}
.sai-biz-body { padding: 16px 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sai-biz-body h4 {
    font-family: var(--sai-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    color: var(--sai-ink);
    margin: 0;
    transition: color .25s;
}
.sai-biz-card:hover h4 { color: var(--sai-red); }
.sai-biz-body small { font-size: 13px; color: var(--sai-muted); }

/* ---------- CTA band ---------- */
.sai-cta { background: var(--sai-charcoal); color: #fff; padding: 34px 0; }
.sai-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.sai-cta .sai-rule { margin-bottom: 12px; }
.sai-cta h2 {
    font-family: var(--sai-font);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    text-transform: none;
    color: #fff;
    margin: 0;
}

/* ---------- Footer (same black footer as the homepage) ---------- */
.sai-footer { background: #171717; color: #fff; border-top: 0; font-family: var(--sai-font); }
.sai-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.15fr;
    gap: 36px;
    padding: 48px 0 28px;
    margin: 0;
}
.sai-footer-top > [class*="col-"] { width: auto; max-width: none; padding: 0; }
.sai-footer-logo img { width: 210px; height: auto; margin-bottom: 0; }
.sai-footer-about { margin: 16px 0 0; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.7; max-width: 320px; text-align: left; }
.sai-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.sai-footer-social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    transition: background .25s, border-color .25s, color .25s;
}
.sai-footer-social a:hover { background: var(--sai-red); border-color: var(--sai-red); color: #fff; }
.sai-footer-title {
    font-family: var(--sai-font);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    color: #fff;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
}
.sai-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--sai-red);
}
.sai-footer-links,
.sai-footer-contact { list-style: none; padding: 0; margin: 0; }
.sai-footer-links li + li,
.sai-footer-contact li + li { margin-top: 10px; }
.sai-footer-links a,
.sai-footer-contact a { color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.55; transition: color .25s; }
.sai-footer-links a:hover,
.sai-footer-contact a:hover { color: #fff; }
.sai-footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.sai-footer-contact i { color: var(--sai-red); margin-top: 4px; width: 14px; flex-shrink: 0; }
.sai-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 26px; }
.sai-footer-bottom p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); text-align: left !important; }
@media (max-width: 1199px) {
    .sai-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .sai-footer-top { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
    .sai-footer-logo img { width: 180px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    .sai-header .header-main .main-menu ul li { margin-inline-end: 28px; }
    .sai-header .header-right { gap: 28px; }
}
@media (max-width: 1199px) {
    .sai-biz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sai-header .header-right { gap: 18px; }
}
@media (max-width: 767px) {
    .sai-header, .sai-header .header-1 .header-main { min-height: 70px; }
    .sai-header-logo img { height: 38px; }
    .sai-biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sai-hero { min-height: 380px; }
    .sai-hero-content { padding: 56px 0; }
    .sai-section { padding: 44px 0 50px; }
}
@media (max-width: 420px) {
    .sai-biz-grid { grid-template-columns: 1fr; }
    .sai-btn { padding: 12px 24px; }
}
