/* ==========================================================================
   Abdulaziz Mohammed Almula Company — CPA website
   Design system: deep navy / royal blue, white & cool-gray bands, royal-blue & silver accent (from the logo).
   Written with CSS logical properties so the same rules serve RTL (Arabic)
   and LTR (English).
   ========================================================================== */

:root {
    --navy-900: #071d3f;
    --navy-800: #0b2c5d;
    --navy-700: #133b7a;
    --navy-600: #1d4d96;
    --navy-100: #e6edf7;
    --navy-50: #f3f6fa;
    /* Accent taken from the logo: royal blue highlight + silver. */
    --accent-500: #1a64c8;
    --accent-400: #2f78dc;
    --accent-300: #9cc2f5;  /* accent text/icons on navy backgrounds */
    --accent-100: #e7effb;
    --silver-300: #c7ccd4;
    --ink-900: #0f1b2d;
    --ink-700: #33425a;
    --ink-500: #5e6b80;
    --line: #dde4ee;
    --white: #ffffff;
    --success: #1f7a4d;
    --danger: #b42318;

    --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-en: "Inter", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(11, 44, 93, .06), 0 2px 8px rgba(11, 44, 93, .05);
    --shadow: 0 10px 30px rgba(11, 44, 93, .09);
    --shadow-lg: 0 24px 60px rgba(7, 29, 63, .18);
    --header-h: 78px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------- Base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    overflow-x: clip;
    font-family: var(--font-ar);
    color: var(--ink-700);
    background: var(--white);
    line-height: 1.8;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.7; }

h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; line-height: 1.35; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-600); }
:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.icon {
    width: 1.25em; height: 1.25em;
    flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
    vertical-align: middle;
}
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.icon-up { transform: rotate(180deg); }

.skip-link {
    position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 2000;
    background: var(--accent-500); color: #fff; padding: .6rem 1rem;
    border-radius: var(--radius-sm); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { max-width: 1240px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn-lg { padding: .9rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .9rem; }
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--accent-500); color: #fff; border: 1px solid var(--accent-500); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-400); border-color: var(--accent-400); color: #fff; box-shadow: 0 8px 22px rgba(26, 100, 200, .35); }

.btn-outline-light { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); }

.btn-outline-navy { border: 1px solid var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-700); color: #fff; }

.btn-link { color: var(--ink-500); text-decoration: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy-700); }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }

