/* ============================================================
   SULTAN HEAVY EQUIPMENT — Core stylesheet
   Dark industrial / glassmorphism system
   ============================================================ */

:root {
  --ink: #08090a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.09);

  --accent: #f4c02a;
  --accent-ink: #14100a;

  /* dynamic scene gradient */
  --bg-inner: #5c4a12;
  --bg-mid: #1d1a10;
  --bg-outer: #08090a;

  --font-display: 'Anton', 'Tajawal', 'Inter', sans-serif;
  --font-body: 'Inter', 'Tajawal', sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --maxw: 1400px;
}

/* Theme variants driven by the category switcher */
body.theme-exc   { --bg-inner: #5c4a12; --bg-mid: #1d1a10; --bg-outer: #08090a; --accent: #f4c02a; --accent-ink: #14100a; }
body.theme-load  { --bg-inner: #5e3312; --bg-mid: #1e1410; --bg-outer: #08090a; --accent: #ff8a1f; --accent-ink: #180d02; }
body.theme-dump  { --bg-inner: #4a3212; --bg-mid: #1c1510; --bg-outer: #08090a; --accent: #e39a3c; --accent-ink: #1a1206; }
body.theme-dozer { --bg-inner: #544512; --bg-mid: #1d1a10; --bg-outer: #08090a; --accent: #f0c53a; --accent-ink: #16110a; }
body.theme-skid  { --bg-inner: #5a2a1c; --bg-mid: #1e1310; --bg-outer: #08090a; --accent: #ff6b4a; --accent-ink: #1c0c06; }
body.theme-fork  { --bg-inner: #123f2c; --bg-mid: #0d1c17; --bg-outer: #06090c; --accent: #48c98c; --accent-ink: #04160f; }
body.theme-eng   { --bg-inner: #17475f; --bg-mid: #0e1c24; --bg-outer: #06090c; --accent: #3fc9f5; --accent-ink: #04161d; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Fixed scene gradient sits behind everything.
   Two stacked layers cross-fade so the theme morph is perfectly smooth. */
.scene-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--bg-outer);
  transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: radial-gradient(circle at 50% 45%,
      var(--bg-inner) 0%,
      var(--bg-mid) 48%,
      var(--bg-outer) 100%);
}
.scene-layer.on { opacity: 1; }
/* Subtle grid texture over the gradient */
.scene-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  opacity: .5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Class rules that set `display` outrank the browser's [hidden] default, which
   would leave elements toggled off in JS still on screen — the email rows and
   filtered equipment cards both hit this. Make the attribute authoritative. */
[hidden] { display: none !important; }

/* Phone numbers and the USA street address are Western digits and Latin
   punctuation ("+1 (813) 368-4200") injected into whatever the current
   language's paragraph direction is. Left alone, the Unicode bidi algorithm
   reorders that punctuation once the surrounding text is RTL (Arabic) — the
   "+" jumps to the wrong end, groups swap places. Isolating these values in
   their own left-to-right run fixes it everywhere a number is shown, without
   touching the RTL layout around it. */
[data-cfg^="phone"], [data-cfg="whatsapp"], [data-cfg="address_usa"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
html[dir="rtl"] .display { font-weight: 900; line-height: 1.05; letter-spacing: 0; }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
html[dir="rtl"] .kicker { letter-spacing: 0.06em; }

.outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85);
  paint-order: stroke fill;
}
/* Arabic script has connected strokes — an outline treatment muddies it,
   so RTL uses a softened solid fill for the same hierarchy contrast. */
html[dir="rtl"] .outline {
  color: rgba(255, 255, 255, 0.42);
  -webkit-text-stroke: 0;
}

.muted { color: var(--muted); }

/* ---------- Dust particles ---------- */
#dust-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.dust {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.05) 70%);
  pointer-events: none;
}
@keyframes driftUp {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12%  { opacity: var(--peak, .35); }
  88%  { opacity: var(--peak, .35); }
  100% { transform: translateY(-108vh) translateX(46px) scale(.6); opacity: 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 4%;
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
.header.scrolled {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
/* Base size — kept small for admin.html, which still shows the cropped
   shield mark next to a text lockup (admin.css overrides it further). */
.logo-mark {
  width: 46px; height: 43px; flex: none;
  object-fit: contain;
  background: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55));
}
/* The public site's header and footer use the full lockup (logo-full.jpg —
   flags, machines and the whole SULTAN wordmark) instead of the cropped
   shield, so no separate text label runs next to it there. Both keyed off
   the same near-black ground as the page so no image edge shows. */
.header .logo-mark { width: 74px; height: 76px; }
.footer .logo-mark { width: 100px; height: 103px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo-text b {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}
html[dir="rtl"] .logo-text b { font-weight: 900; letter-spacing: 0; }
.logo-text span {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
}
html[dir="rtl"] .logo-text span { letter-spacing: 0.04em; }

.nav {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.35rem;
  border-radius: 100px;
}
.nav-item {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: background .3s ease, color .3s ease;
}
.nav-item:hover, .nav-item.active { background: var(--accent); color: var(--accent-ink); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 100px;
  padding: 0.62rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .3s ease, border-color .3s ease;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }

.contact-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s ease, background .3s ease;
}
.contact-btn:hover { background: rgba(0, 0, 0, 0.78); transform: translateY(-2px); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  cursor: pointer;
  place-items: center;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 9, 10, 0.94);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  color: var(--muted);
}
html[dir="rtl"] .drawer a { font-weight: 900; }
.drawer a:hover, .drawer a.active { color: var(--accent); }
.drawer-close {
  position: absolute; top: 1.6rem; inset-inline-end: 4%;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* ============================================================
   HOME HERO (no-scroll stage)
   ============================================================ */
body.stage { overflow: hidden; height: 100vh; }

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4%;
  padding-top: 5rem;
}
.hero-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

/* --- floating parts layers --- */
.parts-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.parts-fg { z-index: 110; }
.parts-bg { z-index: 0; }
.silhouette-layer { z-index: -1; }

.part {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5));
  will-change: transform;
}
.p1 { top: 24%; left: 28%; width: 132px; height: 132px; }
.p2 { top: 62%; left: 40%; width: 76px;  height: 76px; }
.p3 { top: 28%; left: 63%; width: 150px; height: 150px; }
.p4 { top: 13%; left: 49%; width: 92px;  height: 92px; }
.p5 { top: 76%; left: 19%; width: 88px;  height: 88px; }
.p6 { top: 46%; left: 76%; width: 112px; height: 112px; }
.p7 { top: 16%; left: 39%; width: 58px;  height: 58px;  opacity: .55; }
.p8 { top: 52%; left: 56%; width: 50px;  height: 50px;  opacity: .45; }
.p9 { top: 81%; left: 34%; width: 54px;  height: 54px;  opacity: .5; }

.silhouette {
  position: absolute;
  opacity: .07;
  filter: grayscale(1) brightness(2);
  will-change: transform;
}
.s1 { top: 6%;  left: 6%;  width: 240px; }
.s2 { top: 58%; left: 78%; width: 300px; }
.s3 { top: 74%; left: 10%; width: 200px; opacity: .05; }

/* --- centre showpiece --- */
.hero-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.4s ease-out .25s forwards;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 62%);
}
@keyframes fadeIn { to { opacity: 1; } }

