/* ==========================================================================
   Al Masreya — site design system
   Palette is drawn from the logo: navy pyramid, Nile blue, ribbon green,
   caduceus gold. Signal red is reserved for the hotline and 24-hour pharmacies.
   ========================================================================== */

:root {
  --navy: #023874;
  --navy-deep: #022a57;
  --night: #03213f;
  --nile: #1d7fb8;
  --nile-soft: #e3f0f8;
  --green: #12a07a;
  --green-soft: #e2f4ee;
  --gold: #b88a2e;
  --signal: #c62828;
  --signal-soft: #fbe9e9;

  --paper: #f4f7fa;
  --surface: #ffffff;
  --line: #d9e2ec;
  --line-strong: #b9c7d6;
  --ink: #142338;
  --muted: #56677d;
  --on-dark: #e8eef5;
  --on-dark-muted: #a7b6c8;

  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale: 1.25 ratio, 17px base */
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: 1.953rem;
  --fs-2xl: 2.441rem;
  --fs-3xl: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --radius-sm: 4px;
  --radius: 8px;
  --header-h: 84px;
  --measure: 68ch;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--space-4);
}
h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 700; line-height: 1.4; }
h1 { font-size: var(--fs-3xl); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p { margin: 0 0 var(--space-4); }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--nile); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--nile);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: 8px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm);
}

.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); }
.measure { max-width: var(--measure); }

.container { padding-inline: 16px; }
@media (min-width: 576px) { .container { padding-inline: 24px; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-m {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-m:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-m:disabled { opacity: .6; cursor: progress; }

.btn-m--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-m--ghost:hover { background: var(--surface); color: var(--navy); border-color: var(--navy); }

.btn-m--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-m--light:hover { background: var(--nile-soft); color: var(--navy); border-color: var(--nile-soft); }

.btn-m--sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-sm); }
.btn-m--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; color: var(--nile);
  border-bottom: 1.5px solid transparent;
}
.text-link:hover { color: var(--navy); border-bottom-color: currentColor; }

/* Hotline: the only red control on the site */
.hotline {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.hotline:hover { background: #a71f1f; color: #fff; }
.hotline__num { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .04em; }
.hotline__label { font-size: var(--fs-sm); font-weight: 500; opacity: .9; }

.tag-247 {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.6;
  color: var(--signal); background: var(--signal-soft);
}
.tag-247::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: var(--header-h);
}
.site-header__brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.site-header__brand img { height: 62px; width: auto; }
.site-header__name {
  font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; line-height: 1.25;
  display: none;
}
.site-header__name small { display: block; font-family: var(--font-body); color: var(--muted); font-size: .78rem; }
@media (min-width: 400px) { .site-header__name { display: block; } }

.site-nav { display: flex; align-items: center; gap: var(--space-1); margin-inline-start: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  white-space: nowrap;
  border: 0; background: none;
  position: relative;
}
.site-nav__link:hover { color: var(--navy); }
.site-nav__link[aria-current="page"],
.site-nav__item.is-active > .site-nav__link { color: var(--navy); font-weight: 700; }
.site-nav__link[aria-current="page"]::after,
.site-nav__item.is-active > .site-nav__link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 3px;
  background: var(--navy); border-radius: 3px 3px 0 0;
}
.site-nav__link .fa-chevron-down { font-size: .65rem; opacity: .6; }

.site-nav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(2, 33, 63, .12);
  padding: var(--space-2);
  min-width: 220px;
  text-align: start;
}
.site-nav .dropdown-item { border-radius: var(--radius-sm); padding: 10px 12px; color: var(--ink); font-weight: 500; }
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus { background: var(--paper); color: var(--navy); }
.site-nav .dropdown-item.active { background: var(--nile-soft); color: var(--navy); }