.page-home .site-header:not(.is-scrolled):not(.is-open) { background: transparent; border-color: transparent; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .main-nav__link,
.page-home .site-header:not(.is-scrolled):not(.is-open) .lang-switch,
.page-home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle { color: #fff; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.brand { display: inline-flex; align-items: center; color: inherit; min-width: 0; flex: none; }
.brand-logo { display: block; }
.brand-logo img { display: block; height: 54px; width: auto; max-width: 100%; }
.brand-logo--light { display: none; }
/* Dark backgrounds: transparent header over the hero, footer, page banners. */
.page-home .site-header:not(.is-scrolled):not(.is-open) .brand-logo--color,
.brand--light .brand-logo--color { display: none; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .brand-logo--light,
.brand--light .brand-logo--light { display: block; }
.brand--light .brand-logo img { height: 64px; }
.proposal-doc .brand-logo img { height: 72px; }

.main-nav { margin-inline-start: auto; }
.main-nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav__link {
    position: relative; display: block; padding: .5rem .6rem; white-space: nowrap;
    color: var(--ink-900); font-weight: 500; font-size: .95rem; border-radius: 8px;
}
.main-nav__link::after {
    content: ""; position: absolute; inset-inline: .6rem; bottom: .2rem; height: 2px;
    background: var(--accent-500); transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }
.main-nav__mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch {
    display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem;
    border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--navy-800);
    border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.lang-switch:hover { background: rgba(47, 120, 220, .15); color: inherit; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent;
    color: var(--navy-800); border-radius: 10px; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1279.98px) {
    .main-nav__link { padding: .5rem .45rem; font-size: .9rem; }
    .brand-logo img { height: 44px; }
    .header-cta { display: none; }
}

@media (max-width: 991.98px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .header-actions { margin-inline-start: auto; }
    .brand-logo img { height: 46px; }
    .main-nav {
        position: fixed; inset-inline: 0; inset-block-start: var(--header-h);
        background: #fff; border-top: 1px solid var(--line);
        padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: transform .25s var(--ease), opacity .25s, visibility .25s;
    }
    .site-header.is-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav__list { flex-direction: column; gap: 0; }
    .main-nav__link { color: var(--ink-900) !important; padding: .85rem .25rem; border-bottom: 1px solid var(--navy-50); font-size: 1.02rem; }
    .main-nav__link::after { display: none; }
    .main-nav__mobile-cta { display: block; margin-top: 1rem; }
}
@media (max-width: 420px) {
    .site-header .brand-logo img { height: 38px; }
    .lang-switch .icon { display: none; }
}

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(29, 77, 150, .65), transparent 60%),
        radial-gradient(800px 400px at 0% 110%, rgba(47, 120, 220, .22), transparent 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    padding-block: calc(var(--header-h) + 4.5rem) 3rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__pattern { width: 100%; height: 100%; color: rgba(255, 255, 255, .06); }
.hero__skyline path { fill: rgba(255, 255, 255, .045); }
.hero__chart { stroke: rgba(199, 204, 212, .35); }
.hero__chart circle { fill: var(--accent-300); stroke: none; }
[dir="rtl"] .hero__pattern { transform: scaleX(-1); }

.hero__title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; margin-bottom: 1.25rem; }
.hero__subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--navy-700); font-weight: 600; font-size: .9rem; letter-spacing: .02em; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent-500); border-radius: 2px; }
.eyebrow--light { color: var(--accent-300); }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

.hero-card {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg); padding: 1.75rem;
}
.hero-card__head { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: 1.1rem; margin-bottom: 1.1rem; }
.hero-card__head .icon { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: 12px; background: var(--accent-500); color: #fff; }
.hero-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.hero-card__list li { display: flex; gap: .65rem; align-items: center; padding: .7rem .9rem; border-radius: 10px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .9); }
.hero-card__list .icon { color: var(--accent-300); }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); margin: 3.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats__item { padding: 1.5rem 1rem 0; }
.hero-stats__item + .hero-stats__item { border-inline-start: 1px solid rgba(255, 255, 255, .1); }
.hero-stats dt { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--accent-300); line-height: 1.2; }
.hero-stats dd { margin: .25rem 0 0; color: rgba(255, 255, 255, .72); font-size: .92rem; }
@media (max-width: 575.98px) {
    .hero-stats__item { padding-inline: .5rem; }
    .hero-stats dd { font-size: .82rem; }
}

/* ---------------------------------------------------------------- Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--light { background: var(--navy-50); }
.section-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: 3rem; }
.section-head .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; color: var(--navy-800); }
.section-title--light { color: #fff; }
.section-intro { color: var(--ink-500); font-size: 1.05rem; margin: 0; }
.lead-text { font-size: 1.04rem; color: var(--ink-700); }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; color: var(--ink-900); }
.checklist .icon { color: var(--navy-700); margin-top: .25em; }

.partner-card {
    display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem;
    padding: 1.1rem 1.25rem; background: #fff; border-radius: var(--radius);
    border-inline-start: 4px solid var(--accent-500); box-shadow: var(--shadow-sm);
}
.partner-card__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; flex: none; }
.partner-card__avatar .icon { width: 28px; height: 28px; }
.partner-card p { margin: 0; line-height: 1.5; }
.partner-card__label { font-size: .8rem; color: var(--accent-500); font-weight: 600; }
.partner-card__name { font-weight: 700; color: var(--navy-800); font-size: 1.08rem; }
.partner-card__title { font-size: .88rem; color: var(--ink-500); }

/* ---------------------------------------------------------------- Tabs (About) */
.tabs { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.tabs__list { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy-800); }
.tabs__tab {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    padding: 1.1rem .5rem; border: 0; background: transparent; color: rgba(255, 255, 255, .7);
    font-weight: 600; font-size: .95rem; position: relative; transition: color .2s, background-color .2s;
}
.tabs__tab .icon { width: 1.5rem; height: 1.5rem; }
.tabs__tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tabs__tab[aria-selected="true"] { color: #fff; background: var(--navy-700); }
.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--accent-500); }
.tabs__tab:focus-visible { outline-offset: -3px; }
.tabs__panel { padding: 2rem; animation: fade-in .35s var(--ease); }
.tabs__panel:focus-visible { outline-offset: -3px; }
@media (max-width: 575.98px) {
    .tabs__list { grid-template-columns: repeat(2, 1fr); }
    .tabs__panel { padding: 1.4rem; }
}

