/* ==========================================================================
   Al-Ayadi Almaherah — design tokens
   Brand colours sampled from the company logo: blue #25AAE1, gold #C69B3C
   Layout language adapted from the reference reel (floating pill nav,
   split hero, dark solution panel, asymmetric card grids, blue CTA slab).
   ========================================================================== */

:root {
  /* brand */
  --blue-400: #4FC0EC;
  --blue-500: #25AAE1;   /* logo blue — accents, glows, dark-mode text */
  --blue-600: #0F8FCB;
  --blue-700: #0B7BAE;   /* button fill: white text passes AA */
  --blue-800: #075E86;   /* link/accent text on white */
  --gold-500: #C69B3C;
  --gold-600: #A87F26;

  /* neutrals */
  --ink:      #0E1116;
  --ink-2:    #1A1F26;
  --ink-3:    #262C35;
  --grey-900: #2C333D;
  --grey-700: #59616D;
  --grey-500: #858D99;
  --grey-300: #C9CFD8;
  --grey-200: #E2E5EA;
  --grey-100: #EDEFF3;
  --grey-50:  #F5F6F9;
  --canvas:   #EAEBF0;
  --white:    #FFFFFF;

  /* type */
  --font-en: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-ar: 'Tajawal', 'Segoe UI', 'Noto Naskh Arabic', system-ui, sans-serif;
  --font: var(--font-ar);

  /* shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14,17,22,.06), 0 1px 3px rgba(14,17,22,.05);
  --shadow-md: 0 4px 12px rgba(14,17,22,.07), 0 2px 4px rgba(14,17,22,.04);
  --shadow-lg: 0 18px 45px rgba(14,17,22,.10), 0 6px 14px rgba(14,17,22,.05);
  --shadow-nav: 0 6px 28px rgba(14,17,22,.10);

  --shell: 1180px;
  --gap: 24px;
}

html[lang="en"] { --font: var(--font-en); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* Offset vertically, never horizontally: a negative inline-start flips to a
   positive offset under RTL and drags the document thousands of px wide. */
.skip {
  position: absolute; top: 0; inset-inline-start: 12px; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip:focus { transform: translateY(0); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 18px rgba(11,123,174,.28); }
.btn-primary:hover { background: var(--blue-800); box-shadow: 0 10px 26px rgba(11,123,174,.34); }

.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--grey-200); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--grey-300); box-shadow: var(--shadow-md); }

.btn-white { background: #fff; color: var(--blue-800); box-shadow: 0 8px 24px rgba(0,0,0,.16); font-variant-numeric: tabular-nums; }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- nav ---------- */
.nav-wrap {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 16px 24px;
  transition: padding .25s ease;
}
.nav-wrap.scrolled { padding: 8px 24px; }
.nav {
  max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-pill);
  padding: 9px 9px 9px 20px;
  box-shadow: var(--shadow-nav);
}
html[dir="rtl"] .nav { padding: 9px 20px 9px 9px; }

.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { width: 40px; }
.nav-brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.nav-brand-txt b { font-size: .95rem; font-weight: 700; color: var(--blue-800); }
.nav-brand-txt i { font-size: .95rem; font-style: normal; font-weight: 700; color: var(--ink); }
html[lang="en"] .nav-brand-txt { flex-direction: row; gap: 5px; align-items: baseline; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 500; color: var(--grey-700);
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--grey-100); color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 600; color: var(--grey-700);
  border: 1px solid var(--grey-200);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lang-btn:hover { background: var(--grey-100); color: var(--ink); border-color: var(--grey-300); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- shared section furniture ---------- */
.section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2, .cap-head h2, .certs-copy h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-block: 14px 16px; }
.sec-sub { color: var(--grey-700); font-size: 1.02rem; }