.site-header__tools { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch {
  font-weight: 600; color: var(--navy); padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.lang-switch:hover { background: var(--paper); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; margin-inline-start: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--navy); font-size: 1.2rem;
}

@media (max-width: 1199.98px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header__tools .hotline__label { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface);
    padding: var(--space-4) 16px var(--space-7);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__link { width: 100%; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .site-nav__link[aria-current="page"]::after,
  .site-nav__item.is-active > .site-nav__link::after { display: none; }
  .site-nav .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; border: 0; padding: 0 var(--space-4) var(--space-2); }
  .site-nav .lang-switch { margin-top: var(--space-4); align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 479.98px) {
  .site-header__tools .hotline { padding: 0 12px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--white { background: var(--surface); }
.section--night { background: var(--night); color: var(--on-dark); }
.section--night h2, .section--night h3, .section--night h4 { color: #fff; }
.section + .section--white, .section--white + .section { border-top: 1px solid var(--line); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head__text { max-width: 640px; }
.section-head h2 { margin-bottom: var(--space-2); }
.section-head p { color: var(--muted); margin: 0; font-size: var(--fs-md); line-height: 1.6; }
.section--night .section-head p { color: var(--on-dark-muted); }

@media (max-width: 767.98px) {
  .section { padding-block: var(--space-7); }
  h2 { font-size: var(--fs-xl); }
}

/* --------------------------------------------------------------------------
   Inner page header
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--navy);
  color: var(--on-dark);
  padding-block: var(--space-7) var(--space-6);
  position: relative;
  overflow: hidden;
}
/* Dot-matrix texture, the same language as the map, fading in from the end side */
.page-head::after {
  content: "";
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(55vw, 640px);
  background-image: radial-gradient(circle, rgba(167, 200, 228, .35) 1.3px, transparent 1.6px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 95%);
          mask-image: linear-gradient(to left, #000 10%, transparent 95%);
  pointer-events: none;
}
[dir="rtl"] .page-head::after {
  -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 95%);
          mask-image: linear-gradient(to right, #000 10%, transparent 95%);
}
.page-head { background: var(--night); padding-block: var(--space-8) var(--space-7); }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 90% at 100% 50%, rgba(29, 127, 184, .25), transparent 70%);
  pointer-events: none;
}
[dir="rtl"] .page-head::before { background: radial-gradient(50% 90% at 0% 50%, rgba(29, 127, 184, .25), transparent 70%); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); margin-bottom: var(--space-2); }
.page-head p { color: var(--on-dark-muted); font-size: var(--fs-md); max-width: 60ch; margin: 0; line-height: 1.6; }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-4); padding: 0; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--space-2); opacity: .5; }

/* --------------------------------------------------------------------------
   Home hero (night, with the network map)
   -------------------------------------------------------------------------- */
.hero {
  background: var(--night);
  color: var(--on-dark);
  padding-block: var(--space-8) 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 25% 40%, rgba(29, 127, 184, .22), transparent 70%);
  pointer-events: none;
}
[dir="rtl"] .hero::before { background: radial-gradient(60% 70% at 75% 40%, rgba(29, 127, 184, .22), transparent 70%); }
.hero .container { position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-7);
  align-items: center;
}
.hero__since {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: #d9b45f; font-weight: 600; margin-bottom: var(--space-5);
}
.hero__since::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.hero h1 { color: #fff; margin-bottom: var(--space-5); max-width: 17ch; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.3; }
.hero__lede { font-size: var(--fs-md); color: var(--on-dark-muted); line-height: 1.75; max-width: 48ch; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero .btn-m { background: #fff; border-color: #fff; color: var(--navy); }
.hero .btn-m:hover { background: var(--nile-soft); border-color: var(--nile-soft); }
.hero .btn-m--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-m--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }

.hero__map { position: relative; }
.hero__map .eg-map { max-width: 600px; margin-inline: auto; }

@media (max-width: 991.98px) {
  .hero { padding-top: var(--space-7); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__map .eg-map { max-width: 460px; }
}

/* Facts ledger, inside the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: var(--space-7) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.facts > div { display: flex; flex-direction: column; padding: var(--space-5) var(--space-4); border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.facts > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts dt { order: 2; font-weight: 500; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-family: var(--font-display); color: #fff; font-size: var(--fs-xl); line-height: 1.2; }
@media (max-width: 991.98px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .facts > div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 575.98px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { border-inline-start: 0 !important; padding-inline-start: 0 !important; border-top: 1px solid rgba(255, 255, 255, .12); }
  .facts > div:nth-child(-n+2) { border-top: 0; }
  .facts dd { font-size: var(--fs-lg); }
}

/* --------------------------------------------------------------------------
   Egypt map (dot-matrix)
   -------------------------------------------------------------------------- */
.eg-map { margin: 0; --land: #e6eff6; --dotfill: #9fbfd6; --river: #1d7fb8; --label: var(--muted); --pt-branch: var(--navy); --pt-ring: #fff; --frame: rgba(2, 56, 116, .35); --inset-bg: #fff; }
.eg-map--dark { --land: rgba(255, 255, 255, .03); --dotfill: rgba(167, 200, 228, .38); --river: #5cb6ea; --label: #8ea6c0; --pt-branch: #fff; --pt-ring: var(--night); --frame: rgba(255, 255, 255, .35); --inset-bg: #052b52; }
.eg-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.eg-map__land { fill: var(--land); }
.eg-map__dotfill { fill: var(--dotfill); }
.eg-map__nile { fill: none; stroke: var(--river); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.eg-map__nile--branch { stroke-width: 1.8; }
.eg-map__frame { fill: none; stroke: var(--frame); stroke-width: 1; stroke-dasharray: 3 3; }
.eg-map__inset-bg { fill: var(--inset-bg); }
.eg-map__inset-border { fill: none; stroke: var(--frame); stroke-width: 1; }
.eg-map__label { font-family: var(--font-body); font-size: 11px; fill: var(--label); pointer-events: none; }
.eg-map__label--sea { font-size: 11.5px; font-style: italic; letter-spacing: .02em; }
.eg-map__label--city { font-weight: 600; font-size: 10.5px; }

.eg-map__pt { cursor: pointer; }
.eg-map__dot { stroke: var(--pt-ring); stroke-width: 2; transition: r .2s var(--ease); }
.eg-map__pt--mini .eg-map__dot { stroke-width: 1; }
.eg-map__halo { fill: transparent; transition: fill .2s var(--ease); }
.eg-map__pt--branch .eg-map__dot { fill: var(--pt-branch); }
.eg-map__pt--pharmacy .eg-map__dot { fill: var(--signal); }
.eg-map--dark .eg-map__pt--pharmacy .eg-map__dot { fill: #ff5a5a; }
.eg-map__pt:hover .eg-map__halo,
.eg-map__pt.is-active .eg-map__halo { fill: rgba(29, 127, 184, .28); }
.eg-map__pt--pharmacy:hover .eg-map__halo,
.eg-map__pt--pharmacy.is-active .eg-map__halo { fill: rgba(198, 40, 40, .22); }
.eg-map__pt.is-active .eg-map__dot { r: 8; }
.eg-map__pt--mini.is-active .eg-map__dot { r: 4.5; }

.eg-map__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--muted); }
.eg-map--dark .eg-map__legend { color: var(--on-dark-muted); }
.eg-map__legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.eg-key { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.eg-key--branch { background: var(--navy); }
.eg-key--pharmacy { background: var(--signal); }
.eg-map--dark .eg-key { box-shadow: none; }
.eg-map--dark .eg-key--branch { background: #fff; }
.eg-map--dark .eg-key--pharmacy { background: #ff5a5a; }

/* The one load moment: the Nile draws, then the network lights up along it */
@media (prefers-reduced-motion: no-preference) {
  .eg-map--animate .eg-map__nile { stroke-dasharray: 900; stroke-dashoffset: 900; animation: eg-draw 1.6s var(--ease) .15s forwards; }
  .eg-map--animate .eg-map__pt { opacity: 0; animation: eg-pop .45s var(--ease) forwards; animation-delay: calc(1.2s + var(--i) * 80ms); }
  .eg-map--animate .eg-map__inset { opacity: 0; animation: eg-pop .6s var(--ease) 1s forwards; }
  .eg-map--animate .eg-map__pt--branch:not(.eg-map__pt--mini) .eg-map__halo { animation: eg-ring 2.6s ease-out 2.6s 3; }
}
@keyframes eg-draw { to { stroke-dashoffset: 0; } }
@keyframes eg-pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes eg-ring { 0% { fill: rgba(92, 182, 234, .45); } 70%, 100% { fill: transparent; } }

/* --------------------------------------------------------------------------
   Services list (home + storage)
   -------------------------------------------------------------------------- */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); margin: 0; padding: 0; list-style: none; }
.service-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); padding-block: var(--space-5); border-top: 1px solid var(--line); }
.service-list__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--nile-soft); color: var(--navy); font-size: 1.2rem;
}
.service-list h3 { font-size: var(--fs-md); margin-bottom: var(--space-1); }
.service-list p { color: var(--muted); margin: 0; line-height: 1.7; }
@media (max-width: 767.98px) { .service-list { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Split media block
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--night); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body > p, .split__body .rich { color: inherit; opacity: .92; }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } }

.spec-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.spec-list li { display: flex; gap: var(--space-3); padding-block: var(--space-3); border-top: 1px solid rgba(255, 255, 255, .14); }
.section:not(.section--night) .spec-list li { border-top-color: var(--line); }
.spec-list li i { color: var(--green); margin-top: .45em; }
.section--night .spec-list li i { color: #5fd3ad; }

/* Certifications: four even tiles sharing borders */
.standards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.standard { display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-2); padding: var(--space-5); border-inline-start: 1px solid var(--line); }
.standard:first-child { border-inline-start: 0; }
.standard__logo { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: var(--space-2); }
.standard__logo img { width: 56px; height: 56px; object-fit: contain; }
.standard__name { font-family: var(--font-display); font-size: var(--fs-md); color: var(--navy); line-height: 1.2; font-weight: 600; }
.standard__desc { color: var(--muted); font-size: .95rem; line-height: 1.7; }

.section--night .standards-block { margin-top: var(--space-7); }
.section--night .standards { background: transparent; border-color: rgba(255, 255, 255, .14); }
.section--night .standard { border-color: rgba(255, 255, 255, .14); }
.section--night .standard__logo { background: #fff; border-radius: var(--radius); }
.section--night .standard__name { color: #fff; }
.section--night .standard__desc { color: var(--on-dark-muted); }

@media (max-width: 991.98px) {
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standard:nth-child(3) { border-inline-start: 0; }
  .standard:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section--night .standard:nth-child(n+3) { border-top-color: rgba(255, 255, 255, .14); }
}
@media (max-width: 479.98px) {
  .standards { grid-template-columns: 1fr; }
  .standard { border-inline-start: 0; }
  .standard:nth-child(n+2) { border-top: 1px solid var(--line); }
  .section--night .standard:nth-child(n+2) { border-top-color: rgba(255, 255, 255, .14); }
}

/* --------------------------------------------------------------------------
   Pharmacy rows
   -------------------------------------------------------------------------- */
.pharm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pharm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
  transition: background-color .15s var(--ease);
  position: relative;
}
.pharm-row:hover, .pharm-row.is-active { background: var(--surface); }
.pharm-row.is-active::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--signal); }
.pharm-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: 4px; }
.pharm-row__name { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; color: var(--navy); margin: 0; line-height: 1.4; }
.pharm-row__addr { color: var(--muted); margin: 0; line-height: 1.6; }
.pharm-row__addr i { color: var(--line-strong); margin-inline-end: 6px; }
.pharm-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); justify-content: flex-end; }
.call-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4); border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 700;
  border: 1px solid var(--line);
}
.call-link i { color: var(--signal); }
.call-link:hover { border-color: var(--signal); color: var(--signal); }
.pharm-row:hover .call-link { background: var(--surface); }
.icon-link {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line); color: var(--navy); background: var(--surface);
}
.icon-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.list-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.list-meta .muted { margin: 0; }
@media (max-width: 767.98px) {
  .pharm-row { grid-template-columns: 1fr; padding-inline: 0; }
  .pharm-row.is-active::before { display: none; }
  .pharm-row__actions { justify-content: flex-start; }
}