/* The showpiece is a real photo held in a glass frame that tilts with the
   cursor. Framing (rather than cutting the machine out) keeps the source
   photos crisp and avoids halo artefacts on busy yard backgrounds. */
.showpiece-frame {
  position: relative;
  width: min(32vw, 400px);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 50px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 90px -30px color-mix(in srgb, var(--accent) 70%, transparent);
  background: #0d0f11;
  will-change: transform, opacity;
  transition: box-shadow .9s ease;
}
.showpiece-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.showpiece-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 8, 0.85) 0%, transparent 42%);
  pointer-events: none;
}
.showpiece-caption {
  position: absolute;
  inset-inline: 1.4rem;
  bottom: 1.15rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  pointer-events: none;
}
html[dir="rtl"] .showpiece-caption { font-weight: 900; letter-spacing: 0; }
.showpiece-caption::before {
  content: '';
  display: block;
  width: 34px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: .6rem;
  transition: background .8s ease;
}

/* --- left column --- */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  padding: 6rem 0;
  z-index: 100;
  max-width: 520px;
}
.hero-title { font-size: clamp(3rem, 6.2vw, 7rem); }
.hero-desc {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 400px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.42rem 0.42rem;
  padding-inline-start: 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  width: fit-content;
  transition: transform .3s ease, background .3s ease;
}
.primary-btn:hover { background: rgba(0, 0, 0, 0.8); transform: translateY(-3px); }
.plus-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  transition: background .8s ease;
}
html[dir="rtl"] .plus-icon { transform: scaleX(-1); }

