/* Hadaya CO — industrial, manufacturer-grade corporate site.
   One stylesheet for EN (ltr) and AR (rtl); layout uses logical properties so Arabic mirrors without overrides. */

:root {
  --brand: #0e6b75;        /* MAH teal, deepened for text contrast */
  --brand-hover: #0a5259;
  --brand-tint: #e3f0f1;
  --graphite: #14181c;
  --graphite-2: #222930;
  --steel-50: #f3f5f7;
  --steel-100: #e8ecef;
  --steel-200: #d6dce2;
  --steel-300: #b9c2cb;
  --ink: #14181c;
  --ink-2: #48525c;
  --ink-3: #616c77;
  --white: #ffffff;

  --laundry: #1f5fae;
  --kitchen: #b23a2a;
  --medical: #2f7a45;
  --energy: #d39a0a;

  --latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Almarai", "Archivo", Tahoma, sans-serif;
  --font: var(--latin);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.06), 0 12px 32px -12px rgba(20, 24, 28, 0.22);

  color-scheme: light;
  scrollbar-color: var(--steel-300) var(--steel-50);
}
:root[lang="ar"] { --font: var(--arabic); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--brand);
  overflow-x: clip;
}
:root[lang="ar"] body { font-size: 1.05rem; line-height: 1.85; }
::selection { background: var(--brand); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .utility :focus-visible { outline-color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 80; background: var(--brand); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; color: inherit; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { font-weight: 800; letter-spacing: 0; }
.h1 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.02em; font-stretch: 90%; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; font-stretch: 92%; }
.h3 { font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.25; }
:root[lang="ar"] .h1 { line-height: 1.3; font-size: clamp(2.1rem, 1.25rem + 2.9vw, 3.7rem); }
:root[lang="ar"] .h2 { line-height: 1.4; }
:root[lang="ar"] .h3 { line-height: 1.5; }
.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
:root[lang="ar"] .lede { line-height: 1.85; }
.prose { color: var(--ink-2); max-width: 66ch; }
.prose p + p { margin-top: var(--s4); }
.section { padding-block: clamp(64px, 7.5vw, 112px); }
.section--steel { background: var(--steel-50); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4) var(--s6); margin-bottom: clamp(28px, 3.4vw, 48px); }
.section-head .lede { margin-top: var(--s3); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link .icon { transition: transform 0.25s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link:hover .icon { transform: scaleX(-1) translateX(3px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r); cursor: pointer; text-decoration: none;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn:hover { background: var(--brand-hover); }
.btn[disabled] { background: var(--steel-300); color: var(--ink-2); cursor: progress; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--steel-100); }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* ---------- utility bar + header ---------- */
.utility { background: var(--graphite); color: #c9d1d8; font-size: 0.86rem; }
.utility__row { display: flex; align-items: center; gap: var(--s5); min-height: 38px; }
.utility__agent { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.utility__agent::before { content: ""; width: 8px; height: 8px; background: #3fb2bd; border-radius: 50%; }
.utility__links { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s5); }
.utility a { color: #e3e8ec; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility .lang { font-weight: 700; padding-inline-start: var(--s5); border-inline-start: 1px solid rgba(255, 255, 255, 0.2); }
:root[lang="en"] .utility .lang { font-family: var(--arabic); font-size: 0.95rem; }
:root[lang="ar"] .utility .lang { font-family: var(--latin); }
.utility .u-short { display: none; }
@media (max-width: 900px) { .utility .u-long { display: none; } .utility .u-short { display: inline; } }
@media (max-width: 760px) { .utility__agent { font-size: 0.8rem; } .utility__hide { display: none !important; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--steel-200); }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(10px); } }
.header__row { display: flex; align-items: center; gap: var(--s6); min-height: 76px; }
.header__logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s6); margin-inline-start: auto; }
.nav__list { display: flex; align-items: stretch; gap: 4px; list-style: none; }
.nav__link { position: relative; display: flex; align-items: center; min-height: 76px; padding: 0 14px; text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.nav__link::after { content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 3px; background: var(--brand); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__lang { display: none; }
.header__menu { display: none; }
@media (max-width: 1000px) {
  .header__row { min-height: 64px; gap: var(--s4); }
  .header__logo img { height: 40px; }
  .header__menu { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: #fff; font-weight: 600; cursor: pointer; border-radius: var(--r); }
  .nav { position: absolute; inset-inline: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: var(--s4); background: #fff; padding: var(--s3) var(--pad) var(--s5); border-bottom: 1px solid var(--steel-200); box-shadow: var(--shadow); }
  .nav[data-open] { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--steel-100); font-size: 1.08rem; }
  .nav__link::after { display: none; }
  .nav__lang { display: inline-flex; font-weight: 700; color: var(--brand); text-decoration: none; }
  .nav .btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--graphite); isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 16, 20, 0.9) 0%, rgba(12, 16, 20, 0.72) 38%, rgba(12, 16, 20, 0.18) 72%, rgba(12, 16, 20, 0.05) 100%); }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(12, 16, 20, 0.9) 0%, rgba(12, 16, 20, 0.72) 38%, rgba(12, 16, 20, 0.18) 72%, rgba(12, 16, 20, 0.05) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(24px, 4vw, 72px); align-items: center; min-height: clamp(560px, calc(100svh - 114px), 720px); padding-block: clamp(48px, 6vw, 80px); }