.search-field { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-field i { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input {
  width: 100%; min-height: 50px; padding-inline: 44px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font: inherit; color: var(--ink);
}
.search-field input:focus { outline: none; border-color: var(--nile); box-shadow: 0 0 0 3px var(--nile-soft); }
.empty-note { padding: var(--space-6) 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Explorer (branches / pharmacies with map)
   -------------------------------------------------------------------------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: start; }
.explorer__map { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); }
@media (max-width: 991.98px) {
  .explorer { grid-template-columns: 1fr; gap: var(--space-5); }
  .explorer__map { position: static; order: -1; padding: var(--space-4); }
  .explorer--list-first .explorer__map { order: 0; }
}

.branch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.branch-item { border-bottom: 1px solid var(--line); }
.branch-item__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; background: none; border: 0; text-align: start;
  font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--navy); cursor: pointer;
}
.branch-item__head i { transition: transform .2s var(--ease); color: var(--muted); font-size: .9rem; }
.branch-item__head[aria-expanded="true"] i { transform: rotate(180deg); }
.branch-item__body { padding: 0 0 var(--space-5); color: var(--muted); }
.branch-item__body[hidden] { display: none; }
.branch-item__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; margin-bottom: var(--space-4); }
.branch-item__photo img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Logo wall (manufacturers / partners)
   -------------------------------------------------------------------------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.logo-wall a, .logo-wall div {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: var(--space-4);
  border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: var(--surface);
}
.logo-wall img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-wall a:hover img, .logo-wall a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 991.98px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Manufacturer directory */
.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.directory__row {
  display: grid; grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  gap: var(--space-5); align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
}
.directory__logo { width: 120px; height: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 10px; }
.directory__logo img { max-height: 58px; object-fit: contain; }
.directory__name { font-size: var(--fs-md); margin: 0 0 2px; }
.directory__name a { color: var(--navy); }
.directory__name a:hover { color: var(--nile); }
.directory__meta { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.directory__meta i { width: 18px; color: var(--line-strong); margin-inline-end: 6px; }
.directory__meta a { color: var(--ink); }
@media (max-width: 991.98px) {
  .directory__row { grid-template-columns: 96px minmax(0, 1fr); }
  .directory__logo { width: 96px; height: 68px; }
  .directory__meta, .directory__cta { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   News / articles
   -------------------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-6); }
.news-grid__side { display: grid; gap: var(--space-5); align-content: start; }

.story { display: block; color: inherit; }
.story:hover { color: inherit; }
.story__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); margin-bottom: var(--space-4); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.story:hover .story__media img { transform: scale(1.03); }
.story__meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.story__meta .cat { color: var(--nile); font-weight: 600; }
.story__title { font-size: var(--fs-md); line-height: 1.45; margin-bottom: var(--space-2); }
.story:hover .story__title { color: var(--nile); }
.story__excerpt { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story--lead .story__title { font-size: var(--fs-lg); }

.story--row { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-4); align-items: start; }
.story--row .story__media { margin: 0; aspect-ratio: 4 / 3; }
.story--row .story__title { font-size: var(--fs-base); }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); }
@media (max-width: 991.98px) {
  .news-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .story-grid { grid-template-columns: 1fr; }
  .story--row { grid-template-columns: 112px 1fr; }
}

