/* =====================================================================
   PENTRA TECHNOLOGY — corporate navy & gold theme (client reference design)
   White header, navy menu bar, angled image collage, gold accents.
   Logical properties throughout (RTL).
   ===================================================================== */

:root {
    --bg: #ffffff;
    --bg-2: #f4f6f9;
    --bg-3: #e7ecf3;
    --line: #e2e7ef;
    --line-2: #cdd6e3;
    --text: #0f1f38;
    --soft: #34435c;
    --muted: #5d6b82;
    --navy: #0c2a52;
    --navy-2: #0a2242;
    --navy-3: #081a33;
    --blue: #134a8e;
    --sky: #eaf1fa;
    --gold: #c8963e;
    --gold-2: #ad7d2a;
    --gold-soft: #f8f0e1;
    --ok: #16a34a;
    --danger: #dc2626;

    --f-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --gutter: clamp(16px, 4vw, 40px);
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(12, 42, 82, .06), 0 2px 8px rgba(12, 42, 82, .05);
    --shadow: 0 10px 28px -12px rgba(12, 42, 82, .22);
    --shadow-lg: 0 22px 50px -22px rgba(12, 42, 82, .32);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

[dir="rtl"] {
    --f-display: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --f-body: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: .97rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.mono { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
[dir="rtl"] .mono { letter-spacing: 0; text-transform: none; font-size: .85rem; }

/* ---------- Typography ---------- */
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .eyebrow, [dir="rtl"] .kicker { letter-spacing: 0; font-size: .92rem; }
.eyebrow--light { color: #e9c27c; }
.section-title, .h-display { font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; line-height: 1.25; color: var(--navy); }
.section-title--sm { font-size: 1.5rem; margin-bottom: 24px; }
[dir="rtl"] .section-title, [dir="rtl"] .h-display { line-height: 1.5; }
.section-lead, .section-head__lead { color: var(--muted); font-size: 1rem; max-width: 52ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 92px); }
.section--tint { background: var(--bg-2); }
.section-head { margin-bottom: clamp(28px, 3.5vw, 42px); }
.section-head--center { text-align: center; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); background: var(--bg-2); border-radius: var(--radius-lg); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .78em 1.35em; border-radius: 6px; border: 1.5px solid transparent; font-weight: 700; font-size: .9rem; line-height: 1.2; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .62em 1.05em; font-size: .84rem; }
.btn--lg { padding: .92em 1.6em; font-size: .97rem; }
.btn--block { width: 100%; }
.btn--gold, .btn--primary { background: var(--gold); color: #fff; box-shadow: 0 8px 18px -10px rgba(200, 150, 62, .9); }
.btn--gold:hover, .btn--primary:hover { background: var(--gold-2); }
.btn--gold-outline { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn--gold-outline:hover { background: var(--gold); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--gold-soft); }
.btn--wa { background: #e9f9ef; color: #15803d; border-color: #bce8cc; }
.btn--wa:hover { background: #15803d; color: #fff; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 700; font-size: .9rem; transition: gap .3s; }
.link-more:hover { gap: 12px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Header (white) ---------- */
.hd { position: relative; z-index: 101; background: #fff; border-bottom: 1px solid var(--line); }
.hd__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 78px; }
.hd__logo img { height: 46px; width: auto; }
.hd__tagline { text-align: center; color: var(--navy); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.hd__tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.hd__lang { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.hd__lang strong { color: var(--navy); }
.hd__lang a:hover { color: var(--gold-2); }
.hd__search-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--navy); transition: background .2s; }
.hd__search-btn:hover, .hd__search-btn[aria-expanded="true"] { background: var(--bg-2); }
.hd__search-btn .ico { width: 20px; height: 20px; }
.hd__search { background: var(--bg-2); border-top: 1px solid var(--line); }
.hd__search-inner { display: flex; align-items: center; gap: 12px; padding-block: 12px; color: var(--muted); }
.hd__search input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 6px; border: 1.5px solid var(--line-2); font: inherit; outline: none; background: #fff; }
.hd__search input:focus { border-color: var(--gold); }

/* Navy menu bar (sticky) */
.mainnav { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .5); }
.mainnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 50px; }
.mainnav a { position: relative; padding: 14px 4px; color: #d7e1f0; font-weight: 600; font-size: .86rem; white-space: nowrap; transition: color .2s; }
.mainnav a::after { content: ""; position: absolute; inset-inline: 4px; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.mainnav a:hover, .mainnav a.is-active { color: #fff; }
.mainnav a:hover::after, .mainnav a.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-2); position: relative; }
.burger i { position: absolute; inset-inline: 11px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger i:nth-child(1) { top: 13px; }
.burger i:nth-child(2) { top: 20px; }
.burger i:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; gap: 20px; padding: 96px var(--gutter) 32px; background: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .3s; }
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__search { display: flex; border: 1.5px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.menu__search input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; font: inherit; outline: none; }
.menu__search button { padding: 0 16px; background: var(--gold); color: #fff; }
.menu__links { display: grid; }
.menu__links a { padding: 13px 4px; font-weight: 700; font-size: 1.05rem; color: var(--navy); border-bottom: 1px solid var(--line); }
.menu__links a.is-active { color: var(--gold-2); }
.menu__foot { display: grid; gap: 10px; color: var(--muted); }
.menu__foot .btn { justify-self: start; }

/* ---------- Hero: angled image collage ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(420px, 58vh, 540px); color: #fff; overflow: hidden; isolation: isolate; background: #fff; }
.hero__panels { --slant: 56px; position: absolute; inset: 0; z-index: -2; display: flex; }
.hero__panel { flex: 1; margin-inline-start: calc(var(--slant) * -1 + 6px); background: var(--navy) var(--img) center / cover no-repeat; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.hero__panel:first-child { margin-inline-start: 0; flex-grow: 1.55; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.hero__panel:last-child { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .hero__panel { clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% 100%, var(--slant) 100%); }
[dir="rtl"] .hero__panel:first-child { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--slant) 100%); }
[dir="rtl"] .hero__panel:last-child { clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% 100%, 0 100%); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 26, 51, .85) 0%, rgba(8, 26, 51, .55) 25%, rgba(8, 26, 51, .1) 38%, transparent 46%); }
[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(8, 26, 51, .85) 0%, rgba(8, 26, 51, .55) 25%, rgba(8, 26, 51, .1) 38%, transparent 46%); }
.hero__inner { padding-block: 60px; }
.hero__title { font-family: var(--f-display); font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.12; max-width: 15ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
[dir="rtl"] .hero__title { line-height: 1.35; }
.hero__sub { margin-block: 16px 26px; max-width: 36ch; color: #e3eaf6; font-size: clamp(.98rem, 1.4vw, 1.12rem); }

/* Key figures strip */
.strip { background: var(--navy); color: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 12px; }
.strip__item + .strip__item { border-inline-start: 1px solid rgba(255, 255, 255, .15); }
.strip__ico { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.6; }
.strip__item strong { display: block; font-family: var(--f-display); font-size: 1.08rem; font-weight: 800; line-height: 1.2; }
.strip__item span { display: block; color: #b9c7dd; font-size: .82rem; }

/* ---------- Business-area cards ---------- */
.areas { background: var(--bg-2); padding-block: 34px 52px; }
.areas__grid { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 16px; }
.area { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.area:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.area__media { aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--bg-3); }
.area__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.area:hover .area__media img { transform: scale(1.06); }
.area__body { position: relative; display: grid; gap: 6px; padding: 16px 16px 18px; padding-inline-end: 54px; flex: 1; }
.area__title { font-family: var(--f-display); font-weight: 800; font-size: .98rem; color: var(--navy); line-height: 1.3; }
.area__text { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.area__arrow { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff; transition: background .25s, transform .3s var(--ease); }
.area__arrow .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.area:hover .area__arrow { background: var(--navy); }

/* ---------- About + building + partners ---------- */
.ap { padding-block: clamp(48px, 6vw, 80px); }
.ap__grid { display: grid; grid-template-columns: 1fr 1.05fr 1.35fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.ap__about { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 6px; }
.ap__title { font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 800; color: var(--navy); line-height: 1.3; }
.ap__text { color: var(--muted); font-size: .93rem; }
.ap__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; box-shadow: var(--shadow); }
.ap__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap__photo figcaption { position: absolute; inset-inline-start: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 8px; background: rgba(8, 26, 51, .82); color: #fff; font-weight: 800; font-size: .9rem; backdrop-filter: blur(6px); }
[dir="rtl"] .ap__photo figcaption { padding: 8px 8px 8px 14px; }
.ap__photo figcaption img { width: 34px; height: 34px; border-radius: 6px; background: #fff; padding: 3px; }
.ap__partners { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ap__ptext { color: var(--muted); font-size: .9rem; }

/* Partner logo grid */
.pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; margin-block: 6px 8px; }
.pgrid__tile { display: grid; place-items: center; height: 54px; padding: 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
a.pgrid__tile:hover, .pgrid__tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.pgrid__tile img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pgrid__word { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(.6rem, .9vw, .76rem); overflow-wrap: normal; hyphens: none; letter-spacing: -.01em; line-height: 1.1; text-align: center; }
.pgrid--page { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.pgrid--page .pgrid__tile { height: 110px; padding: 18px; }
.pgrid--page .pgrid__word { font-size: 1.15rem; }

/* ---------- Company cards ---------- */
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.company-grid--2 { grid-template-columns: repeat(2, 1fr); }
.company { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.company:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.company__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.company__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.company:hover .company__media img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; inset-inline-end: 12px; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--ok); }
.badge--planned { background: var(--gold); }
.company__body { display: flex; flex-direction: column; gap: 7px; padding: 20px 22px 22px; flex: 1; }
.company__sector { color: var(--gold-2); font-weight: 700; font-size: .78rem; }
.company__name { font-family: var(--f-display); font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--navy); }
.company__desc { color: var(--muted); font-size: .9rem; flex: 1; }
.company__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.company__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.company__more { color: var(--gold-2); font-weight: 700; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.post__date { color: var(--gold-2); font-weight: 700; font-size: .8rem; }
.post__title { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; line-height: 1.4; color: var(--navy); }
.post__text { color: var(--muted); font-size: .88rem; flex: 1; }
.pagination-wrap { margin-top: 32px; }
.pagination-wrap ul, .pagination-wrap nav { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line-2); font-weight: 600; }
.article { max-width: 860px; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow); }
.article__cover img { width: 100%; max-height: 460px; object-fit: cover; }
.article__lede { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 18px; line-height: 1.6; }
.prose { display: grid; gap: 14px; color: var(--soft); font-size: 1rem; margin-bottom: 28px; }

/* ---------- Search ---------- */
.search-page { max-width: 900px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1.5px solid var(--line-2); border-radius: 10px; margin-bottom: 26px; color: var(--muted); background: #fff; box-shadow: var(--shadow-sm); }
[dir="rtl"] .search-box { padding: 8px 16px 8px 8px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1rem; padding: 8px 0; }
.results { display: grid; gap: 12px; }
.result { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s; }
.result:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.result img { width: 110px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.result > span { display: grid; gap: 3px; }
.result__type { color: var(--gold-2); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .result__type { letter-spacing: 0; }
.result strong { color: var(--navy); font-family: var(--f-display); }
.result__text { color: var(--muted); font-size: .88rem; }

/* ---------- Timeline / governance (About page) ---------- */
.timeline { position: relative; max-width: 980px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--line-2); transform: translateX(-50%); }
.timeline__item { position: relative; display: flex; width: 50%; padding-block: 12px; }
.timeline__item:nth-child(odd) { padding-inline-end: 42px; }
.timeline__item:nth-child(even) { margin-inline-start: 50%; padding-inline-start: 42px; }
.timeline__dot { position: absolute; top: 34px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.timeline__item:nth-child(odd) .timeline__dot { inset-inline-end: -9px; }
.timeline__item:nth-child(even) .timeline__dot { inset-inline-start: -9px; }
.timeline__card { width: 100%; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.timeline__year { display: inline-block; padding: 2px 12px; margin-bottom: 8px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: .88rem; }
.timeline__item:last-child .timeline__year { background: var(--gold); }
.timeline__card h3 { font-family: var(--f-display); font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; color: var(--navy); }
.timeline__card p { color: var(--muted); font-size: .9rem; }
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.checklist { display: grid; gap: 12px; margin-top: 20px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.checklist__tick { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); flex: none; }
.checklist__tick .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.checklist p { color: var(--soft); font-weight: 500; padding-top: 1px; }
.gov__seal { margin-top: 14px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
[dir="rtl"] .gov__seal { letter-spacing: 0; font-size: .85rem; }
.why { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.why .section-title { color: #fff; }
.why__list { display: grid; margin-top: 16px; }
.why__list li { display: flex; gap: 16px; padding-block: 13px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.why__list li:last-child { border-bottom: 0; }
.why__n { font-family: var(--f-display); font-weight: 800; color: var(--gold); min-width: 2ch; }
.why__list p { color: #dde5f2; font-weight: 500; }

/* About page: summary + sectors (kept from previous layout) */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__lede { margin-top: 16px; font-size: 1.05rem; color: var(--soft); font-weight: 500; }
.about__p { margin-top: 12px; color: var(--muted); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 24px; }
.about__stats > div { display: flex; flex-direction: column; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.about__stats dd { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.about__stats dt { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.about__media { position: relative; }
.about__pic { position: relative; padding-bottom: 22px; padding-inline-end: 22px; }
.about__frame { position: absolute; top: 22px; bottom: 0; inset-inline-start: 22px; inset-inline-end: 0; border-radius: var(--radius-lg); background: var(--navy); }
.about__media img { position: relative; width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__badge { position: absolute; bottom: 52px; inset-inline-start: -16px; display: grid; padding: 14px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-inline-start: 4px solid var(--gold); }
.about__badge strong { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.about__badge span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.about__place { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: .84rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pillar__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.pillar__icon .ico { width: 26px; height: 26px; }
.pillar h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.pillar p { color: var(--muted); }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line-2); transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.sector:hover { border-top-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.sector.is-core { border-top-color: var(--navy); }
.sector__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sector__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--sky); color: var(--navy); }
.sector__icon .ico { width: 23px; height: 23px; }
.sector__num { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; color: var(--bg-3); }
.sector h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 800; line-height: 1.4; color: var(--navy); }
.sector p { color: var(--muted); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: -40%; bottom: -40%; inset-inline-end: -10%; width: 45%; background: radial-gradient(circle, rgba(200, 150, 62, .28), transparent 65%); pointer-events: none; }
.cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 28px; padding-block: clamp(46px, 6vw, 70px); }
.cta__text h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.3; }
.cta__text p { color: #c3cfe3; margin-top: 8px; max-width: 52ch; }
.cta__actions { display: grid; gap: 16px; justify-items: start; }
.cta__actions .btn--white { background: var(--gold); color: #fff; }
.cta__actions .btn--white:hover { background: var(--gold-2); }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #c3cfe3; font-weight: 600; font-size: .92rem; }
.cta__contacts a:hover { color: #fff; }

/* ---------- Inner page banner ---------- */
.banner { position: relative; color: #fff; background: var(--navy) var(--img) center / cover no-repeat; isolation: isolate; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 26, 51, .93), rgba(12, 42, 82, .7)); }
[dir="rtl"] .banner::before { background: linear-gradient(270deg, rgba(8, 26, 51, .93), rgba(12, 42, 82, .7)); }
.banner__inner { padding-block: clamp(48px, 7vw, 84px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .84rem; color: #aebcd3; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.banner__title { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.2; }
[dir="rtl"] .banner__title { line-height: 1.45; }
.banner__lead { margin-top: 12px; max-width: 64ch; color: #dbe4f2; font-size: 1.02rem; }

/* ---------- Company / division page ---------- */
.co { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.co__h { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; padding-inline-start: 12px; border-inline-start: 4px solid var(--gold); line-height: 1.35; }
.co__h:not(:first-child) { margin-top: 40px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.facts dd { font-family: var(--f-display); font-weight: 800; color: var(--navy); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 15px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: .88rem; }
.co__aside { position: sticky; top: 72px; display: grid; gap: 16px; }
.side-card { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.side-card__media { position: relative; aspect-ratio: 16 / 10; }
.side-card__media img { width: 100%; height: 100%; object-fit: cover; }
.side-card dl { padding: 4px 20px; }
.side-card dl > div { padding-block: 12px; border-bottom: 1px solid var(--line); }
.side-card dl > div:last-child { border-bottom: 0; }
.side-card dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.side-card dd { font-weight: 700; color: var(--navy); word-break: break-word; }
.side-card .btn { width: calc(100% - 40px); margin: 0 20px 20px; }
.side-links { display: grid; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--navy); transition: background .2s; }
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { background: var(--bg-2); color: var(--gold-2); }
.side-links img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }
.side-links span { flex: 1; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 8px 60px; }
.pager__link { display: grid; gap: 4px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.pager__link:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.pager__link span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.pager__link strong { font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.pager__link--next { text-align: end; }
.pager__all { color: var(--gold-2); font-weight: 700; padding: 10px 16px; }

/* ---------- Forms ---------- */
.careers, .contact { padding-block: clamp(52px, 7vw, 88px); }
.careers__grid, .contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.panel { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.form__title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; margin-bottom: 14px; }
.field input, .field textarea, .field select { width: 100%; padding: 24px 15px 8px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-size: .97rem; outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b82' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 42px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 150, 62, .14); }
.field__label { position: absolute; top: 16px; inset-inline-start: 15px; color: var(--muted); pointer-events: none; transition: top .2s var(--ease), font-size .2s var(--ease), color .2s; }
.field__label b { color: var(--danger); font-weight: 600; }
.field input:focus ~ .field__label, .field input:not(:placeholder-shown) ~ .field__label,
.field textarea:focus ~ .field__label, .field textarea:not(:placeholder-shown) ~ .field__label,
.field--select .field__label { top: 5px; font-size: .72rem; color: var(--gold-2); font-weight: 600; }
.field__error { display: block; color: var(--danger); font-size: .84rem; margin-top: 6px; }
.field__error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; padding: 26px 20px; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { width: 30px; height: 30px; color: var(--gold); }
.drop small { color: var(--muted); }
.drop.is-over, .drop.has-file { border-color: var(--gold); background: var(--gold-soft); }
.form__status { display: none; margin-bottom: 18px; padding: 13px 16px; border-radius: 8px; font-weight: 600; }
.form__status[data-state="ok"] { display: block; background: #ecfdf3; border: 1px solid #a6e9be; color: #166534; }
.form__status[data-state="error"] { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.h-sub { font-family: var(--f-display); font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.perks { display: grid; gap: 12px; }
.perks li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.perks li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: .88rem; }
.perks h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.perks p { color: var(--muted); font-size: .9rem; }
.mailbox { display: grid; gap: 6px; margin-top: 20px; padding: 18px; border-radius: var(--radius); border: 1.5px dashed var(--line-2); }
.mailbox span { color: var(--muted); font-size: .88rem; }
.mailbox a { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--gold-2); justify-self: start; }
.contact__info { display: grid; gap: 12px; }
.ccard { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
a.ccard:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.ccard__ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--navy); color: var(--gold); }
.ccard__ico .ico { width: 22px; height: 22px; }
.ccard .mono { color: var(--muted); }
.ccard strong { font-family: var(--f-display); font-weight: 800; color: var(--navy); word-break: break-word; }
[dir="rtl"] .ccard strong[dir="ltr"] { text-align: end; }
.ccard--wa .ccard__ico { background: #e9f9ef; color: #15803d; }
.hubs { padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.hubs .mono { display: block; margin-bottom: 10px; color: var(--muted); }
.hubs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hubs li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-weight: 600; font-size: .88rem; }
.hubs li.is-hq { background: var(--navy); border-color: var(--navy); color: #fff; }
.map { position: relative; height: clamp(300px, 40vw, 420px); margin-top: clamp(36px, 5vw, 60px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__tag { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: .86rem; }
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- Product catalogue ---------- */
.catalog { padding-block: clamp(56px, 7vw, 92px); background: var(--bg-2); border-top: 1px solid var(--line); }
.catalog .section-head--split { margin-bottom: 28px; }
.catalog__tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 22px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.catalog__tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 6px; font-weight: 700; color: var(--muted); transition: color .25s; }
.catalog__tab b { font-size: .76rem; padding: 2px 9px; border-radius: 999px; background: var(--bg-3); color: var(--soft); }
.catalog__tab.is-active { color: #fff; }
.catalog__tab.is-active b { background: rgba(255, 255, 255, .25); color: #fff; }
.catalog__tab-glider { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 6px; background: var(--navy); transition: transform .4s var(--ease), width .4s var(--ease); }
.catalog__panel { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.catalog__cover { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; min-height: clamp(220px, 24vw, 300px); padding: clamp(20px, 3.5vw, 36px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; }
.catalog__cover img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.catalog__cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 26, 51, .92), rgba(8, 26, 51, .35) 60%, rgba(8, 26, 51, .1)); }
.catalog__cover--oils img { object-position: center 40%; }
.catalog__cover--homecare img { object-position: center 55%; }
.catalog__cover-text { display: grid; gap: 6px; max-width: 620px; }
.catalog__cover-text .mono { color: #e9c27c; }
.catalog__cover-text h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.25; }
.catalog__cover-text p { color: #dbe4f2; }
.catalog__cover-count { display: grid; justify-items: center; padding: 12px 18px; border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: var(--shadow); }
.catalog__cover-count strong { font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: var(--gold-2); line-height: 1; }
.catalog__cover-count .mono { color: var(--muted); margin-top: 4px; }
.catalog__hint { color: var(--muted); margin: 20px 0 14px; display: flex; align-items: center; gap: 8px; }
.catalog__hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: start; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.pcard__media { position: relative; display: block; aspect-ratio: 10 / 7; overflow: hidden; background: var(--bg-3); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__view { position: absolute; inset-inline-end: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 6px; font-size: .8rem; font-weight: 700; color: #fff; background: var(--gold); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.pcard:hover .pcard__view, .pcard:focus-visible .pcard__view { opacity: 1; transform: none; }
.pcard__body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 14px 16px 16px; }
.pcard__idx { grid-row: span 2; align-self: start; padding-top: 3px; color: var(--gold-2); }
.pcard__name { font-family: var(--f-display); font-size: 1.02rem; font-weight: 800; color: var(--navy); }
.pcard__spec { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #8a6418; background: var(--gold-soft); border: 1px solid #ecd9b2; }
@media (hover: none) { .pcard__view { opacity: 1; transform: none; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 70px 90px 40px; }
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(8, 26, 51, .9); backdrop-filter: blur(8px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.lb__stage { position: relative; display: grid; gap: 14px; justify-items: center; max-width: min(1400px, 100%); animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lb__img { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); background: #fff; }
.lb__img.is-swapping { animation: lbSwap .3s var(--ease); }
@keyframes lbSwap { from { opacity: .2; transform: translateX(calc(var(--dir, 1) * 20px)); } }
.lb__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; color: #fff; }
.lb__caption strong { font-family: var(--f-display); font-size: 1.08rem; font-weight: 800; }
.lb__counter { color: #aebcd3; }
.lb__btn, .lb__close { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--navy); background: #fff; box-shadow: var(--shadow); transition: background .2s, color .2s; }
.lb__btn:hover, .lb__close:hover { background: var(--gold); color: #fff; }
.lb__btn .ico, .lb__close .ico { width: 24px; height: 24px; }
.lb__btn { top: 50%; transform: translateY(-50%); }
.lb__btn--prev { inset-inline-start: 22px; }
.lb__btn--next { inset-inline-end: 22px; }
.lb__close { top: 16px; inset-inline-end: 22px; width: 44px; height: 44px; }
body.lb-open { overflow: hidden; }
body.lb-open .chat { visibility: hidden; }

/* ---------- Footer (navy) ---------- */
.footer { background: var(--navy-3); color: #c3cfe3; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 36px; padding-block: clamp(44px, 6vw, 64px); }
.footer__brand p { color: #a9b8cf; margin-block: 16px 18px; max-width: 34ch; font-size: .92rem; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer__col h4 { font-family: var(--f-display); font-size: .98rem; font-weight: 800; color: #fff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.footer__col a, .footer__col p { display: inline-flex; align-items: flex-start; gap: 8px; padding-block: 4px; color: #a9b8cf; font-size: .9rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__col .ico { margin-top: 5px; color: var(--gold); }
.footer__presence { display: block !important; }
.footer__presence strong { color: #fff; }
.footer__socials { display: flex; gap: 14px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: #06142a; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 16px; color: #8d9db6; font-size: .85rem; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: #8d9db6; font-weight: 600; }
.to-top:hover { color: var(--gold); }
.credit { display: inline-flex; align-items: center; gap: 6px; }
.credit__name { font-weight: 800; letter-spacing: .04em; background: linear-gradient(90deg, var(--gold), #f5d79a, #ffffff, var(--gold)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: creditFlow 6s linear infinite; }
@keyframes creditFlow { to { background-position: 300% 0; } }

/* Footer logo on a white plate: float + glow + light sweep masked to the logo */
.flogo { position: relative; display: inline-block; width: 210px; padding: 10px 14px; border-radius: 10px; background: #fff; isolation: isolate; animation: flogoFloat 6s ease-in-out infinite; }
.flogo__img { position: relative; width: 100%; transition: transform .5s var(--ease); }
.flogo__glow { position: absolute; z-index: -1; inset: -12px; border-radius: 16px; background: radial-gradient(closest-side, rgba(200, 150, 62, .35), transparent); animation: flogoGlow 4s ease-in-out infinite; }
.flogo__shine { position: absolute; inset: 10px 14px; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat; background-size: 250% 100%; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; mix-blend-mode: screen; animation: flogoShine 4.5s ease-in-out infinite 1s; }
.flogo:hover .flogo__img { transform: scale(1.03); }
.flogo:hover .flogo__shine { animation-duration: 1.4s; }
@keyframes flogoFloat { 50% { transform: translateY(-4px); } }
@keyframes flogoGlow { 50% { opacity: .45; transform: scale(.94); } }
@keyframes flogoShine { 0% { background-position: 150% 0; } 55%, 100% { background-position: -60% 0; } }

/* ---------- Chat widget ---------- */
.chat { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 95; }
.chat__fab { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: #fff; box-shadow: 0 12px 28px -8px rgba(200, 150, 62, .8); transition: transform .3s var(--ease), background .2s; }
.chat__fab:hover { transform: scale(1.06); background: var(--gold-2); }
.chat__fab .ico { width: 26px; height: 26px; position: absolute; transition: transform .3s var(--ease), opacity .2s; }
.chat__fab .ico--close { opacity: 0; transform: rotate(-90deg); }
.chat[data-open="true"] .ico--open { opacity: 0; transform: rotate(90deg); }
.chat[data-open="true"] .ico--close { opacity: 1; transform: none; }
.chat__fab-ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(200, 150, 62, .45); animation: ping 2.6s var(--ease) infinite; }
.chat[data-open="true"] .chat__fab-ring { display: none; }
.chat__panel { position: absolute; bottom: 74px; inset-inline-end: 0; display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px)); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform-origin: bottom right; transform: translateY(14px) scale(.96); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility .35s; overflow: hidden; }
[dir="rtl"] .chat__panel { transform-origin: bottom left; }
.chat[data-open="true"] .chat__panel { transform: none; opacity: 1; visibility: visible; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.chat__head img { width: 36px; height: 36px; padding: 4px; border-radius: 8px; background: #fff; }
.chat__head div { display: grid; line-height: 1.3; }
.chat__head span { display: inline-flex; align-items: center; gap: 7px; color: #c3cfe3; font-size: .8rem; }
.chat__head .pulse { width: 6px; height: 6px; background: #4ade80; }
.chat__head .pulse::after { border-color: #4ade80; }
.chat__x { margin-inline-start: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.chat__x:hover { background: rgba(255, 255, 255, .15); }
.chat__log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg-2); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.6; white-space: pre-line; animation: pop .3s var(--ease); }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--navy); color: #fff; border-end-end-radius: 4px; }
.msg a { color: var(--gold-2); font-weight: 700; display: inline-block; margin-top: 6px; }
.msg--typing { display: flex; gap: 5px; padding-block: 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 4px; background: var(--bg-2); }
.chat__chips button { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .76rem; font-weight: 600; color: var(--soft); text-align: start; }
.chat__chips button:hover { border-color: var(--gold); color: var(--gold-2); }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-size: .9rem; outline: none; }
.chat__form input:focus { border-color: var(--gold); }
.chat__form button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #fff; flex: none; }
.chat__wa { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 700; color: #15803d; }
.chat__wa:hover { background: #e9f9ef; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1240px) {
    .mainnav a { font-size: .8rem; }
    .areas__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    .mainnav { display: none; }
    .burger { display: block; }
    .hd__bar { grid-template-columns: auto 1fr auto; }
    .hd__tagline { font-size: .82rem; }
    .ap__grid { grid-template-columns: 1fr 1fr; }
    .ap__partners { grid-column: 1 / -1; }
    .sector-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .company-grid, .catalog__grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .strip__inner { grid-template-columns: repeat(2, 1fr); }
    .strip__item:nth-child(3) { border-inline-start: 0; }
    .strip__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }
}

@media (max-width: 900px) {
    .about__grid, .gov, .co, .careers__grid, .contact__grid, .cta__inner { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; }
    .co__aside { position: static; }
    .timeline::before { left: 9px; transform: none; }
    [dir="rtl"] .timeline::before { left: auto; right: 9px; }
    .timeline__item, .timeline__item:nth-child(odd), .timeline__item:nth-child(even) { width: 100%; margin-inline-start: 0; padding-inline-start: 40px; padding-inline-end: 0; }
    .timeline__item:nth-child(odd) .timeline__dot, .timeline__item:nth-child(even) .timeline__dot { inset-inline-start: 0; inset-inline-end: auto; }
}

@media (max-width: 700px) {
    .hd__tagline { display: none; }
    .hd__bar { grid-template-columns: 1fr auto; min-height: 66px; }
    .hd__logo img { height: 38px; }
    .hd__cta, .hd__lang { display: none; }
    .areas__grid { grid-template-columns: 1fr 1fr; }
    .ap__grid { grid-template-columns: 1fr; }
    .ap__photo { min-height: 240px; }
    .pgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
    .strip__item { justify-content: flex-start; }
    .sector-grid, .company-grid, .company-grid--2, .catalog__grid, .news-grid, .about__stats, .form__row, .facts { grid-template-columns: 1fr; }
    .facts > div:nth-child(odd) { border-inline-end: 0; }
    .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .footer__grid { grid-template-columns: 1fr; }
    .pager { grid-template-columns: 1fr; }
    .pager__all { justify-self: center; order: 3; }
    .pager__link--next { text-align: start; }
    .catalog__tabs { display: flex; width: 100%; }
    .catalog__tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: .86rem; }
    .catalog__cover { grid-template-columns: 1fr; }
    .catalog__cover-count { justify-self: start; grid-auto-flow: column; align-items: baseline; gap: 8px; }
    .result img { width: 80px; height: 56px; }
    .lb { padding: 64px 12px 90px; }
    .lb__btn { top: auto; bottom: 18px; transform: none; }
    .chat { bottom: 16px; inset-inline-end: 16px; }
    .chat__fab { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
.footer { border-top: 4px solid var(--gold); }

/* Hero: caption on the last collage panel (reference: "Digital Payments for a Connected Sudan") */
.hero__panel { position: relative; }
.hero__caption { position: absolute; bottom: 28px; inset-inline-start: calc(var(--slant) + 14px); inset-inline-end: 18px; color: #fff; font-weight: 600; font-size: .85rem; line-height: 1.35; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.hero__panels { --slant: 70px; }
.hero__panel:first-child { background-position: 22% center; }

/* ---------- Mobile: same layout as desktop, scaled down ----------
   Full collage (all 5 panels) on its own row, then the text — so the whole picture is visible. */
@media (max-width: 900px) {
    .hero { flex-direction: column; align-items: stretch; min-height: 0; background: var(--navy); }
    .hero__panels { --slant: 26px; position: relative; inset: auto; z-index: 0; height: clamp(200px, 52vw, 380px); }
    .hero__panel { margin-inline-start: calc(var(--slant) * -1 + 3px); }
    .hero__panel:first-child { flex-grow: 1; margin-inline-start: 0; background-position: 30% center; }
    .hero__shade { display: none; }
    .hero__inner { padding-block: 26px 30px; }
    .hero__title { max-width: none; font-size: clamp(1.7rem, 6.8vw, 2.4rem); }
    .hero__sub { margin-block: 10px 18px; }
    .hero__caption { display: block; bottom: 8px; inset-inline-start: calc(var(--slant) + 2px); inset-inline-end: 4px; font-size: clamp(.5rem, 1.8vw, .72rem); }
}
@media (max-width: 700px) {
    /* figures strip stays one row of four, like desktop */
    .strip__inner { grid-template-columns: repeat(4, 1fr); }
    .strip__item { flex-direction: column; justify-content: flex-start; text-align: center; gap: 6px; padding: 14px 4px; }
    .strip__item:nth-child(3) { border-inline-start: 1px solid rgba(255, 255, 255, .15); }
    .strip__item:nth-child(n+3) { border-top: 0; }
    .strip__ico { width: 24px; height: 24px; }
    .strip__item strong { font-size: .74rem; }
    .strip__item span { font-size: .62rem; }
    .areas { padding-block: 22px 34px; }
    .areas__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .area__body { padding: 12px; padding-inline-end: 12px; }
    .area__title { font-size: .86rem; }
    .area__text { font-size: .74rem; }
    .area__arrow { position: static; transform: none; width: 26px; height: 26px; margin-top: 4px; }
}