.ghost-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.ghost-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }

.cta-group { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.trust-badge {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 0.6rem;
}
.trust-icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--accent);
}
.trust-text { display: flex; flex-direction: column; gap: 3px; }
.trust-title { font-size: 0.66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
html[dir="rtl"] .trust-title { letter-spacing: .03em; }
.trust-sub { font-size: 0.86rem; font-weight: 600; }

/* --- right column: category switcher --- */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: end;
  padding: 6rem 0;
  z-index: 100;
  width: 460px;
  pointer-events: none;
}
html[dir="rtl"] .hero-right { align-items: flex-start; }

.switcher { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-end; pointer-events: auto; }
html[dir="rtl"] .switcher { align-items: flex-start; }
/* Seven categories: let the cards flow onto a second row inside the column
   rather than overflow it. */
.switcher-cards { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 460px; justify-content: flex-end; }
html[dir="rtl"] .switcher-cards { justify-content: flex-start; }

.cat-card {
  position: relative;
  width: 106px;
  padding: 2.9rem 0.7rem 0.9rem;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background .4s cubic-bezier(.175,.885,.32,1.275), border-color .4s ease;
}
.cat-card:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.34); }
.cat-card.active { border-color: var(--accent); background: var(--glass-bg); }
.cat-card img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: -3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.6);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), filter .5s ease;
  pointer-events: none;
}
.cat-card:hover img { transform: translateY(-12px) rotate(-4deg) scale(1.08); }
.cat-card.dim img { filter: brightness(.62) saturate(.55); }
.cat-info { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.cat-info b { font-size: 0.76rem; font-weight: 700; }
.cat-info span { font-size: 0.66rem; color: var(--muted); }

.switcher-nav { display: flex; gap: 0.7rem; }
.nav-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .3s ease;
}
.nav-arrow:hover { background: rgba(255, 255, 255, 0.14); }

.side-title { font-size: clamp(2.4rem, 4.6vw, 5.2rem); text-align: end; }
html[dir="rtl"] .side-title { text-align: start; }

.scroll-hint {
  position: absolute;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  font-size: .64rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--faint);
  z-index: 100;
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-main { position: relative; z-index: 2; padding-top: 9rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 5%; }

.page-hero { padding-block: 3rem 4.5rem; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 7rem); margin-block: 1rem 1.2rem; }
.page-hero p { color: var(--muted); max-width: 620px; font-size: 1.02rem; line-height: 1.7; }

