/* =========================================================
   ScaleASEAN theme layer
   Loaded last on every page, after style.css and any
   page-level <style>. It sets the house typeface (IBM Plex
   Sans) and a calmer, editorial look: solid brand blue in
   place of gradients, left-aligned headings, flatter cards,
   squarer buttons, and green kept for accents.
   ========================================================= */

:root {
    --blue-primary: #1E3A8A;
    --blue-dark: #172F6E;
    --green-accent: #10B981;
    --green-dark: #047857;
    --ink: #1C2433;
    --muted: #586174;
    --rule: #E2E5EA;
    --paper-alt: #F5F6F8;
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Type ---------- */
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    letter-spacing: 0;
}

button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p, li { text-wrap: pretty; }

strong, b { font-weight: 600; }

a { text-underline-offset: 0.18em; }

/* Small labels above headings: sentence case, no tracking */
.eyebrow,
.hero-tag,
.value-label,
.split-label,
.track-label-pill,
.section-label {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    border-radius: 0 !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
}

.eyebrow {
    color: var(--green-dark);
    text-align: left;
    margin-bottom: 0.625rem;
}

.value-label { color: var(--green-dark); }

/* ---------- Navigation ---------- */
.navbar {
    box-shadow: none;
    border-bottom: 1px solid var(--rule);
}

.nav-menu a {
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--blue-primary);
}

@media (min-width: 768px) {
    .nav-menu a.active {
        text-decoration: underline;
        text-decoration-color: var(--green-accent);
        text-decoration-thickness: 2px;
        text-underline-offset: 0.5em;
    }
    .nav-menu a.cta-button.active { text-decoration: none; }
}

.cta-button {
    border-radius: 3px;
    font-weight: 600;
}

/* ---------- Banners: solid brand blue, no gradients ---------- */
.hero,
.guide-hero,
.page-hero,
.tools-hero,
.tool-hero,
.calc-hero,
.diag-hero,
.assess-hero,
.form-hero,
.cs-hero,
.article-hero,
.cta-section {
    background: var(--blue-primary) !important;
    background-image: none !important;
}

.hero,
.page-hero {
    text-align: left;
    padding: 3.5rem 0 3rem;
    border-bottom: 3px solid var(--green-accent);
}

@media (min-width: 768px) {
    .hero,
    .page-hero {
        padding: 5rem 0 4rem;
    }
}

.hero h1,
.page-hero h1 {
    font-weight: 600;
    line-height: 1.15;
    max-width: 22em;
    letter-spacing: -0.015em;
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 2.75rem; }
}

.hero .eyebrow,
.page-hero .eyebrow,
.guide-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
    text-align: left;
}

.hero-subtitle,
.hero-description,
.hero-standfirst {
    color: rgba(255, 255, 255, 0.86) !important;
    font-weight: 400 !important;
    max-width: 40em;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.55;
}

.hero-buttons {
    justify-content: flex-start !important;
    padding: 0 !important;
}

.guide-hero {
    border-bottom: 3px solid var(--green-accent);
}

/* ---------- Section headings: left-aligned, editorial ---------- */
.section-title {
    text-align: left;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.015em;
    max-width: 26em;
}

.section-dark .section-title { color: #fff; }

.section-intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 44em;
    color: var(--muted);
}

.section-alt { background: var(--paper-alt); }

/* ---------- Buttons ---------- */
.btn,
.btn-primary,
.btn-primary-large,
.btn-secondary,
.btn-secondary-outline {
    border-radius: 3px;
    letter-spacing: 0;
    font-weight: 600;
    box-shadow: none;
}

.btn:hover,
.btn-primary:hover,
.btn-primary-large:hover { transform: none !important; }