/* Long-form article */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); align-items: start; }
.article--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: var(--space-6); aspect-ratio: 16 / 9; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.125rem; line-height: 1.95; max-width: var(--measure); color: var(--ink); }
.prose p { margin-bottom: var(--space-5); }
.prose h2, .prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: var(--space-5); }
.prose img { border-radius: var(--radius); margin-block: var(--space-5); }
.aside-block { border-top: 3px solid var(--navy); padding-top: var(--space-4); position: sticky; top: calc(var(--header-h) + 24px); }
.aside-block h2 { font-size: var(--fs-md); }
.aside-block ul { list-style: none; padding: 0; margin: 0; }
.aside-block li { padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.aside-block li a { color: var(--ink); font-weight: 500; line-height: 1.55; display: block; }
.aside-block li a:hover { color: var(--nile); }
.aside-block time { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 991.98px) { .article { grid-template-columns: 1fr; gap: var(--space-7); } .aside-block { position: static; } }

/* --------------------------------------------------------------------------
   Product tiles (hospital supply)
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-chip {
  min-height: 40px; padding: 0 var(--space-4); border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-chip .count { opacity: .65; margin-inline-start: 4px; }

/* Catalog: category rail + device sheets */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.catalog__filters { position: sticky; top: calc(var(--header-h) + 24px); }
.catalog__filters-title { font-weight: 700; color: var(--ink); margin-bottom: var(--space-3); }
.catalog__filters ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 12px var(--space-3); margin: 0;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; font-size: .97rem; color: var(--ink); text-align: start; cursor: pointer;
  position: relative;
}
.cat-btn:hover { background: var(--surface); color: var(--navy); }
.cat-btn[aria-pressed="true"] { background: var(--surface); color: var(--navy); font-weight: 700; }
.cat-btn[aria-pressed="true"]::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--navy); }
.cat-btn__count { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.cat-btn[aria-pressed="true"] .cat-btn__count { background: var(--navy); color: #fff; }
.catalog__status { margin-bottom: var(--space-4); font-size: .95rem; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.tile:hover { border-color: var(--line-strong); box-shadow: 0 14px 32px -18px rgba(2, 33, 63, .35); }
.tile[hidden] { display: none; }
/* Drawing-sheet backdrop: dot grid like the map */
.tile__media {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: var(--space-4);
  background: #f3f7fb radial-gradient(circle, #cfdeeb 1px, transparent 1.3px) 0 0 / 12px 12px;
  border-bottom: 1px solid var(--line);
}
.tile__media img { max-height: 100%; width: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-4) var(--space-5) var(--space-5); }
.tile__cat { font-size: var(--fs-sm); color: var(--nile); font-weight: 600; margin-bottom: var(--space-1); }
.tile__title { font-size: 1.1rem; line-height: 1.5; margin: 0; }
.tile__title a { color: var(--navy); }
.tile__title a:hover { color: var(--nile); }
.tile__model { font-size: var(--fs-sm); color: var(--muted); margin: 2px 0 0; text-align: end; }
[dir="rtl"] .tile__model { text-align: right; }
.tile__excerpt { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: var(--space-3) 0 var(--space-4); }
.tile__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }

@media (max-width: 991.98px) {
  .catalog { grid-template-columns: 1fr; gap: var(--space-5); }
  .catalog__filters { position: static; margin-inline: -16px; }
  .catalog__filters-title { display: none; }
  /* Swipeable chip row on small screens */
  .catalog__filters ul { display: flex; gap: var(--space-2); overflow-x: auto; padding: 2px 16px 8px; border: 0; scrollbar-width: none; }
  .catalog__filters ul::-webkit-scrollbar { display: none; }
  .cat-btn { width: auto; white-space: nowrap; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; background: var(--surface); }
  .cat-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .cat-btn[aria-pressed="true"]::before { display: none; }
}

/* Detail page (device / manufacturer) */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-8); align-items: start; }
.detail__media { background: #f3f7fb radial-gradient(circle, #cfdeeb 1px, transparent 1.3px) 0 0 / 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); display: grid; place-items: center; aspect-ratio: 1; }
.detail__media img { max-height: 100%; object-fit: contain; }
.detail__thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-3); flex-wrap: wrap; }
.detail__thumbs a { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 6px; display: grid; place-items: center; }
.detail__thumbs img { max-height: 100%; object-fit: contain; }
.facts-table { margin: var(--space-5) 0; border-top: 1px solid var(--line); }
.facts-table > div { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.facts-table dt { color: var(--muted); font-weight: 500; }
.facts-table dd { margin: 0; color: var(--ink); }
@media (max-width: 991.98px) { .detail { grid-template-columns: 1fr; gap: var(--space-6); } .detail__media { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.lead-text { font-size: var(--fs-md); line-height: 1.9; }
.lead-text p:last-child { margin: 0; }

.chairman { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.chairman__photo { border-radius: var(--radius); overflow: hidden; background: var(--nile-soft); aspect-ratio: 4 / 5; }
.chairman__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.chairman__name { margin-top: var(--space-4); }
.chairman__name strong { display: block; font-family: var(--font-body); font-weight: 700; color: var(--navy); font-size: var(--fs-md); line-height: 1.4; }
.chairman__name span { color: var(--muted); font-size: .95rem; }
.chairman blockquote { margin: 0; padding-inline-start: var(--space-6); border-inline-start: 3px solid var(--gold); }
.chairman blockquote .prose { font-size: 1.15rem; }
.chairman__sign { font-family: var(--font-display); color: var(--navy); font-size: var(--fs-md); margin-top: var(--space-5); }
@media (max-width: 991.98px) { .chairman { grid-template-columns: 1fr; } .chairman__photo { max-width: 320px; } .chairman blockquote { padding-inline-start: var(--space-4); } }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
.pillar { border-top: 3px solid var(--gold); padding-top: var(--space-5); }
.pillar__label { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-base); color: var(--nile); margin-bottom: var(--space-4); }
.pillar__label i { font-size: 1rem; }
.pillar__statement { font-size: var(--fs-lg); font-weight: 500; line-height: 1.7; color: var(--navy); max-width: 34ch; }
.pillar__statement p { margin: 0; }
@media (max-width: 767.98px) { .pillars { grid-template-columns: 1fr; gap: var(--space-6); } .pillar__statement { font-size: var(--fs-md); } }

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); list-style: none; padding: 0; margin: 0; }
.person__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--nile-soft); margin-bottom: var(--space-3); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person h3 { font-size: var(--fs-md); margin: 0; }
.person__role { color: var(--nile); font-weight: 600; font-size: .95rem; margin-bottom: var(--space-2); }
.person__bio { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: 0; }
@media (max-width: 991.98px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .people { grid-template-columns: 1fr; } }

