@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

/* ==========================================================================


   SRIWIJAYA QATAR VENTURES (SQV) — DESIGN SYSTEM
   Deep navy · Ivory · Qatar maroon · Premium institutional typography
   ========================================================================== */

:root {
    --navy: #0b192c;
    --navy-light: #14294a;
    --navy-mid: #1c3a63;
    --maroon: #8a1538;
    --maroon-hover: #a31845;
    --maroon-subtle: #f4e8ec;
    --ivory: #faf9f7;
    --surface: #ffffff;
    --border: #e3e0da;
    --border-soft: #eeece7;
    --text: #14213d;
    --text-muted: #5c6b7f;
    --text-light: #93a1b2;

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --w: 1200px;
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;

    --sh-sm: 0 1px 2px rgba(11, 25, 44, .05);
    --sh-md: 0 4px 18px rgba(11, 25, 44, .06);
    --sh-lg: 0 18px 40px -12px rgba(11, 25, 44, .14);
    --sh-inset: inset 0 1px 0 rgba(255, 255, 255, .04);

    --t: all .3s cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.72;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--t); }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: var(--maroon); color: #fff; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ============================ TYPOGRAPHY SCALE ============================ */

h1, h2, h3, h4 {
    line-height: 1.16;
    letter-spacing: -.022em;
    font-weight: 700;
    color: var(--navy);
    overflow-wrap: break-word;
}

.h-hero {
    font-size: clamp(2.05rem, 5.6vw, 3.85rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.06;
}
.h-1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); letter-spacing: -.03em; }
.h-2 { font-size: clamp(1.35rem, 2.4vw, 1.72rem); }
.h-3 { font-size: 1.06rem; letter-spacing: -.01em; }

.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-muted); line-height: 1.78; }
.body { color: var(--text-muted); }
.body + .body { margin-top: 16px; }
.small { font-size: .875rem; color: var(--text-muted); }
.tiny { font-size: .78rem; color: var(--text-light); letter-spacing: .04em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .715rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--maroon);
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--maroon);
}
.eyebrow--light { color: #d9b3c1; }
.eyebrow--light::before { background: #d9b3c1; }

.accent { color: var(--maroon); }
.mono-rule { height: 2px; width: 56px; background: var(--maroon); margin: 22px 0; }

/* ================================ BUTTONS ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .015em;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--t);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-primary:hover { background: var(--maroon-hover); border-color: var(--maroon-hover); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); background: var(--ivory); transform: translateY(-2px); }

.btn-onDark { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .26); }
.btn-onDark:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; }
.lbl-full, .lbl-short { display: inline; }
.lbl-short { display: none; }

/* ================================ HEADER ================================ */

.site-header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 78px;
}
.brand-stack, .brand { order: 1; }
.nav { order: 2; margin-left: 0; }
.header-actions { order: 3; display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: 16px; }
.nav-toggle { order: 4; flex-shrink: 0; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.14; }
.brand-txt b { font-size: .82rem; font-weight: 800; letter-spacing: .015em; color: var(--navy); }
.brand-txt span { font-size: .625rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-light); }

/* Brand stack: logo above, tagline below */
.brand-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; flex-shrink: 0; }
.brand-stack .brand-link { display: block; line-height: 0; }
.brand-stack .brand-link img { height: 42px; width: auto; }
.brand-stack .brand-txt { display: block; line-height: 1; }
.brand-stack .brand-txt b { display: none; }
.brand-stack .brand-txt span { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; }

.nav { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: 5px; }

.nav-link {
    display: block;
    padding: 9px 13px;
    font-size: .865rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--r-sm);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 1.5px;
    background: var(--maroon);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--t);
}
.nav-link:hover { color: var(--maroon); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--maroon); }

/* Dropdown */
.has-drop { position: relative; }
.drop-icon { width: 9px; height: 9px; margin-left: 5px; opacity: .55; transition: var(--t); vertical-align: middle; }
.has-drop:hover .drop-icon { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--t);
    z-index: 950;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 10px 13px;
    font-size: .855rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--r-sm);
}
.dropdown a:hover { background: var(--ivory); color: var(--maroon); }
.dropdown small { display: block; font-size: .715rem; font-weight: 500; color: var(--text-light); margin-top: 1px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--navy);
}
.nav-toggle span { display: block; width: 18px; height: 1.8px; background: currentColor; position: relative; transition: var(--t); }
.nav-toggle span::before, .nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.8px;
    background: currentColor;
    transition: var(--t);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* =============================== HERO =============================== */

.hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    padding: clamp(72px, 11vw, 128px) 0 clamp(56px, 8vw, 92px);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 480px at 88% 6%, rgba(138, 21, 56, .34), transparent 62%),
        radial-gradient(680px 420px at 4% 96%, rgba(28, 58, 99, .55), transparent 66%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero .h-hero { color: #fff; margin: 22px 0 24px; }
/* Lead + strong inside dark hero must stay light */
.hero .lead { font-size: clamp(1rem, 1.55vw, 1.13rem); color: rgba(255, 255, 255, .82); max-width: 720px; line-height: 1.8; }
.hero .lead strong { color: #fff; }
.hero .mono-rule { background: rgba(255, 255, 255, .35); }
/* Top region strip above eyebrow */
.hero-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 6px;
}
/* Never let decorative hero overlays block button clicks */
.hero::before, .hero::after { pointer-events: none; }
.hero .btn-row { position: relative; z-index: 3; }

/* Ghost/outline buttons on DARK sections (hero, navy, cta-band) — white text, visible */
.hero .btn-ghost,
.section--navy .btn-ghost,
.cta-band .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .06);
}
.hero .btn-ghost:hover,
.section--navy .btn-ghost:hover,
.cta-band .btn-ghost:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}
/* Dark buttons on dark sections — swap to light outline */
.section--navy .btn-dark,
.cta-band .btn-dark {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}
.section--navy .btn-dark:hover,
.cta-band .btn-dark:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}
/* Header Partner button — ensure it never disappears: solid maroon + white text + distinct */
.header-actions .btn-primary {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
    box-shadow: 0 2px 10px rgba(138, 21, 56, .28);
    white-space: nowrap;
}
.header-actions .btn-primary:hover {
    background: var(--maroon-hover);
    border-color: var(--maroon-hover);
    box-shadow: 0 6px 18px rgba(138, 21, 56, .35);
}

/* Single-column grid helper */
.grid-1 { grid-template-columns: 1fr; }

.hero-flow {
    position: relative;
    z-index: 2;
    margin-top: clamp(46px, 6vw, 68px);
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 26px;
}
.hero-flow-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
}
.hero-flow-item i {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .17);
    font-size: .62rem;
    font-style: normal;
    color: #e5b8c7;
    flex-shrink: 0;
}
.hero-flow-sep { color: rgba(255, 255, 255, .3); font-size: .8rem; }

/* Page hero (interior) */
.page-hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    padding: clamp(52px, 7vw, 82px) 0 clamp(44px, 5vw, 62px);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(760px 400px at 84% 12%, rgba(138, 21, 56, .3), transparent 62%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .h-1 { color: #fff; margin: 18px 0 16px; max-width: 860px; }
.page-hero .lead { color: rgba(255, 255, 255, .78); max-width: 720px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .76rem; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .45; }
.crumbs .cur { color: rgba(255, 255, 255, .85); }

/* =============================== SECTIONS =============================== */

.section { padding: clamp(58px, 7.5vw, 96px) 0; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .body, .section--navy .lead, .section--navy .small { color: rgba(255, 255, 255, .72); }
.section--navy .mono-rule { background: rgba(255, 255, 255, .3); }
.section--tight { padding: clamp(44px, 5.5vw, 66px) 0; }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .mono-rule { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-top: 16px; }
.sec-head .lead { margin-top: 18px; }

/* Grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split--reverse > *:first-child { order: 2; }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 30px 28px;
    transition: var(--t);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--maroon);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--t);
}
.card:hover { border-color: var(--border); box-shadow: var(--sh-md); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }

.card-num {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--maroon);
    font-variant-numeric: tabular-nums;
}
.card h3 { margin: 12px 0 10px; }
.card p { color: var(--text-muted); font-size: .935rem; }
.card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--maroon);
}
.card .card-link svg { width: 12px; height: 12px; transition: var(--t); }
.card:hover .card-link svg { transform: translateX(4px); }

.card--onDark {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .12);
}
.card--onDark::before { background: #d9b3c1; }
.card--onDark p { color: rgba(255, 255, 255, .7); }
.card--onDark:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }

.card-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--maroon-subtle);
    color: var(--maroon);
    margin-bottom: 4px;
}
.card-icon svg { width: 20px; height: 20px; }
.section--navy .card-icon { background: rgba(255, 255, 255, .1); color: #e5b8c7; }

/* Numbered flow cards */
.flow { display: grid; gap: 18px; grid-template-columns: repeat(5, 1fr); counter-reset: flow; }
.flow-step {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 26px 22px;
    position: relative;
    transition: var(--t);
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--maroon); }
.flow-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -13px;
    width: 7px; height: 7px;
    border-top: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    transform: translateY(-50%) rotate(45deg);
}
.flow-step:last-child::after { display: none; }
.hero .flow-step { box-shadow: var(--sh-md); }
.flow-step b {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--maroon);
    opacity: .32;
    line-height: 1;
    margin-bottom: 10px;
}
.flow-step h3 { font-size: 1rem; margin-bottom: 7px; }
.flow-step p { font-size: .865rem; color: var(--text-muted); }