/* On light backgrounds the main action is brand blue */
.btn-primary,
.btn-primary-large {
    background: var(--blue-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary-large:hover {
    background: var(--blue-dark);
}

/* On blue banners the main action is white */
.hero .btn-primary,
.hero .btn-primary-large,
.page-hero .btn-primary,
.page-hero .btn-primary-large,
.guide-hero .btn-primary,
.cta-section .btn-primary,
.cta-section .btn-primary-large {
    background: #fff;
    color: var(--blue-primary);
}

.hero .btn-primary:hover,
.hero .btn-primary-large:hover,
.page-hero .btn-primary:hover,
.cta-section .btn-primary:hover,
.cta-section .btn-primary-large:hover {
    background: #EEF2FA;
}

.btn-secondary,
.btn-secondary-outline {
    border-width: 1px;
}

/* ---------- Cards: flat, hairline borders ---------- */
.value-card,
.approach-card,
.regional-card,
.finding-card,
.credential-item,
.guide-card,
.tool-card,
.case-card,
.service-card,
.pricing-card,
.contact-method,
.faq-item {
    border-radius: 4px !important;
    box-shadow: none !important;
}

.value-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    border-top: 3px solid var(--blue-primary);
}

.section-alt .value-card { background: #fff; }

.guide-card:hover,
.value-card:hover,
.tool-card:hover,
.case-card:hover,
.service-card:hover {
    transform: none !important;
}

/* ---------- Callouts in guides ---------- */
.callout {
    border-radius: 3px !important;
    gap: 0 !important;
}

.callout-icon { display: none !important; }

/* ---------- Tags and pills ---------- */
.guide-tag,
.tag,
.pill,
.badge {
    border-radius: 2px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* ---------- Call to action band ---------- */
.cta-section {
    text-align: left;
}

.cta-section .container {
    max-width: 1200px;
}

.cta-section h2 {
    font-weight: 600;
    max-width: 22em;
}

.cta-section p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 40em;
}

.cta-buttons {
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* ---------- Footer ---------- */
.footer { background: #161D2B; }

.footer-col h4 {
    font-weight: 600;
    letter-spacing: 0;
}

.footer-bottom { text-align: left; }

/* ---------- Tables ---------- */
.guide-table th {
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-weight: 600 !important;
}

/* ---------- Cookie banner (also for pages that only load style_services.css) ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #161D2B;
    color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner__text {
    flex: 1 1 420px;
    max-width: 640px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__text a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    border: none;
    border-radius: 3px;
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background: var(--green-accent);
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    background: var(--green-dark);
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-banner__btn--reject:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
    .cookie-banner {
        justify-content: flex-start;
        text-align: left;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1 1 auto;
    }
}

/* =========================================================
   Page components used by the home and About us pages
   ========================================================= */
.sa-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: end;
}

@media (min-width: 900px) {
    .sa-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; }
}

.sa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.sa-hero-actions .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.55); }

.sa-hero-aside {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.sa-hero-aside a {
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
}

.sa-hero-aside a:hover .sa-aside-title { text-decoration: underline; text-decoration-color: var(--green-accent); }

.sa-aside-label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.2rem;
}

.sa-aside-title {
    display: block;
    font-weight: 600;
    font-size: 1.0625rem;
}

.sa-aside-title::after { content: ' \2192'; color: var(--green-accent); }

.sa-section { padding: 3.5rem 0; }

@media (min-width: 768px) {
    .sa-section { padding: 5rem 0; }
}

.sa-section + .sa-section { border-top: 1px solid var(--rule); }

.sa-section.sa-alt { background: var(--paper-alt); border-top: 0; }

.sa-section h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0.75rem;
    max-width: 24em;
}

@media (min-width: 768px) {
    .sa-section h2 { font-size: 2.125rem; }
}

.sa-intro {
    color: var(--muted);
    font-size: 1.0625rem;
    max-width: 42em;
    margin-bottom: 2.5rem;
}

.sa-two {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .sa-two { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.sa-col {
    border-top: 3px solid var(--blue-primary);
    padding-top: 1.5rem;
}

.sa-col-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.sa-col h3 {
    font-size: 1.375rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
    color: var(--ink);
}

.sa-col p { color: #3A4354; margin-bottom: 0.875rem; }

.sa-col p a, .sa-prose p a { color: var(--blue-primary); }

.sa-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--blue-primary);
    text-decoration: none;
}

.sa-link::after { content: ' \2192'; }

.sa-link:hover { text-decoration: underline; }

.sa-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .sa-steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.sa-steps li {
    border-top: 1px solid var(--rule);
    padding-top: 1.5rem;
}

.sa-steps h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; color: var(--ink); }