/* Partner quotes: one featured, two supporting */
.testimonials { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-5); align-items: stretch; }
.testimonials__side { display: grid; gap: var(--space-5); }
.quote {
  margin: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-5);
}
/* Opening quotation mark: the cue that a partner is speaking */
.quote::before {
  content: "\201D"; position: absolute; top: 6px; inset-inline-start: 22px;
  font-family: Georgia, "Times New Roman", serif; font-size: 5rem; line-height: 1; color: var(--gold); opacity: .55;
}
[dir="ltr"] .quote::before { content: "\201C"; }
.quote blockquote { margin: 0; padding-top: var(--space-5); font-size: 1.05rem; line-height: 1.9; color: var(--ink); }
.quote--featured { background: var(--night); border-color: var(--night); color: var(--on-dark); padding: var(--space-7) var(--space-7) var(--space-6); overflow: hidden; }
.quote--featured::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(167, 200, 228, .18) 1.2px, transparent 1.5px) 0 0 / 10px 10px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 60%); mask-image: linear-gradient(to top, #000, transparent 60%);
  pointer-events: none;
}
.quote--featured::before { font-size: 7rem; opacity: .9; top: 4px; inset-inline-start: 30px; }
.quote--featured blockquote { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.7; color: #fff; padding-top: var(--space-7); max-width: 32ch; }
.quote__person { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.quote--featured .quote__person { border-top-color: rgba(255, 255, 255, .14); }
.quote__avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--nile-soft); color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote--featured .quote__avatar { width: 56px; height: 56px; background: var(--gold); color: var(--night); font-size: 1.1rem; }
.quote__person strong { display: block; color: var(--navy); line-height: 1.4; }
.quote__person span span, .quote__person > span:last-child > span { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.quote--featured .quote__person strong { color: #fff; font-size: 1.05rem; }
.quote--featured .quote__person > span:last-child > span { color: var(--on-dark-muted); }
@media (max-width: 991.98px) {
  .testimonials { grid-template-columns: 1fr; }
  .quote--featured { padding: var(--space-6) var(--space-5) var(--space-5); }
  .quote { padding-inline: var(--space-5); }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.media-item { display: block; color: inherit; }
.media-item__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--night); margin-bottom: var(--space-3); }
.media-item__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.media-item:hover .media-item__frame img { transform: scale(1.03); }
.media-item__play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem;
}
.media-item__caption { font-weight: 500; line-height: 1.55; }
.media-item:hover .media-item__caption { color: var(--nile); }
@media (max-width: 991.98px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .media-grid { grid-template-columns: 1fr; } }

.tabs-line { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.tabs-line button {
  background: none; border: 0; padding: var(--space-3) 0; font: inherit; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.tabs-line button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */
.job-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.job-row h2 { font-size: var(--fs-md); margin: 0 0 var(--space-2); }
.job-row h2 a { color: var(--navy); }
.job-row h2 a:hover { color: var(--nile); }
.job-row p { color: var(--muted); margin: 0; max-width: var(--measure); }
@media (max-width: 767.98px) { .job-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); }
.form-panel h2 { font-size: var(--fs-lg); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-4); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .form-grid { grid-template-columns: 1fr; } .form-panel { padding: var(--space-5) var(--space-4); } }

.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field .hint { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.field input,
.field textarea,
.field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--nile); box-shadow: 0 0 0 3px var(--nile-soft); }
.field input[type="file"] { padding: 10px; background: #fff; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--signal); }

/* Contact channels */
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.channels li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--line); align-items: start; }
.channels__icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--nile-soft); color: var(--navy); display: grid; place-items: center; }
.channels__icon--signal { background: var(--signal-soft); color: var(--signal); }
.channels div > span { display: block; color: var(--muted); font-size: var(--fs-sm); }
.channels a, .channels strong { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.channels .big { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--signal); line-height: 1.3; }