/* Stack */
.stack { display: grid; gap: clamp(34px, 4.5vw, 62px); }
.stack-sm { display: grid; gap: 18px; }

/* Check list */
.checks { display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .935rem; color: var(--text-muted); }
.checks svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--maroon); }
.checks strong { color: var(--text); font-weight: 700; }
.section--navy .checks li { color: rgba(255, 255, 255, .74); }
.section--navy .checks svg { color: #d9b3c7; }
.section--navy .checks strong { color: #fff; }

/* Numbered pillar list */
.pillars { display: grid; gap: 2px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; }
.pillar {
    background: var(--surface);
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 20px;
    align-items: start;
    transition: var(--t);
}
.pillar:hover { background: var(--ivory); }
.pillar-n {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--maroon);
    padding-top: 4px;
    font-variant-numeric: tabular-nums;
}
.pillar h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pillar p { font-size: .9rem; color: var(--text-muted); }

/* Corridor visual */
.corridor { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 3vw, 40px); }
.corridor-node {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .045);
    border-radius: var(--r-md);
    padding: 30px 26px;
}
.corridor-node h3 { font-size: 1.1rem; margin-bottom: 12px; }
.corridor-node p { font-size: .9rem; color: rgba(255, 255, 255, .72); }
.corridor-node ul { margin-top: 14px; display: grid; gap: 8px; }
.corridor-node li { font-size: .855rem; color: rgba(255, 255, 255, .66); display: flex; gap: 9px; }
.corridor-node li::before { content: '—'; color: #d9b3c7; flex-shrink: 0; }
.corridor-mid { display: grid; place-items: center; gap: 12px; }
.corridor-badge {
    width: 62px; height: 62px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--maroon);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
    line-height: 1.15;
}
.corridor-arrow { color: rgba(255, 255, 255, .3); font-size: 1.1rem; letter-spacing: .3em; }


/* Corridor on light sections (ivory/white) — readable variant */
.section--ivory .corridor-node {
    background: var(--surface);
    border-color: var(--border-soft);
    box-shadow: var(--sh-sm);
}
.section--ivory .corridor-node h3 { color: var(--navy); }
.section--ivory .corridor-node p { color: var(--text-muted); }
.section--ivory .corridor-node li { color: var(--text-muted); }
.section--ivory .corridor-node li::before { color: var(--maroon); }
.section--ivory .corridor-badge { background: var(--maroon); color: #fff; }
.section--ivory .corridor-arrow { color: var(--text-light); }

/* Stat-free metric strip (labels only — no fabricated numbers) */
.markers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; }
.marker { background: var(--surface); padding: 30px 24px; }
.marker b { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); margin-bottom: 9px; }
.marker p { font-size: .9rem; color: var(--text-muted); }