.sa-steps p { color: var(--muted); }

.sa-markets {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
    .sa-markets { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
}

.sa-markets div {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule);
}

.sa-markets dt { font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }

.sa-markets dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.sa-note { font-size: 0.875rem; color: var(--muted); margin-top: 1.25rem; }

.sa-facts {
    font-size: 1.125rem;
    color: var(--ink);
    max-width: 44em;
    border-left: 3px solid var(--green-accent);
    padding-left: 1.25rem;
    margin-top: 2.5rem;
}

.sa-list-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }

.sa-list-links li { border-bottom: 1px solid var(--rule); }

.sa-list-links a {
    display: grid;
    gap: 0.25rem;
    padding: 1.1rem 0;
    text-decoration: none;
    color: var(--ink);
}

@media (min-width: 768px) {
    .sa-list-links a { grid-template-columns: 11rem 1fr; gap: 2rem; align-items: baseline; }
}

.sa-list-links .sa-meta { font-size: 0.875rem; color: var(--muted); }

.sa-list-links .sa-title { font-weight: 600; }

.sa-list-links a:hover .sa-title { color: var(--blue-primary); text-decoration: underline; }

/* People */
.sa-person {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .sa-person { grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; }
}

.sa-person img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 3px;
    background: var(--paper-alt);
    display: block;
}

.sa-person-name { font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.2; }

.sa-person-role { color: var(--green-dark); font-weight: 500; margin: 0.25rem 0 1.25rem; }

.sa-prose p { color: #3A4354; margin-bottom: 1rem; max-width: 40em; }

.sa-creds {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--rule);
    max-width: 40em;
}

.sa-creds li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9375rem;
    color: #3A4354;
}

.sa-creds strong { color: var(--ink); }

.sa-advisors {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .sa-advisors { grid-template-columns: repeat(3, 1fr); }
}

.sa-advisor {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sa-avatar {
    width: 64px;
    height: 64px;
    border-radius: 3px;
    background: var(--paper-alt);
    border: 1px dashed #C5CBD5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.sa-advisor-role { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.25rem; }

.sa-advisor h3 { font-size: 1.125rem; line-height: 1.35; margin-bottom: 0.875rem; color: var(--ink); }

.sa-advisor ul { padding-left: 1.1rem; margin: 0 0 1.25rem; color: #3A4354; font-size: 0.9375rem; }

.sa-advisor li { margin-bottom: 0.35rem; }

.sa-advisor-status {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-size: 0.875rem;
    color: var(--muted);
}

.sa-checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }

.sa-checks li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.5rem;
    color: #3A4354;
    border-bottom: 1px solid var(--rule);
}

.sa-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 0.6rem;
    height: 2px;
    background: var(--green-accent);
}

.sa-checks h3, .sa-two h3.sa-subhead { font-size: 1.0625rem; margin-bottom: 0.75rem; color: var(--ink); }

.section-subtitle {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    color: var(--muted);
}

.page-hero,
.page-hero h1,
.page-hero h2 { color: #fff; }

.page-hero p { color: rgba(255, 255, 255, 0.86); }

/* ---------- Consistent heading weight across all page templates ---------- */
h1, h2, h3 { font-weight: 600 !important; }

/* Guides listing: tags sized to their text, readable green */
.guide-tag {
    align-self: flex-start;
    color: var(--green-dark) !important;
    background: #E8F5EE !important;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
}

.guide-tag.coming {
    color: var(--muted) !important;
    background: var(--paper-alt) !important;
}

.guide-featured-badge {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    border-radius: 2px !important;
}

/* Service cards: the price line now holds a short text label */
.service-price {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: var(--ink) !important;
    font-weight: 600 !important;
}

/* Client stories banner follows the other banners */
.cs-hero { text-align: left; border-bottom: 3px solid var(--green-accent); }
.cs-hero p { margin-left: 0 !important; margin-right: 0 !important; max-width: 40em; }
.cs-hero .eyebrow { color: rgba(255, 255, 255, 0.78) !important; }
.cs-hero .btn-primary { background: #fff !important; color: var(--blue-primary) !important; }
.cs-hero .btn-primary:hover { background: #EEF2FA !important; }

/* =========================================================
   Contact page, topic chooser, FAQ, footer address
   ========================================================= */
.contact-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 960px) {
    .contact-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3.5rem; }
}

.contact-info h2 { margin-bottom: 1rem; color: var(--ink); }

.contact-method {
    padding: 1.1rem 0;
    border-top: 1px solid var(--rule);
}

.contact-method h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--ink); }