/* Call band */
.call-band { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: var(--space-7); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: center; }
.call-band h2 { color: #fff; margin-bottom: var(--space-2); font-size: var(--fs-xl); }
.call-band p { margin: 0; color: var(--on-dark-muted); max-width: 56ch; }
.call-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 767.98px) { .call-band { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding-top: var(--space-8); font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6); padding-bottom: var(--space-7); }
.site-footer__brand img { height: 72px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--space-4); }
.site-footer__brand p { max-width: 40ch; line-height: 1.8; }
.site-footer h2 { font-family: var(--font-display); font-size: var(--fs-base); color: #fff; margin-bottom: var(--space-4); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__hotline { display: inline-flex; flex-direction: column; margin-top: var(--space-3); }
.site-footer__hotline span { font-size: var(--fs-sm); }
.site-footer__hotline a { font-family: var(--font-display); font-size: var(--fs-2xl); color: #fff; line-height: 1.2; }
.site-footer__hotline a:hover { text-decoration: none; color: #ffb4b4; }
.site-footer__sister { display: flex; gap: var(--space-3); margin-bottom: var(--space-5); }
.site-footer__sister a { background: #fff; border-radius: var(--radius-sm); padding: 6px 10px; display: inline-flex; }
.site-footer__sister img { height: 34px; width: auto; }
.social { display: flex; gap: var(--space-2); }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: var(--on-dark); }
.social a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: var(--space-5); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
@media (max-width: 991.98px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Toastr: match the system */
#toast-container > div { opacity: 1; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(2, 33, 63, .2); font-family: var(--font-body); }
#toast-container > .toast-success { background-color: var(--green); }
#toast-container > .toast-error { background-color: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Night-section variants */
.section--night .service-list li { border-top-color: rgba(255, 255, 255, .14); }
.section--night .service-list h3 { color: #fff; }
.section--night .service-list p { color: var(--on-dark-muted); }
.section--night .service-list__icon { background: rgba(255, 255, 255, .08); color: #8fd0f2; }
[hidden] { display: none !important; }

/* Small headings inside lists read better in the body face */
.directory__name, .tile__title, .story__title, .job-row h2, .person h3, .aside-block h2 { font-family: var(--font-body); font-weight: 700; }

/* --------------------------------------------------------------------------
   Supply chain sequence (home)
   -------------------------------------------------------------------------- */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); counter-reset: step; }
.chain__step { position: relative; counter-increment: step; padding-top: var(--space-2); }
.chain__icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--surface);
  margin-bottom: var(--space-5);
}
/* Connector between steps */
.chain__step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--space-2) + 27px); height: 2px;
  inset-inline-start: 56px; inset-inline-end: calc(-1 * var(--space-5));
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.chain__step h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.chain__step h3::before { content: counter(step) ". "; color: var(--nile); }
.chain__step p { color: var(--muted); line-height: 1.75; margin-bottom: var(--space-3); }
@media (max-width: 991.98px) {
  .chain { grid-template-columns: 1fr; gap: 0; }
  .chain__step { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-4); padding-bottom: var(--space-5); }
  .chain__icon { grid-row: span 3; margin: 0; }
  .chain__step:not(:last-child)::after { top: 64px; bottom: 0; inset-inline-start: 27px; inset-inline-end: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
}