.statement { position: relative; }
.statement__icon { width: 3.25rem; height: 3.25rem; padding: .7rem; border-radius: 14px; background: var(--navy-100); color: var(--navy-700); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.statement__title { font-size: 1.35rem; color: var(--navy-800); }
.statement__text { font-size: 1.12rem; line-height: 2; color: var(--ink-900); margin: 0; }
html[lang="en"] .statement__text { line-height: 1.8; }
.pill-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { padding: .4rem 1rem; border-radius: 999px; background: var(--accent-100); color: var(--navy-800); font-weight: 600; font-size: .9rem; }

.value-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 575.98px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
    position: relative; padding: 1.15rem 1.15rem 1rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.value-card:hover { border-color: var(--navy-100); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.value-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); color: #fff; margin-bottom: .7rem; }
.value-card__num { position: absolute; inset-inline-end: 1rem; top: .8rem; font-weight: 700; color: var(--navy-100); font-size: 1.6rem; font-family: var(--font-en); line-height: 1; }
.value-card__title { font-size: 1rem; margin-bottom: .3rem; color: var(--navy-800); }
.value-card__text { font-size: .9rem; margin: 0; color: var(--ink-500); line-height: 1.7; }

.mini-card { height: 100%; padding: 1.2rem; border-radius: var(--radius); background: var(--navy-50); }
.mini-card__icon { width: 2rem; height: 2rem; color: var(--accent-500); margin-bottom: .5rem; }
.mini-card__title { font-size: 1rem; color: var(--navy-800); }
.mini-card__text { margin: 0; font-size: .9rem; color: var(--ink-500); }

/* ---------------------------------------------------------------- Services */
.service-card {
    position: relative; display: flex; flex-direction: column;
    padding: 1.75rem 1.5rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: box-shadow .25s, transform .25s var(--ease), border-color .25s;
    overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--navy-700), var(--accent-400), var(--silver-300)); transform: scaleX(0); transform-origin: inline-start; transition: transform .35s var(--ease); }
.service-card:hover, .service-card.is-highlighted { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before, .service-card.is-expanded::before, .service-card.is-highlighted::before { transform: scaleX(1); }
.service-card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--navy-50); color: var(--navy-700); margin-bottom: 1.1rem; transition: background-color .25s, color .25s; }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background: var(--navy-800); color: #fff; }
.service-card__title { font-size: 1.12rem; color: var(--navy-800); margin-bottom: .6rem; }
/* Reserve room for the summary so collapsed cards line up even though rows no longer stretch. */
.service-card__summary { color: var(--ink-500); font-size: .95rem; min-height: calc(4 * 1.8em); }
html[lang="en"] .service-card__summary { min-height: calc(5 * 1.7em); }
@media (min-width: 768px) { .service-card__title { min-height: calc(2 * 1.35em); } }
@media (max-width: 767.98px) { .service-card__summary { min-height: 0; } }
.service-card__toggle {
    display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
    border: 0; background: transparent; color: var(--navy-700); font-weight: 600; padding: .35rem 0;
}
.service-card__toggle .icon { transition: transform .25s var(--ease); }
.service-card__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.service-card__detail { border-top: 1px dashed var(--line); margin-top: .75rem; padding-top: .9rem; animation: fade-in .3s var(--ease); }
.service-card__detail ul { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; gap: .5rem; }
.service-card__detail li { display: flex; gap: .5rem; font-size: .92rem; color: var(--ink-700); }
.service-card__detail li .icon { color: var(--accent-500); margin-top: .3em; }