.pill {
  display: inline-block; padding: 6px 16px; border-radius: var(--r-pill);
  background: var(--grey-100); color: var(--grey-700);
  font-size: .8rem; font-weight: 600;
}
.pill-dark { background: rgba(255,255,255,.09); color: var(--grey-300); }
.accent { color: var(--blue-700); }
.eyebrow { display: block; font-size: .82rem; font-weight: 600; color: var(--grey-500); letter-spacing: .04em; margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { padding: 148px 0 56px; background: linear-gradient(180deg, var(--grey-50) 0%, var(--white) 78%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5.4vw, 3.55rem); letter-spacing: -.035em; text-wrap: balance; }
.hero-copy h1 span { display: block; }
.grad {
  background: linear-gradient(100deg, var(--blue-700) 0%, var(--blue-500) 55%, var(--gold-500) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-block: 20px 30px; font-size: 1.07rem; color: var(--grey-700); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media > img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: var(--grey-100);
}
.hero-chip {
  position: absolute; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--grey-200); border-radius: var(--r-md);
  padding: 11px 17px; box-shadow: var(--shadow-md);
}
.hero-chip b { display: block; font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-chip small { font-size: .75rem; color: var(--grey-500); }
.hero-chip-a { top: 12%; inset-inline-start: -18px; }
.hero-chip-b { bottom: 10%; inset-inline-end: -14px; }

/* trust bar */
.trustbar { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--grey-200); }
.trust-label { font-size: .8rem; font-weight: 600; color: var(--grey-500); flex-shrink: 0; }
.trust-logos { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; }
/* Real brand marks with fine Arabic lettering — grayscale renders them
   illegible at this size, so mute with opacity only. */
.trust-logos img {
  height: 40px; width: auto; opacity: .8;
  transition: opacity .25s ease;
}
.trust-logos img:hover { opacity: 1; }

/* ---------- stats ---------- */
.stats { padding: 20px 0 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--grey-50); border: 1px solid var(--grey-200);
  border-radius: var(--r-md); padding: 26px 24px;
}
.stat b { display: block; font-size: 2.15rem; font-weight: 700; letter-spacing: -.03em; color: var(--blue-800); font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--gold-500); }
.stat span { font-size: .88rem; color: var(--grey-700); }

/* ---------- problem ---------- */
.problem { background: var(--white); }
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.prob-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.prob-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prob-img { background: var(--grey-100); aspect-ratio: 16/9; overflow: hidden; }
.prob-img img { width: 100%; height: 100%; object-fit: cover; }
.prob-body { padding: 22px 24px 26px; }
.prob-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.prob-body p { font-size: .93rem; color: var(--grey-700); }

.prob-ico, .dfeat-ico {
  display: block; width: 26px; height: 26px; margin-bottom: 12px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.ico-weight { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C69B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a3 3 0 0 1 3 3H9a3 3 0 0 1 3-3Z'/%3E%3Cpath d='M6.5 6h11l2.2 13a2 2 0 0 1-2 2.3H6.3a2 2 0 0 1-2-2.3L6.5 6Z'/%3E%3C/svg%3E"); }
.ico-spec   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325AAE1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E"); }
.ico-light  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC0EC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m13 2-9 12h7l-1 8 9-12h-7l1-8Z'/%3E%3C/svg%3E"); }
.ico-shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C69B3C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ico-wrench { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC0EC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0 5 5l-9.4 9.4a2.1 2.1 0 0 1-3-3l9.4-9.4a4 4 0 0 0-2-2Z'/%3E%3Cpath d='M14.7 6.3 18 3'/%3E%3C/svg%3E"); }

.chip-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.chip-cloud li {
  padding: 7px 16px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--grey-200);
  font-size: .84rem; color: var(--grey-700); box-shadow: var(--shadow-sm);
}
.chip-cloud li::before { content: "✕"; color: #E0576B; font-size: .72rem; margin-inline-end: 7px; }

/* ---------- dark solution panel ---------- */
.section-dark-wrap { padding: 24px 0 96px; }
.dark-panel {
  background: radial-gradient(120% 130% at 82% 8%, #1D242C 0%, var(--ink) 58%);
  border-radius: var(--r-xl); padding: 56px 48px 48px; color: #fff;
  position: relative; overflow: hidden;
}
.dark-panel::after {
  content: ""; position: absolute; inset-inline-end: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,170,225,.20) 0%, transparent 68%);
  pointer-events: none;
}
.dark-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.dark-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-block: 16px 16px; }
.dark-copy h2 span { display: block; }
.brandword { color: var(--blue-500); }
.dark-copy > p { color: var(--grey-300); font-size: .98rem; max-width: 44ch; }
.dark-media img { width: 100%; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0,0,0,.5); }