/* Standards: keep captions even */
.standards figcaption span { display: block; }

.person__initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--night) radial-gradient(circle, rgba(167, 200, 228, .22) 1.2px, transparent 1.5px) 0 0 / 9px 9px;
  color: #fff; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem);
}
.site-footer h2 { font-family: var(--font-body); font-weight: 700; }

/* Careers aside */
.careers-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-7); align-items: start; }
.note-panel { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: var(--space-5); position: sticky; top: calc(var(--header-h) + 24px); }
.note-panel h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md); }
.note-panel p { color: var(--muted); }
.note-panel ul { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.note-panel li { display: flex; gap: var(--space-3); padding-block: var(--space-2); color: var(--ink); }
.note-panel li i { color: var(--green); margin-top: .4em; }
@media (max-width: 991.98px) { .careers-layout { grid-template-columns: 1fr; } .note-panel { position: static; } }

/* --------------------------------------------------------------------------
   Media centre: toolbar, segmented filters, lead story
   -------------------------------------------------------------------------- */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.seg-tabs { display: flex; gap: var(--space-1); padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.seg-tabs a:hover { color: var(--navy); background: var(--paper); }
.seg-tabs a[aria-current="page"] { background: var(--navy); color: #fff; }

/* Front of the newsroom: a photo mosaic, the lead story large with two beside it */
.feature-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--space-4); height: clamp(460px, 38vw, 560px); margin-bottom: var(--space-8);
}
.feature-grid--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.feature-grid--pair { grid-template-rows: 1fr; }
.feature {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius); overflow: hidden; background: var(--night); color: #fff; isolation: isolate;
}
.feature:hover, .feature:focus-visible { color: #fff; }
.feature--lead { grid-row: 1 / -1; }
.feature__media { position: absolute; inset: 0; z-index: -2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(3, 33, 63, .97) 0%, rgba(3, 33, 63, .85) 45%, rgba(3, 33, 63, .35) 75%, rgba(3, 33, 63, .05) 100%);
}
.feature__body { padding: var(--space-5); }
.feature--lead .feature__body { padding: var(--space-7) var(--space-6) var(--space-6); max-width: 46rem; }
.feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: var(--on-dark-muted); margin-bottom: var(--space-3); }
.feature__meta .cat { padding: 3px 10px; border-radius: var(--radius-sm); background: #fff; color: var(--navy); font-weight: 700; }
.feature__title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; line-height: 1.55; color: #fff; margin: 0; text-wrap: balance; }
.feature--lead .feature__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.4; margin-bottom: var(--space-3); }
.feature__excerpt { color: var(--on-dark); font-size: var(--fs-base); line-height: 1.8; margin: 0 0 var(--space-4); max-width: 60ch; }
.feature__more { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: #fff; padding-bottom: 2px; border-bottom: 2px solid var(--nile); }
.feature:hover .feature__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.feature:focus-visible { outline: 3px solid var(--nile); outline-offset: 3px; }

/* Remaining stories: white cards on the paper background */
.more-head { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md); color: var(--navy); margin: 0 0 var(--space-5); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; }
.news-card:hover { color: inherit; border-color: var(--line-strong); }
.news-card__media { aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--fs-sm); color: var(--muted); }
.news-card__meta .cat { color: var(--nile); font-weight: 700; }
.news-card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; line-height: 1.6; color: var(--navy); margin: 0; }
.news-card:hover .news-card__title { color: var(--nile); }
.news-card__excerpt { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 991.98px) {
  .feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; margin-bottom: var(--space-7); }
  .feature--lead { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .feature:not(.feature--lead) { min-height: 240px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature--lead { min-height: 380px; }
  .feature--lead .feature__body { padding: var(--space-5) var(--space-4); }
  .feature__excerpt { display: none; }
  .card-grid { grid-template-columns: 1fr; }
}

.story__meta a.cat:hover { text-decoration: underline; }

/* With the full nav on one line, the name beside the logo only fits on wide screens */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .site-header__name { display: none; }
}