/* ---------------------------------------------------------------- Engagement */
.steps { list-style: none; padding: 0; margin: 0 auto 2.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem 2.5rem; }
.steps__item { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--navy-800); }
.steps__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-500); color: #fff; font-family: var(--font-en); }

.panel { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.panel--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: rgba(255, 255, 255, .86); border: 0; }
.panel--navy .panel__title { color: #fff; }
.panel--navy .panel__title .icon { color: var(--accent-300); background: rgba(255, 255, 255, .08); }
.panel__tag { position: absolute; inset-inline-end: 1.5rem; top: 1.25rem; font-family: var(--font-en); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--navy-100); }
.panel--navy .panel__tag { color: rgba(255, 255, 255, .1); }
.panel__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; padding-inline-end: 3.5rem; }
.panel__head .panel__title { margin: 0; }
.panel__title { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; color: var(--navy-800); margin-bottom: 1rem; padding-inline-end: 3rem; }
.panel__title .icon { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: 12px; background: var(--navy-50); color: var(--navy-700); }
.panel__text { margin-bottom: 1.25rem; }
.panel--navy .panel__text { line-height: 2; }

.meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.meta-list dt { font-size: .8rem; font-weight: 500; opacity: .7; }
.meta-list dd { margin: 0; font-weight: 600; color: #fff; }

.fiscal-year { color: var(--navy-700); background: var(--accent-100); padding: .05rem .5rem; border-radius: 6px; }
.scope-card { height: 100%; padding: 1.25rem; background: var(--navy-50); border-radius: var(--radius); }
.scope-card__title { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; color: var(--navy-800); }
.scope-card__title .icon { color: var(--accent-500); }
.scope-card__list { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .45rem; font-size: .93rem; }
.scope-card__list li::marker { color: var(--accent-500); }

.fee-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.fee-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.fee-table th, .fee-table td { padding: 1rem 1.25rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fee-table thead th { background: var(--navy-800); color: #fff; font-weight: 600; font-size: .92rem; }
.fee-table tbody tr:nth-child(even) { background: var(--navy-50); }
.fee-table tfoot th, .fee-table tfoot td { background: var(--accent-100); color: var(--navy-900); font-weight: 700; border-bottom: 0; }
.fee-table__num { width: 64px; text-align: center !important; font-family: var(--font-en); }
.fee-table__amount { width: 220px; text-align: end !important; font-family: var(--font-en); font-weight: 600; white-space: nowrap; }
.placeholder-value { color: var(--ink-500); letter-spacing: .08em; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(26, 100, 200, .1) 6px 12px); padding: .1rem .45rem; border-radius: 6px; }
.panel--navy .placeholder-value { color: #fff; }
.fee-notes { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; }
.fee-notes li { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--ink-500); }
.fee-notes .icon { color: var(--accent-500); }

/* ---------------------------------------------------------------- Careers band */
.careers-band {
    position: relative; overflow: hidden; color: rgba(255, 255, 255, .85); padding-block: clamp(3.5rem, 7vw, 5.5rem);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(47, 120, 220, .28), transparent 60%),
        linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.careers-band::after {
    content: ""; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 420px; height: 420px;
    border-radius: 50%; border: 60px solid rgba(255, 255, 255, .035); pointer-events: none;
}
.careers-band__text { font-size: 1.05rem; max-width: 640px; }
.careers-band__perks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.careers-band__perks li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .92rem; color: #fff; }
.careers-band__perks .icon { color: var(--accent-300); }
.careers-cta { position: relative; z-index: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 1.75rem; }
.careers-cta__quote { color: #fff; font-size: 1.02rem; line-height: 1.9; margin-bottom: .35rem; }
.careers-cta__caption { color: var(--accent-300); font-weight: 600; font-size: .9rem; margin-bottom: 1.25rem; }
.careers-cta .form-status { margin: 1rem 0 0; }

/* ---------------------------------------------------------------- Dialog (native <dialog>) */
.modal-dialog-native {
    width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--ink-700);
}
.modal-dialog-native::backdrop { background: rgba(7, 29, 63, .6); backdrop-filter: blur(3px); }
.modal-dialog-native[open] { animation: dialog-in .3s var(--ease); }
.modal-dialog-native__box { padding: 1.75rem; }
.modal-dialog-native__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.modal-dialog-native__head h2 { font-size: 1.3rem; margin: 0; color: var(--navy-800); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy-50); color: var(--navy-800); display: grid; place-items: center; }
.icon-btn:hover { background: var(--navy-100); }
body.dialog-open { overflow: hidden; }

/* ---------------------------------------------------------------- Contact */
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; background: var(--navy-50); border-radius: var(--radius); }
.contact-list__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); color: #fff; flex: none; }
.contact-list__label { display: block; font-size: .8rem; color: var(--ink-500); line-height: 1.4; }
.contact-list a, .contact-list span:not(.contact-list__label):not(.contact-list__icon) { font-weight: 600; color: var(--ink-900); word-break: break-word; }

