/* Atlas Thames Advisory — public site
   Colours are estimated from the company profile; replace with the brand guide values if different. */

:root {
    --navy: #12223f;
    --navy-deep: #0e1b33;
    --rust: #b5492e;
    --gold: #c9a04a;
    --gold-soft: #f0e2c0;
    --cream: #faf6ef;
    --sand: #f3eadb;
    --line: #eadfcb;
    --text: #1e2a3a;
    --muted: #5b6577;
    --white: #ffffff;
    --logo-bg: #f7f7f7;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(18, 34, 63, 0.08);
    --font-ar: "IBM Plex Sans Arabic", "Noto Kufi Arabic", system-ui, sans-serif;
    --font-lat: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--font-lat);
    font-size: 17px;
    line-height: 1.7;
}
:lang(ar) body,
html[lang="ar"] body { font-family: var(--font-ar); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 16px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
    background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
/* --logo-bg is the flat background colour of the supplied logo file (#f7f7f7),
   so the logo blends into the header and footer without a visible box. */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--logo-bg);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 84px;
}
..brand img {
    width: 150px; height: 75px; object-fit: contain;
}
.nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 12px; cursor: pointer; color: var(--navy); font: inherit;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
    display: none;
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: grid; gap: 4px; }
.site-nav a {
    display: block; padding: 10px 12px; border-radius: 10px;
    text-decoration: none; color: var(--navy); font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--sand); }

.lang-switch { display: flex; gap: 6px; margin-top: 12px; }
.lang-switch a {
    text-decoration: none; font-size: .85rem; font-weight: 600;
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--navy);
}
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* Desktop: inline navigation in the header row */
@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: flex; align-items: center; gap: 12px;
        position: static; background: none; border: 0; padding: 0;
    }
    .site-nav ul { display: flex; gap: 2px; }
    .site-nav a { padding: 8px 10px; font-size: .95rem; white-space: nowrap; }
    .site-nav .lang-switch { margin-top: 0; margin-inline-start: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #d9b15e; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.hero .btn-ghost { color: var(--cream); border-color: rgba(250, 246, 239, .6); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.band { background: var(--sand); }
.muted { color: var(--muted); }
.source { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.eyebrow {
    color: var(--rust); font-size: .85rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; margin-bottom: 12px;
}
.lead { font-size: 1.125rem; color: var(--text); max-width: 60ch; }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(180deg, var(--navy) 0%, #1f3561 52%, #8a4a3a 82%, #b5492e 100%);
    color: var(--cream);
    padding-top: clamp(56px, 9vw, 110px);
    overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; }
.cta-section { padding-block: 0 clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--cream); max-width: 22ch; }
.hero .lead { color: #e9e2d2; }
.hero .eyebrow { color: var(--gold); }
.slogan {
    font-size: 1.25rem; color: var(--gold); font-weight: 600; margin-block: 8px 28px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
    width: 100%; height: auto; margin-top: 40px;
    /* the art's own sky is transparent at the top edge, so it blends into the gradient */
}

/* ---------- Cards and grids ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.card-navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.card-navy h2, .card-navy h3 { color: var(--gold); }
.card-rust { background: var(--rust); color: var(--cream); border-color: var(--rust); }
.card-rust h2 { color: var(--cream); }
.card-sand { background: var(--sand); box-shadow: none; }

.grid-2, .grid-3, .grid-4 {
    display: grid; gap: 20px;
    grid-template-columns: 1fr;
}
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 32px; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

.numbered { list-style: none; display: grid; gap: 20px; }
.numbered > .card:not(.service) { position: relative; padding-inline-start: 84px; }
.numbered .num, .service .num {
    position: absolute; inset-block-start: 22px; inset-inline-start: 22px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: var(--gold);
    display: grid; place-items: center; font-weight: 700;
}
.service { display: flex; gap: 20px; align-items: flex-start; }
.service .num { position: static; flex: none; }
.service p { margin: 0; }

.pillars { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

.values { list-style: none; }
.values .card h3 { color: var(--rust); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
    background: var(--white); border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 16px; color: var(--navy); font-weight: 500;
}

.cta-panel {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    background: var(--navy); color: var(--cream);
    border-radius: var(--radius); padding: 32px;
}
.cta-panel h2 { color: var(--cream); margin: 0; }
.cta-panel .btn-ghost { color: var(--cream); border-color: rgba(250,246,239,.6); }
.cta-row { margin-top: 32px; }

/* ---------- Stats / facts ---------- */
.stats { display: grid; gap: 16px; margin: 24px 0 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; margin: 0;
}
.stat dt, .fact dt {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--rust); line-height: 1.2;
}
.stat dd, .fact dd { margin: 8px 0 0; color: var(--text); }

.fact-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.fact {
    display: grid; gap: 8px; padding-block: 20px; border-bottom: 1px solid var(--line); margin: 0;
}
@media (min-width: 720px) {
    .fact { grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; }
}
.fact dd { margin: 0; }

/* ---------- Method phases ---------- */
.phases { list-style: none; display: grid; gap: 16px; counter-reset: phase; }
@media (min-width: 960px) { .phases { grid-template-columns: repeat(5, 1fr); } }
.phase { position: relative; }
.phase-no { display: block; color: var(--gold); font-weight: 600; font-size: .85rem; margin-bottom: 8px; }
.phase h2 { font-size: 1.2rem; }
.output { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .95rem; }

/* ---------- Page head ---------- */
.page-head {
    background: linear-gradient(180deg, var(--navy) 0%, #1f3561 100%);
    color: var(--cream);
    padding-block: clamp(48px, 7vw, 80px);
}
.page-head h1 { color: var(--cream); }
.page-head .lead { color: #e9e2d2; }
.page-head .eyebrow { color: var(--gold); }

/* ---------- Identity / legal ---------- */
.identity { display: grid; gap: 12px; margin: 24px 0 0; }
@media (min-width: 720px) { .identity { grid-template-columns: 1fr 1fr; } }
.identity > div {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.identity dt { font-size: .85rem; color: var(--rust); font-weight: 600; }
.identity dd { margin: 4px 0 0; color: var(--navy); }
.legal-item { margin-bottom: 16px; }
.message-body { white-space: normal; }

.notice {
    background: var(--gold-soft); border: 1px solid #e2c98e; border-radius: var(--radius);
    padding: 16px 20px; color: var(--navy);
}

/* ---------- Partners ---------- */
.partners { list-style: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.contact-grid aside a { color: var(--gold); }
.contact-grid aside .muted { color: #cfd6e4; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
    width: 100%; font: inherit; color: var(--text);
    background: var(--cream); border: 1px solid #d8cbb2; border-radius: 12px;
    padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 3px solid var(--gold-soft); border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 140px; }
.field.checkbox label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field.checkbox input { margin-top: 6px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-error { color: #9c2f1a; font-size: .9rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.alert-success { background: #e7f2e6; color: #1d4d24; border: 1px solid #b9d9b4; }
.alert-error { background: #f8e4df; color: #7a2516; border: 1px solid #e7b9ac; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep); color: #d9dfea; margin-top: 40px;
    padding-top: 48px;
}
.site-footer a { color: var(--gold); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-logo {
    width: 160px; height: 80px; object-fit: contain; border-radius: 10px;
    background: var(--logo-bg); padding: 6px;
}
.footer-tagline { color: var(--gold); margin-top: 12px; }
.footer-title { font-size: .95rem; color: var(--cream); margin-bottom: 12px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-block: 20px;
    font-size: .875rem; color: #aab4c8;
}
