/* ==========================================================================
   180° Drug Store — public website
   Built on tokens.css. Logical properties throughout for perfect RTL.
   ========================================================================== */

:root {
  --site-max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --hero-ink: #ffffff;
  --navy-grad: linear-gradient(180deg, #062562 0%, #04163c 100%);
  --r: 8px;        /* cards, fields, buttons */
  --r-lg: 10px;    /* large panels */
  --r-photo: 6px;  /* photographs */
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.site { font-size: 16px; line-height: 1.65; background: var(--bg); }
[dir="rtl"] body.site { line-height: 1.8; }
.site main { display: block; min-height: 50vh; }
.site main:focus { outline: none; }
.site h1, .site h2, .site h3 { color: var(--text); }
.site p { color: var(--text-2); }
.container { width: 100%; max-width: var(--site-max); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.05rem; }
.small { font-size: 0.875rem; }
.muted { color: var(--text-3) !important; }
.mt-section { margin-top: 56px; }
.icon { width: 1.15em; height: 1.15em; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.flag-pill { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-text); font-size: 11px; font-weight: 800; letter-spacing: .04em; flex: none; }
.flag-lg { min-width: 44px; height: 32px; font-size: 13px; border-radius: 9px; }

/* ---------- Logo per theme ---------- */
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}

/* ---------- Buttons ---------- */
.btn { --_bg: var(--surface); --_fg: var(--text); --_bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r);
  border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg); font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap;
  text-decoration: none !important; transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur), border-color var(--dur); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { --_bg: var(--navy-700); --_fg: #fff; --_bd: transparent; box-shadow: 0 6px 18px rgba(4, 48, 122, .25); }
.btn-primary:hover { background: var(--navy-800); box-shadow: 0 10px 24px rgba(4, 48, 122, .3); }
:root[data-theme="dark"] .btn-primary { --_bg: #2a55b4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { --_bg: #2a55b4; } }
.btn-accent { --_bg: var(--teal-500); --_fg: #fff; --_bd: transparent; box-shadow: 0 8px 22px rgba(0, 168, 156, .35); }
.btn-accent:hover { background: var(--teal-600); }
.btn-ghost { --_bg: transparent; --_fg: var(--primary-text); --_bd: var(--border-strong); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { --_bg: #fff; --_fg: var(--navy-700); --_bd: transparent; }
.btn-outline-light { --_bg: rgba(255, 255, 255, .06); --_fg: #fff; --_bd: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Header ---------- */
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000; background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 24px rgba(7, 29, 72, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: var(--r); color: var(--text-2); font-weight: 600; font-size: 15px; text-decoration: none; position: relative; }
.main-nav a:hover { color: var(--text); background: var(--surface-sunken); }
.main-nav a[aria-current="page"] { color: var(--primary-text); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch, .header-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r); color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.lang-switch:hover, .header-link:hover { background: var(--surface-sunken); color: var(--text); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); cursor: pointer; place-items: center; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 18px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-weight: 500; }
.flash .icon { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.flash-success { background: var(--success-soft); color: var(--success-text); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.flash-error { background: var(--danger-soft); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* ---------- Hero ---------- */
/* Inner-page banners keep the navy band; the home hero is the pharmacy-shelf photo under navy. */
.hero-mesh { position: absolute; inset: 0; background: var(--navy-grad); z-index: -2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--teal-300) !important; }

.hero { --line: rgba(255, 255, 255, .14);
  position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 76px 0 0; background: #04163c; }
.hero .hero-eyebrow { font-size: 12px; letter-spacing: .1em; color: var(--teal-300); }
.hero-eyebrow::before { width: 28px; height: 2px; border: 0; border-radius: 0; background: currentColor; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.35rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
[dir="rtl"] .hero h1 { line-height: 1.34; letter-spacing: 0; font-weight: 700; }
.hero-hl { color: var(--teal-300); }
.hero-lead { color: rgba(255, 255, 255, .78) !important; font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 540px; margin: 22px 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 14px 30px; flex-wrap: wrap; }
.hero .btn-accent { box-shadow: none; }
.hero .btn-accent:hover { background: var(--teal-400); }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; text-decoration-color: rgba(255, 255, 255, .35); transition: text-decoration-color var(--dur); }
.hero-link:hover { text-decoration-color: #fff; }
.hero-link .icon { width: 18px; height: 18px; transition: translate var(--dur) var(--ease); }
.hero-link:hover .icon { translate: 3px 0; }
[dir="rtl"] .hero-link:hover .icon { translate: -3px 0; }

.hero-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 64px 0 0; border-top: 1px solid var(--line); }
.hero-ledger > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 28px 28px 34px; border-inline-start: 1px solid var(--line); }
.hero-ledger > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero-ledger dd { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.hero-ledger dd span { color: var(--teal-300); }
.hero-ledger dt { font-size: 14.5px; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.ledger-sub { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Home hero: a rendered pharmacy shelf with the «متوفر» label in focus (img/site/hero-shelf-{ar,en}-*) fills the hero,
   and the navy rises over it from the copy side */
.hero-photo { display: block; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero--shelf { padding-top: 0; }
.shelf-bg { position: absolute; inset: 0; z-index: -2; }
.shelf-bg img { object-position: 28% 50%; }
[dir="ltr"] .shelf-bg img { object-position: 72% 50%; }
.hero--shelf::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, #04163c 0%, rgba(4, 22, 60, .88) 15%, rgba(4, 22, 60, 0) 44%),
    linear-gradient(to left, rgba(4, 22, 60, .97) 0%, rgba(4, 22, 60, .92) 33%, rgba(5, 30, 80, .45) 55%, rgba(5, 30, 80, 0) 76%); }
[dir="ltr"] .hero--shelf::before {
  background: linear-gradient(0deg, #04163c 0%, rgba(4, 22, 60, .88) 15%, rgba(4, 22, 60, 0) 44%),
    linear-gradient(to right, rgba(4, 22, 60, .97) 0%, rgba(4, 22, 60, .92) 33%, rgba(5, 30, 80, .45) 55%, rgba(5, 30, 80, 0) 76%); }
.shelf-copy { display: flex; align-items: center; min-height: clamp(500px, calc(100svh - var(--header-h) - 180px), 640px); padding: 64px 0 44px; }
.shelf-copy .hero-copy { max-width: 580px; }
.hero--shelf .hero-ledger { margin-top: 0; border-top-color: rgba(255, 255, 255, .2); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-inner { display: flex; align-items: center; gap: 28px; padding-block: 22px; flex-wrap: wrap; }
.trust-inner p { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
[dir="rtl"] .trust-inner p { letter-spacing: 0; }
.trust-logos { list-style: none; display: flex; gap: 14px 34px; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--text-2); white-space: nowrap; }
.muted-mark { font-size: 14px; font-weight: 700; color: var(--accent-text); }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section-tight { padding-block: 56px; }
.section-tint, .section-sunken { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-line { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
[dir="rtl"] .section-head h2 { line-height: 1.4; letter-spacing: 0; font-weight: 700; }
.section-lead { font-size: 1.1rem; margin: 14px 0 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head-row .section-head { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); transition: text-decoration-color var(--dur); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link .icon { width: 18px; height: 18px; }
/* ---------- Stats ---------- */
.stats-section { padding-block: 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--primary-text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span:last-child { display: block; margin-top: 8px; color: var(--text-2); font-weight: 500; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* information in columns under a rule, not in boxes */
.s-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 0 0; border-top: 1px solid var(--border-strong);
  text-decoration: none !important; color: inherit; transition: border-color .2s; }
a.s-card:hover { border-top-color: var(--accent); }
a.s-card:hover h3 { color: var(--primary-text); }
.s-card h3 { font-size: 1.2rem; margin-top: 6px; transition: color .2s; }
.s-card p { margin: 0; font-size: .97rem; }
/* a line icon on its own, never inside a tinted tile */
.s-icon { display: flex; align-items: center; color: var(--accent-text); flex: none; }
.s-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.s-icon-lg .icon { width: 36px; height: 36px; }
.s-icon.wa { color: #128c4a; }
.s-num { position: absolute; inset-inline-end: 0; top: 26px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 13px; font-weight: 800; color: var(--text-3); letter-spacing: .12em; }
.s-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-text); font-size: 14px; }
.s-link .icon { transition: translate .2s; }
a.s-card:hover .s-link .icon { translate: 3px 0; }
[dir="rtl"] a.s-card:hover .s-link .icon { translate: -3px 0; }
.glyph { width: 44px; height: 44px; color: var(--primary-text); flex: none; --glyph-bg: var(--bg); }

/* ---------- Home services: photograph and text, alternating sides ---------- */
.svc-rows { display: grid; gap: 80px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.svc-row:nth-child(even) .svc-photo { order: 2; }
.svc-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-photo); background: var(--surface-2); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-photo:hover img { transform: scale(1.02); }
.svc-mark { display: flex; align-items: center; justify-content: space-between; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.svc-index { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--accent-text); }
.svc-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; margin: 0 0 14px; letter-spacing: -.02em; }
[dir="rtl"] .svc-text h3 { letter-spacing: 0; line-height: 1.45; }
.svc-text h3 a { color: var(--text); text-decoration: none; }
.svc-text h3 a:hover { color: var(--primary-text); }
.svc-intro { font-size: 1.05rem; margin: 0 0 22px; }
.svc-points { list-style: none; margin: 0 0 14px; padding: 0; }
.svc-points li { position: relative; padding: 11px 0; padding-inline-start: 22px; border-top: 1px solid var(--border); color: var(--text); font-weight: 550; font-size: .98rem; }
.svc-points li:last-child { border-bottom: 1px solid var(--border); }
.svc-points li::before { content: ""; position: absolute; inset-inline-start: 1px; top: calc(50% - 1px); width: 9px; height: 2px; background: var(--accent); }
.svc-also { margin-top: 96px; padding-top: 28px; border-top: 2px solid var(--text); }
.svc-also-label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
[dir="rtl"] .svc-also-label { letter-spacing: 0; font-size: 14px; }
.svc-also ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.svc-also a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; height: 100%; padding: 22px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.svc-also .glyph { width: 36px; height: 36px; }
.svc-also a > span { display: grid; gap: 4px; color: var(--text-2); font-size: .93rem; line-height: 1.6; }
.svc-also strong { color: var(--text); font-size: 1.05rem; transition: color .2s; }
.svc-also a > .icon { width: 18px; height: 18px; margin-top: 5px; color: var(--text-3); transition: color .2s, translate .2s; }
.svc-also a:hover strong { color: var(--primary-text); }
.svc-also a:hover > .icon { color: var(--accent-text); translate: 3px 0; }
[dir="rtl"] .svc-also a:hover > .icon { translate: -3px 0; }
/* ---------- Navy band: how we work ---------- */
.band-navy { --line: rgba(255, 255, 255, .14); background: #04163c; color: #fff; }
.band-navy .section-head h2 { color: #fff; }
.band-navy .eyebrow { color: var(--teal-300); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 26px 22px 4px; border-inline-start: 1px solid var(--line); }
.steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step-n { display: block; margin-bottom: 28px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--teal-300); }
.band-navy .steps h3 { color: #fff; font-size: 1.12rem; margin: 0 0 8px; }
.band-navy .steps p { color: rgba(255, 255, 255, .7); font-size: .93rem; line-height: 1.65; margin: 0; }
/* the same ruled steps on light pages (services) */
.process { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.process li { padding: 24px 18px 0; border-inline-start: 1px solid var(--border); }
.process li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step-ring { display: block; margin-bottom: 22px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--accent-text); }
.step-ring::before { content: "0"; }
.process h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process p { font-size: .9rem; margin: 0; }
/* ---------- Therapeutic areas: a plain index ---------- */
.areas-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.areas-split .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--text); }
.area-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 650; font-size: 1.05rem; text-decoration: none; transition: color .2s; }
.area-list .icon { width: 18px; height: 18px; color: var(--text-3); flex: none; transition: color .2s, translate .2s; }
.area-list a:hover { color: var(--primary-text); }
.area-list a:hover .icon { color: var(--accent-text); translate: 3px 0; }
[dir="rtl"] .area-list a:hover .icon { translate: -3px 0; }
/* ---------- Offices, each with its local time ---------- */
.offices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--text); }
.office { padding: 22px 24px 8px; border-inline-start: 1px solid var(--border); }
.office:first-child { border-inline-start: 0; padding-inline-start: 0; }
.office-tag { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.office.is-hq .office-tag { color: var(--accent-text); }
.office-code { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; letter-spacing: .1em; color: var(--text); }
.office h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 0; }
.office-city { margin: 2px 0 22px; color: var(--text-2); font-size: .97rem; }
.office-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 4px; }
.office-time time { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.office-time span { font-size: 13px; color: var(--text-3); }
.office-phone { display: inline-block; padding-block: 8px; color: var(--text-2); font-variant-numeric: tabular-nums; text-decoration: none; }
.office-phone:hover { color: var(--primary-text); text-decoration: underline; }

/* ---------- Presence page: office details ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.branch-card { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.branch-card.is-hq { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 0 0 4px var(--accent-soft); }
.branch-card header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-lines li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.contact-lines .icon { color: var(--accent-text); margin-top: 4px; flex: none; }
.contact-lines a { color: var(--text); }

/* ---------- Customer portal: the real screen, in a phone ---------- */
.portal-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.portal-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
[dir="rtl"] .portal-copy h2 { letter-spacing: 0; line-height: 1.45; }
.portal-points { list-style: none; counter-reset: pp; margin: 28px 0 32px; padding: 0; max-width: 520px; }
.portal-points li { counter-increment: pp; display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); font-weight: 650; color: var(--text); }
.portal-points li:last-child { border-bottom: 1px solid var(--border); }
.portal-points li::before { content: counter(pp, decimal-leading-zero); font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--accent-text); }
.phone-frame { justify-self: center; width: min(320px, 72vw); margin: 0; padding: 9px; border-radius: 46px; background: #0d1628;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1px rgba(4, 22, 60, .25), 0 40px 70px -30px rgba(4, 22, 60, .55); }
.phone-frame picture, .phone-frame img { display: block; width: 100%; height: auto; border-radius: 37px; }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-weight: 550; }
.checks .icon { color: var(--success); margin-top: 4px; flex: none; }
/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.post-card { display: flex; flex-direction: column; gap: 18px; }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-photo); background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; gap: 12px; align-items: center; margin: 0; font-size: 13px; color: var(--text-3); }
.post-meta time { padding-inline-start: 12px; border-inline-start: 1px solid var(--border-strong); }
.post-cat { font-weight: 700; color: var(--accent-text); }
.post-body h3 { font-size: 1.2rem; line-height: 1.4; }
.post-body h3 a { color: var(--text); text-decoration: none; }
.post-body h3 a:hover { color: var(--primary-text); text-decoration: underline; text-underline-offset: 4px; }
.post-body p { margin: 0; font-size: .95rem; }
.post-read { margin-top: auto; font-size: 13px; color: var(--text-3); font-weight: 600; }
/* ---------- Closing call to action ---------- */
.closing { padding-block: 0 104px; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: end; padding-top: 56px; border-top: 2px solid var(--text); }
.closing-ask h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; max-width: 680px; }
[dir="rtl"] .closing-ask h2 { letter-spacing: 0; line-height: 1.4; }
.closing-ask p { font-size: 1.08rem; max-width: 560px; margin: 0 0 28px; }
.closing-label { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.closing-direct ul { list-style: none; margin: 0; padding: 0; }
.closing-direct a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.closing-direct .icon { width: 20px; height: 20px; color: var(--accent-text); }
.closing-direct strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.closing-direct a:hover strong { color: var(--primary-text); }
/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 72px; color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 860px; }
[dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
.page-lead { color: rgba(255, 255, 255, .8) !important; font-size: 1.15rem; max-width: 720px; margin: 18px 0 0; }
.page-hero .hero-actions { margin-top: 28px; }
/* a house photograph on the far side, fading into the navy under the text */
.page-hero-photo { position: absolute; inset-block: 0; inset-inline-end: 0; width: 50%; z-index: -1; }
.page-hero-photo picture, .page-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(4, 22, 60, .2) 0%, rgba(4, 22, 60, .5) 50%, #04163c 100%); }
[dir="ltr"] .page-hero-photo::after { background: linear-gradient(to left, rgba(4, 22, 60, .2) 0%, rgba(4, 22, 60, .5) 50%, #04163c 100%); }
.page-hero.has-photo .container > * { max-width: 600px; }
.page-hero-compact { padding: 28px 0 90px; }
.page-hero .eyebrow::before { width: 28px; height: 2px; border: 0; border-radius: 0; background: currentColor; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 13.5px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .72); }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.crumbs a { color: rgba(255, 255, 255, .85); }
a[href^="tel:"], bdi.nb { white-space: nowrap; }
@media (pointer: coarse) {
  .crumbs a, .footer-col a, .footer-bottom a { display: inline-block; padding-block: 4px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
}
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.section-overlap { padding-top: 0; margin-top: -64px; position: relative; z-index: 2; }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.prose-lg { font-size: 1.07rem; line-height: 1.8; }
.prose-lg h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 18px; letter-spacing: -.02em; }
.prose-lg h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose-lg p, .prose-lg li { color: var(--text-2); }
.prose-lg ul { padding-inline-start: 22px; }
/* A list item in the other script (dir="auto") hangs its bullet on the opposite side: keep that side padded too */
.prose-lg ul:has(> li[dir]) { padding-inline: 22px; }
.prose-lg li { margin-bottom: 6px; }
.prose-lg li::marker { color: var(--accent); }
.prose-lg a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.prose-lg img { border-radius: var(--r-lg); }
.founder-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.founder-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #04163c; color: #fff; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.founder-name { font-size: 1.3rem; font-weight: 800; color: var(--text) !important; margin: 18px 0 0; }
.founder-name span { display: block; font-size: .9rem; font-weight: 600; color: var(--accent-text); }
.principle { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.principle .eyebrow { margin-bottom: 8px; font-size: 11.5px; }
.principle p { font-size: 1.1rem; color: var(--text) !important; font-weight: 600; line-height: 1.6; margin: 0; }
.principle blockquote { margin: 0; }
.principle cite { display: block; margin-top: 10px; font-style: normal; font-size: .9rem; font-weight: 600; color: var(--accent-text); }
.goals-card { margin-top: 20px; }
.goals-card .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.vmg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.vmg { padding: 24px 0 0; border-top: 1px solid var(--border-strong); }
.vmg h2 { margin: 16px 0 10px; }
.vmg p { margin: 0; }
.timeline-h { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; position: relative; }
.timeline-h::before { content: ""; position: absolute; inset-inline: 0; top: 46px; height: 1px; background: var(--border-strong); }
.timeline-h li { position: relative; }
.t-year { display: block; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: var(--primary-text); height: 30px; }
.t-dot { position: relative; z-index: 1; display: block; width: 9px; height: 9px; margin: 12px 0 20px; background: var(--accent); }
.timeline-h h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-h p { font-size: .92rem; margin: 0; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feature-panel { position: relative; padding: 36px; border-radius: var(--r-lg); background: var(--navy-grad); color: #fff; overflow: hidden; }
.feature-panel h2 { color: #fff; margin: 14px 0 10px; }
.feature-panel p { color: rgba(255, 255, 255, .8); margin: 0; }
.feature-panel.alt { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.feature-panel.alt h2 { color: var(--text); }
.feature-panel.alt p { color: var(--text-2); }

/* ---------- Services: an index of the six, then each service on its own page ---------- */
.service-index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.service-index a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.si-mark { display: flex; flex-direction: column; gap: 14px; }
.si-body { display: grid; gap: 8px; }
.si-body strong { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; color: var(--text); transition: color .2s; }
.si-summary { color: var(--text-2); max-width: 680px; }
.si-points { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.si-points span + span::before { content: "·"; margin-inline: 10px; color: var(--accent); }
.si-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--primary-text); white-space: nowrap; }
.si-go .icon { width: 18px; height: 18px; transition: translate .2s; }
.service-index a:hover strong { color: var(--primary-text); }
.service-index a:hover .si-go .icon { translate: 3px 0; }
[dir="rtl"] .service-index a:hover .si-go .icon { translate: -3px 0; }
.glyph-lg { width: 64px; height: 64px; margin-bottom: 18px; }
.svc-also.is-flush { margin-top: 0; }
.points-card .portal-points { margin: 18px 0 0; max-width: none; }
.chips { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; }
.chips li { padding: 4px 10px; border-radius: 4px; background: var(--surface-sunken); color: var(--text-2); font-size: 13px; font-weight: 600; }
.service-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.points-card { padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); position: sticky; top: calc(var(--header-h) + 24px); }
.points-card .checks { margin-bottom: 0; }
/* ---------- Partners ---------- */
.partner-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 0; margin: 0; }
.partner { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.partner-logo { height: 70px; display: flex; align-items: center; }
.partner-logo img { max-height: 56px; width: auto; }
.partner .wordmark { font-size: 22px; color: var(--primary-text); }
.partner p { margin: 0; font-size: .95rem; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.form-card { padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 24px); }
.form-card h2 { margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin: 16px 0 6px; }
.form-grid .span-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-weight: 650; font-size: 14px; color: var(--text); }
.label .req, .req { color: var(--danger); }
.input, .textarea { unicode-bidi: plaintext; } /* English typed into an Arabic form reads from its start */
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-inline-end: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367728c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
[dir="rtl"] .select { background-position: left 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--danger-text); font-size: 13px; font-weight: 600; }
.field-help { color: var(--text-3); font-size: 13px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--primary-text); text-decoration: underline; }
.form-note { font-size: 13px; color: var(--text-3); margin: 6px 0 16px; }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r); border: 2px dashed var(--border-strong); background: var(--bg); color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .icon { color: var(--accent-text); width: 22px; height: 22px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.input-icon .input { padding-inline-start: 40px; }
.input-group { display: flex; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--surface-sunken); border-radius: var(--r); }
.note-card { display: flex; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); margin-top: 20px; }
.note-card .icon { color: var(--accent-text); flex: none; margin-top: 4px; }
.note-card p { margin: 0; }

/* ---------- Contact ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.channel { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
a.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.channel > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--text-2); }
.channel strong { color: var(--text); font-size: 14px; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); min-height: 360px; background: var(--surface-2); display: grid; }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.map-placeholder { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 32px; color: var(--text); }
.map-placeholder > .icon { width: 40px; height: 40px; color: var(--accent-text); stroke-width: 1.5; }
.map-placeholder p { color: var(--text-2); max-width: 380px; margin: 0; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 16px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; font-weight: 700; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--text-3); flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { margin: 0; }

/* ---------- Products ---------- */
.catalog-search { position: relative; display: flex; gap: 10px; max-width: 720px; margin-bottom: 20px; }
.catalog-search > .icon { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.catalog-search .input { padding-inline-start: 44px; border-radius: var(--radius-pill); }
.area-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.area-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.area-chips a:hover { border-color: var(--border-strong); color: var(--text); }
.area-chips a[aria-current] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.area-chips .count { font-size: 12px; opacity: .7; }
.result-count { font-size: 14px; color: var(--text-3); }
/* a catalogue card reads like a shelf label: a coloured rule for the product type, then the facts */
.product-card { --type: var(--border-strong); display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--type);
  color: inherit; text-decoration: none !important; transition: border-color .2s; }
.product-card:hover { border-color: var(--border-strong); border-top-color: var(--type); }
.product-card:hover .product-name { color: var(--primary-text); }
.product-card.t-rx { --type: var(--navy-700); }
.product-card.t-otc { --type: var(--teal-500); }
.product-card.t-supplement { --type: #3d8b4f; }
.product-card.t-cosmetic { --type: #9a5ea8; }
.product-card.t-medical_device { --type: #6b7a90; }
.product-media { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { flex: 1; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--text-3); }
.badge-type { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--type, var(--primary-text)); }
.pd-body .badge-type { display: inline-block; --type: var(--primary-text); }
.product-name { margin: 0; font-size: 1.08rem; line-height: 1.35; color: var(--text); transition: color .2s; }
.product-generic { color: var(--text-2); font-size: 14px; }
.product-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.product-body .product-foot { margin-top: 16px; }
.product-meta { color: var(--text-3); }
.product-area { color: var(--accent-text); font-weight: 700; text-align: end; }
/* product page without a photograph: the label, large */
.pd-label { display: grid; gap: 6px; align-content: start; min-height: 340px; padding: 36px; border-top: 6px solid var(--navy-700); background: var(--surface); color: var(--text-2); }
.pd-label strong { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text); margin-top: 18px; }
.pd-label-type { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.pd-label-strength { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.pd-label-pack { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.pd-media { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.pd-body { padding-top: 72px; }
.pd-body h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; margin: 14px 0 8px; }
[dir="rtl"] .pd-body h1 { letter-spacing: 0; }
.pd-lead { font-size: 1.1rem; }
.rx-flag { display: inline-flex; gap: 8px; align-items: center; color: var(--danger-text) !important; font-weight: 700; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 22px 0 26px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.spec div { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.spec div:nth-child(odd) { border-inline-end: 1px solid var(--border); }
.spec dt { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.spec dd { margin: 2px 0 0; font-weight: 700; color: var(--text); }
.hcp-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 26px; padding: 14px 16px; border-radius: var(--r); background: var(--info-soft); color: var(--info-text) !important; font-size: 14px; }
.hcp-note .icon { flex: none; margin-top: 3px; }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 48px; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); text-align: center; }
.empty-state .icon { width: 40px; height: 40px; color: var(--text-3); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; text-decoration: none; }
.pager a[aria-current] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

/* ---------- Careers ---------- */
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.job-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none !important; transition: border-color .2s, transform .2s, box-shadow .2s; }
.job-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.job-main { flex: 1; min-width: 0; }
.job-main h3 { font-size: 1.1rem; margin-bottom: 6px; }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-go { color: var(--text-3); }
.job-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.job-facts div { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.job-facts dt { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.job-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--text); }

/* ---------- Articles ---------- */
.article-hero { padding-bottom: 64px; }
.article-meta { color: rgba(255, 255, 255, .75) !important; margin-top: 14px; }
.article-cover { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; }
.article-lead { font-size: 1.25rem; color: var(--text) !important; font-weight: 500; line-height: 1.6; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-weight: 600; font-size: 14px; }
.share a { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.share a:hover { color: var(--primary-text); border-color: var(--primary-text); }
.legal h2 { display: flex; gap: 12px; align-items: center; font-size: 1.3rem; margin-top: 32px; }
.legal-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-text); font-size: 14px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg, #04112c, #020a1c); color: rgba(255, 255, 255, .72); padding: 72px 0 28px; isolation: isolate; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.6fr; gap: 36px; }
.footer-brand img { height: 38px; width: auto; }
.footer-brand p { color: rgba(255, 255, 255, .62); margin: 18px 0; font-size: 14.5px; max-width: 320px; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a, .footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.footer-contact a:hover, .footer-col a:hover { color: #fff; }
.footer-col h2 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
[dir="rtl"] .footer-col h2 { letter-spacing: 0; font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-offices li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.footer-offices li a { flex-basis: 100%; padding-inline-start: 38px; color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.footer-offices .flag-pill, .site-footer .flag-pill { background: rgba(255, 255, 255, .1); color: #fff; }
.footer-news p { color: rgba(255, 255, 255, .62); font-size: 14px; margin: 0 0 14px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; min-height: 46px; }
.newsletter-row .input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form .consent { color: rgba(255, 255, 255, .6); margin-top: 10px; font-size: 12.5px; }
.newsletter-form .consent a { color: rgba(255, 255, 255, .85); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; }
.socials a:hover { background: rgba(0, 168, 156, .4); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Cookie notice ---------- */
.cookie-note { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-inline-start: auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.cookie-note p { display: flex; gap: 10px; margin: 0; font-size: 13.5px; }
.cookie-note p .icon { color: var(--success); flex: none; margin-top: 3px; }
.cookie-note a { color: var(--primary-text); text-decoration: underline; }

/* ---------- Reveal on scroll (only hidden when JS marked it below the fold) ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.reveal.is-shown { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) { .header-link span { display: none; } }
@media (max-width: 1180px) {
  .header-link span { display: none; }
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 3; }
  .process, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .process li:nth-child(3n + 1), .steps li:nth-child(3n + 1) { border-inline-start: 0; padding-inline-start: 0; }
  .svc-also ul { grid-template-columns: minmax(0, 1fr); }
  .svc-also a { height: auto; }
  .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .office:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .points-card { position: static; }
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc-row:nth-child(even) .svc-photo { order: 0; }
  .areas-split, .portal-split, .closing-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .areas-split .section-head { position: static; }
  .phone-frame { width: min(300px, 72vw); }
  :root { --header-h: 66px; }
  .menu-toggle { display: grid; }
  .header-actions .desktop { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 24px var(--gutter) 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 18px; padding: 14px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
  .header-inner { justify-content: space-between; }
  .presence-grid, .portal-band, .story-grid, .form-layout, .service-detail, .product-detail { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 56px; }
  .shelf-copy .hero-copy { max-width: 520px; }
  .hero.hero--shelf { padding-top: 0; }
  .card-grid, .card-grid-4, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid, .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-h { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline-start: 28px; }
  .timeline-h::before { inset-inline-start: 8px; inset-inline-end: auto; top: 0; bottom: 0; width: 2px; height: auto; background: var(--border-strong); }
  .timeline-h li { padding-bottom: 26px; }
  .t-year { height: auto; }
  .t-dot { position: absolute; inset-inline-start: -24px; top: 10px; margin: 0; }
  .founder-card { position: static; }
  .pd-body { padding-top: 0; }
  .section-overlap { margin-top: -40px; }
  .vmg-grid { grid-template-columns: minmax(0, 1fr); }
  .goals-card .checks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .page-hero-photo { width: 100%; }
  .page-hero-photo::after, [dir="ltr"] .page-hero-photo::after { background: rgba(4, 22, 60, .8); }
  .section { padding-block: 72px; }
  .svc-rows { gap: 56px; }
  .svc-also { margin-top: 64px; }
  .steps, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li, .process li { padding: 20px 14px 4px; }
  .steps li:nth-child(3n + 1), .process li:nth-child(3n + 1) { border-inline-start: 1px solid var(--line, var(--border)); padding-inline-start: 14px; }
  .steps li:nth-child(odd), .process li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .step-n, .step-ring { margin-bottom: 14px; }
  .area-list { grid-template-columns: minmax(0, 1fr); }
  .office { padding: 18px 14px 6px; }
  .office h3 { font-size: 1.3rem; }
  .office-tag { margin-bottom: 10px; }
  .office-city { margin-bottom: 12px; }
  .office-time time { font-size: 1.45rem; }
  .news-grid { gap: 36px; }
  .closing { padding-bottom: 72px; }
  .closing-grid { padding-top: 40px; }
  :root { --gutter: 16px; }
  body.site { font-size: 15.5px; }
  .hero { padding-top: 40px; }
  .hero-actions { gap: 14px 22px; }
  .hero-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
  .hero-ledger > div { padding: 20px 16px 22px; }
  .hero-ledger > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .hero-ledger > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-ledger dt { font-size: 13.5px; }
  .map-labels text { font-size: 26px; }
  .hero--shelf .shelf-bg { inset: 0 0 auto; height: 360px; }
  .hero--shelf::before, [dir="ltr"] .hero--shelf::before { background: linear-gradient(180deg, rgba(4, 22, 60, .06) 0, rgba(4, 22, 60, .22) 170px, rgba(4, 22, 60, .9) 290px, #04163c 360px); }
  .shelf-copy { min-height: 0; padding: 262px 0 4px; }
  .hero.hero--shelf { padding-top: 0; }
  /* zoom in on the label so it still reads at phone size, and lift it clear of the copy */
  .shelf-bg img { object-position: 20% 50%; transform: scale(1.4); transform-origin: 45% 93%; }
  [dir="ltr"] .shelf-bg img { object-position: 80% 50%; transform-origin: 55% 93%; }
  .shelf-bg { overflow: hidden; }
  .card-grid, .card-grid-4, .news-grid, .product-grid, .product-grid-3, .split-2, .branch-grid, .form-grid, .spec, .job-facts { grid-template-columns: minmax(0, 1fr); }
  .spec div:nth-child(odd) { border-inline-end: 0; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-index a { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .si-mark { flex-direction: row; justify-content: space-between; align-items: center; }
  .portal-band, .cta-card, .form-card { padding: 26px 20px; border-radius: var(--r-lg); }
  .channel-grid, .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 2; }
  .catalog-search { flex-direction: column; }
  .catalog-search > .icon { top: 24px; }
  .newsletter-row { flex-direction: column; }
  .lang-switch span { display: none; }
  .brand img { height: 30px; }
  .cookie-note { flex-direction: column; align-items: stretch; }
  .input, .select, .textarea { font-size: 16px; } /* iOS zooms into smaller fields on focus */
}
@media (prefers-reduced-motion: reduce) {
  .spin, .arc-line, .node .pulse { animation: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .cookie-note, .cta-band { display: none !important; }
  .hero, .page-hero { color: #000; padding: 0; }
  .hero-mesh { display: none; }
  .hero h1, .page-hero h1 { color: #000; }
}
/* Article and answer text: each paragraph takes its own direction (an English paragraph reads left-to-right on an Arabic page) */
.prose-lg p, .prose-lg li, .prose-lg blockquote, .prose-lg h2, .prose-lg h3, .faq-answer p { unicode-bidi: plaintext; }
