/* WESAL SPC — site stylesheet
   Brand: WESAL blue #1889CB, taken from the ERP (wesal-procurement/src/index.html,
   --m-blue / --doc-accent) and from brand/wesal-logo.svg, so the site, the application
   and the offer PDFs all carry the same colour. Neutrals follow the ERP's Fluent greys.
   Layout uses CSS logical properties so the Arabic (RTL) build needs almost no overrides. */

:root {
  --brand: #1889cb;        /* WESAL blue — ERP --m-blue / --doc-accent */
  --brand-dark: #0f5c8c;   /* ERP --m-blue-d */
  --brand-tint: #eff6fc;   /* ERP --m-tint2 */
  --brand-tint2: #cfe7f7;  /* ERP --m-tint */
  --amber: #f28a00;        /* ERP --orange, kept as the highlight accent */
  --ink: #19242a;          /* logo dark */
  --ink-soft: #323130;     /* ERP --ink */
  --body: #605e5c;         /* ERP --mute */
  --line: #e1dfdd;         /* ERP --line2 */
  --surface: #f3f2f1;      /* ERP --surf */
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 22, 28, .05), 0 8px 24px -12px rgba(17, 22, 28, .18);
  --shadow-lg: 0 2px 4px rgba(17, 22, 28, .06), 0 24px 48px -20px rgba(17, 22, 28, .28);
  --wrap: 1180px;
  --head: 78px;
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --display: 'Sofia Sans', 'Poppins', system-ui, sans-serif;
}

[dir="rtl"] {
  --font: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --display: 'Cairo', system-ui, sans-serif;
}

/* Alternative palettes. Set data-theme on <html> to preview one; to adopt one
   permanently, move its values into :root above and delete the rest. */

:root[data-theme="legacy-red"] {
  --brand: #c6000d;        /* the red on the current live site and logo-red.svg */
  --brand-dark: #9d000a;
  --brand-tint: #fdf2f3;
  --brand-tint2: #f9d9db;
  --amber: #f28a00;
  --ink: #11161c;
  --ink-soft: #2b333c;
  --body: #4c565f;
  --line: #e3e7ea;
  --surface: #f5f7f8;
}

:root[data-theme="navy"] {
  --brand: #0f5c8c;        /* the ERP's darker blue used as the primary */
  --brand-dark: #092036;
  --brand-tint: #eef3f8;
  --brand-tint2: #cfe7f7;
  --amber: #f28a00;
  --ink: #0b1826;
  --ink-soft: #27394b;
  --body: #4a5a6a;
  --line: #dde4ea;
  --surface: #f3f6f9;
}

:root[data-theme="graphite"] {
  --brand: #b3421b;        /* primary — burnt orange */
  --brand-dark: #8e3214;
  --brand-tint: #fbf1ec;
  --amber: #e0a33c;
  --brand-tint2: #f3dfd4;
  --ink: #1c1e21;
  --ink-soft: #35383d;
  --body: #55595f;
  --line: #e2e3e6;
  --surface: #f6f6f7;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.16; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.1rem + 2.1vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1.1em; padding-inline-start: 1.1em; }
li { margin-bottom: .4em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { inset-inline-start: 0; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--head); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 42px; width: auto; }
.brand span { display: none; }

.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--ink-soft); font-size: .9rem; font-weight: 500;
  padding: 10px 10px; border-radius: var(--radius-sm); white-space: nowrap;
}
.site-nav a:hover { background: var(--surface); text-decoration: none; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.head-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang-switch a {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--body);
  padding: 5px 9px; border-radius: 999px; line-height: 1;
}
.lang-switch a:hover { color: var(--brand); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--brand); color: #fff; }
.head-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .92rem; white-space: nowrap; }
.head-phone .icon { color: var(--brand); }
.head-phone:hover { text-decoration: none; color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }
body.nav-open .nav-toggle .icon-menu { display: none; }