.contact-method p { color: #3A4354; }

.contact-method a { color: var(--blue-primary); }

.contact-note { font-size: 0.875rem; color: var(--muted) !important; margin-top: 0.25rem; }

.sa-next { padding-left: 1.2rem; margin: 0.25rem 0 0; color: #3A4354; }

.sa-next li { margin-bottom: 0.5rem; }

.sa-topics {
    display: grid;
    gap: 0.875rem;
    max-width: 52rem;
}

@media (min-width: 768px) {
    .sa-topics { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}

.sa-topic {
    text-align: left;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
    transition: border-color 0.15s;
}

.sa-topic[hidden] { display: none; }

.sa-topic:hover { border-color: #AEB6C4; }

.sa-topic[aria-pressed="true"] {
    border-color: var(--blue-primary);
    box-shadow: inset 0 0 0 1px var(--blue-primary);
}

.sa-topic:focus-visible { outline: 2px solid var(--green-accent); outline-offset: 2px; }

.sa-topic-title { display: block; font-weight: 600; margin-bottom: 0.25rem; }

.sa-topic-desc { display: block; font-size: 0.9375rem; color: var(--muted); }

.sa-topic-note {
    margin-top: 1.25rem;
    max-width: 52rem;
    border-left: 3px solid var(--green-accent);
    padding-left: 1rem;
    color: #3A4354;
}

.sa-faq { margin: 0; border-top: 1px solid var(--rule); max-width: 52rem; }

.sa-faq div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }

.sa-faq dt { font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }

.sa-faq dd { margin: 0; color: #3A4354; }

.footer-address { line-height: 1.7 !important; }

/* About us: specialist areas */
.sa-areas {
    display: grid;
    gap: 2rem;
    border-top: 1px solid var(--rule);
    padding-top: 1.5rem;
}

@media (min-width: 900px) {
    .sa-areas { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.sa-areas h3 { font-size: 1.125rem; margin-bottom: 0.75rem; color: var(--ink); }

.sa-areas ul { padding-left: 1.1rem; margin: 0; color: #3A4354; }

.sa-areas li { margin-bottom: 0.4rem; }

/* Guides: start here */
.sa-start {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .sa-start { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.sa-start h3 { font-size: 1.0625rem; margin-bottom: 0.75rem; color: var(--ink); }

.sa-start ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }

.sa-start li { border-bottom: 1px solid var(--rule); }

.sa-start a { display: block; padding: 0.75rem 0; color: var(--blue-primary); text-decoration: none; font-weight: 500; line-height: 1.45; }

.sa-start a:hover { text-decoration: underline; }

/* Tools page */
.tools-group { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2.5rem 0 1rem; }
.sa-intro + .tools-group { margin-top: 1.5rem; }
.approach-card .tool-facts { font-size: 0.8125rem; color: var(--muted); margin-top: 0.875rem; }
.approach-card .tool-link { display: inline-block; margin-top: 0.75rem; color: var(--blue-primary); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.approach-card .tool-link:hover { text-decoration: underline; }
@media (min-width: 1024px) { #all-tools .approach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tools-group-note { color: var(--muted); max-width: 44em; margin: -0.5rem 0 1rem; font-size: 0.9375rem; }
.msp-scope { font-size: 0.9375rem !important; opacity: 0.9; margin-top: 0.75rem !important; font-weight: 500; }
.assess-hero .eyebrow, .diag-hero .eyebrow { color: rgba(255,255,255,0.8) !important; }