.dark-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 52px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.10);
  position: relative; z-index: 1;
}
.dfeat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.dfeat p { font-size: .89rem; color: var(--grey-500); }
.dark-cta { text-align: center; margin-top: 44px; position: relative; z-index: 1; }

/* ---------- products (asymmetric grid) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.prod {
  grid-column: span 2;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.prod:nth-child(7), .prod:nth-child(8) { grid-column: span 3; }
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--grey-300); }
.prod-txt { padding: 22px 24px 18px; }
.prod-txt h3 { font-size: 1.06rem; margin-bottom: 7px; }
.prod-txt p { font-size: .89rem; color: var(--grey-700); }
.prod-img { margin-top: auto; background: var(--grey-100); aspect-ratio: 16/9; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod:hover .prod-img img { transform: scale(1.045); }

/* ---------- waste ---------- */
.waste { background: var(--grey-50); }
.waste-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.wcard {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--r-lg); padding: 18px 18px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.wcard-img { background: var(--grey-100); border-radius: var(--r-md); aspect-ratio: 4/3; overflow: hidden; margin-bottom: 18px; }
.wcard-img img { width: 100%; height: 100%; object-fit: cover; }
.wcard h3 { font-size: 1.02rem; margin-bottom: 7px; padding-inline: 6px; }
.wcard p { font-size: .88rem; color: var(--grey-700); padding-inline: 6px; }

/* ---------- capabilities ---------- */
.cap-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.cap-list { display: flex; flex-direction: column; gap: 2px; }
.cap-list li { padding: 13px 0; border-bottom: 1px solid var(--grey-200); font-weight: 600; font-size: .96rem; display: flex; align-items: center; gap: 12px; }
.cap-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-500); flex-shrink: 0;
}
.cap-list li:nth-child(even)::before { background: var(--gold-500); }

.mach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.mach { border-radius: var(--r-lg); overflow: hidden; background: var(--grey-100); box-shadow: var(--shadow-sm); position: relative; }
.mach img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.mach:hover img { transform: scale(1.05); }
.mach figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 18px 14px;
  background: linear-gradient(to top, rgba(14,17,22,.88), transparent);
  color: #fff; font-size: .85rem;
}

/* ---------- projects ---------- */
.projects { background: var(--grey-50); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: var(--gap); }
.proj { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--grey-200); box-shadow: var(--shadow-sm); }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.proj:hover img { transform: scale(1.06); }
.proj figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 30px 18px 16px;
  background: linear-gradient(to top, rgba(14,17,22,.9), transparent);
  color: #fff; font-size: .9rem; font-weight: 600;
}

/* ---------- certs ---------- */
.certs-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.vision { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--grey-200); }
.vision img { width: 92px; flex-shrink: 0; }
.vision p { font-size: .92rem; color: var(--grey-700); font-weight: 600; }

.certs-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.certs-strip figure {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r-md);
  padding: 12px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.certs-strip figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Certificates and licences are mixed portrait/landscape scans — contain
   keeps each document whole rather than cropping the landscape ones blank. */
.certs-strip img {
  width: 100%; aspect-ratio: 3/4; object-fit: contain;
  border-radius: var(--r-sm); background: var(--white);
}
.certs-strip figcaption { margin-top: 9px; font-size: .76rem; font-weight: 600; color: var(--grey-700); text-align: center; }

/* ---------- clients marquee ---------- */
.clients { padding-bottom: 96px; }
.marquee {
  overflow: hidden; padding: 8px 0 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: slide 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 52px; width: auto; opacity: .82; transition: opacity .25s ease; }
.marquee-track img:hover { opacity: 1; }

