/* =========================================================================
   Brand pages (HR = Miza, Technology = Quantra, Marketing = Hive, Logistics = Lomina)
   Each page body follows the look of the brand's own website.
   Source of truth: build/brands.css -> copied to site/assets/css/brands.css by build.py
   ========================================================================= */

/* ---------- header sits on a dark hero until the page scrolls ---------- */
.hdr-light .site-header:not(.is-scrolled) { color: #fff; }
.hdr-light .site-header:not(.is-scrolled) .brand__dark { display: none; }
.hdr-light .site-header:not(.is-scrolled) .brand__light { display: block; }
.hdr-light .site-header:not(.is-scrolled) .nav > ul > li > a:hover,
.hdr-light .site-header:not(.is-scrolled) .nav > ul > li > a[aria-current] { color: var(--bx-nav-hover, #fff); opacity: .8; }
.hdr-light .site-header:not(.is-scrolled) .lang:hover { background: rgba(255, 255, 255, .12); }
.hdr-light .site-header:not(.is-scrolled) .menu-toggle { background: rgba(255, 255, 255, .14); color: #fff; }
.hdr-light .site-header .dd { color: var(--ink); }

/* ---------- shared structure ---------- */
.bx { font-family: var(--bx-font); color: var(--bx-text); background: var(--bx-bg); font-weight: var(--bx-body-w, 400); }
.bx .bx-h1, .bx .bx-h2, .bx .bx-h3 { font-family: var(--bx-font-head); letter-spacing: var(--bx-head-ls, normal); }
.bx p { font-family: inherit; }

.bx-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--bx-hero-bg); color: var(--bx-hero-text);
  padding: calc(var(--header-h, 88px) + clamp(36px, 5vw, 72px)) 0 clamp(64px, 8vw, 120px); }
.bx-hero__bg { position: absolute; inset: 0; z-index: -1; display: none; }
.bx-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.bx-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.bx-hero__copy { position: relative; z-index: 2; }

.bx-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--bx-hero-muted); }
.bx-crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; opacity: .6; }
.bx-crumbs a:hover { color: var(--bx-hero-text); }

.bx-tag { display: inline-flex; align-items: center; gap: 8px; margin: 24px 0 18px; padding: 8px 16px; font-size: .86rem; font-weight: 500;
  border-radius: var(--bx-btn-radius); background: var(--bx-tag-bg, rgba(255, 255, 255, .12)); color: var(--bx-tag-fg, inherit); }
.bx-h1 { font-size: clamp(2.8rem, 1.5rem + 5vw, 5.6rem); line-height: 1.04; font-weight: var(--bx-h1-w, 800); color: inherit; }
.bx-h1__brand { display: block; }
.bx-h1__sub { display: block; font-size: .4em; line-height: 1.3; font-weight: 600; margin-top: .4em; color: var(--bx-hero-accent, inherit); }
.bx-lead { font-size: clamp(1.04rem, 1rem + .35vw, 1.22rem); line-height: 1.85; color: var(--bx-hero-muted); margin-top: 22px; max-width: 60ch; }
.bx-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bx-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; font-weight: 600; font-size: .95rem;
  border-radius: var(--bx-btn-radius); transition: transform .3s var(--ease), background-color .3s, color .3s, box-shadow .3s; }
.bx-btn:hover { transform: translateY(-2px); }
[dir="rtl"] .bx-btn .ic, [dir="rtl"] .bx-site .ic { transform: scaleX(-1); }
.bx-btn--primary { background: var(--bx-btn-bg); color: var(--bx-btn-fg); }
.bx-btn--primary:hover { background: var(--bx-btn-bg-h, var(--bx-btn-bg)); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }
.bx-btn--ghost { background: var(--bx-ghost-bg); color: var(--bx-ghost-fg); box-shadow: inset 0 0 0 1px var(--bx-ghost-line); }
.bx-btn--ghost:hover { background: var(--bx-ghost-bg-h, rgba(255, 255, 255, .22)); }
.bx-site { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: .92rem; font-weight: 500; color: var(--bx-hero-muted); transition: color .25s; }
.bx-site:hover { color: var(--bx-hero-text); }