@media (max-width: 1320px) { .head-phone { display: none; } }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .head-phone { display: none; }
  .site-nav {
    position: fixed; inset-block: var(--head) 0; inset-inline: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 24px 40px; overflow-y: auto; margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s ease;
    border-top: 1px solid var(--line);
  }
  body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .site-nav .nav-phone { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 600; border: 0; }
}
@media (min-width: 1041px) { .site-nav .nav-phone { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: .97rem; font-weight: 600; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(24, 137, 203, .55); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9d0d6; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #fff; color: var(--brand); }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-more:hover { gap: 12px; text-decoration: none; }

/* ---------- Hero ---------- */

.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-media img.is-active { opacity: 1; animation: slowpan 14s ease-out both; }
@keyframes slowpan { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 14, 18, .88) 0%, rgba(10, 14, 18, .72) 45%, rgba(10, 14, 18, .42) 100%);
}
[dir="rtl"] .hero::before { background: linear-gradient(260deg, rgba(10, 14, 18, .88) 0%, rgba(10, 14, 18, .72) 45%, rgba(10, 14, 18, .42) 100%); }

.hero-body { padding-block: clamp(72px, 10vw, 136px); max-width: 44rem; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero p { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: rgba(255, 255, 255, .88); margin-bottom: 2em; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1.1em;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--brand); flex: none; }
.hero .kicker { color: #fff; }
.hero .kicker::before { background: var(--amber); }
[dir="rtl"] .kicker { letter-spacing: 0; }

.hero-dots { display: flex; gap: 8px; margin-top: 2.6rem; }
.hero-dots button {
  width: 30px; height: 4px; border: 0; padding: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .2s;
}
.hero-dots button[aria-selected="true"] { background: var(--amber); }

/* compact hero for inner pages */
.hero-slim .hero-body { padding-block: clamp(56px, 7vw, 92px); }
.hero-slim p { margin-bottom: 0; }

.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.4em; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs span { padding-inline: 8px; opacity: .5; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 7vw, 100px); }
.section-alt { background: var(--surface); }
.section-ink { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .kicker { color: var(--amber); }
.section-ink .kicker::before { background: var(--amber); }

.section-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* intro: text + feature list */
.intro-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1.05fr .95fr; align-items: start; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-grid > div > p:first-of-type { font-size: 1.08rem; color: var(--ink-soft); }

.feature-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 16px; margin: 0; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-alt .feature-list li { background: #fff; }
.feature-list .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint2); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.feature-list .tick .icon { width: 16px; height: 16px; }
.feature-list strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.08rem; margin-bottom: 2px; }
.feature-list span { font-size: .95rem; display: block; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .35em; }
.card p { font-size: .96rem; margin-bottom: 0; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d2d8dd; }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint2); color: var(--brand-dark); margin-bottom: 18px;
}
.card .card-icon .icon { width: 23px; height: 23px; }
.card .num {
  font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--line);
  line-height: 1; margin-bottom: 12px; display: block;
}

.media-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.media-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-card:hover .thumb img { transform: scale(1.05); }
.media-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.media-card h3 { margin-bottom: .3em; }
.media-card p { font-size: .95rem; }
.media-card .link-more { margin-top: auto; }

/* process steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ''; position: absolute; top: 13px; inset-inline: 0; height: 2px;
  background: repeating-linear-gradient(to right, #39434d 0 6px, transparent 6px 12px);
}
.step:last-child::before { inset-inline-end: 50%; }
.step:first-child::before { inset-inline-start: 50%; }
.steps .step:only-child::before { display: none; }
.step .dot {
  position: absolute; top: 0; inset-inline-start: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-size: .85rem; font-weight: 600; font-family: var(--display);
}
.step h3 { font-size: 1.02rem; color: #fff; margin-bottom: .3em; }
.step p { font-size: .9rem; margin: 0; }

/* split image + text */
.split { display: grid; gap: clamp(32px, 5vw, 60px); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.split .shot img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; margin: 0; font-size: .97rem; }
.checklist .icon { width: 19px; height: 19px; color: var(--brand); margin-top: 5px; }

