/* African Atlas — site styles. Logo colours: off-white ground, black, yellow used sparingly. */
:root {
	--bg: #F4F2ED;
	--card: #FBFAF7;
	--ink: #141414;
	--muted: #605C55;
	--line: rgba(20, 20, 20, .12);
	--yellow: #F2B227;
	--black: #111;
	--font: "Noto Kufi Arabic", "Instrument Sans", system-ui, sans-serif;
	--num: "Instrument Sans", system-ui, sans-serif;
	--wrap: min(1240px, 100% - 40px);
	--r: 10px;
}
html:not([dir="rtl"]) { --font: "Instrument Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.03rem/1.85 var(--font); -webkit-font-smoothing: antialiased; }
html:not([dir="rtl"]) body { line-height: 1.6; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; font-family: var(--font); }
html:not([dir="rtl"]) :is(h1, h2) { letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ico svg { width: 22px; height: 22px; stroke-width: 1.5; }
.wp-site-blocks { padding: 0; }
.wp-block-group.is-layout-flow > *, .wp-block-post-content > * { margin-block: 0; }

/* Buttons: theme links (.btn) and core button blocks (.wp-block-button.btn-*) share one look. */
.btn, .wp-block-button[class*="btn-"] .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 6px; font: 600 .96rem/1.4 var(--font); text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-y, .btn-y .wp-block-button__link { background: var(--yellow); color: var(--black); }
.btn-y:hover, .btn-y .wp-block-button__link:hover { background: #E3A515; }
.btn-k, .btn-k .wp-block-button__link { background: var(--black); color: #fff; }
.btn-k:hover, .btn-k .wp-block-button__link:hover { background: #333; }
.btn-o, .btn-o .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.btn-o:hover, .btn-o .wp-block-button__link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.supply .btn-o .wp-block-button__link:hover { background: #fff; color: var(--black); border-color: #fff; }
.actions, .wp-block-buttons.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow .3s; }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 0; } }
.site-head.solid { box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand img { width: 60px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: .9rem; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; transition: border-color .2s; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current] { border-color: var(--yellow); font-weight: 600; }
.lang { font-size: .85rem; font-weight: 600; text-decoration: none; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 6px; }
.top .top-wa { padding: 10px 18px; }
.menu-btn { display: none; font: 600 .9rem var(--font); background: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 14px; cursor: pointer; }

/* Sections */
.sec { padding-block: 100px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 20ch; }
.head p { color: var(--muted); max-width: 46ch; }
.alt { background: var(--card); border-block: 1px solid var(--line); }

/* Hero: headline + the trade-route map */
.hero { padding-block: 40px 72px; border-bottom: 1px solid var(--line); }
.hero > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin-bottom: 24px; }
.hero-copy > p { color: var(--muted); max-width: 44ch; margin-bottom: 32px; font-size: 1.08rem; }
.facts { display: flex; margin-top: 48px; border-top: 1px solid var(--line); }
.fact { flex: 1; padding: 20px 0; padding-inline-end: 20px; }
.fact + .fact { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.fact .num { font: 700 2rem/1 var(--num); }
.fact p:not(.num) { color: var(--muted); font-size: .88rem; margin-top: 8px; line-height: 1.6; }
.hero-map .map { width: 100%; height: auto; max-height: 78vh; }

/* Map */
.d-other { stroke: #DDD7CB; stroke-width: 4.6; stroke-linecap: round; }
.d-africa { stroke: #B9B1A2; stroke-width: 4.6; stroke-linecap: round; }
.d-market { stroke: var(--ink); stroke-width: 4.6; stroke-linecap: round; }
.m-route { fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; }
.m-import { stroke-dasharray: 3 7; stroke: var(--ink); stroke-width: 1.8; }
.m-pin, .m-hub { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.m-hub { stroke-width: 3; }
.m-label { fill: var(--ink); font: 600 21px var(--font); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; }

/* Markets: one card per country with its dotted silhouette */
.ccards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ccard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.ccard:hover { border-color: var(--ink); transform: translateY(-3px); }
.ccard svg { width: 100%; height: 120px; margin-bottom: 18px; }
.ccard svg path { stroke: #8E877B; stroke-width: 3.4; stroke-linecap: round; }
.ccard.hq svg path { stroke: var(--ink); }
.ccard b { font-size: 1.25rem; }
.ccard small { color: var(--muted); font: 500 .78rem var(--num); letter-spacing: .04em; }
.ccard .tag { margin-top: 12px; align-self: flex-start; font-size: .75rem; font-weight: 600; background: var(--yellow); padding: 3px 10px; border-radius: 4px; }

/* Split: photo + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .wp-block-image img { border-radius: var(--r); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-bottom: 20px; }
.split p { color: var(--muted); }
.split p + p { margin-top: 14px; }
.split .actions, .split .wp-block-buttons { margin-top: 28px; }

/* Products slider */
.arrows { display: flex; gap: 8px; }
.arrows button { width: 50px; height: 50px; border-radius: 6px; border: 1.5px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: background .2s, border-color .2s; }
.arrows button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.arrows button:disabled { opacity: .3; cursor: default; background: none; color: var(--ink); }
.arrows svg { width: 20px; height: 20px; }
html[dir="rtl"] .arrows svg { transform: scaleX(-1); }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(340px, 78%); scroll-snap-align: start; }
.slide .ph { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #E6E1D6; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.slide:hover img { transform: scale(1.04); }
.slide figcaption { padding-top: 16px; }
.slide b { display: block; font-size: 1.15rem; }
.slide figcaption span { color: var(--muted); font-size: .92rem; }

/* Services: a ruled two-column list */
.services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 1px solid var(--line); }
.svc { display: flex; gap: 20px; align-items: flex-start; padding-block: 28px; border-bottom: 1px solid var(--line); }
.svc .ico { flex: none; color: var(--ink); margin-top: 4px; }
.svc .ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.12rem; }
.svc p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps .bar { position: absolute; top: 19px; inset-inline: 0; height: 1px; background: var(--line); }
.steps .bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .steps .bar i { transform-origin: right; }
.step { counter-increment: s; position: relative; }
.step::before { content: counter(s); position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 .95rem var(--num); margin-bottom: 20px; }
.alt .step::before { background: var(--card); }
.step h3 { font-size: 1.02rem; }
.step p { margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* Suppliers: black band with photo */
.supply { background: var(--black); color: #fff; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.supply .wp-block-image { margin: 0; overflow: hidden; }
.supply .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.supply-text { padding: 88px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.supply-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 18ch; }
.supply-text p { color: #BDB8B0; max-width: 46ch; margin: 18px 0 32px; }

/* Contact strip (every page) */
.cta { padding-block: 96px; border-top: 1px solid var(--line); }
.cta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 14ch; }
.cta .actions { margin-top: 32px; }
.info { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.info li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info .ico { color: var(--ink); }
.info .ico svg { width: 20px; height: 20px; }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Inner pages */
.page-hero { padding-block: 72px 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 16ch; }
.page-lead { color: var(--muted); max-width: 56ch; margin-top: 18px; font-size: 1.1rem; }
.page-hero .actions { margin-top: 32px; }
.page-body > :is(p, h2, h3, ul, ol, .wp-block-image, .wp-block-details, .wp-block-quote) { width: min(760px, 100% - 40px); margin: 0 auto 20px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 1.8rem; margin-top: 40px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--line); padding-top: 36px; }
.value .ico { display: block; margin-bottom: 18px; }
.value .ico svg { width: 30px; height: 30px; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.quote { border-inline-start: 4px solid var(--yellow); padding-inline-start: clamp(20px, 4vw, 48px); }
.quote h3 { font-size: 1rem; color: var(--muted); margin-bottom: 18px; }
.quote p { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.85; max-width: 56ch; }
.quote .who { display: block; margin-top: 24px; color: var(--muted); font-size: 1rem; }
.markets-list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; padding: 0; list-style: none; font-weight: 600; }
.markets-list li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-inline-end: 10px; vertical-align: middle; }

.faq { width: min(860px, 100% - 40px); margin-inline: auto; border-top: 1px solid var(--line); }
.faq .wp-block-details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.5'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 68ch; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.contact-card > p { color: var(--muted); margin-bottom: 28px; }
.contact-card .actions { margin-top: 28px; }
.map-embed { border-radius: var(--r); overflow: hidden; min-height: 440px; background: #E6E1D6; }
.map-embed iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(.4); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.card-body { padding-top: 16px; }
.card time { color: var(--muted); font-size: .85rem; }
.card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.card p { color: var(--muted); font-size: .93rem; }
.cards-logos { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cards-logos .card-img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s; }
.cards-logos .card-img img { aspect-ratio: auto; width: 100%; height: 100%; max-height: 90px; object-fit: contain; border-radius: 0; }
.cards-logos .card:hover .card-img { border-color: var(--ink); }
.cards-logos .card h3 { font-size: 1rem; letter-spacing: .02em; }
.wordmark { font: 800 2rem/1 var(--num); letter-spacing: .08em; }
.empty { padding: 56px 0; border-block: 1px solid var(--line); display: flex; gap: 20px; align-items: center; }
.empty .ico svg { width: 32px; height: 32px; }
.empty p { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }

.article { padding-block: 64px 96px; max-width: 860px; }
.article h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin: 10px 0 32px; }
.article-date { color: var(--muted); }
.article-img img { border-radius: var(--r); margin-bottom: 40px; }

/* Footer */
.foot { padding-block: 0 40px; color: var(--muted); font-size: .85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot img { width: 44px; }
.foot-links { display: flex; align-items: center; gap: 14px; }
.foot-links svg { width: 18px; height: 18px; }
.wa { position: fixed; z-index: 60; inset-block-end: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 26px; height: 26px; }
.toast { position: fixed; z-index: 70; inset-block-end: 92px; inset-inline-end: 22px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 6px; font-size: .92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1180px) {
	.nav { display: none; }
	.top .top-wa { display: none; }
	.menu-btn { display: block; margin-inline-start: auto; }
	.nav.open { display: flex; flex-direction: column; gap: 0; position: fixed; inset: 84px 0 auto; background: var(--bg); padding: 8px 20px 20px; font-size: 1.05rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .08); }
	.nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1000px) {
	.hero > .wrap, .split, .contact-grid, .supply, .cta .wrap { grid-template-columns: 1fr; }
	.hero > .wrap { gap: 24px; }
	.split { gap: 32px; }
	.supply .wp-block-image img { height: 300px; }
	.cards, .values { grid-template-columns: 1fr 1fr; }
	.cards-logos, .ccards { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
	.steps .bar { display: none; }
	.sec, .cta { padding-block: 72px; }
}
@media (max-width: 640px) {
	.services, .steps, .cards, .values { grid-template-columns: 1fr; }
	.cards-logos, .ccards { grid-template-columns: 1fr 1fr; }
	.ccard { padding: 16px 14px; }
	.ccard svg { height: 84px; margin-bottom: 12px; }
	.services { column-gap: 0; }
	.facts { flex-wrap: wrap; }
	.actions .btn, .actions .wp-block-button { flex: 1 1 100%; }
	.actions .wp-block-button .wp-block-button__link { width: 100%; }
	.page-hero { padding-block: 48px 40px; }
	.empty { flex-direction: column; align-items: flex-start; }
}
