/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --fb: #1877f2;
  --li: #0a66c2;
  --ig: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  --navy: #0b2f5b;
  --blue: #0d4a8a;
  --orange: #f47920;
  --orange-dark: #d9630f;
  --orange-soft: #fff3ea;
  --wa: #25d366;
  --wa-dark: #1da851;

  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --line: #e6e9ef;
  --text: #1c2533;
  --muted: #5b6575;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 47, 91, 0.06), 0 2px 8px rgba(11, 47, 91, 0.05);
  --shadow: 0 10px 30px rgba(11, 47, 91, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Inter", sans-serif;
}
:lang(ar) {
  --font-body: "Noto Kufi Arabic", "Tahoma", sans-serif;
  --font-display: "Noto Kufi Arabic", "Tahoma", sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ─── Layout utilities ───────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-compact { padding-bottom: 72px; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag::before, .section-tag::after { content: ""; width: 24px; height: 2px; background: currentColor; }
.about-content .section-tag::after { display: none; }
:lang(ar) .section-tag, :lang(ar) .eyebrow { letter-spacing: 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
:lang(ar) .section-title { text-transform: none; line-height: 1.4; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-subtitle { color: var(--muted); font-size: 1.05rem; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background var(--ease) 0.2s, color var(--ease) 0.2s, border-color var(--ease) 0.2s, transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(244, 121, 32, 0.28); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-ghost { color: var(--navy); background: var(--bg-soft); }
.btn-ghost:hover { background: var(--line); }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* ─── Top bar ───────────────────────────────────────────────────────────────── */
.topbar { border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-contacts { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; direction: ltr; transition: color 0.2s; }
.topbar-item svg { width: 15px; height: 15px; color: var(--orange); }
.topbar-item:hover { color: var(--navy); }

.lang-switcher { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-btn {
  min-width: 36px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.active { background: var(--navy); color: #fff; }

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-logo img { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-showroom { margin-inline-start: auto; margin-inline-end: -18px; }
.nav-links a:not(.btn) {
  position: relative;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
  padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
/* Full-width photo slider with the headline overlaid on a navy gradient */
#hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: min(720px, calc(100svh - 116px));
  background: var(--navy); color: #fff;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero-slides img.active { opacity: 1; transform: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 30, 60, 0.92) 0%, rgba(8, 30, 60, 0.72) 42%, rgba(8, 30, 60, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 30, 60, 0.75) 0%, transparent 35%);
}
[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(8, 30, 60, 0.92) 0%, rgba(8, 30, 60, 0.72) 42%, rgba(8, 30, 60, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 30, 60, 0.75) 0%, transparent 35%);
}

.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-block: 88px 40px; }
.hero-content { max-width: 620px; }
#hero .eyebrow { color: #ffc861; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--orange); }
:lang(ar) .hero-title { text-transform: none; line-height: 1.35; font-size: clamp(2rem, 5vw, 3.3rem); }

.hero-description { font-size: 1.1rem; color: #d7e0ec; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 56px; }
.hero-caption {
  display: flex; flex-direction: column; align-items: flex-start; text-align: start;
  padding: 8px 14px; border-radius: 10px; border-inline-start: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.1); color: #fff; backdrop-filter: blur(6px);
  font-weight: 600; font-size: 0.9rem; line-height: 1.3; transition: background 0.2s;
}
.hero-caption:hover { background: rgba(255, 255, 255, 0.2); }
.hero-caption small { font-size: 0.68rem; font-weight: 700; color: #ffc861; text-transform: uppercase; letter-spacing: 0.1em; }
:lang(ar) .hero-caption small { letter-spacing: 0; }
.hero-nav { display: flex; align-items: center; gap: 12px; }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; font-size: 1.6rem; line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
[dir="rtl"] .hero-arrow { transform: scaleX(-1); }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.5); transition: width 0.3s, background 0.3s; }
.hero-dots button.active { width: 24px; background: var(--orange); }

.hero-statbar { background: rgba(255, 255, 255, 0.97); color: var(--text); }
.hero-stats { display: flex; padding-block: 22px; }
.stat { display: flex; flex-direction: column-reverse; flex: 1; padding-inline-end: 20px; }
.stat + .stat { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.stat-value { font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--navy); text-align: start; }
.stat-value span { color: var(--orange); }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ─── Engagements ────────────────────────────────────────────────────────────── */
.features-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.feature:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); transition: background 0.25s, color 0.25s; }
.feature:hover .feature-icon { background: var(--orange); color: #fff; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 4px; }
.feature p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* ─── Catalogue ──────────────────────────────────────────────────────────── */
.universes-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--navy); text-transform: uppercase; margin-bottom: 18px; }
:lang(ar) .universes-title { text-transform: none; font-size: 1.25rem; }
.universes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.universe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); text-align: start;
}
.universe img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.universe:hover img { transform: scale(1.06); }
.universe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 30, 60, 0.88) 0%, rgba(8, 30, 60, 0.15) 60%); transition: background 0.3s; }
.universe:hover::after { background: linear-gradient(0deg, rgba(8, 30, 60, 0.92) 0%, rgba(8, 30, 60, 0.35) 70%); }
.universe-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 18px; color: #fff; }
.universe-icon { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); }
.universe-icon svg { width: 22px; height: 22px; }
.universe-body strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
:lang(ar) .universe-body strong { text-transform: none; font-size: 1rem; line-height: 1.5; }
.universe-body small { font-size: 0.8rem; color: #ffc861; font-weight: 600; }

.catalogue-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.catalogue-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-center { justify-content: center; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 0.86rem; font-weight: 600; color: var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip svg { width: 17px; height: 17px; color: var(--orange); }
.chip small { font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 99px; padding: 1px 7px; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.active svg { color: #ffc861; }
.chip.active small { background: rgba(255, 255, 255, 0.16); color: #fff; }

.search { position: relative; display: block; }
.search-icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-icon svg { width: 17px; height: 17px; }
.search input {
  width: 240px; padding: 9px 14px; padding-inline-start: 38px;
  border: 1px solid #d5dae2; border-radius: 999px; background: #fff; font-size: 0.9rem;
}
.search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.15); }
.catalogue-empty { text-align: center; color: var(--muted); padding: 48px 0; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media.contain { background: #fff; border-bottom: 1px solid var(--line); }
.product-media.contain img { object-fit: contain; padding: 12px 12px 20px; }
.product-icon {
  position: absolute; inset-inline-start: 12px; bottom: -1px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: #fff; color: var(--orange);
  border-radius: 10px 10px 0 0;
}
.product-icon svg { width: 24px; height: 24px; }
.product-count {
  position: absolute; inset-inline-end: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  background: rgba(11, 47, 91, 0.78); color: #fff; font-size: 0.75rem; font-weight: 700; direction: ltr;
}
.product-count svg { width: 13px; height: 13px; }
/* No photo yet: centred illustrated icon */
.product-media.no-photo { display: grid; place-items: center; background: linear-gradient(160deg, #f6f7f9, #eceff3); }
.product-media.no-photo .product-icon { position: static; width: 72px; height: 72px; border-radius: 50%; color: var(--navy); box-shadow: var(--shadow-sm); }
.product-media.no-photo .product-icon svg { width: 36px; height: 36px; }
.product-card:hover .product-media.no-photo .product-icon { color: var(--orange); }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.product-cat {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.product-cat svg { width: 16px; height: 16px; }
:lang(ar) .product-cat { letter-spacing: 0; }
.product-body h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.12;
  color: var(--navy); text-transform: uppercase; margin-bottom: 8px;
}
:lang(ar) .product-body h3 { text-transform: none; font-size: 1rem; line-height: 1.5; }
.product-body p { font-size: 0.87rem; color: var(--muted); margin-bottom: 12px; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge {
  font-size: 0.72rem; font-weight: 700; line-height: 1.2;
  padding: 4px 9px; border-radius: 6px;
  background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line);
}
.badge-warranty { background: #eaf6ee; border-color: #cfe9d8; color: #1d7a43; }
.badge-price { background: var(--orange-soft); border-color: #fbd9bf; color: var(--orange-dark); }
.product-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-doc { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; margin-bottom: 18px; }
.product-doc svg { width: 17px; height: 17px; color: var(--orange); }
.product-doc:hover { color: var(--orange); }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--orange); }
.product-link .arrow { transition: transform 0.2s; }
.product-link:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .product-link .arrow { transform: scaleX(-1); }
[dir="rtl"] .product-link:hover .arrow { transform: scaleX(-1) translateX(4px); }
.quote-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 700; color: var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.quote-toggle svg { width: 15px; height: 15px; }
.quote-toggle:hover { border-color: var(--navy); }
.quote-toggle.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── Brands ──────────────────────────────────────────────────────────────── */
/* Continuous logo strip; falls back to a wrapped row when motion is reduced */
.brands-marquee { overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.brands-track.animated { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 40s linear infinite; }
.brands-marquee:hover .brands-track.animated { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.brand {
  flex: 0 0 200px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 96px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1.6rem; font-weight: 800; color: #3b4452; direction: ltr;
  filter: grayscale(1); opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.brand:hover { filter: none; opacity: 1; box-shadow: var(--shadow-sm); }
.brand-gibidi { font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.12em; color: #111; }
.brand-beninca { font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.06em; color: #1a1a1a; font-style: italic; }
.brand-somfy { font-weight: 700; color: #d48f00; letter-spacing: 0.02em; font-size: 1.8rem; }
.brand-bft span { font-family: "Barlow Condensed", sans-serif; color: #fff; background: #e30613; padding: 2px 14px; border-radius: 6px; }
.brand-sommer { font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.1em; color: #c8102e; }
.brand-dahua { font-style: italic; color: #e2231a; text-transform: lowercase; }
.brand-hikvision { font-size: 1.3rem; font-style: italic; color: #d71920; letter-spacing: 0.04em; }
.brand-teckentrup { font-weight: 700; color: #00519e; letter-spacing: -0.01em; text-transform: lowercase; }
.brand-zkteco { font-family: "Barlow Condensed", sans-serif; font-style: italic; color: #1b8a3c; font-size: 1.8rem; }
.brand-obo { color: var(--navy); font-family: "Barlow Condensed", sans-serif; font-size: 1.9rem; }
.brand-obo small { font-size: 0.75rem; color: var(--orange); letter-spacing: 0.15em; align-self: flex-end; margin-bottom: 30px; }

/* ─── Services ───────────────────────────────────────────────────────────── */
/* Alternating image / text rows */
.services-rows { display: grid; gap: 28px; list-style: none; }
.service {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.service:nth-child(even) .service-visual { order: 2; }
.service-visual { position: relative; align-self: stretch; min-height: 320px; }
.service-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body { position: relative; padding: 40px 48px; }
.service-num { position: absolute; inset-inline-end: 28px; top: 20px; font-family: "Barlow Condensed", sans-serif; font-size: 3.6rem; font-weight: 800; color: var(--line); line-height: 1; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); margin-bottom: 18px; }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--navy); text-transform: uppercase; margin-bottom: 10px; }
:lang(ar) .service h3 { text-transform: none; font-size: 1.25rem; line-height: 1.5; }
.service p { color: var(--muted); margin-bottom: 22px; max-width: 440px; }

.repair {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px;
  margin-top: 40px; padding: 40px;
  background: var(--navy); color: #d7e0ec; border-radius: var(--radius-lg);
  overflow: hidden;
}
.repair .eyebrow { color: #ffc861; }
.repair-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.1; color: #fff; text-transform: uppercase; margin-bottom: 12px; }
:lang(ar) .repair-title { text-transform: none; line-height: 1.4; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.repair-text { margin-bottom: 18px; }
.repair-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 20px; }
.repair-list li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: #fff; font-size: 0.93rem; }
.repair-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: #7ddc8f; }
.repair-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.repair-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-size: 0.82rem; font-weight: 600; color: #fff; }
.repair-badges svg { width: 15px; height: 15px; color: #ffc861; }
.repair-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.repair-visual { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); transform: rotate(2deg); }
[dir="rtl"] .repair-visual { transform: rotate(-2deg); }
.repair-visual img { width: 100%; height: auto; }

.steps-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--navy); text-transform: uppercase; text-align: center; margin: 56px 0 24px; }
:lang(ar) .steps-title { text-transform: none; font-size: 1.3rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; font-weight: 800;
  box-shadow: 0 0 0 6px var(--orange-soft);
}
.step::after { content: ""; position: absolute; top: 19px; inset-inline: 56px -10px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h4 { color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* ─── Projects ───────────────────────────────────────────────────────────── */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery-item {
  position: relative; display: block; width: 100%;
  margin-bottom: 14px; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.gallery-item img { width: 100%; height: auto; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(8, 25, 48, 0.85));
  color: #fff; font-weight: 600; font-size: 0.88rem; text-align: start;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-caption { opacity: 1; transform: none; } }

.gallery-more { text-align: center; margin-top: 10px; }
.videos-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--navy); text-transform: uppercase; margin: 48px 0 18px; }
:lang(ar) .videos-title { text-transform: none; font-size: 1.3rem; }
.videos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.video-card { display: flex; flex-direction: column; gap: 8px; text-align: start; scroll-snap-align: start; }
.video-thumb { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: #0c1626; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.5s var(--ease); }
.video-card:hover .video-thumb img { opacity: 1; transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.video-play svg { width: 24px; height: 24px; margin-inline-start: 3px; }
.video-title { font-size: 0.87rem; font-weight: 600; color: var(--navy); line-height: 1.35; }

/* ─── Product sheet (dialog) ─────────────────────────────────────────────── */
dialog { border: none; padding: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 20, 38, 0.72); backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.sheet {
  width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; border-radius: var(--radius-lg); background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); overflow: auto;
}
.sheet[open] { animation: sheet-in 0.3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sheet-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.sheet-head .product-cat { margin: 0; }
.sheet-nav { display: flex; gap: 6px; }
.sheet-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.4rem; line-height: 1; color: var(--navy); transition: background 0.2s, color 0.2s; }
.sheet-btn:hover { background: var(--navy); color: #fff; }
[dir="rtl"] .sheet-nav [data-sheet-go] { transform: scaleX(-1); }
.sheet-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 24px; }
.sheet-gallery { position: sticky; top: 86px; align-self: start; }
.sheet-stage { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #0c1626; }
.sheet-stage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.sheet-stage.contain, .sheet-stage.contain img { background: #fff; object-fit: contain; }
.sheet-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.sheet-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
.sheet-thumbs button { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.sheet-thumbs button.active, .sheet-thumbs button:hover { opacity: 1; border-color: var(--orange); }
.sheet-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); color: #fff; }
.thumb-play svg { width: 22px; height: 22px; }
.sheet-info h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.08; color: var(--navy); text-transform: uppercase; margin-bottom: 12px; }
:lang(ar) .sheet-info h2 { text-transform: none; line-height: 1.45; font-size: 1.5rem; }
.sheet-desc { color: var(--muted); margin-bottom: 8px; }
.sheet-info h3 { font-size: 0.78rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin: 20px 0 10px; }
:lang(ar) .sheet-info h3 { letter-spacing: 0; font-size: 0.9rem; }
.specs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 38% 1fr; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { padding: 9px 12px; background: var(--bg-soft); font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.specs dd { padding: 9px 12px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.sheet-features { display: grid; gap: 6px; }
.sheet-features li { display: flex; gap: 8px; font-size: 0.92rem; }
.sheet-features svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--orange); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.swatches li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 500; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.measure {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  margin: 22px 0 18px; padding: 16px; border: 1px dashed #c9d1dc; border-radius: var(--radius); background: var(--bg-soft);
}
.measure legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.measure legend svg { width: 18px; height: 18px; color: var(--orange); }
.measure label { flex: 1 1 110px; }
.measure label span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.measure input { width: 100%; padding: 10px 12px; border: 1px solid #d5dae2; border-radius: 8px; background: #fff; }
.measure input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.15); }
.measure-x { padding-bottom: 10px; font-weight: 700; color: var(--muted); }
.measure p { flex-basis: 100%; font-size: 0.8rem; color: var(--muted); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sheet-actions .btn { flex: 1 1 auto; padding: 12px 18px; }

/* ─── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox {
  width: 100%; height: 100%; margin: 0; background: rgba(6, 14, 28, 0.94);
  display: none; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lb-stage { grid-column: 2; grid-row: 1; height: 100%; min-height: 0; display: grid; place-items: center; padding: 56px 0 12px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100dvh - 150px); border-radius: 8px; object-fit: contain; }
.lb-caption {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 10px 16px 22px; color: #fff; font-weight: 600; text-align: center;
}
.lb-count { color: #9fb0c6; font-weight: 500; font-size: 0.85rem; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.1); font-size: 2rem; line-height: 1; transition: background 0.2s; justify-self: center; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
[dir="rtl"] .lb-prev, [dir="rtl"] .lb-next { transform: scaleX(-1); }
.lb-btn[hidden] { display: none; }

/* ─── About ──────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; }
.about-photo {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.about-photo video { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; inset-inline-end: -20px; bottom: -24px;
  background: var(--orange); color: #fff;
  border-radius: var(--radius-lg); padding: 18px 24px; text-align: center;
  box-shadow: 0 12px 28px rgba(244, 121, 32, 0.3);
}
.about-badge strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; line-height: 1; }
.about-badge span { font-size: 0.82rem; font-weight: 600; }
.about-text { color: var(--muted); margin-bottom: 14px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 28px; }
.value { display: flex; gap: 12px; }
.value-check { flex-shrink: 0; color: var(--orange); margin-top: 2px; }
.value-check svg { width: 22px; height: 22px; }
.value strong { display: block; color: var(--navy); font-size: 0.97rem; }
.value p { font-size: 0.87rem; color: var(--muted); }

/* ─── Tips ───────────────────────────────────────────────────────────────── */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.25s; }
.tip:hover { box-shadow: var(--shadow); }
.tip > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tip-body { padding: 22px; }
.tip h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; color: var(--navy); text-transform: uppercase; margin-bottom: 8px; }
:lang(ar) .tip h3 { text-transform: none; font-size: 1.08rem; line-height: 1.5; }
.tip-body > p { font-size: 0.92rem; color: var(--muted); }
.tip summary { display: inline-flex; margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--orange); cursor: pointer; list-style: none; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary:hover { color: var(--orange-dark); }
.tip details .less, .tip details[open] .more { display: none; }
.tip details[open] .less { display: inline; }
.tip details ul { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tip details li { display: flex; gap: 8px; font-size: 0.88rem; }
.tip details svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--orange); }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.contact-info, .contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
}
.contact-list { display: grid; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; background: var(--orange-soft); color: var(--orange);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-icon-wa { background: #e8f9ef; color: var(--wa-dark); }
.contact-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
:lang(ar) .contact-label { letter-spacing: 0; }
.contact-value { display: block; font-weight: 600; color: var(--navy); line-height: 1.5; }
a.contact-value:hover { color: var(--orange); }
[dir="rtl"] a.contact-value[dir="ltr"] { text-align: right; }

.contact-social { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-link {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: var(--navy);
  box-shadow: 0 4px 12px rgba(11, 47, 91, 0.15);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(11, 47, 91, 0.25); }
[data-social="facebook"].social-link { background: var(--fb); }
[data-social="instagram"].social-link { background: var(--ig); }
[data-social="linkedin"].social-link { background: var(--li); }
[data-social="whatsapp"].social-link { background: var(--wa); }
[data-social="email"].social-link { background: var(--orange); }

.form-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); text-transform: uppercase; margin-bottom: 20px; }
:lang(ar) .form-title { text-transform: none; font-size: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #d5dae2; border-radius: 8px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.15);
}
.form-error { min-height: 1.2em; color: #c0392b; font-size: 0.88rem; margin-bottom: 8px; }
.brand-name { text-transform: uppercase; letter-spacing: 0.02em; }
.form-error.is-info { color: var(--muted); }
.form-error.is-success { color: #1e7e46; font-weight: 600; }
.form-actions .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 200px; }

.showroom { position: relative; margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-soft); }
.showroom img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.showroom figcaption {
  position: absolute; inset: auto 0 0; padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(8, 25, 48, 0.85)); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.field-hint { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.quote-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-chips li { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--orange-soft); font-size: 0.84rem; }
.link-btn { padding: 6px 4px 6px 12px; font-weight: 600; color: var(--navy); }
[dir="rtl"] .link-btn { padding: 6px 12px 6px 4px; }
.link-btn:hover { text-decoration: underline; }
.chip-x { width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; color: var(--muted); }
.chip-x:hover { color: #c0392b; }

.map-wrap { position: relative; margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(0.2); }
.map-link { position: absolute; inset-inline-end: 16px; bottom: 16px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
#footer { position: relative; background: var(--bg-soft); color: var(--muted); padding-top: 56px; }
#footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue) 50%, var(--orange)); }

.footer-cta {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 32px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #d7e0ec;
  box-shadow: 0 18px 40px rgba(11, 47, 91, 0.22);
}
/* Signal-wave rings echoing the logo */
.footer-cta::after {
  content: ""; position: absolute; inset-inline-end: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(254, 184, 1, 0.18) 22px 30px);
  pointer-events: none;
}
.footer-cta-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: #fff; text-transform: uppercase; line-height: 1.1; }
:lang(ar) .footer-cta-title { text-transform: none; font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.5; }
.footer-cta-text { margin-top: 4px; }
.footer-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-block: 56px 48px; }
.footer-brand img { height: 84px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-follow { margin: 22px 0 10px; font-size: 0.8rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em; }
:lang(ar) .footer-follow { letter-spacing: 0; }
.footer-col h4 { position: relative; font-size: 0.8rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 12px; margin-bottom: 18px; }
.footer-col h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
:lang(ar) .footer-col h4 { letter-spacing: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-links a { position: relative; display: inline-block; }
.footer-links a::before {
  content: "›"; position: absolute; inset-inline-start: -4px; opacity: 0; color: var(--orange); font-weight: 700;
  transition: opacity 0.2s, inset-inline-start 0.2s;
}
[dir="rtl"] .footer-links a::before { content: "‹"; }
.footer-links a:hover { padding-inline-start: 14px; }
.footer-links a:hover::before { opacity: 1; inset-inline-start: 0; }

.footer-contact li { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.footer-contact li + li { margin-top: 12px; }
.fc-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.fc-icon svg { width: 17px; height: 17px; }
.fc-phone { background: var(--orange); }
.fc-wa { background: var(--wa); }
.fc-landline { background: var(--navy); }
.fc-mail { background: #e8453c; }
.fc-pin { background: var(--blue); }
.fc-clock { background: #7a5af5; }
[dir="rtl"] .footer-contact a[dir="ltr"] { text-align: right; }

.footer-bottom { background: var(--navy); color: #b8c6da; font-size: 0.85rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.footer-tagline { font-family: var(--font-display); font-weight: 700; color: #ffc861; text-transform: uppercase; letter-spacing: 0.14em; }
:lang(ar) .footer-tagline { letter-spacing: 0; text-transform: none; }

/* ─── Quote bar ─────────────────────────────────────────────────────────── */
.quote-bar {
  position: fixed; inset-inline-start: 50%; bottom: 20px; z-index: 95;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 16px; border-radius: 14px;
  background: var(--navy); color: #fff; box-shadow: 0 14px 34px rgba(11, 47, 91, 0.35);
  animation: bar-in 0.3s var(--ease);
}
[dir="rtl"] .quote-bar { transform: translateX(50%); padding: 10px 16px 10px 10px; }
.quote-bar[hidden], .quote-field[hidden] { display: none; }
@keyframes bar-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.quote-bar-icon svg { width: 24px; height: 24px; color: #ffc861; }
.quote-bar-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 0.9rem; white-space: nowrap; }
.quote-bar-text span { font-size: 0.8rem; color: #b8c6da; }
.quote-bar-clear { font-size: 0.8rem; color: #b8c6da; text-decoration: underline; }
.quote-bar-clear:hover { color: #fff; }

/* ─── Floating buttons ───────────────────────────────────────────────────── */
/* Quick-action rail: colored tabs pinned to the screen edge, labels set vertically */
.side-rail {
  position: fixed; inset-inline-end: 0; top: 50%; z-index: 90; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.rail-tab {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 50px; padding: 14px 0 12px;
  border-start-start-radius: 12px; border-end-start-radius: 12px;
  color: #fff; background: var(--navy);
  box-shadow: -4px 6px 16px rgba(11, 47, 91, 0.22);
  transition: width 0.25s var(--ease), filter 0.2s;
}
.rail-tab:hover, .rail-tab:focus-visible { width: 60px; filter: brightness(1.08); }
.rail-tab svg { width: 22px; height: 22px; flex-shrink: 0; }
.rail-tab span { writing-mode: vertical-rl; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
:lang(ar) .rail-tab span { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.rail-quote { background: var(--orange); }
.rail-call { background: var(--navy); }
.rail-wa { background: var(--wa); }
.rail-fb { background: var(--fb); }
.rail-ig { background: var(--ig); }
#scroll-top {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
#scroll-top svg { width: 18px; height: 18px; }
#scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }

/* ─── Reveal animation ───────────────────────────────────────────────────── */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { transition: none; transform: none; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { padding: 28px; }
  .gallery { columns: 3 220px; }
  .features-list { grid-template-columns: 1fr 1fr; }
  .service-body { padding: 32px; }
  .nav-showroom { display: none; }
}

@media (max-width: 1024px) {
  .nav-links {
    position: absolute; top: 100%; inset-inline: 0; height: calc(100vh - 100%);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px 24px 32px;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 24px; padding: 14px; }
  .menu-toggle { display: flex; }
  .nav-showroom { display: inline-flex; margin: 24px 0 0; }
  .nav-showroom + .nav-cta { margin-top: 12px; }
  .topbar-landline { display: none; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(0deg, rgba(8, 30, 60, 0.92) 10%, rgba(8, 30, 60, 0.6) 100%); }
  .universes { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-visual { order: 0; }
  .service-visual { min-height: 0; aspect-ratio: 16 / 9; }
  .tips-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .about-grid { gap: 56px; }
  .about-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .about-badge { inset-inline-end: 16px; }
  .repair { grid-template-columns: 1fr; padding: 28px; }
  .repair-visual { max-width: 360px; transform: none; }
  [dir="rtl"] .repair-visual { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .step::after { display: none; }
  .sheet-grid { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .sheet-gallery { position: static; }
  .catalogue-toolbar { flex-direction: column; align-items: stretch; }
  .catalogue-toolbar .chips { max-width: 100%; }
  .catalogue-tools, .search, .search input { width: 100%; }
  .search { flex: 1; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar-email { display: none; }
  .topbar-contacts { gap: 4px 14px; font-size: 0.8rem; }
  .nav-inner { height: 68px; }
  .nav-logo img { height: 48px; }
  #hero { min-height: 0; }
  .hero-inner { padding-block: 56px 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-controls { flex-direction: column; align-items: stretch; margin-top: 36px; }
  .hero-nav { justify-content: space-between; }
  .hero-stats { padding-block: 16px; }
  .features-list { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 18px; }
  .universes { gap: 10px; margin-bottom: 40px; }
  .universe { aspect-ratio: 4 / 5; }
  .universe-body { grid-template-columns: 1fr; padding: 12px; row-gap: 2px; }
  .universe-icon { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; }
  .universe-body strong { font-size: 1rem; }
  :lang(ar) .universe-body strong { font-size: 0.85rem; }
  .service-body { padding: 24px 20px; }
  .service h3 { font-size: 1.4rem; }
  .service-num { font-size: 2.6rem; inset-inline-end: 18px; top: 16px; }
  .stat-value { font-size: 2rem; }
  .stat { padding-inline-end: 12px; }
  .stat + .stat { padding-inline-start: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .chips-center { justify-content: flex-start; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px; }
  .product-body h3 { font-size: 1.05rem; }
  .product-body p { font-size: 0.82rem; }
  .product-cat { font-size: 0.66rem; }
  .badges { display: none; }
  .product-links { flex-direction: column; align-items: stretch; }
  .quote-toggle { justify-content: center; }
  .repair { padding: 22px 18px; }
  .repair-list { grid-template-columns: 1fr; }
  .repair-actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-caption { font-size: 0.78rem; padding: 20px 10px 8px; }
  .videos { grid-auto-columns: 62%; }
  .brand { height: 80px; font-size: 1.3rem; flex-basis: 160px; }
  .about-values, .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 22px; }
  .map-wrap iframe { height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 32px; }
  #footer { padding-top: 40px; }
  .footer-cta { padding: 24px 20px; }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
  .side-rail { gap: 4px; }
  .rail-tab { width: 40px; padding: 10px 0; }
  .rail-tab:hover, .rail-tab:focus-visible { width: 40px; }
  .rail-tab span { display: none; }
  .rail-tab svg { width: 20px; height: 20px; }
  #scroll-top { inset-inline-end: 12px; bottom: 12px; }
  .sheet { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .sheet .badges { display: flex; }
  .sheet-actions .btn { flex: 1 1 100%; }
  .specs div { grid-template-columns: 42% 1fr; }
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 70px; grid-row: auto; }
  .lb-prev { inset-inline-start: 16px; }
  .lb-next { inset-inline-end: 16px; }
  .quote-bar { bottom: 12px; gap: 10px; width: calc(100% - 76px); inset-inline-start: 12px; transform: none; }
  [dir="rtl"] .quote-bar { transform: none; }
  .quote-bar-icon { display: none; }
  .quote-bar-text { flex: 1; min-width: 0; }
  .quote-bar-clear { display: none; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}