.section { padding-block: 4.5rem; }
.section-head { margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-top: .8rem; }
.section-head p { color: var(--muted); max-width: 620px; margin-top: 1rem; line-height: 1.7; }

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* --- filter chips --- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.chip {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  padding: .6rem 1.15rem;
  border-radius: 100px;
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* --- equipment grid --- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.eq-card {
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s ease, border-color .4s ease, background .4s ease;
}
.eq-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.3); background: var(--glass-strong); }
.eq-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 70%, rgba(255,255,255,.09), transparent 65%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
  overflow: hidden;
}
.eq-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.eq-media picture { display: contents; }
.eq-card[hidden] { display: none; }
.eq-card:hover .eq-media img { transform: scale(1.07) translateY(-4px); }
.eq-tag {
  position: absolute; top: .8rem; inset-inline-start: .8rem;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: .3rem .7rem; border-radius: 100px;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.eq-tag.new { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.eq-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.eq-body h3 { font-size: 1.05rem; font-weight: 700; }
.eq-cat { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
html[dir="rtl"] .eq-cat, html[dir="rtl"] .eq-tag { letter-spacing: .02em; }
.eq-note { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-top: auto; }
.eq-specs { display: flex; flex-direction: column; gap: .4rem; margin-top: auto; }
.eq-specs div { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; }
.eq-specs span:first-child { color: var(--faint); }
.eq-specs span:last-child { color: var(--text); font-weight: 600; }
.eq-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .9rem; border-top: 1px solid var(--glass-border); }
.eq-price { font-size: .9rem; font-weight: 700; color: var(--accent); }
.eq-quote {
  background: transparent; border: 1px solid var(--glass-border); color: #fff;
  padding: .5rem 1rem; border-radius: 100px; font-size: .72rem; font-weight: 600; cursor: pointer;
  transition: all .3s ease; white-space: nowrap;
}
.eq-quote:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* --- service cards --- */
.svc-card { padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .4s ease, background .4s ease; }
.svc-card:hover { transform: translateY(-6px); background: var(--glass-strong); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent);
}
.svc-card h3 { font-size: 1.08rem; font-weight: 700; }
.svc-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* --- stats --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.stat { padding: 1.8rem 1.5rem; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--accent); display: block; line-height: 1; }
html[dir="rtl"] .stat b { font-weight: 900; }
.stat span { display: block; margin-top: .7rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .stat span { letter-spacing: .02em; }

/* --- brands strip --- */
.brands { display: flex; flex-wrap: wrap; gap: 1rem; }
.brand-pill {
  padding: .9rem 1.6rem; border-radius: 100px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em;
  color: var(--muted);
  transition: color .3s ease, border-color .3s ease;
}
.brand-pill:hover { color: #fff; border-color: var(--accent); }

/* --- split feature --- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.split-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-border); aspect-ratio: 4/3; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 65%, rgba(255,255,255,.1), transparent 66%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.3)); }
.split-media { position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.bullets { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.bullet { display: flex; gap: .9rem; align-items: flex-start; }
.bullet i {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: .7rem; font-style: normal; font-weight: 900; margin-top: 2px;
}
.bullet p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.bullet p b { color: #fff; font-weight: 700; }

/* --- contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.4rem; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.3rem; transition: background .3s ease, transform .3s ease; }
.contact-item:hover { background: var(--glass-strong); transform: translateX(4px); }
html[dir="rtl"] .contact-item:hover { transform: translateX(-4px); }
.contact-item .svc-icon { width: 44px; height: 44px; border-radius: 13px; }

/* Two WhatsApp lines (Lebanon and USA) are both "main" contact points, told
   apart by a badge on the icon plus a thin ring in that flag's signature
   colour — red for Lebanon, blue for the USA. The badge is a "US"/"LB"
   letter mark on that same colour, not a flag emoji — emoji flags render
   as plain two-letter text on some platforms (Windows included) with no
   colour behind them, so drawing that colour ourselves is what actually
   reads as a flag everywhere, not just where the emoji happens to render. */
.svc-icon.has-flag, .wa-float.has-flag { position: relative; }
.has-flag.flag-lb { box-shadow: 0 0 0 3px #d21034; }
.has-flag.flag-us { box-shadow: 0 0 0 3px #3c3b6e; }
.wa-float.flag-lb { box-shadow: 0 14px 34px rgba(37, 211, 102, .35), 0 0 0 3px #d21034; }
.wa-float.flag-us { box-shadow: 0 14px 34px rgba(37, 211, 102, .35), 0 0 0 3px #3c3b6e; }
.flag-badge {
  position: absolute;
  bottom: -6px; inset-inline-end: -6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-body);
  font-size: .52rem; font-weight: 800; letter-spacing: .01em;
  color: rgba(255, 255, 255, .92);
  line-height: 1;
}
.flag-lb .flag-badge { background: #d21034; }
.flag-us .flag-badge { background: #3c3b6e; }
.contact-item div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-item small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
html[dir="rtl"] .contact-item small { letter-spacing: .02em; }
.contact-item b { font-size: .94rem; font-weight: 600; overflow-wrap: anywhere; }

form.quote-form { padding: 1.9rem; display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
html[dir="rtl"] .field label { letter-spacing: .02em; }
.field input, .field select, .field textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: .85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgba(0,0,0,.5); }
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: #14161a; color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.submit-btn {
  margin-top: .4rem;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 100px;
  padding: .95rem 1.8rem;
  font-weight: 800; font-size: .88rem;
  cursor: pointer;
  transition: transform .3s ease, filter .3s ease;
}
.submit-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.form-note { font-size: .74rem; color: var(--faint); text-align: center; }
.form-status { font-size: .82rem; color: var(--accent); text-align: center; min-height: 1.1em; }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-border);
  aspect-ratio: 21/9; display: grid; place-items: center; gap: .6rem;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.3));
  color: var(--faint); text-align: center; padding: 1rem;
}

/* --- CTA banner --- */
.cta-banner {
  padding: 3.2rem 2.4rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%),
    var(--glass-bg);
}
.cta-banner h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.cta-banner p { color: var(--muted); max-width: 560px; line-height: 1.7; }

/* --- footer --- */
.footer { position: relative; z-index: 2; margin-top: 4rem; border-top: 1px solid var(--glass-border); background: rgba(0,0,0,.35); backdrop-filter: blur(12px); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-block: 3.4rem; }
.footer h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
html[dir="rtl"] .footer h4 { letter-spacing: .03em; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer a { color: var(--muted); font-size: .88rem; transition: color .3s ease; }
.footer a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin-top: 1rem; max-width: 320px; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: grid; place-items: center; color: var(--muted);
  transition: all .3s ease;
}
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .78rem; color: var(--faint);
}