.hero__text .lede { color: #dfe5ea; margin-top: var(--s5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.quote-card { position: relative; background: #fff; color: var(--ink); padding: clamp(22px, 2.4vw, 32px); border-radius: 0; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55); border-top: 4px solid var(--brand); }
.quote-card h2 { font-size: 1.35rem; line-height: 1.25; }
.quote-card p.small { color: var(--ink-2); font-size: 0.95rem; margin-top: 6px; }
.quote-card form { display: grid; gap: var(--s3); margin-top: var(--s4); }
.quote-card .btn { width: 100%; }
.quote-card .call { font-size: 0.92rem; color: var(--ink-2); text-align: center; }
.quote-card .call a { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 0; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 16, 20, 0.86) 0%, rgba(12, 16, 20, 0.7) 55%, rgba(12, 16, 20, 0.92) 100%); }
  .quote-card { margin-bottom: -40px; }
  .hero + * { padding-top: 72px; }
}

/* ---------- agent strip + figures ---------- */
.agent-strip { border-bottom: 1px solid var(--steel-200); }
.agent-strip__row { display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto; gap: var(--s5) clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 3vw, 36px); }
.agent-logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.agent-logos img { height: 34px; width: auto; max-width: 110px; object-fit: contain; }
.agent-strip h2 { font-size: 1.2rem; line-height: 1.3; }
.agent-strip p { color: var(--ink-2); margin-top: 4px; }
@media (max-width: 760px) { .agent-strip__row { grid-template-columns: 1fr; } }

.figures { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--steel-200); }
.figure { padding: 22px 20px 4px 0; border-inline-end: 1px solid var(--steel-200); }
[dir="rtl"] .figure { padding: 22px 0 4px 20px; }
.figure:not(:first-child) { padding-inline-start: 24px; }
.figure:last-child { border-inline-end: 0; }
.figure b { display: block; font-family: var(--latin); font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.figure span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 760px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding-inline: 0 16px !important; border-inline-end: 0; border-bottom: 1px solid var(--steel-200); padding-bottom: 18px; }
  .figure:nth-child(odd) { border-inline-end: 1px solid var(--steel-200); }
  .figure:nth-child(even) { padding-inline: 16px 0 !important; }
}

/* ---------- solutions (product lines) ---------- */
.solutions { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.solution { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s; }
.solution:hover { box-shadow: var(--shadow); border-color: var(--steel-300); }
.solution__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-100); }
.solution__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.solution:hover .solution__media img { transform: scale(1.05); }
.solution__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; border-top: 3px solid var(--c); }
.solution__body p { color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
.solution__body .link { margin-top: auto; padding-top: 8px; }
.solution__body .link::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1080px) { .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .solutions { grid-template-columns: 1fr; } .solution__media { aspect-ratio: 16 / 9; } .solution__body { padding: 16px 16px 18px; } }