.bx-hero__media { position: relative; }
.bx .bx-hero__img { aspect-ratio: 4 / 4.3; border-radius: var(--bx-radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
.bx-float { position: absolute; bottom: 28px; inset-inline-start: -28px; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--bx-head); padding: 14px 20px 14px 14px; border-radius: var(--bx-radius);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35); }
[dir="rtl"] .bx-float { padding: 14px 14px 14px 20px; }
.bx-float b { display: block; font-weight: 700; font-family: var(--bx-font-head); }
.bx-float small { display: block; font-size: .8rem; color: var(--bx-muted); }
.bx-float__ic { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: calc(var(--bx-radius) - 4px); background: var(--bx-chip-bg); color: var(--bx-chip-fg); }

.bx-sec { padding-block: clamp(72px, 9vw, 128px); }
.bx-services { background: var(--bx-alt); }
.bx-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.bx-label { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--bx-accent-text); margin-bottom: 14px; }
.bx-h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.18; font-weight: 700; color: var(--bx-head); }
.bx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.bx-card { position: relative; background: var(--bx-surface); border-radius: var(--bx-radius); padding: clamp(24px, 2.6vw, 36px);
  box-shadow: var(--bx-card-shadow); outline: 1px solid var(--bx-line); outline-offset: -1px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bx-card:hover { transform: translateY(-5px); box-shadow: var(--bx-card-shadow-h, var(--bx-card-shadow)); }
.bx-card__num { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px; font-family: var(--bx-font-head); font-weight: 700;
  border-radius: calc(var(--bx-radius) - 4px); background: var(--bx-chip-bg); color: var(--bx-chip-fg); }
.bx-h3 { font-size: 1.18rem; line-height: 1.45; font-weight: 700; color: var(--bx-head); margin-bottom: 10px; }
.bx-card p { color: var(--bx-muted); line-height: 1.85; font-size: .97rem; }

.bx-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.bx .bx-media { border-radius: var(--bx-radius-lg); aspect-ratio: 4 / 3.3; }
.bx-feature .bx-lead { color: var(--bx-muted); }

.bx-gallery { padding-top: 0; background: var(--bx-alt); }
.bx-gallery__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.bx .bx-media--a { aspect-ratio: 4 / 3; }
.bx .bx-media--b { aspect-ratio: 4 / 4.6; }

.bx-cta-wrap { background: var(--bx-alt); padding-top: 0; }
.bx-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(44px, 6vw, 88px) clamp(24px, 5vw, 72px);
  border-radius: var(--bx-radius-lg); background: var(--bx-cta-bg); color: var(--bx-cta-fg); }
.bx-cta .bx-h2 { color: inherit; max-width: 22ch; margin-inline: auto; }
.bx-cta .bx-label { color: var(--bx-cta-label, var(--bx-cta-muted)); }
.bx-cta .bx-lead { color: var(--bx-cta-muted); margin-inline: auto; }
.bx-cta .bx-btns { justify-content: center; }
.bx-cta .bx-btn--primary { background: var(--bx-cta-btn-bg, var(--bx-btn-bg)); color: var(--bx-cta-btn-fg, var(--bx-btn-fg)); }
.bx-cta .bx-btn--ghost { background: transparent; color: var(--bx-cta-fg); box-shadow: inset 0 0 0 1px var(--bx-cta-line, rgba(255, 255, 255, .35)); }

/* photo colour layer follows the brand colour on these pages */
.bx .media::after { background: var(--bx-tint); opacity: var(--bx-tint-o, .38); }

/* =========================================================================
   MIZA  — purple, soft rounded cards, IBM Plex Sans Arabic
   ========================================================================= */
.bx--miza {
  --bx-font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; --bx-font-head: var(--bx-font); --bx-body-w: 400;
  --bx-bg: #FBFBFF; --bx-alt: #F4F2F7; --bx-surface: #fff; --bx-text: #111; --bx-head: #111; --bx-muted: #5F5A66; --bx-line: #E6E3EC;
  --bx-accent-text: #6C5B7B; --bx-h1-w: 700;
  --bx-hero-bg: radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, .12), transparent 55%), #6C5B7B;
  --bx-hero-text: #FBFBFF; --bx-hero-muted: #E4DEEB; --bx-hero-accent: #D5CDDE;
  --bx-radius: 16px; --bx-radius-lg: 24px; --bx-btn-radius: 12px;
  --bx-btn-bg: #FBFBFF; --bx-btn-fg: #3F3449; --bx-btn-bg-h: #fff;
  --bx-ghost-bg: rgba(251, 251, 255, .14); --bx-ghost-fg: #fff; --bx-ghost-line: rgba(251, 251, 255, .32);
  --bx-chip-bg: #EAE6EF; --bx-chip-fg: #6C5B7B;
  --bx-card-shadow: 0 1px 2px rgba(43, 36, 51, .06), 0 1px 3px rgba(43, 36, 51, .08);
  --bx-card-shadow-h: 0 24px 60px -16px rgba(43, 36, 51, .26);
  --bx-cta-bg: radial-gradient(ellipse at 90% 0%, rgba(255, 255, 255, .12), transparent 55%), #524462; --bx-cta-fg: #FBFBFF; --bx-cta-muted: #D5CDDE;
  --bx-tint: #6C5B7B;
}
.bx--miza .bx-tag { border-radius: 999px; }
.bx--miza .bx-card__num { font-family: "IBM Plex Sans", var(--bx-font); }