/* --- floating whatsapp ---
   Two numbers (USA and Lebanon) side by side in one fixed-position group
   so only the group needs the viewport-corner math. */
.wa-float-group {
  position: fixed; bottom: 1.6rem; inset-inline-end: 1.6rem; z-index: 250;
  display: flex; flex-direction: row; gap: 1.1rem; align-items: center;
}
.wa-float {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #05270f;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .35);
  transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* --- reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .contact-btn { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  body.stage { overflow: auto; height: auto; }
  .hero { height: auto; min-height: 100vh; padding-top: 7.5rem; padding-bottom: 3rem; }
  .hero-content { flex-direction: column; align-items: center; gap: 2rem; }
  .hero-left { max-width: 100%; align-items: center; text-align: center; padding: 0; }
  .hero-desc { text-align: center; }
  .hero-right { width: 100%; align-items: center; text-align: center; padding: 0; }
  html[dir="rtl"] .hero-right { align-items: center; }
  .switcher { align-items: center; }
  html[dir="rtl"] .switcher { align-items: center; }
  .side-title, html[dir="rtl"] .side-title { text-align: center; }
  .hero-center { position: relative; inset: auto; order: -1; height: auto; width: 100%; padding-block: 1rem; }
  .showpiece-frame { width: min(70vw, 320px); }
  .parts-fg .part, .parts-bg .part { opacity: .3; }
  .silhouette-layer { display: none; }
  .scroll-hint { display: none; }
}

@media (max-width: 700px) {
  .header { padding: 1rem 5%; }
  .logo-text span { display: none; }
  .page-main { padding-top: 7rem; }
  .switcher-cards { flex-wrap: wrap; justify-content: center; }
  .cat-card { width: 118px; }
  .cat-card img { width: 130px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  /* Phones: drop the floating parts entirely — they read as clutter over the
     text at this width, and skipping them saves paint work on weaker devices. */
  .part { display: none; }
  .hero { padding-bottom: 5.5rem; }
  .wa-float-group { bottom: 1.1rem; inset-inline-end: 1.1rem; gap: .9rem; }
  .wa-float { width: 50px; height: 50px; }
}

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

/* ============================================================
   LIVE INVENTORY — status badges, gallery, lightbox
   Added when the equipment list became owner-managed.
   ============================================================ */

.chips-status { margin-top: -1.4rem; }
.chips-status .chip { font-size: .74rem; padding: .5rem 1rem; }

/* --- status badges --- */
.eq-tag.tag-new    { background: #34d399; color: #04231a; border-color: transparent; }
.eq-tag.tag-coming { background: #60a5fa; color: #05172e; border-color: transparent; }
.eq-tag.tag-sold   { background: #6b7280; color: #f3f4f6; border-color: transparent; }
.eq-tag.tag-used   { background: rgba(0, 0, 0, .6); color: #fff; }

/* Sold machines stay visible as proof of trade, but read as past stock. */
.eq-card.st-sold .eq-media img { filter: saturate(.3) brightness(.72); }
.eq-card.st-sold .eq-price     { color: var(--faint); text-decoration: line-through; }
.eq-card.st-sold:hover .eq-media img { filter: saturate(.5) brightness(.85); }

.eq-card.st-coming .eq-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(96, 165, 250, .16), transparent 60%);
  pointer-events: none;
}

/* --- photo count button --- */
.eq-more {
  position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(0, 0, 0, .62);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: .32rem .6rem;
  border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.eq-more:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

.eq-noimg {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: rgba(255, 255, 255, .22);
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--r-md);
  font-size: .95rem;
}

/* --- lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  /* flex centers a smaller-than-container image on both axes outright — a
     grid with implicit auto-sized tracks needs align-content/justify-content
     as well as place-items to do the same, and defaults to packing tracks at
     the start (top-left), which is what pinned the photo to one corner once
     it was capped down to less than the full container size. */
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 5, 6, .93);
  backdrop-filter: blur(10px);
  padding: 3.5rem 4rem;
}
.lightbox[hidden] { display: none; }
.lb-img {
  /* Cap against the viewport, not the image's own natural size — see the
     lightbox comment above for why a plain 100% doesn't work here. */
  max-width: min(100%, 85vw); max-height: min(100%, 82vh);
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
  object-fit: contain;
}
.lb-close {
  position: absolute; top: 1.2rem; inset-inline-end: 1.4rem;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .3s ease;
}
.lb-nav:hover { background: rgba(255, 255, 255, .16); }
.lb-prev { inset-inline-start: 1rem; }
.lb-next { inset-inline-end: 1rem; }
html[dir="rtl"] .lb-prev svg, html[dir="rtl"] .lb-next svg { transform: scaleX(-1); }
.lb-count {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  font-size: .78rem; letter-spacing: .1em; color: var(--muted);
}

@media (max-width: 700px) {
  .lightbox { padding: 4rem 1rem; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { inset-inline-start: .4rem; }
  .lb-next { inset-inline-end: .4rem; }
}


/* ============================================================
   BRAND LOCKUP AT NARROW WIDTHS
   admin.html's legal-name text lockup is long, so it steps down
   before it can push the header buttons off screen. The public
   site's image-only logo (see .header/.footer .logo-mark above)
   steps down here too, so it never crowds the nav on a phone.
   ============================================================ */
@media (max-width: 1180px) {
  .logo-text b { font-size: 0.88rem; }
}
@media (max-width: 820px) {
  .logo-mark { width: 40px; height: 37px; }
  .header .logo-mark { width: 52px; height: 54px; }
  .footer .logo-mark { width: 64px; height: 66px; }
  .logo-text b { font-size: 0.78rem; letter-spacing: .02em; }
  .logo-text span { font-size: 0.5rem; letter-spacing: .16em; }
}
@media (max-width: 400px) {
  .logo-text b { font-size: 0.68rem; }
}

/* ============================================================
   ABOUT — claim cards (replaced the invented statistics)
   ============================================================ */
.claims { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.claim {
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  text-align: start;
  transition: transform .4s ease, background .4s ease;
}
.claim:hover { transform: translateY(-5px); background: var(--glass-strong); }
.claim b { font-size: 1rem; font-weight: 700; }
.claim span { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.claim .svc-icon { width: 44px; height: 44px; border-radius: 13px; }