.line-laundry { --c: var(--laundry); --on: #fff; }
.line-kitchen { --c: var(--kitchen); --on: #fff; }
.line-medical { --c: var(--medical); --on: #fff; }
.line-energy  { --c: var(--energy);  --on: var(--ink); }

/* ---------- product rail ---------- */
.rail-wrap { position: relative; }
.rail { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 4 * 16px) / 5)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.rail-ctrl { display: flex; gap: 8px; }
@media (max-width: 1080px) { .rail { grid-auto-columns: minmax(200px, 42%); } }
@media (max-width: 560px) { .rail { grid-auto-columns: 70%; } }

.product { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); text-decoration: none; transition: box-shadow 0.25s, border-color 0.25s; }
.product:hover { box-shadow: var(--shadow); border-color: var(--steel-300); }
.product__img { aspect-ratio: 1; width: 100%; object-fit: contain; padding: 6%; background: #fff; transition: transform 0.5s var(--ease); }
.product:hover .product__img { transform: scale(1.04); }
.product__meta { padding: 14px 16px 16px; border-top: 1px solid var(--steel-100); display: grid; gap: 2px; }
.product__line { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.product__line::before { content: ""; width: 8px; height: 8px; background: var(--c); }
.product__name { font-weight: 600; line-height: 1.3; color: var(--ink); }

.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; border-radius: var(--r); }
.iconbtn:hover { background: var(--ink); color: #fff; }
.iconbtn[disabled] { opacity: 0.35; cursor: default; background: #fff; color: var(--ink); }

/* ---------- references ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; cursor: pointer; border-radius: var(--r);
  background: #fff; border: 1px solid var(--steel-300); color: var(--ink); font-weight: 600; font-size: 0.92rem; transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.chip::before { content: ""; width: 8px; height: 8px; background: var(--c, var(--ink)); flex: none; }
.chip[data-line="all"]::before { display: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"]::before { background: var(--c, #fff); box-shadow: 0 0 0 1px #fff; }
.chip .count { font-weight: 400; opacity: 0.75; }
.place { min-height: 40px; padding: 6px 34px 6px 14px; border: 1px solid var(--steel-300); border-radius: var(--r); background-color: #fff; font-weight: 600; font-size: 0.92rem; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .place { padding: 6px 14px 6px 34px; background-position: left 11px center, left 16px center; }

.refs { list-style: none; border-top: 2px solid var(--ink); }
.refs__head, .ref { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 1.2fr); gap: var(--s5); align-items: center; }
.refs__head { padding: 10px 0; font-size: 0.82rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--steel-300); }
.ref { padding: 16px 0; border-bottom: 1px solid var(--steel-200); }
.ref[hidden] { display: none; }
.ref__facility { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.ref__place, .ref__scope { color: var(--ink-2); }
.ref__place--none { color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.tag::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.empty { padding: 20px 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .refs__head { display: none; }
  .ref { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .ref__facility { grid-column: 1; }
  .ref .tag { grid-column: 2; grid-row: 1; }
  .ref__place, .ref__scope { grid-column: 1 / -1; font-size: 0.95rem; }
  .ref__place--none { display: none; }
}

/* ---------- brands ---------- */
.brands { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--steel-200); border-inline-start: 1px solid var(--steel-200); }
.brand { position: relative; border-inline-end: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); background: #fff; }
.brand__link { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 196px; padding: 24px 16px; text-decoration: none; color: inherit; transition: background-color 0.2s; }
.brand__link:hover { background: var(--steel-50); }
.brand img { width: 120px; height: 80px; object-fit: contain; }
.brand__name { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.brand__agent { font-size: 0.78rem; font-weight: 600; color: var(--brand); }
@media (max-width: 860px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand:last-child { grid-column: 1 / -1; } }

/* ---------- dark service band ---------- */
.dark { background: var(--graphite); color: #dfe5ea; }
.dark h2, .dark h3 { color: #fff; }
.dark .lede { color: #c9d1d8; }
.service-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 104px); }
.service-band__media { position: relative; overflow: hidden; }
.service-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-band__head, .service-band__body { display: grid; gap: var(--s5); align-content: center; }
.service-band__body .lede { color: #c9d1d8; }
.service-list { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.service-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #fff; }
.service-list .icon { color: #5cc3cc; }
.bigphone { font-family: var(--latin); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.bigphone:hover { color: #9fe0e5; }
@media (max-width: 860px) { .service-band { grid-template-columns: 1fr; } }

/* ---------- final CTA ---------- */
.cta-band { background: var(--brand); color: #fff; }
.cta-band__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s5); padding-block: clamp(36px, 4.5vw, 56px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5ebed; margin-top: 6px; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- page banner (inner pages) ---------- */
.banner { position: relative; color: #fff; background: var(--graphite); isolation: isolate; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 16, 20, 0.88), rgba(12, 16, 20, 0.55) 60%, rgba(12, 16, 20, 0.3)); }
[dir="rtl"] .banner::before { background: linear-gradient(270deg, rgba(12, 16, 20, 0.88), rgba(12, 16, 20, 0.55) 60%, rgba(12, 16, 20, 0.3)); }
.banner__row { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.crumbs { display: flex; gap: 8px; font-size: 0.88rem; color: #c9d1d8; margin-bottom: var(--s4); list-style: none; }
.crumbs a { color: #fff; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #8d99a4; }
.banner .lede { color: #dfe5ea; margin-top: var(--s4); }
.banner--plain { background: var(--steel-50); color: var(--ink); }
.banner--plain::before { display: none; }
.banner--plain .crumbs { color: var(--ink-3); }
.banner--plain .crumbs a { color: var(--ink); }
.banner--plain .lede { color: var(--ink-2); }

.subnav { position: sticky; top: 76px; z-index: 30; background: #fff; border-bottom: 1px solid var(--steel-200); }
.subnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; white-space: nowrap; font-weight: 600; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; }
.subnav a::before { content: ""; width: 8px; height: 8px; background: var(--c); }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--c); }
@media (max-width: 1000px) { .subnav { top: 64px; } }

/* ---------- services: line sections ---------- */
.line { padding-block: clamp(56px, 7vw, 104px); scroll-margin-top: 140px; border-bottom: 1px solid var(--steel-200); }
.line:nth-of-type(even) { background: var(--steel-50); }
.line__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.line__media { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; aspect-ratio: 4 / 3; }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__media--contain img { object-fit: contain; padding: 8%; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: var(--s5); border-top: 1px solid var(--steel-300); }
.specs > div { padding: 12px 16px 12px 0; border-inline-end: 1px solid var(--steel-200); }
[dir="rtl"] .specs > div { padding: 12px 0 12px 16px; }
.specs > div:not(:first-child) { padding-inline-start: 16px; }
.specs > div:last-child { border-inline-end: 0; }
.specs dt { font-size: 0.82rem; color: var(--ink-3); font-weight: 600; }
.specs dd { font-weight: 600; line-height: 1.35; margin-top: 2px; }
.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin-top: var(--s5); }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 14px; height: 8px; border-inline-start: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) translateY(-3px); }
[dir="rtl"] .checks li::before { transform: rotate(45deg) translateY(-3px); border-inline-start: 0; border-inline-end: 2px solid var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.line__products { margin-top: clamp(36px, 4vw, 56px); }
.line__products h3, .line__refs h3 { margin-bottom: var(--s4); }
.grid-products { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.line__refs { margin-top: clamp(36px, 4vw, 56px); }
@media (max-width: 900px) { .line__top { grid-template-columns: 1fr; } .specs { grid-template-columns: 1fr; } .specs > div { border-inline-end: 0; border-bottom: 1px solid var(--steel-200); padding-inline: 0 !important; } .checks { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.catalog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.catalog { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.item[hidden] { display: none; }
.item button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: zoom-in; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); transition: box-shadow 0.25s, border-color 0.25s; }
.item button:hover { box-shadow: var(--shadow); border-color: var(--steel-300); }
.item button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.item__img { aspect-ratio: 1; width: 100%; object-fit: contain; padding: 6%; transition: transform 0.5s var(--ease); }
.item button:hover .item__img { transform: scale(1.04); }
.item__meta { display: grid; gap: 2px; padding: 14px 16px 16px; border-top: 1px solid var(--steel-100); }
.item__line { display: inline-flex; gap: 8px; align-items: center; }
.item__line::before { content: ""; width: 8px; height: 8px; background: var(--c); flex: none; }
.item__name { font-weight: 600; line-height: 1.3; }
.item__line { font-size: 0.85rem; color: var(--ink-3); }

.viewer { border: 0; padding: 0; width: min(980px, 94vw); background: #fff; color: var(--ink); border-radius: var(--r); }
.viewer::backdrop { background: rgba(12, 16, 20, 0.85); }
.viewer__img { width: 100%; max-height: 68vh; object-fit: contain; background: #fff; padding: 24px; }
.viewer__foot { display: flex; align-items: center; gap: var(--s3); padding: 14px 18px; border-top: 1px solid var(--steel-200); }
.viewer__cap { flex: 1; font-weight: 600; }
.viewer__cap small { display: block; font-weight: 400; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) { .viewer[open] { animation: rise 0.3s var(--ease); } }
@keyframes rise { from { transform: translateY(12px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ---------- about ---------- */
.facts-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.facts { border-top: 2px solid var(--ink); }
.fact { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--s5); padding: 14px 0; border-bottom: 1px solid var(--steel-200); }
.fact dt { color: var(--ink-3); font-weight: 600; font-size: 0.92rem; padding-top: 2px; }
.fact dd { font-weight: 500; line-height: 1.5; }
.fact dd ul { list-style: none; display: grid; gap: 4px; }
.fact dd li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { display: inline-block; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r); }
.side-card { background: var(--steel-50); border: 1px solid var(--steel-200); padding: clamp(22px, 3vw, 32px); border-radius: var(--r); display: grid; gap: var(--s4); position: sticky; top: 100px; }
.side-card .figures { grid-template-columns: 1fr 1fr; }
.map { border: 1px solid var(--steel-200); border-radius: var(--r); overflow: hidden; background: var(--steel-100); }
.map iframe { display: block; width: 100%; height: clamp(320px, 40vw, 480px); border: 0; }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr; } .side-card { position: static; } .fact { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--steel-300); border-radius: var(--r);
  background: #fff; color: var(--ink); transition: border-color 0.18s, box-shadow 0.18s;
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: left 13px center, left 18px center; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 107, 117, 0.2); }
[data-validated] .field :invalid { border-color: var(--kitchen); box-shadow: 0 0 0 3px rgba(178, 58, 42, 0.15); }
.hint { font-weight: 400; color: var(--ink-3); }
.req { color: var(--kitchen); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--kitchen); font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.form-status { font-weight: 600; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--kitchen); }
.form-status[data-state="ok"] { color: var(--medical); }
.received { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 8px; text-align: center; background: rgba(255, 255, 255, 0.96); font-weight: 700; font-size: 1.3rem; color: var(--ink); border-radius: var(--r); }
.received::before { content: ""; width: 56px; height: 56px; margin-inline: auto; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 28px no-repeat; }
.received[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .received:not([hidden]) { animation: rise 0.35s var(--ease); } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.form-panel { position: relative; background: #fff; border: 1px solid var(--steel-200); border-top: 4px solid var(--brand); border-radius: 0; padding: clamp(22px, 3vw, 40px); }
.form { display: grid; gap: var(--s4); margin-top: var(--s5); }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: grid; gap: 4px; padding: 20px 22px; background: var(--steel-50); border: 1px solid var(--steel-200); border-radius: var(--r); }
.ccard h2 { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.ccard h2 .icon { color: var(--brand); }
.ccard a { font-weight: 700; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.ccard a:hover { color: var(--brand); text-decoration: underline; }
.ccard p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* compact product grids on phones */
@media (max-width: 560px) {
  .grid-products, .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product__img, .item__img { padding: 4%; }
  .product__meta, .item__meta { padding: 10px 12px 12px; }
  .product__name, .item__name { font-size: 0.95rem; }
}
/* figures inside the about side card: plain 2x2 */
.side-card .figures { border-top: 0; }
.side-card .figure, [dir="rtl"] .side-card .figure { padding: 14px 0 12px !important; border: 0; border-bottom: 1px solid var(--steel-200); }
.side-card .figure:nth-child(even) { padding-inline-start: 18px !important; border-inline-start: 1px solid var(--steel-200); }

/* ---------- footer ---------- */
.footer { background: var(--graphite); color: #b7c0c8; font-size: 0.95rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s7) clamp(20px, 3vw, 48px); padding-block: clamp(48px, 6vw, 80px) var(--s7); }
.footer__brand img { width: 168px; height: auto; }
.footer__brand p { margin-top: var(--s4); max-width: 34ch; line-height: 1.55; }
.footer h2 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: var(--s4); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: #dfe5ea; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .line-item { display: inline-flex; align-items: center; gap: 10px; }
:root[lang="en"] .footer [lang="ar"] { font-family: var(--arabic); font-size: 1.02rem; }
:root[lang="ar"] .footer [lang="en"] { font-family: var(--latin); }
.socials { display: flex; gap: 8px; margin-top: var(--s5); }
.socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--r); }
.socials a:hover { background: #fff; color: var(--graphite); text-decoration: none; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; font-size: 0.86rem; color: #8f9aa4; }
@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- mobile action bar ---------- */
.actionbar { display: none; }
@media (max-width: 760px) {
  body.show-actionbar .actionbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; background: #fff; border-top: 1px solid var(--steel-200); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(20, 24, 28, 0.3); }
  .actionbar .btn { min-height: 46px; padding: 0 12px; font-size: 0.95rem; }
  body.show-actionbar { padding-bottom: 72px; }
}

@media print { .utility, .header, .actionbar, .footer, .filters { display: none !important; } }