/* Quote */
.pull {
    border-left: 3px solid var(--maroon);
    padding: 8px 0 8px 26px;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 600;
    line-height: 1.62;
    color: var(--navy);
    letter-spacing: -.012em;
}
.pull cite { display: block; margin-top: 14px; font-size: .8rem; font-weight: 600; font-style: normal; color: var(--text-light); letter-spacing: .05em; }
.section--navy .pull { color: #fff; border-color: #d9b3c7; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 17px 20px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { background: var(--ivory); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
td { color: var(--text-muted); }
td b, td strong { color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: var(--t); }
tbody tr:hover { background: var(--ivory); }

/* Tabs-ish pill row */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
}
.pill--maroon { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 340px at 82% 22%, rgba(138, 21, 56, .36), transparent 64%);
}
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { color: #fff; margin: 16px auto 18px; max-width: 720px; }
.cta-band p { color: rgba(255, 255, 255, .76); max-width: 620px; margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

/* Reveal — safe by default: visible even if JS fails.
   JS adds class "js" to <html>, and only then is the hidden state armed. */
.js .reveal { opacity: 1 !important; }
.js .reveal.in { opacity: 1; transform: none; }

/* =============================== FOOTER =============================== */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .68); padding: clamp(48px, 6vw, 74px) 0 0; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--maroon), transparent 62%); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: clamp(28px, 3.5vw, 48px); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-brand .tagline { font-size: .875rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
.footer-brand .desc { font-size: .865rem; margin-top: 10px; max-width: 300px; line-height: 1.72; }

/* Footer brand-stack (matches header but white) */
.footer-brand .brand-stack { align-items: flex-start; }
.footer-brand .brand-stack .brand-link img { height: 46px; }
.footer-brand .brand-stack .brand-txt span { color: #fff; font-size: .7rem; }
.footer-brand .desc { font-size: .865rem; margin-top: 10px; max-width: 300px; line-height: 1.72; }
.site-footer h4 { color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer li a { font-size: .88rem; }
.site-footer li a:hover { color: #fff; padding-left: 4px; }
.site-footer .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 12px; }
.site-footer .contact-line svg { width: 15px; height: 15px; margin-top: 4px; color: #d9b3c7; flex-shrink: 0; }
.site-footer .contact-line a:hover { color: #fff; }

/* Secretariat address row: the text is long and wraps, unlike the rows above it.
   Cap the row and centre the BLOCK (max-width + margin-inline) so the globe sits
   tight against the first word instead of drifting away from it. */
.site-footer .contact-line--addr { max-width: 320px; margin-inline: auto; }
.footer-bottom {
    margin-top: clamp(34px, 4vw, 50px);
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* =========================== UTILITIES / STATES =========================== */

.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--r-sm) 0;
    font-size: .85rem;
    font-weight: 700;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}
.skip-link:focus { width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal; }

:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 3px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================== RESPONSIVE ============================== */

@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: repeat(3, 1fr); }
    .flow-step::after { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-stack .brand-txt { display: block; }
    .split { grid-template-columns: 1fr; gap: 28px; }
}

/* Header Mobile Optimization */
@media (max-width: 980px) {
    html, body { overflow-x: hidden; }
    /* --- header row: logo | partner + lang | hamburger --- */
    .header-inner {
        gap: 20px;
        min-height: 62px;
    }
    .site-header .container { padding: 0 16px; }
    .brand-stack { min-width: 0; flex-shrink: 1; }
    .brand-stack .brand-link img { height: 30px; max-width: 100%; }
    .brand-stack .brand-txt span { font-size: .5rem; letter-spacing: .12em; }
    .header-actions {
        gap: 8px;
        margin-left: 0;
        flex-shrink: 0;
    }
    .header-actions .btn-primary {
        padding: 7px 12px;
        font-size: .72rem;
        white-space: nowrap;
    }
    .header-actions .lang-switch { padding: 6px 9px; font-size: .75rem; }
    .nav { display: contents; }
    .nav-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        margin-left: 4px;
        flex-shrink: 0;
    }

    .nav-menu {
        position: fixed;
        inset: 62px 0 auto 0;
        width: 100vw;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--sh-lg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 22px 22px;
        display: none;
    }
    html[dir="rtl"] .nav-menu.open, .nav-menu.open { display: flex !important; }
    .nav-link { padding: 13px 4px; border-bottom: 1px solid var(--border-soft); font-size: .95rem; }
    .nav-link::after { display: none; }
    .nav-link.active { color: var(--maroon); }

    .dropdown {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--border);
        border-radius: 0;
        margin: 2px 0 6px;
        padding: 0 0 0 14px;
        background: transparent;
    }
    .dropdown a { padding: 8px 0; font-size: .875rem; }
    .drop-icon { display: none; }

    .split { grid-template-columns: 1fr; }
    .split--reverse > *:first-child { order: 0; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .corridor { grid-template-columns: 1fr; }
    .corridor-arrow { transform: rotate(90deg); }
    .markers { grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-brand .brand-stack { align-items: center; }
    .footer-brand .brand-stack .brand-link img { height: 42px; }
    .footer-brand .desc { max-width: 100%; text-align: center; }
    .site-footer h4 { text-align: center; margin-bottom: 14px; }
    .site-footer ul { gap: 10px; place-items: center; }
    .site-footer ul li { text-align: center; }
    .site-footer .contact-line {
        max-width: 320px;
        margin: 0 auto 12px;
        justify-content: center;
        text-align: center;
        gap: 10px;
        align-items: center;
    }
    .site-footer .contact-line svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
    .site-footer .contact-line a,
    .site-footer .contact-line span { flex: none; min-width: 0; line-height: 1.6; }
    .site-footer .contact-line--addr {
        max-width: 320px;
        margin: 0 auto 12px;
        justify-content: center;
        text-align: center;
    }
    .footer-bottom { justify-content: center; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
    /* Full width buttons */
    .btn-row { width: 100%; }
    .btn-row .btn { width: 100%; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; overflow-x: hidden; }
    .container { padding: 0 20px; max-width: 100%; }
    .nav-menu { inset-block-start: 68px; max-height: calc(100vh - 68px); }
    .brand img { height: 34px; }
    .grid-2, .grid-3, .grid-4, .flow, .markers, .split { grid-template-columns: 1fr !important; }
    .card { padding: 25px 22px; }
    .pillar { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
    .btn-row .btn { width: 100%; }
    .header-actions .btn { width: auto; padding: 10px 18px; font-size: .8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .pull { padding-left: 18px; }
    .lbl-full { display: none; }
    .lbl-short { display: inline; }
    h1, .h-hero { overflow-wrap: anywhere; word-break: normal; }
    table { min-width: 480px; }
}

@media (max-width: 380px) {
    .brand img { height: 30px; }
    .header-actions .btn { padding: 9px 14px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}



/* ===== Leadership photos ===== */
.leader-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    margin: 0 auto 22px;
    border: 4px solid rgba(128, 0, 32, 0.08);
}

.leader-photo--bayu {
    width: 340px;
    height: 340px;
}

.leader-photo-wrap {
    text-align: center;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .leader-photo {
        width: 250px;
        height: 250px;
    }
    .leader-photo--bayu {
        width: 290px;
        height: 290px;
    }
}

@media print {
    .site-header, .site-footer, .nav-toggle, .hero-flow, .cta-band { display: none; }
    body { color: #000; background: #fff; }
}

/* Investment table — mobile: stack as cards, no horizontal scroll */
@media (max-width: 640px) {
    .table-wrap { overflow: visible; border: none; background: transparent; border-radius: 0; }
    .table-wrap table { min-width: 0; display: block; width: 100%; }
    .table-wrap thead { display: none; }
    .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
    .table-wrap tr { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
    .table-wrap td { border: none; border-bottom: 1px solid var(--border-soft); padding: 14px 16px; }
    .table-wrap td:last-child { border-bottom: none; }
    .table-wrap td:first-child { background: var(--ivory); font-weight: 700; }
}

/* ============================== CONTACT FORM ============================== */

.form-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: clamp(26px, 3.5vw, 40px);
    box-shadow: var(--sh-sm);
}
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 8px;
}
.field .hint { display: block; font-size: .74rem; color: var(--text-light); margin-top: 6px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: .93rem;
    color: var(--text);
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    transition: var(--t);
    -webkit-appearance: none;
    appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.68; }
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6b7f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 15px;
    padding-right: 40px;
    cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, .09);
}
.field input::placeholder, .field textarea::placeholder { color: #a8b3c2; }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid {
    border-color: #c0392b;
    background: #fdf6f5;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-status { margin-top: 16px; font-size: .885rem; font-weight: 600; padding: 0; }
.form-status.is-error { color: #c0392b; }
.form-status.is-ok { color: #1e7a4d; }

@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Detail rows (contact page) */
.detail-list { display: grid; gap: 2px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; }
.detail {
    background: var(--surface);
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    align-items: start;
    transition: var(--t);
}
.detail:hover { background: var(--ivory); }
.detail-icon {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--maroon-subtle);
    color: var(--maroon);
}
.detail-icon svg { width: 18px; height: 18px; }
.detail h3 { font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.detail p, .detail a { font-size: .96rem; color: var(--text); }
.detail a:hover { color: var(--maroon); }

/* Insight list */
.insight-item {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 26px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-soft);
    transition: var(--t);
}
.insight-item:last-child { border-bottom: 0; }
.insight-item:hover .insight-title { color: var(--maroon); }
.insight-kind {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--maroon);
    padding-top: 3px;
}
.insight-title { font-size: 1.14rem; margin-bottom: 8px; transition: var(--t); letter-spacing: -.015em; }
.insight-excerpt { font-size: .92rem; color: var(--text-muted); }
.insight-item:hover .insight-excerpt { color: var(--text); }
@media (max-width: 640px) {
    .insight-item { grid-template-columns: 1fr; gap: 12px; }
}

.hp { display: none !important; }

/* Fix card contrast on navy backgrounds */
.section--navy .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}
.section--navy .card .h-4,
.section--navy .card h3,
.section--navy .card h4 {
    color: #fff;
}
.section--navy .card p,
.section--navy .card .small {
    color: rgba(255, 255, 255, 0.75);
}

/* Markers grid adaptation when inside split or narrower columns */
.split .markers {
    grid-template-columns: repeat(2, 1fr) !important;
}



/* Robust Responsive Comparison Grid */
.compare-grid {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 18, 32, 0.04);
}
.compare-row {
    display: flex;
    border-bottom: 1px solid var(--border-soft);
}
.compare-row:last-child {
    border-bottom: none;
}
.compare-header {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}
.compare-col {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.compare-col strong {
    color: var(--text);
    font-size: 0.95rem;
}
.compare-header .compare-col {
    color: #fff;
}
.col-lbl {
    display: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--maroon);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .compare-header {
        display: none;
    }
    .compare-row {
        flex-direction: column;
        padding: 12px 16px;
        background: #fff;
        margin-bottom: 12px;
        border: 1px solid var(--border-soft);
        border-radius: var(--r-md);
    }
    .compare-row:last-child {
        margin-bottom: 0;
    }
    .compare-grid {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .compare-col {
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-soft);
    }
    .compare-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .compare-col:first-child {
        padding-top: 0;
    }
    .col-lbl {
        display: block;
    }
}

/* ==========================================================================
   Arabic (Qatar / GCC) Localization & RTL Support
   ========================================================================== */

html[lang="ar"],
html[dir="rtl"] {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row;
}

html[dir="rtl"] .split {
    direction: rtl;
}

html[dir="rtl"] .checks li {
    padding-left: 0;
    padding-right: 36px;
}

html[dir="rtl"] .checks li svg {
    left: auto;
    right: 0;
}

html[dir="rtl"] .pull {
    border-left: none;
    border-right: 3px solid var(--maroon);
    padding: 8px 26px 8px 0;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .contact-line svg {
    margin-right: 0;
    margin-left: 0;
}

html[dir="rtl"] .compare-row {
    direction: rtl;
}

html[dir="rtl"] .btn-row {
    flex-direction: row;
}

/* ===== Language switch label swap (EN mobile: full -> "ع") ===== */
.lang-switch .lang-abbr { display: none; }
.lang-switch .lang-full { display: inline; }

/* ===== Language switch contrast in footer (dark .site-footer) ===== */
.site-footer .footer-links .lang-switch {
    border-color: rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .92);
    background: transparent;
}
.site-footer .footer-links .lang-switch:hover {
    border-color: rgba(255, 255, 255, .75);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.site-footer .footer-links .lang-switch:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .92);
    outline-offset: 2px;
}

/* ===== Header polish: language switch must not squeeze the menu row ===== */

@media (min-width: 981px) {
    .header-actions { display: flex; align-items: center; gap: 12px; }
    .header-actions .btn-primary { display: none !important; }
}
/* Keep the brand from being crushed on narrow phones */
@media (max-width: 980px) {
    .brand-stack { min-width: 0; flex-shrink: 1; }
    .brand-stack .brand-link img { max-width: 100%; }
    .header-actions .lang-switch { padding: 6px 10px; font-size: .78rem; }
}

@media (max-width: 380px) {
    .header-actions .lang-switch { margin-right: 4px; padding: 5px 8px; font-size: .88rem; }
}

/* ===== Language switch — English (LTR) pages ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 16px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    text-decoration: none;
    transition: var(--t);
}
.lang-switch:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}
.lang-switch[lang="ar"] {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}
.header-actions .lang-switch { margin-left: 0; }
.footer-links .lang-switch {
    margin-left: 0;
}

html[dir="rtl"] .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 16px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    text-decoration: none;
}
html[dir="rtl"] .lang-switch:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}



/* --- ARABIC / RTL SUPPORT --- */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] body {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}
[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
    justify-content: flex-end;
}
[dir="rtl"] .corridor-arrow {
    transform: rotate(180deg);
}
[dir="rtl"] .checks li svg {
    margin-right: 0;
    margin-left: 12px;
}
[dir="rtl"] .footer-grid {
    text-align: right;
}


/* ===== DEFINITIVE ARABIC (RTL) BRAND STACK: LOGO TOP, TEXT BOTTOM ===== */
[dir="rtl"] .brand-stack,
html[dir="rtl"] .brand-stack,
body[dir="rtl"] .brand-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

[dir="rtl"] .brand-stack .brand-link,
html[dir="rtl"] .brand-stack .brand-link {
    display: block !important;
}

[dir="rtl"] .brand-stack .brand-txt,
html[dir="rtl"] .brand-stack .brand-txt {
    display: block !important;
    margin: 0 !important;
}

[dir="rtl"] .brand-stack .brand-txt span,
html[dir="rtl"] .brand-stack .brand-txt span {
    display: block !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

[dir="rtl"] .footer-brand .brand-stack,
html[dir="rtl"] .footer-brand .brand-stack {
    align-items: flex-start !important;
}

@media (max-width: 640px) {
    [dir="rtl"] .footer-brand .brand-stack,
    html[dir="rtl"] .footer-brand .brand-stack {
        align-items: center !important;
    }
}

/* ===== AR Insights grids: responsive, no fixed columns ===== */
.markers--look { grid-template-columns: repeat(3, 1fr); }
.brief-grid { margin-top: 36px; gap: 24px; }
@media (max-width: 900px) {
  .markers--look { grid-template-columns: repeat(2, 1fr) !important; }
  .brief-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .markers--look, .brief-grid { grid-template-columns: 1fr !important; }
}
[dir="rtl"] .marker { text-align: right; }

/* ===== FINAL: RTL nav-menu must collapse vertically on mobile (wins last) ===== */
@media (max-width: 980px) {
  html[dir="rtl"] .nav-menu,
  [dir="rtl"] .nav-menu,
  body[dir="rtl"] .nav-menu {
    flex-direction: column !important;
  }
  html[dir="rtl"] .nav-menu .nav-link,
  [dir="rtl"] .nav-menu .nav-link {
    text-align: right;
  }
}
/* Desktop RTL header: keep row order normal (logo right → nav → actions left) */
@media (min-width: 981px) {
  html[dir="rtl"] .nav-menu,
  [dir="rtl"] .nav-menu {
    flex-direction: row !important;
  }
}


/* Hide partner button on mobile header */
@media (max-width: 980px) {
    .header-actions .btn-primary {
        display: none !important;
    }
}

/* ===== Tagline on mobile: logo top / text bottom, fits logo width =====
   Single source of truth. The 480px override MUST come after the 980px
   block, otherwise last-wins makes .58rem leak onto small phones. */
@media (max-width: 980px) {
    .brand-stack .brand-txt span {
        display: block;
        font-size: .58rem;
        letter-spacing: .09em;
        text-align: center;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (max-width: 480px) {
    .brand-stack .brand-txt span {
        font-size: .4rem;
        letter-spacing: .06em;
    }
}


/* Force reveal visible if JS fails/missing */
.js-fallback .reveal { opacity: 1 !important; transform: none !important; }