/* The track is laid out from the container's inline-start, so it overflows
   left under LTR and right under RTL. Each direction therefore has to travel
   the opposite way — reusing one keyframe (even reversed) walks the viewport
   off the end of the track and leaves a long blank stretch. */
@keyframes slide     { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
html[dir="rtl"] .marquee-track { animation-name: slide-rtl; }

.countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.countries li {
  padding: 8px 18px; border-radius: var(--r-pill);
  background: var(--grey-50); border: 1px solid var(--grey-200);
  font-size: .87rem; font-weight: 500; color: var(--grey-700);
}
.countries li:first-child { background: var(--blue-700); border-color: var(--blue-700); color: #fff; font-weight: 600; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 0 96px; }
.cta {
  position: relative; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 45%, var(--blue-600) 100%);
  border-radius: var(--r-xl); padding: 92px 40px 64px;
  box-shadow: 0 24px 60px rgba(11,123,174,.28);
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset-inline-start: -80px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,155,60,.30) 0%, transparent 68%);
}
.cta-float {
  position: absolute; top: -46px; inset-inline-start: 50%; transform: translateX(-50%);
  width: 190px; border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.3); border: 4px solid #fff;
}
html[dir="rtl"] .cta-float { transform: translateX(50%); }
.cta-float img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); position: relative; }
.cta > p { margin: 14px auto 30px; max-width: 52ch; color: rgba(255,255,255,.9); font-size: 1rem; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--grey-200); padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; }
.foot-brand img { width: 56px; margin-bottom: 14px; }
.foot-name b { display: block; font-size: 1.02rem; color: var(--ink); }
.foot-name span { display: block; font-size: .85rem; color: var(--grey-500); margin-top: 4px; }
.foot-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); margin-bottom: 16px; font-weight: 600; }
html[dir="rtl"] .foot-col h4 { text-transform: none; letter-spacing: 0; }
.foot-col a { display: block; font-size: .89rem; color: var(--grey-700); padding: 5px 0; transition: color .18s ease; }
.foot-col a:hover { color: var(--blue-800); }

/* Contact lines: icon beside the value. Flex follows page direction, so the
   icon sits on the leading edge in both LTR and RTL; only the value itself is
   forced to LTR. Beats the plain `.foot-col a { display:block }` on
   specificity, otherwise the icon would stack above the text. */
.foot-col a.foot-ln { display: flex; align-items: center; gap: 9px; }
.foot-ln svg {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: currentColor; opacity: .65;
  transition: opacity .18s ease;
}
.foot-col a.foot-ln:hover svg { opacity: 1; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--grey-200);
  font-size: .82rem; color: var(--grey-500);
}

/* ---------- reveal on scroll ----------
   Progressive enhancement: content is visible by default and only starts
   hidden once JS has confirmed IntersectionObserver support and added
   .js-reveal. If the script fails to load or errors, nothing disappears. */
.js-reveal .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.8,.3,1), transform .6s cubic-bezier(.22,.8,.3,1);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-chip-a { inset-inline-start: 10px; }
  .hero-chip-b { inset-inline-end: 10px; }
  .dark-grid { grid-template-columns: 1fr; }
  .cap-head { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .certs-grid { grid-template-columns: 1fr; gap: 40px; }
  .mach-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border: 1px solid var(--grey-200); border-radius: var(--r-lg);
    padding: 12px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav { position: relative; }
  .burger { display: flex; }
  .nav-actions .btn { display: none; }

  .section { padding: 68px 0; }
  .hero { padding-top: 128px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .prob-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .prod, .prod:nth-child(7), .prod:nth-child(8) { grid-column: span 1; }
  .waste-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-features { grid-template-columns: 1fr; gap: 26px; }
  .dark-panel { padding: 40px 26px 36px; }
  .proj-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .certs-strip { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 620px) {
  .shell { padding-inline: 18px; }
  .hero-chip { display: none; }
  .prod-grid, .waste-grid, .proj-grid, .mach-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-auto-rows: 200px; }
  .certs-strip { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .cta { padding: 80px 22px 48px; }
  .trustbar { gap: 20px; }
  .trust-logos { gap: 24px; }
  .trust-logos img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