.partner-contact { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent-500); border-radius: var(--radius); display: flex; flex-direction: column; gap: .15rem; }
.partner-contact p { margin: 0; }
.partner-contact__label { font-size: .8rem; color: var(--ink-500); }
.partner-contact__name { font-weight: 700; color: var(--navy-800); }
.partner-contact a { align-self: flex-start; }

.map-frame { position: relative; flex: 1; min-height: 240px; border-radius: var(--radius); overflow: hidden; background: var(--navy-100); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; color: var(--navy-700); font-weight: 600; }
.map-placeholder .icon { width: 2.5rem; height: 2.5rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.form-card__title { font-size: 1.3rem; color: var(--navy-800); margin-bottom: 1.25rem; }

.form-label { font-weight: 600; color: var(--ink-900); font-size: .92rem; margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 10px; border-color: var(--line); padding: .7rem .95rem; font-size: .98rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(19, 59, 122, .12); }
.form-control::placeholder { color: #9aa6b8; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; }
.form-control.input-validation-error, .form-select.input-validation-error, .is-invalid { border-color: var(--danger) !important; }
.form-check-input.input-validation-error { border-color: var(--danger); }
.form-check-input:checked { background-color: var(--navy-700); border-color: var(--navy-700); }
.form-check { display: flex; gap: .6rem; align-items: flex-start; padding-inline-start: 0; }
.form-check .form-check-input { float: none; margin: .35rem 0 0; flex: none; }
.field-error { display: block; color: var(--danger); font-size: .84rem; margin-top: .3rem; min-height: 0; }
.field-error:empty { display: none; }

.hp-field { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-note { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--ink-500); font-size: .85rem; }
.form-note .icon { color: var(--success); }

.form-status { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 500; }
.form-status--success { background: #e8f5ee; color: var(--success); border: 1px solid #bfe3cf; }
.form-status--error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; }

.file-drop {
    display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; cursor: pointer;
    border: 1.5px dashed var(--line); border-radius: 12px; background: var(--navy-50); color: var(--ink-500);
    transition: border-color .2s, background-color .2s;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--navy-600); background: #fff; }
.file-drop .icon { width: 1.6rem; height: 1.6rem; color: var(--navy-700); }
.file-drop.has-file { color: var(--ink-900); border-style: solid; }

.spinner { display: none; width: 1rem; height: 1rem; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding-top: 4rem; font-size: .94rem; }
.footer-about { margin: 1.25rem 0 1rem; max-width: 380px; }
.footer-meta { list-style: none; padding: 0; margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .5); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .7); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-300); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: var(--accent-300); margin-top: .3em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.back-to-top { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .7); }
.back-to-top:hover { color: var(--accent-300); }