/* service detail rows */
.service-row { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: .9fr 1.1fr; align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; } }
.service-row .shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.service-row .shot img { width: 100%; height: 100%; object-fit: cover; }
.service-row:nth-child(even) .shot { order: 2; }
@media (max-width: 900px) { .service-row:nth-child(even) .shot { order: 0; } }
.service-row .card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint2); color: var(--brand-dark); margin-bottom: 16px; }
.service-row .card-icon .icon { width: 23px; height: 23px; }
.service-row .lead { font-size: 1.05rem; color: var(--ink-soft); }
.spec-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 14px; }
.spec-list li { display: flex; gap: 14px; margin: 0; }
.spec-list .icon { width: 19px; height: 19px; color: var(--brand); margin-top: 5px; flex: none; }
.spec-list strong { color: var(--ink); display: block; font-weight: 600; }
.spec-list span { font-size: .94rem; }

/* sector blocks */
.sector { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr 1fr; align-items: center; padding-block: clamp(36px, 5vw, 60px); }
@media (max-width: 900px) { .sector { grid-template-columns: 1fr; } }
.sector .shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; }
.sector .shot img { width: 100%; height: 100%; object-fit: cover; }
.sector:nth-child(even) .shot { order: 2; }
@media (max-width: 900px) { .sector:nth-child(even) .shot { order: 0; } }
.sector + .sector { border-top: 1px solid var(--line); }

/* notice / placeholder */
.notice {
  border: 1px dashed #c2cad1; background: #fff; border-radius: var(--radius);
  padding: 26px 28px; display: flex; gap: 16px; align-items: flex-start;
}
.notice .icon { width: 20px; height: 20px; color: var(--amber); margin-top: 5px; flex: none; }
.notice p:last-child { margin-bottom: 0; }
.notice .hint { font-size: .86rem; color: #7c868f; font-style: italic; }

/* roles */
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; }
@media (max-width: 680px) { .role { grid-template-columns: 1fr; } }
.role h3 { margin-bottom: .2em; }
.role .meta { font-size: .85rem; color: var(--brand); font-weight: 600; margin-bottom: .6em; }
.role p { font-size: .95rem; margin: 0; }
.role-stack { display: grid; gap: 18px; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--brand-dark), var(--brand) 60%, #2aa3e0); color: #fff; }
.cta-band .wrap { padding-block: clamp(48px, 6vw, 76px); display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; max-width: 42rem; }
.cta-band .cta-text { max-width: 44rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: .85fr 1.15fr; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { display: flex; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.contact-card .card-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-tint2); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.contact-card .card-icon .icon { width: 21px; height: 21px; }
.contact-card .label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8a939b; font-weight: 600; }
[dir="rtl"] .contact-card .label { letter-spacing: 0; }
.contact-card .value { font-family: var(--display); font-size: 1.14rem; color: var(--ink); font-weight: 600; }
.contact-card a.value:hover { color: var(--brand); }
.contact-card .value-sm { font-size: 1rem; font-family: var(--font); font-weight: 500; line-height: 1.5; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 24px; }
.map-frame img { width: 100%; height: auto; }

form.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(24px, 3vw, 38px); }
form.enquiry h2 { font-size: 1.5rem; }
.field-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--brand); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid #d5dbe0; border-radius: var(--radius-sm);
  background: #fcfdfd; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24, 137, 203, .16); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form-msg { font-size: .93rem; font-weight: 500; }