/* =========================================================================
   QUANTRA — deep navy + electric blue, centred hero, pill buttons, big radius
   ========================================================================= */
.bx--quantra {
  --bx-font: "Cairo", "Inter", sans-serif; --bx-font-head: var(--bx-font); --bx-head-ls: -.02em;
  --bx-bg: #fff; --bx-alt: #f4f4f5; --bx-surface: #fff; --bx-text: #09090b; --bx-head: #023047; --bx-muted: #71717a; --bx-line: transparent;
  --bx-accent-text: #2090fe;
  --bx-hero-bg: linear-gradient(135deg, #011b29, #023047); --bx-hero-text: #fff; --bx-hero-muted: #e5e5e5; --bx-hero-accent: #b0dfff;
  --bx-radius: 32px; --bx-radius-lg: 40px; --bx-btn-radius: 99px;
  --bx-btn-bg: #2090fe; --bx-btn-fg: #fff; --bx-btn-bg-h: #0f7ee8;
  --bx-ghost-bg: rgba(255, 255, 255, .15); --bx-ghost-fg: #fff; --bx-ghost-line: rgba(255, 255, 255, .18);
  --bx-tag-bg: rgba(255, 255, 255, .1);
  --bx-chip-bg: #e3f2ff; --bx-chip-fg: #023047;
  --bx-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, .05), 0 4px 6px -2px rgba(0, 0, 0, .025);
  --bx-card-shadow-h: 0 20px 25px -5px rgba(2, 48, 71, .12), 0 10px 10px -5px rgba(2, 48, 71, .04);
  --bx-cta-bg: radial-gradient(ellipse at 50% 120%, rgba(32, 144, 254, .35), transparent 60%), linear-gradient(135deg, #011b29, #023047);
  --bx-cta-fg: #fff; --bx-cta-muted: #cfdde6; --bx-cta-label: #b0dfff;
  --bx-tint: #023047; --bx-tint-o: .3;
}
html[lang="en"] .bx--quantra { --bx-font: "Inter", "Cairo", sans-serif; }
.bx--quantra .bx-hero { min-height: min(92svh, 900px); display: flex; align-items: center; }
.bx--quantra .bx-hero__bg { display: block; }
.bx--quantra .bx-hero__bg img { opacity: .28; mix-blend-mode: luminosity; }
.bx--quantra .bx-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(32, 144, 254, .22), transparent 60%),
              linear-gradient(to bottom, rgba(1, 27, 41, .55), #011b29 96%); }
.bx--quantra .bx-hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.bx--quantra .bx-hero__media { display: none; }
.bx--quantra .bx-crumbs ol, .bx--quantra .bx-btns { justify-content: center; }
.bx--quantra .bx-lead { margin-inline: auto; }
.bx--quantra .bx-tag { border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.bx--quantra .bx-h1 { font-size: clamp(3rem, 1.6rem + 5.6vw, 6.2rem); }
.bx--quantra .bx-btn { min-height: 58px; padding: 0 36px; }
.bx--quantra .bx-head { margin-inline: auto; text-align: center; }
.bx--quantra .bx-card { padding: clamp(28px, 3vw, 44px); }
.bx--quantra .bx-card__num { border-radius: 16px; }
.bx--quantra .bx-services { background: #f4f4f5; }

/* =========================================================================
   HIVE — ink black + amber, Chakra Petch / Changa, cut corners, uppercase labels
   ========================================================================= */
.bx--hive {
  --bx-font: "Changa", system-ui, "Segoe UI", sans-serif; --bx-font-head: "Chakra Petch", "Changa", system-ui, sans-serif; --bx-head-ls: -.01em;
  --bx-bg: #fff; --bx-alt: #fff; --bx-surface: #F5F6F7; --bx-text: #15171C; --bx-head: #15171C; --bx-muted: #4F535D; --bx-line: transparent;
  --bx-accent-text: #15171C; --bx-h1-w: 700;
  --bx-hero-bg: #15171C; --bx-hero-text: #fff; --bx-hero-muted: #B4B7BF; --bx-hero-accent: #E8A013;
  --bx-radius: 0px; --bx-radius-lg: 0px; --bx-btn-radius: 0px;
  --bx-btn-bg: #E8A013; --bx-btn-fg: #15171C; --bx-btn-bg-h: #EFB139;
  --bx-ghost-bg: transparent; --bx-ghost-fg: #fff; --bx-ghost-line: rgba(255, 255, 255, .3); --bx-ghost-bg-h: rgba(255, 255, 255, .08);
  --bx-tag-bg: transparent;
  --bx-chip-bg: transparent; --bx-chip-fg: #E8A013;
  --bx-card-shadow: none; --bx-card-shadow-h: 0 30px 60px -30px rgba(21, 23, 28, .35);
  --bx-cta-bg: #E8A013; --bx-cta-fg: #15171C; --bx-cta-muted: #363941; --bx-cta-label: #15171C;
  --bx-cta-btn-bg: #15171C; --bx-cta-btn-fg: #fff; --bx-cta-line: rgba(21, 23, 28, .45);
  --bx-tint: #E8A013; --bx-tint-o: .22;
  --cut: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  --cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
[dir="rtl"] .bx--hive {
  --cut: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  --cut-sm: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.bx--hive .bx-hero { min-height: min(92svh, 880px); display: flex; align-items: center; }
.bx--hive .bx-hero__bg { display: block; }
.bx--hive .bx-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #15171C 0%, rgba(21, 23, 28, .92) 30%, rgba(21, 23, 28, .55) 62%, rgba(21, 23, 28, .25) 100%); }
[dir="rtl"] .bx--hive .bx-hero__bg::after {
  background: linear-gradient(270deg, #15171C 0%, rgba(21, 23, 28, .92) 30%, rgba(21, 23, 28, .55) 62%, rgba(21, 23, 28, .25) 100%); }
.bx--hive .bx-hero__grid { grid-template-columns: minmax(0, 820px); }
.bx--hive .bx-hero__media { display: none; }
.bx--hive .bx-tag, .bx--hive .bx-label { padding: 0; font-family: var(--bx-font-head); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
[dir="rtl"] .bx--hive .bx-tag, [dir="rtl"] .bx--hive .bx-label { letter-spacing: 0; font-family: var(--bx-font); font-size: .92rem; }
.bx--hive .bx-tag .ic { display: none; }
.bx--hive .bx-tag::before, .bx--hive .bx-label::before { content: ""; width: 8px; height: 8px; background: #E8A013; flex: none; }
.bx--hive .bx-btn { clip-path: var(--cut-sm); min-height: 54px; font-family: var(--bx-font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
[dir="rtl"] .bx--hive .bx-btn { letter-spacing: 0; font-family: var(--bx-font); font-size: .95rem; }
.bx--hive .bx-card { clip-path: var(--cut); }
.bx--hive .bx-card__num { width: auto; height: auto; place-items: start; font-size: 1.5rem; color: #E8A013; }
.bx--hive .bx-card:hover { background: #15171C; }
.bx--hive .bx-card:hover .bx-h3 { color: #fff; }
.bx--hive .bx-card:hover p { color: #B4B7BF; }
.bx--hive .bx-card .bx-h3, .bx--hive .bx-card p { transition: color .45s var(--ease); }
.bx--hive .bx-card { transition: transform .45s var(--ease), background-color .45s var(--ease); }
.bx--hive .media img, .bx--hive .media::after { clip-path: var(--cut); }
.bx--hive .media { background: transparent; }
.bx--hive .bx-feature { background: #1A1C22; color: #fff; --bx-head: #fff; --bx-muted: #B4B7BF; --bx-accent-text: #fff; }
.bx--hive .bx-gallery, .bx--hive .bx-cta-wrap { background: #fff; }
.bx--hive .bx-cta { clip-path: var(--cut); text-align: start; }
.bx--hive .bx-cta .bx-h2, .bx--hive .bx-cta .bx-lead { margin-inline: 0; }
.bx--hive .bx-cta .bx-btns { justify-content: flex-start; }
.bx--hive .bx-cta .bx-label::before { background: #15171C; }
.bx--hive .bx-cta .bx-btn--ghost:hover { background: rgba(21, 23, 28, .08); }

/* =========================================================================
   LOMINA — slate blue, square buttons, framed imagery, Be Vietnam Pro
   ========================================================================= */
.bx--lomina {
  --bx-font: "Public Sans", "IBM Plex Sans Arabic", sans-serif; --bx-font-head: "Be Vietnam Pro", "IBM Plex Sans Arabic", sans-serif;
  --bx-bg: #fff; --bx-alt: #F4F4F4; --bx-surface: #fff; --bx-text: #3d4650; --bx-head: #00151A; --bx-muted: #5f6b76; --bx-line: transparent;
  --bx-accent-text: #668FC8; --bx-h1-w: 600;
  --bx-hero-bg: #3F506B; --bx-hero-text: #fff; --bx-hero-muted: #DBDBDB; --bx-hero-accent: #A9C3E6;
  --bx-radius: 0px; --bx-radius-lg: 0px; --bx-btn-radius: 0px;
  --bx-btn-bg: #668FC8; --bx-btn-fg: #fff; --bx-btn-bg-h: #5a82bb;
  --bx-ghost-bg: transparent; --bx-ghost-fg: #fff; --bx-ghost-line: #fff; --bx-ghost-bg-h: rgba(255, 255, 255, .1);
  --bx-tag-bg: transparent;
  --bx-chip-bg: #3F506B; --bx-chip-fg: #fff;
  --bx-card-shadow: 0 10px 40px -14px rgba(0, 21, 26, .18); --bx-card-shadow-h: 0 26px 60px -18px rgba(0, 21, 26, .28);
  --bx-cta-bg: #3F506B; --bx-cta-fg: #fff; --bx-cta-muted: #DBDBDB; --bx-cta-label: #A9C3E6;
  --bx-tint: #3F506B; --bx-tint-o: .34;
}
.bx--lomina .bx-hero { padding-bottom: clamp(80px, 9vw, 140px); }
.bx--lomina .bx-tag { padding: 0; font-weight: 600; color: #A9C3E6; }
.bx--lomina .bx-btn { min-height: 58px; padding: 0 40px; }
.bx--lomina .bx .bx-hero__img, .bx--lomina .bx-hero__img { aspect-ratio: 4 / 4.8; box-shadow: none; }
.bx--lomina .bx-hero__media { padding: 0 0 28px 28px; }
.bx--lomina .bx-hero__media::before { content: ""; position: absolute; inset: 28px 28px 0 0; background: #668FC8; }
[dir="rtl"] .bx--lomina .bx-hero__media { padding: 0 28px 28px 0; }
[dir="rtl"] .bx--lomina .bx-hero__media::before { inset: 28px 0 0 28px; }
.bx--lomina .bx-hero__img { z-index: 1; }
.bx--lomina .bx-float { inset-inline-start: auto; inset-inline-end: -18px; bottom: 56px; }
.bx--lomina .bx-card__num { margin-top: calc(-1 * clamp(24px, 2.6vw, 36px)); border-radius: 0; width: 56px; height: 56px; }
.bx--lomina .bx-card { margin-top: 28px; }
.bx--lomina .bx-gallery .bx-media--b { aspect-ratio: 4 / 4.2; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bx-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .bx-hero__grid, .bx-split { grid-template-columns: 1fr; }
  .bx-hero__media { max-width: 560px; }
  .bx-float { inset-inline-start: 16px; bottom: 16px; }
  .bx--lomina .bx-float { inset-inline-end: 16px; }
  .bx-gallery__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bx-grid { grid-template-columns: 1fr; }
  .bx-btns { flex-direction: column; align-items: stretch; }
  .bx-btn { justify-content: space-between; }
  .bx-gallery__grid { grid-template-columns: 1fr; }
  .bx .bx-media--b { aspect-ratio: 4 / 3; }
  .bx-h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .bx-btn, .bx-card { transition: none; }
  .bx-btn:hover, .bx-card:hover { transform: none; }
}