/* --------------------------------------------------------------------------
   Esaaf block (home): hotline panel + nearest pharmacies
   -------------------------------------------------------------------------- */
.esaaf { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: var(--space-5); align-items: stretch; }
.esaaf__panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--night); color: var(--on-dark);
  border-radius: var(--radius); padding: var(--space-6);
  border-top: 4px solid var(--signal);
}
.esaaf__panel::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(167, 200, 228, .16) 1.2px, transparent 1.5px) 0 0 / 10px 10px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%);
  pointer-events: none;
}
.esaaf__panel > * { position: relative; z-index: 1; }
.esaaf__panel h2 { color: #fff; font-size: var(--fs-xl); line-height: 1.35; margin: 0; text-wrap: balance; }
.esaaf__panel p { color: var(--on-dark-muted); margin: 0; line-height: 1.8; }
.esaaf__call {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: auto; padding: var(--space-4) var(--space-5);
  background: var(--signal); color: #fff; border-radius: var(--radius);
  transition: background-color .2s var(--ease);
}
.esaaf__call:hover { background: #a71f1f; color: #fff; }
.esaaf__call-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 1.15rem; }
.esaaf__call small { display: block; font-size: var(--fs-sm); opacity: .9; }
.esaaf__call strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; letter-spacing: .03em; }
.esaaf__more { color: #fff; font-weight: 600; display: inline-flex; gap: 6px; align-self: flex-start; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.esaaf__more:hover { color: #fff; border-bottom-color: #fff; }
.esaaf__more .num { opacity: .7; }

.esaaf__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.pharm-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5);
  transition: border-color .2s var(--ease);
}
.pharm-card:hover { border-color: var(--line-strong); }
.pharm-card__area { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--nile); margin-bottom: var(--space-2); }
.pharm-card__area i { font-size: .8rem; }
.pharm-card__name { font-size: 1.1rem; line-height: 1.5; margin: 0 0 var(--space-1); color: var(--navy); }
.pharm-card__addr { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 var(--space-4); }
.pharm-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }

.dir-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--space-3); font-weight: 600; color: var(--navy); border-radius: var(--radius-sm); }
.dir-link:hover { background: var(--nile-soft); color: var(--navy); }
.dir-link i { color: var(--nile); font-size: .9rem; }
[dir="rtl"] .dir-link i { transform: scaleX(-1); }

@media (max-width: 991.98px) {
  .esaaf { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .esaaf__grid { grid-template-columns: 1fr; }
  .esaaf__panel { padding: var(--space-5); }
}

.pharm-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.pharm-card.is-active { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.pharm-card .text-link { align-self: flex-start; }