.form-msg.info { color: var(--body); }
.form-msg.ok { color: #107c10; }
.form-msg.err { color: var(--brand); }
form.enquiry[data-busy="true"] { opacity: .65; pointer-events: none; }

/* ---------- Footer ---------- */

.site-foot { background: var(--ink); color: rgba(255, 255, 255, .66); font-size: .95rem; padding-top: clamp(48px, 6vw, 72px); }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot .brand img { height: 46px; filter: brightness(0) invert(1); }
.site-foot p { font-size: .93rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-links a { color: rgba(255, 255, 255, .7); }
.foot-links a:hover { color: #fff; }
.foot-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-contact li { display: flex; gap: 11px; margin: 0; }
.foot-contact .icon { width: 18px; height: 18px; color: var(--amber); margin-top: 4px; flex: none; }
.foot-contact a { color: #fff; }
.foot-bar {
  margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 22px; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap;
  font-size: .87rem; color: rgba(255, 255, 255, .5);
}

#totop {
  position: fixed; inset-inline-end: 22px; inset-block-end: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
#totop.show { opacity: 1; visibility: visible; transform: none; }
#totop .icon { width: 20px; height: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- stats band ---------- */

.stats-band { background: var(--ink); color: #fff; }
.stats-band .wrap { padding-block: clamp(32px, 4vw, 48px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding-inline: 10px; border-inline-start: 1px solid rgba(255, 255, 255, .13); }
.stat:first-child { border-inline-start: 0; }
@media (max-width: 760px) { .stat:nth-child(odd) { border-inline-start: 0; } }
.stat-value { display: block; font-family: var(--display); font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; color: #fff; line-height: 1.1; }
.stat.is-placeholder .stat-value { color: rgba(255, 255, 255, .34); }
.stat-label { display: block; font-size: .88rem; color: rgba(255, 255, 255, .62); margin-top: 6px; }
.stats-note { color: rgba(255, 255, 255, .42); text-align: center; margin: 22px 0 0; }

.hint { font-size: .85rem; color: #7c868f; font-style: italic; }
.center-link { text-align: center; margin-top: 26px; }
.section-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- product tiles ---------- */

.tiles .tile {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 22px; box-shadow: var(--shadow); color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tiles .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d2d8dd; text-decoration: none; }
.tiles .tile h3 { font-size: 1.06rem; margin-bottom: .5em; }
.tiles .tile .link-more { font-size: .88rem; margin-top: auto; }

/* ---------- product detail ---------- */

.product-stack { display: grid; gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: calc(var(--head) + 16px); }
.product-head { display: flex; align-items: center; gap: 16px; padding: 22px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.product-head h2 { font-size: 1.4rem; margin: 0; }
.product-head .card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); border: 1px solid var(--line); flex: none; }
.product-head .card-icon .icon { width: 23px; height: 23px; }
.product-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3vw, 44px); padding: 28px; }
@media (max-width: 860px) { .product-body { grid-template-columns: 1fr; } }
.product-body > p { margin: 0; }
.product-main { display: grid; gap: 20px; align-content: start; }
.product-main p { margin: 0; }
.product-photo { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); aspect-ratio: 3 / 2; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-caps h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8a939b; margin-bottom: 1em; }
[dir="rtl"] .product-caps h3 { letter-spacing: 0; }
.product-caps .checklist li { font-size: .93rem; }

/* ---------- chips, badges, references ---------- */

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: .93rem; color: var(--ink-soft); box-shadow: var(--shadow);
}
.chip .icon { width: 15px; height: 15px; color: var(--brand); }

.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  margin: 0; padding: 14px 26px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  letter-spacing: .02em;
}

.refs .ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; text-align: center; }
.refs .ref .card-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-tint2); color: var(--brand-dark); display: grid; place-items: center; margin: 0 auto 16px; }
.refs .ref .card-icon .icon { width: 22px; height: 22px; }
.refs .ref h3 { font-size: 1.3rem; margin-bottom: .25em; }
.refs .ref p { font-size: .92rem; margin: 0; }

@media print {
  .site-head, #totop, .hero-dots, .cta-band, form.enquiry { display: none !important; }
  body { color: #000; }
}

/* ---------- client references ---------- */
.ref {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 24px; text-align: center;
  display: grid; place-content: center; min-height: 150px;
}
.ref-mark { min-height: 86px; display: grid; place-items: center; }
.ref-mark img {
  max-height: 86px; max-width: 184px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72; transition: filter .3s ease, opacity .3s ease;
}
.ref:hover .ref-mark img { filter: none; opacity: 1; }
.ref-word {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: .01em; color: var(--ink); line-height: 1.1;
}
.ref p { margin: 0; font-size: .92rem; color: var(--body); }

/* ---------- certification ---------- */
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px;
}
.cert h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.cert p { margin: 0; font-size: .93rem; color: var(--body); }
.cert .cert-no {
  margin-top: 12px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 600;
}
.cert-facts {
  margin: 26px 0 0; padding: 24px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 16px;
}
.cert-fact { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 18px; }
.cert-fact dt { font-weight: 600; color: var(--ink); font-size: .9rem; }
.cert-fact dd { margin: 0; color: var(--body); font-size: .93rem; }
@media (max-width: 680px) { .cert-fact { grid-template-columns: 1fr; gap: 4px; } }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cert-actions .btn .icon { width: 18px; height: 18px; margin-inline-end: 8px; }