/* ---------------------------------------------------------------- Toasts */
.toast-region { position: fixed; inset-block-end: 1.25rem; inset-inline-end: 1.25rem; z-index: 3000; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 2.5rem)); }
.toast-msg { padding: .9rem 1.1rem; border-radius: 12px; color: #fff; background: var(--navy-800); box-shadow: var(--shadow-lg); animation: dialog-in .3s var(--ease); font-weight: 500; }
.toast-msg--success { background: var(--success); }
.toast-msg--error { background: var(--danger); }

/* ---------------------------------------------------------------- Inner pages */
.page-banner {
    color: #fff; padding-block: calc(var(--header-h) + 3rem) 3rem;
    background: radial-gradient(800px 300px at 90% 0%, rgba(29, 77, 150, .6), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.page-banner__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; }
.page-banner__lead { color: rgba(255, 255, 255, .78); margin-top: .75rem; }
.page-banner__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.page-banner--error { padding-block: calc(var(--header-h) + 5rem) 6rem; }
.error-code { font-family: var(--font-en); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--accent-300); line-height: 1; margin-bottom: .5rem; }
.request-id { margin-top: 2rem; font-size: .8rem; color: rgba(255, 255, 255, .5); }
.request-id code { color: rgba(255, 255, 255, .7); }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; color: var(--navy-800); margin-top: 2rem; }

/* Proposal document */
.proposal-doc { max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 5vw, 3.5rem); box-shadow: var(--shadow); }
.proposal-doc__head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 3px solid var(--navy-800); }
.proposal-doc__meta { margin: 0; display: grid; gap: .35rem; font-size: .9rem; }
.proposal-doc__meta div { display: flex; gap: .5rem; }
.proposal-doc__meta dt { color: var(--ink-500); font-weight: 500; }
.proposal-doc__meta dd { margin: 0; font-weight: 600; color: var(--ink-900); }
.proposal-doc__to { margin: 2rem 0; }
.proposal-doc__to p { margin-bottom: .4rem; }
.proposal-doc__client { font-weight: 700; font-size: 1.15rem; color: var(--navy-800); display: inline-block; }
.proposal-doc__section { margin-top: 2.5rem; }
.proposal-doc__section h2 { display: flex; align-items: center; gap: .75rem; font-size: 1.35rem; color: var(--navy-800); padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.proposal-doc__section h2 span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--navy-800); color: #fff; font-size: 1rem; font-family: var(--font-en); }
.proposal-doc__section h3 { font-size: 1.05rem; color: var(--navy-700); margin-top: 1.4rem; }
.proposal-doc__values { columns: 2; column-gap: 2rem; }
@media (max-width: 575.98px) { .proposal-doc__values { columns: 1; } }
.proposal-doc__statement { padding: 1.1rem 1.25rem; background: var(--navy-50); border-inline-start: 4px solid var(--accent-500); border-radius: 8px; }
.proposal-doc__sign { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.proposal-doc__signature { margin-top: 1.5rem; max-width: 360px; margin-inline-start: auto; }
.proposal-doc__signature p { margin: 0; }
.proposal-doc__firm { font-weight: 700; color: var(--navy-800); }
.proposal-doc__sigline { margin-top: 3rem; padding-top: .5rem; border-top: 1px dashed var(--ink-500); color: var(--ink-500); font-size: .85rem; }

/* ---------------------------------------------------------------- Reveal on scroll */
.reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
    .reveal-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Print (proposal) */
@media print {
    @page { margin: 16mm; }
    .site-header, .site-footer, .skip-link, .no-print, .toast-region { display: none !important; }
    body { color: #000; font-size: 11pt; }
    .page-banner { background: none !important; color: #000; padding: 0 0 8mm; }
    .page-banner .eyebrow { display: none; }
    .page-banner__title { color: #000; font-size: 18pt; }
    .section { padding: 0; }
    .proposal-doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
    .proposal-doc__section { break-inside: avoid-page; }
    .fee-table thead th { background: #0b2c5d !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .reveal { opacity: 1 !important; transform: none !important; }
    a { color: #000; }
}
