/* Hanan Baumaschinen – one stylesheet for all pages.
   Dark charcoal + copper (from the letterhead) + work-light amber (from the night pictures).
   Logical properties (inline-start/end) so the Arabic pages mirror themselves. */

@font-face { font-family: "Archivo Expanded"; src: url("../fonts/archivo-expanded.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #111317;
  --bg-2: #171a1f;
  --bg-3: #1e2229;
  --line: rgba(236, 232, 225, .1);
  --line-strong: rgba(236, 232, 225, .2);
  --text: #ece8e1;
  --muted: #a3a8b0;
  --accent: #e08a3c;
  --accent-hover: #f0a058;
  --accent-ink: #1a1208;
  --steel: #c7ccd3;
  --steel-2: #8d939c;
  --radius: 6px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font-display: "Archivo Expanded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:lang(ar) {
  /* Arabic: the visitor's own Arabic system font (no web font download) */
  --font-body: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", "SF Arabic", system-ui, sans-serif;
  --font-display: "Segoe UI", Tahoma, "Noto Kufi Arabic", "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: var(--pick-bar-h, 0px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ar) body, body:lang(ar) { font-size: 1.125rem; line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
bdi { unicode-bidi: isolate; }

h1, h2, h3, .h3, .hero-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1, .hero-title { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; }
h3, .h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .h3, :lang(ar) .hero-title { letter-spacing: 0; line-height: 1.35; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .95rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(17, 19, 23, .35); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:hover .icon-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: .5em; color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(17, 19, 23, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(17, 19, 23, .94); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
/* logo: inline SVG (tools/make_logo.py), always left to right; desktop copy .lg-d, phone copy .lg-m */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; color: var(--text); }
.brand svg { display: block; width: auto; }
.brand .lg-d { height: 46px; }
.brand .lg-m { display: none; }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { list-style: none; display: flex; gap: 26px; }
/* narrow desktops: a bit less space between the menu items, so the English menu stays on one line next to the logo */
@media (max-width: 1100px) { .site-nav, .nav-links { gap: 22px; } }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--muted); padding-block: 6px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.lang-switch { list-style: none; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { display: block; min-width: 36px; padding: 4px 10px; border-radius: 999px; text-align: center; text-decoration: none; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--bg-3); color: var(--text); }
.menu-toggle { display: none; }
.lang-quick { display: none; }

@media (max-width: 960px) {
  /* phones/tablets: smaller logo (logo-small.svg), language button next to the menu button */
  .brand .lg-d { display: none; }
  .brand .lg-m { display: block; height: 38px; }
  .lang-quick { display: block; position: relative; margin-inline-start: auto; }
  .lang-quick summary {
    display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; cursor: pointer; list-style: none;
    border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 700; font-size: .9rem; color: var(--text);
  }
  .lang-quick summary::-webkit-details-marker { display: none; }
  .lang-quick summary .icon { color: var(--accent); }
  .lang-quick[open] summary { border-color: var(--accent); }
  .lang-quick ul {
    list-style: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 170px; padding: 6px;
    background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  }
  .lang-quick li a { display: block; padding: 11px 14px; border-radius: 4px; text-decoration: none; font-weight: 700; color: var(--text); }
  .lang-quick li a:hover { background: var(--bg-3); }
  .lang-quick li a[aria-current="true"] { color: var(--accent); }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-inline-start: 8px;
    width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer;
  }
  .menu-icon { position: relative; width: 20px; height: 14px; }
  .menu-icon span { position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
  .menu-icon span:nth-child(1) { top: 0; } .menu-icon span:nth-child(2) { top: 6px; } .menu-icon span:nth-child(3) { top: 12px; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h)); margin: 0;
    flex-direction: column; align-items: stretch; gap: 28px; padding: 28px var(--gutter) 40px;
    background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--text); padding-block: 10px; border: 0; }
  .nav-links a[aria-current] { color: var(--accent); }
  .lang-switch { align-self: flex-start; }
  .header-inner { gap: 12px; }
  .lang-switch a { padding: 8px 14px; font-size: .95rem; }
  .nav-cta { min-height: 52px; font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- symbol tag */
.symbol-tag {
  position: absolute; inset-block-end: 10px; inset-inline-end: 10px; z-index: 2;
  padding: 3px 8px; border-radius: 4px; background: rgba(10, 11, 13, .62); color: rgba(236, 232, 225, .78);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; pointer-events: none;
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 23, .92) 0%, rgba(17, 19, 23, .72) 34%, rgba(17, 19, 23, .12) 64%, rgba(17, 19, 23, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 19, 23, 0) 26%),
    linear-gradient(180deg, rgba(17, 19, 23, .55) 0%, rgba(17, 19, 23, 0) 22%);
}
[dir="rtl"] .hero-img { transform: scaleX(-1); }
[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(270deg, rgba(17, 19, 23, .92) 0%, rgba(17, 19, 23, .72) 34%, rgba(17, 19, 23, .12) 64%, rgba(17, 19, 23, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 19, 23, 0) 26%),
    linear-gradient(180deg, rgba(17, 19, 23, .55) 0%, rgba(17, 19, 23, 0) 22%);
}
@media (min-width: 761px) and (max-width: 1100px) {
  /* tablets: the text covers more of the picture, so the shade reaches further */
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(17, 19, 23, .93) 0%, rgba(17, 19, 23, .82) 48%, rgba(17, 19, 23, .4) 78%, rgba(17, 19, 23, .15) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(17, 19, 23, 0) 26%);
  }
  [dir="rtl"] .hero-media::after {
    background:
      linear-gradient(270deg, rgba(17, 19, 23, .93) 0%, rgba(17, 19, 23, .82) 48%, rgba(17, 19, 23, .4) 78%, rgba(17, 19, 23, .15) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(17, 19, 23, 0) 26%);
  }
}
.hero-content { padding-block: clamp(64px, 10vw, 120px); }
.hero-title { max-width: 13ch; }
.hero-title .line { display: block; }
.hero-title .line + .line { color: var(--accent); }
/* the H1 looks like the small line above the slogan: no width limit, the body's line height, no balancing */
.hero .hero-h1 { max-width: none; line-height: inherit; text-wrap: wrap; }
.hero .lead { margin-top: 22px; color: #cfd2d7; max-width: 54ch; }
/* the hero's tag sits in the top corner on the picture's side, below the header: the floating WhatsApp button in the
   bottom corner never covers it (1366x768, 1280x720) and it never falls below the screen */
.hero .symbol-tag { inset-block-start: calc(var(--header-h) + 10px); inset-block-end: auto; }
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-end; }
  .hero-media { bottom: auto; height: min(62vh, 560px); }
  .hero-media::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(17, 19, 23, .5) 45%, rgba(17, 19, 23, .25) 100%);
  }
  [dir="rtl"] .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(17, 19, 23, .5) 45%, rgba(17, 19, 23, .25) 100%); }
  .hero-content { padding-top: min(34vh, 300px); padding-bottom: 40px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- hero intro video
   html.hv (decided in the head of home.html before the first paint; main.js plays the video): the paver shot plays
   once in a box over the hero, dips to dark (html.hv-dip) and today's picture rises again (html.hv-rise). The
   picture stays painted under an opaque cover all the time, so it never flashes before the video and stays the
   LCP picture. The box keeps to the picture's side (inline-end) and its inner edge melts into the dark; the film is
   NOT mirrored on the Arabic page (traffic keeps to the right), only the box moves to the left. Before the video
   starts the box shows the video's first frame (--hv-poster, set by the head script). The site's own shade
   (.hero-media::after) and the "Symbolbild" tag stay on top. The durations come from main.js (--hv-dip, --hv-rise). */
.hero-intro { display: none; }
.hv .hero-intro {
  display: block; position: absolute; inset: 0; background: var(--bg); pointer-events: none;
  transition: opacity var(--hv-rise, .6s) cubic-bezier(.45, 0, .55, 1);
}
.hero-intro-box {
  --hv-pos: 0% 50%;
  /* 72 % of the hero; on screens wider than 1440 px it starts at most 316 px before the middle, so the oncoming
     roller's lamps stay clear of the end of the long English H1 line (and the paver stays large) */
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(72%, calc(50% + 316px));
  background-image: var(--hv-poster, none); background-repeat: no-repeat; background-size: cover; background-position: var(--hv-pos);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  transition: opacity var(--hv-dip, .35s) linear;
}
[dir="rtl"] .hero-intro-box {
  --hv-pos: 50% 50%;
  -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 30%); mask-image: linear-gradient(270deg, transparent 0, #000 30%);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--hv-pos); opacity: 0; pointer-events: none;
}
.hero-video.is-on { opacity: 1; }
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
/* a little more shade under the text while the paver is there (it goes with the cover) */
.hero-intro::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 23, .6) 0%, rgba(17, 19, 23, .5) 44%, rgba(17, 19, 23, 0) 60%);
}
[dir="rtl"] .hero-intro::after {
  background: linear-gradient(270deg, rgba(17, 19, 23, .6) 0%, rgba(17, 19, 23, .5) 44%, rgba(17, 19, 23, 0) 60%);
}
.hv-dip .hero-intro-box { opacity: 0; }
.hv-rise .hero-intro { opacity: 0; }
/* the small orange H1 line reaches into the box (English up to ~60 % of the width): a soft dark scrim behind it while
   the video is there; the H1 keeps its fitted width afterwards (hv-run), so nothing moves when the scrim is gone */
.hv .hero-h1, .hv-run .hero-h1 { position: relative; width: fit-content; }
.hv .hero-h1::before {
  content: ""; position: absolute; inset: -.55em -1.1em; z-index: -1; pointer-events: none;
  background: rgba(17, 19, 23, .74); border-radius: 1em; filter: blur(12px);
  transition: opacity var(--hv-rise, .6s) cubic-bezier(.45, 0, .55, 1);
}
.hv-rise .hero-h1::before { opacity: 0; }
@media (min-width: 761px) and (max-width: 1100px) {
  /* tablets: the text runs across most of the width */
  .hero-intro::after {
    background: linear-gradient(90deg, rgba(17, 19, 23, .5) 0%, rgba(17, 19, 23, .4) 70%, rgba(17, 19, 23, .15) 100%);
  }
  [dir="rtl"] .hero-intro::after {
    background: linear-gradient(270deg, rgba(17, 19, 23, .5) 0%, rgba(17, 19, 23, .4) 70%, rgba(17, 19, 23, .15) 100%);
  }
}
@media (min-width: 1101px) and (max-width: 1240px) {
  /* small laptops, landscape iPads: the long English H1 line ends about 790 px in; a box that starts at least 390 px
     in keeps the oncoming roller's lamps clear of its end (H1 contrast, review 2026-11-07) */
  .hero-intro-box { width: calc(100% - 390px); }
}
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  /* upright tablets: the hero is taller than wide, a 72 % box would cut the paver in half - the full width, framed
     so the paver, its screed and the workers stand in the free third beside the text (on the left in Arabic) */
  .hero-intro-box, [dir="rtl"] .hero-intro-box { --hv-pos: 12% 50%; width: 100%; -webkit-mask-image: none; mask-image: none; }
  [dir="rtl"] .hero-intro-box { --hv-pos: 72% 50%; }
}
@media (max-width: 760px) {
  /* phones: the video on top, like the picture, the headline over its lower half. 2 px shorter than the picture
     (hidden in the shade that ends in the page colour), so the late video frame is never a "larger" paint than the
     picture for the LCP */
  .hero-intro-box, [dir="rtl"] .hero-intro-box {
    --hv-pos: 45% 50%; inset-block-end: auto; height: calc(100% - 2px); width: 100%; -webkit-mask-image: none; mask-image: none;
  }
  .hero-intro::after, [dir="rtl"] .hero-intro::after {
    background: linear-gradient(0deg, rgba(17, 19, 23, .45) 0%, rgba(17, 19, 23, .35) 46%, rgba(17, 19, 23, 0) 66%);
  }
}

/* ---------------------------------------------------------------- facts strip */
.facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid li { padding: 26px 24px; border-inline-start: 1px solid var(--line); }
.facts-grid li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts-grid strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.facts-grid strong::before { content: ""; display: block; width: 22px; height: 3px; background: var(--accent); margin-bottom: 12px; }
.facts-grid span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .facts-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid li { border-inline-start: 0; padding-inline: 0; padding-block: 20px; }
  .facts-grid li + li { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- section heads */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.section-foot { margin: 36px 0 0; }

/* ---------------------------------------------------------------- product cards */
.cards { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(224, 138, 60, .55); transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.01em; }
:lang(ar) .card-title { letter-spacing: 0; }
.card-text { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: .45em; color: var(--accent); font-weight: 700; font-size: .92rem; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; padding: 30px 28px 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.step-no {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px;
  border: 1px solid var(--accent); border-radius: 50%; color: var(--accent);
  font-family: "Archivo Expanded", sans-serif; font-weight: 700; font-size: 1.05rem;
}
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- original vs replacement */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split-text .lead { margin-top: 18px; margin-bottom: 0; }
.compare { display: grid; gap: 16px; }
.compare-item { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.compare-item h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.compare-item h3 .icon { color: var(--steel); }
.compare-original { border-color: rgba(224, 138, 60, .45); background: linear-gradient(135deg, rgba(224, 138, 60, .1), rgba(224, 138, 60, 0) 60%), var(--bg-2); }
.compare-original h3 .icon { color: var(--accent); }
.compare-item p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- picture band (international) */
.band { position: relative; isolation: isolate; padding-block: clamp(90px, 12vw, 160px); overflow: hidden; }
.band-media { position: absolute; inset: 0; z-index: -1; }
.band-img { width: 100%; height: 100%; object-fit: cover; }
.band-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 23, .95) 0%, rgba(17, 19, 23, .78) 42%, rgba(17, 19, 23, .2) 78%),
              linear-gradient(0deg, rgba(17, 19, 23, .6), rgba(17, 19, 23, 0) 30%);
}
[dir="rtl"] .band-img { transform: scaleX(-1); }
[dir="rtl"] .band-media::after {
  background: linear-gradient(270deg, rgba(17, 19, 23, .95) 0%, rgba(17, 19, 23, .78) 42%, rgba(17, 19, 23, .2) 78%),
              linear-gradient(0deg, rgba(17, 19, 23, .6), rgba(17, 19, 23, 0) 30%);
}
.band-content { position: relative; }
.band-content > * { max-width: 600px; }
.band .lead { margin-top: 18px; color: #cfd2d7; }
.places { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.places li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(17, 19, 23, .55); backdrop-filter: blur(6px); }
.places .icon { color: var(--accent); margin-top: 3px; }
.places strong { display: block; line-height: 1.3; }
.places li > span > span { display: block; font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) {
  .band-media::after, [dir="rtl"] .band-media::after { background: rgba(17, 19, 23, .82); }
}
@media (max-width: 420px) { .places { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; border: 1px solid var(--line); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text .lead { margin-top: 18px; }
.person { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.person-icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--bg-3); color: var(--accent); }
.person strong { display: block; font-size: 1.1rem; margin: 2px 0 6px; }
.person .muted { font-size: .88rem; }
.person-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.person-links a { color: var(--steel); text-decoration: none; }
.person-links a:hover { color: var(--accent-hover); text-decoration: underline; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- CTA band */
.cta-band { background: linear-gradient(135deg, rgba(224, 138, 60, .14), rgba(224, 138, 60, 0) 55%), var(--bg-2); border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 60px; align-items: center; }
.cta-inner .lead { margin: 16px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }
@media (max-width: 520px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- page heroes */
.page-hero { padding-block: clamp(56px, 8vw, 100px) clamp(32px, 5vw, 56px); }
.page-hero .lead { margin-top: 18px; }
.page-hero-small { padding-block: clamp(48px, 6vw, 72px) 0; }
.page-hero + .section-tight { padding-top: 8px; }
.page-hero-image { position: relative; isolation: isolate; padding-block: clamp(90px, 13vw, 170px) clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(17, 19, 23, .78) 45%, rgba(17, 19, 23, .55) 100%); }
.page-hero-image .lead { color: #cfd2d7; }
.note-line { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; max-width: 62ch; color: var(--steel); font-weight: 700; }
.note-line .icon { color: var(--accent); margin-top: 4px; }

/* ---------------------------------------------------------------- products page */
.group-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(17, 19, 23, .92); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.group-nav ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.group-nav ul::-webkit-scrollbar { display: none; }
.group-nav a { display: block; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.group-nav a:hover { color: var(--text); border-color: var(--accent); }
.group + .group { border-top: 1px solid var(--line); }
.group { scroll-margin-top: calc(var(--header-h) + 70px); }
.group-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.group-flip .group-media { order: 2; }
.group-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--line); }
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-title { margin: 18px 0 10px; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
:lang(ar) .gallery-title { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.group-text .lead { margin-top: 16px; }
.items-title { margin: 28px 0 12px; font-size: 1rem; }
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: 4px; }
@media (max-width: 900px) {
  .group-grid { grid-template-columns: 1fr; }
  .group-flip .group-media { order: 0; }
}

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-direct, .contact-form-wrap { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.contact-direct .h3, .contact-form-wrap .h3 { margin-bottom: 22px; }
.contact-list { margin: 26px 0 0; display: grid; gap: 18px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.contact-list dt .icon { color: var(--accent); }
.contact-list dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-hover); text-decoration: underline; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-form-wrap { order: -1; } }

.request-form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field .muted { font-weight: 400; }
input[type="text"], textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: #6f747c; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 138, 60, .25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e5675b; }
.field-error { margin: 0; color: #f08a80; font-size: .88rem; }
fieldset.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.chips legend { margin-bottom: 10px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; color: var(--muted); transition: all .15s; }
.chip:hover span { color: var(--text); border-color: var(--steel); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-hint { margin: 0; font-size: .9rem; color: var(--muted); }
.request-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.2em; font-size: .95rem; }
.form-status.is-error { color: #f08a80; }
.form-status a { color: var(--accent); }
.form-privacy { margin: 0; font-size: .84rem; }
.form-privacy a { color: var(--steel); }

/* ---------------------------------------------------------------- legal pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.25rem; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #cfd2d7; }
.prose ul { padding-inline-start: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--accent); }
.note { padding: 14px 18px; border-inline-start: 3px solid var(--accent); background: var(--bg-2); }
mark.missing { background: #f4d35e; color: #1a1a1a; padding: 0 4px; border-radius: 3px; }

.notfound { min-height: min(55vh, 560px); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: #0d0f12; padding-top: clamp(48px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; }
.brand-footer .lg-f { height: 56px; }
.footer-tagline { margin: 20px 0 8px; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.footer-brand .muted { font-size: .92rem; max-width: 36ch; }
.footer-title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
:lang(ar) .footer-title { letter-spacing: 0; font-size: .95rem; }
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: .95rem; }
.footer-list a:hover { color: var(--accent-hover); }
.footer-contact .icon { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 48px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: .8rem; color: #7f848c; }
.footer-note { margin: 0; max-width: 90ch; }
.footer-copy { margin: 0; white-space: nowrap; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Hanan Tools page */
.tools-hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); overflow: hidden;
  background: radial-gradient(ellipse at 75% 40%, rgba(224, 138, 60, .14), rgba(224, 138, 60, 0) 55%), var(--bg); }
[dir="rtl"] .tools-hero { background: radial-gradient(ellipse at 25% 40%, rgba(224, 138, 60, .14), rgba(224, 138, 60, 0) 55%), var(--bg); }
.tools-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.tools-logo { display: block; width: clamp(64px, 8vw, 92px); color: var(--text); margin-bottom: 26px; }
.tools-logo svg { display: block; width: 100%; height: auto; }
.tools-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.tools-subtitle { display: block; margin: 10px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; letter-spacing: normal; color: var(--accent); }
:lang(ar) .tools-subtitle { line-height: 1.8; }
.tools-hero .lead { margin-top: 18px; }
.tools-hero-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.3; }
.tools-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .tools-hero-grid { grid-template-columns: 1fr; } .tools-hero-media { order: -1; aspect-ratio: 3 / 2; } }

.tools-build-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.tools-build-media img { width: 100%; height: 100%; object-fit: cover; }
.parts { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.parts li { display: flex; align-items: center; gap: 14px; }
.parts .step-no { margin: 0; width: 36px; height: 36px; font-size: .9rem; flex: none; }

.tools-codes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.code-list { margin: 0; display: grid; gap: 12px; }
.code-list > div { display: flex; gap: 16px; align-items: baseline; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.code-list dt { flex: none; min-width: 3.2em; font-family: "Archivo Expanded", var(--font-body); font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.code-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.code-list-small > div { padding: 12px 16px; }
.code-list-small dt { font-family: var(--font-body); font-size: .95rem; color: var(--text); min-width: 7.5em; }
@media (max-width: 900px) { .tools-codes { grid-template-columns: 1fr; } }

/* range filter + selection (main.js) */
.range-tools { margin-bottom: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.range-tools[hidden] { display: none; }
.range-filters { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 12px; }
.rf-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.rf-field label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.rf-field input, .rf-field select {
  width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; color-scheme: dark;
}
.rf-field input:focus, .rf-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 138, 60, .25); }
.rf-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 14px; }
.rf-count { margin: 0; font-weight: 700; }
.rf-hint { margin: 6px 0 0; max-width: 90ch; color: var(--muted); font-size: .9rem; }
.rf-none { margin-bottom: 28px; }
.text-btn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--accent-hover); }
@media (max-width: 1100px) { .range-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rf-search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .range-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .range-tools { padding: 14px; } }
.range-table [hidden], .range-table tr[hidden] { display: none !important; }
.range-table .c-qty { white-space: nowrap; vertical-align: middle; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.qty-btn { width: 34px; border: 0; background: var(--bg-3); color: var(--text); font: inherit; font-size: 1.1rem; font-weight: 700; line-height: 1; cursor: pointer; }
.qty-btn:hover { color: var(--accent-hover); }
.qty-btn:focus-visible, .qty-input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qty-input {
  width: 46px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--text);
  font: inherit; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* :nth-child(n) only raises the weight, so "picked" beats the zebra and phone-card backgrounds */
.range-table tbody tr.is-picked:nth-child(n) { background: rgba(224, 138, 60, .14); box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .range-table tbody tr.is-picked:nth-child(n) { box-shadow: inset -3px 0 0 var(--accent); }
.range-table tr.is-picked .qty { border-color: var(--accent); }
@media (min-width: 761px) {
  /* tables that scroll sideways (tablets): the box counter stays at the visible end */
  .range-table .c-qty { position: sticky; inset-inline-end: 0; z-index: 1; background: var(--bg-2); box-shadow: -10px 0 12px -10px rgba(0, 0, 0, .7); }
  [dir="rtl"] .range-table .c-qty { box-shadow: 10px 0 12px -10px rgba(0, 0, 0, .7); }
  .range-table thead th.c-qty { z-index: 2; background: var(--bg-3); }
  .range-table tr.is-picked .c-qty { background: linear-gradient(rgba(224, 138, 60, .14), rgba(224, 138, 60, .14)), var(--bg-2); }
}

.pick-bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 45; padding-block: 10px max(10px, env(safe-area-inset-bottom));
  background: rgba(23, 26, 31, .97); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 30px rgba(0, 0, 0, .4);
}
.pick-bar[hidden] { display: none; }
.pick-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.pick-list { flex: 1 1 280px; min-width: 0; }
.pick-list summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 40px; padding-block: 8px; cursor: pointer; list-style: none; }
.pick-list summary::-webkit-details-marker { display: none; }
.pick-list summary::before { content: "▸"; color: var(--accent); }
.pick-list[open] summary::before { content: "▾"; }
.pick-title { font-weight: 700; color: var(--accent); }
.pick-summary { font-weight: 700; font-variant-numeric: tabular-nums; }
.pick-items { list-style: none; display: grid; gap: 4px; max-height: 38vh; overflow-y: auto; margin: 4px 0 10px; }
.pick-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pick-items bdi { font-family: "Archivo Expanded", var(--font-body); font-weight: 700; margin-inline-end: 8px; }
.pick-remove { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.pick-remove:hover { color: var(--text); border-color: var(--accent); }
.pick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-wa { background: #177a41; color: #fff; }
.btn-wa:hover { background: #136a38; }
.pick-status { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--accent-hover); }
.pick-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.has-picks { padding-bottom: var(--pick-bar-h, 120px); }
body.has-picks .wa-float { display: none; }
.lbl-short { display: none; }
@media (max-width: 600px) {
  /* phones: a slim bar - totals on one line, short button labels */
  .pick-bar { padding-top: 6px; }
  .pick-inner { gap: 4px 12px; }
  .pick-title { display: none; }
  .pick-list summary { min-height: 36px; padding-block: 6px; font-size: .92rem; }
  .pick-actions { width: 100%; }
  .pick-actions .btn { flex: 1 1 0; justify-content: center; padding-inline: 10px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}

.range-group + .range-group { margin-top: 44px; }
.range-group[hidden] { display: none; }
.range-heading { margin-bottom: 14px; }
.range-heading .muted { font-weight: 400; font-size: .9rem; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.range-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.range-table th, .range-table td { padding: 11px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.range-table thead th { position: sticky; top: 0; background: var(--bg-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
:lang(ar) .range-table thead th { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.range-table tbody tr:last-child > * { border-bottom: 0; }
.range-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.range-table tbody tr:hover { background: rgba(224, 138, 60, .07); }
.range-table tbody th { font-family: "Archivo Expanded", var(--font-body); font-weight: 700; white-space: nowrap; color: var(--text); }
.range-table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.type-alias { display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 700; font-size: .74rem; color: var(--accent); white-space: normal; }
.range-table tr:has(.type-alias) { background: rgba(224, 138, 60, .08); }
@media (max-width: 370px) {
  /* very small phones: the header still fits logo, language and menu button */
  .brand .lg-m { height: 32px; }
  .lang-quick summary { padding: 0 9px; }
}

.m-only { display: none; }
@media (max-width: 760px) {
  /* phones: one compact card per pick - type | weight, carbide | pieces, (shank extra), use | catalog pages */
  .table-wrap { border: 0; overflow: visible; }
  .range-table, .range-table tbody { display: block; }
  .range-table thead { display: none; }
  .range-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 14px; align-items: baseline;
    margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  }
  .range-table tbody tr:nth-child(even) { background: var(--bg-2); }
  .range-table tbody tr:has(.type-alias) { background: linear-gradient(135deg, rgba(224, 138, 60, .12), rgba(224, 138, 60, 0) 70%), var(--bg-2); }
  .range-table th, .range-table td { display: block; padding: 0; border: 0; }
  .range-table tbody th { grid-column: 1; grid-row: 1; font-size: 1rem; color: var(--accent); }
  .range-table .c-weight { grid-column: 2; grid-row: 1; font-weight: 700; }
  .range-table .c-insert { grid-column: 1; grid-row: 2; }
  .range-table .c-box { grid-column: 2; grid-row: 2; color: var(--muted); }
  .range-table .c-shank { grid-column: 1 / -1; grid-row: 3; color: var(--muted); font-size: .88rem; }
  .range-table .c-shank.c-plain { display: none; }
  .range-table .c-use { grid-column: 1; grid-row: 4; color: var(--muted); font-size: .88rem; }
  .range-table .c-page { grid-column: 2; grid-row: 4; color: var(--muted); font-size: .82rem; }
  .range-table .c-qty { grid-column: 1 / -1; grid-row: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .range-table .qty-label { color: var(--muted); font-size: .88rem; font-weight: 700; }
  .qty-btn { width: 44px; }
  .qty-input { width: 54px; height: 42px; }
  .rf-field input, .rf-field select, .qty-input { font-size: max(16px, 1rem); }   /* below 16 px iPhones zoom in on focus */
  .range-table .num { text-align: end; }
  .m-only { display: inline; }
}

/* bestsellers: orange head like the catalog's tables, transparent drawing on the card, data, box label, box counter */
.best-cards { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1100px) { .best-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* narrower: the spec words get clipped */
.best-card { display: flex; flex-direction: column; gap: 20px; padding-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; transition: border-color .15s; }
.best-card.is-picked { border-color: var(--accent); }
.best-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 20px; background: var(--accent); color: var(--accent-ink); }
.best-head h3, .best-head .h3 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: inherit; }
.best-badge { padding: 4px 10px; border-radius: 999px; background: var(--accent-ink); color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
[dir="rtl"] .best-badge { letter-spacing: 0; }            /* spacing would break the Arabic joins */
.best-body { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 20px 24px; align-items: start; padding: 0 20px; }
.drawing { margin: 0; }
/* the drawing sits directly on the card: transparent picture, light dimension lines */
.drawing-frame { position: relative; aspect-ratio: 1056 / 2016; }
.drawing-frame img, .drawing-dims { position: absolute; inset: 0; width: 100%; height: 100%; }
.drawing-dims { pointer-events: none; overflow: visible; }
.dim-ext { fill: none; stroke: var(--steel-2); }
.dim-ext-cut { fill: none; stroke: #3e4249; }                /* where it crosses the light section face */
.dim-line { fill: none; stroke: var(--steel); }
.dim-arrow { fill: var(--steel); }
.dim-text { fill: var(--text); font-family: "Inter", system-ui, sans-serif; }    /* numbers: same font on all three languages */
.drawing figcaption, .best-label figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.best-specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px 18px; align-content: start; }
.best-specs dt { font-size: .8rem; color: var(--muted); }
.best-specs dd { margin: 2px 0 0; font-weight: 700; }
.best-label { margin: 0; padding: 0 20px; }
.label-img { border-radius: 4px; overflow: hidden; background: #fff; }
.label-img img { width: 100%; height: auto; }
.best-pick { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 0 20px; }
.best-pick[hidden] { display: none; }                    /* without JavaScript there is no selection */
.best-pick .qty-label { color: var(--muted); font-size: .88rem; font-weight: 700; }
.best-card.is-picked .qty { border-color: var(--accent); }
@media (max-width: 560px) {
  .best-body { grid-template-columns: 1fr; }
  .drawing { width: min(100%, 260px); margin-inline: auto; }
}

.tools-gallery { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tools-gallery li { grid-column: span 2; }
.tools-gallery li:nth-child(n+4) { grid-column: span 3; }
.tools-gallery a { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tools-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tools-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .tools-gallery { grid-template-columns: 1fr 1fr; } .tools-gallery li, .tools-gallery li:nth-child(n+4) { grid-column: span 1; } .tools-gallery li:first-child { grid-column: 1 / -1; } }

.tools-catalog { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tools-catalog .lead { margin-top: 16px; }
.catalog-cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 16px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .2s, transform .2s; }
.catalog-card:hover { border-color: rgba(224, 138, 60, .55); transform: translateY(-3px); }
.catalog-cover { display: block; aspect-ratio: 216 / 303; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.catalog-text { display: grid; gap: 4px; }
.catalog-text .muted { font-size: .85rem; }
.catalog-text .text-link { margin-top: 6px; }
@media (max-width: 900px) { .tools-catalog { grid-template-columns: 1fr; } }

.brand-note { margin: 0; max-width: 90ch; padding: 16px 20px; border-inline-start: 3px solid var(--line-strong); background: var(--bg-2); color: var(--muted); font-size: .88rem; }

/* Hanan Tools teaser on the home and products pages */
.tools-promo { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 36px; align-items: center; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(224, 138, 60, .45); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(224, 138, 60, .12), rgba(224, 138, 60, 0) 60%), var(--bg-2); text-decoration: none; transition: transform .2s, border-color .2s; }
.tools-promo:hover { transform: translateY(-2px); border-color: var(--accent); }
.tools-promo .tools-logo { width: 64px; margin: 0; }
.tools-promo h2, .tools-promo .h3 { margin: 4px 0 6px; }
.tools-promo p { margin: 0; color: var(--muted); }
.tools-promo .eyebrow { margin: 0; }
@media (max-width: 760px) { .tools-promo { grid-template-columns: 1fr; } }
.section-foot + .tools-promo { margin-top: 40px; }
.group-promo { margin-top: clamp(32px, 5vw, 56px); }
.promo-types { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.promo-types a { color: var(--accent); font-weight: 700; text-decoration: none; }
.promo-types a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }

/* bestseller cards: holders under the code, the own-brand note under the comparison, link to the type's page */
.best-h3-fits { display: block; margin-top: 4px; font-family: var(--font-body); font-size: .92rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.spec-wide { grid-column: 1 / -1; }
.spec-note { display: block; margin-top: 2px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.best-more { margin: 0; padding: 0 20px; }

/* questions and answers (visible text only) */
.faq { margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.faq > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.section-alt .faq > div { background: var(--bg); }
.faq dt { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.faq dd { margin: 10px 0 0; color: var(--muted); }

/* a bestseller's own page (/hanan-tools/mh6-20/ ...) */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; font-size: .9rem; color: var(--muted); }
/* the separator is a mirrored character: right-to-left pages show it pointing the other way by themselves */
.breadcrumb li + li::before { content: "›"; margin-inline: 10px; color: var(--steel-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-hover); text-decoration: underline; }
.breadcrumb a[aria-current] { color: var(--text); font-weight: 700; }
.type-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.12; max-width: 26ch; }
:lang(ar) .type-hero h1 { line-height: 1.45; }
.type-hero .type-lead { color: #cfd2d7; max-width: 70ch; }
.type-card { max-width: 900px; margin-top: 28px; }
.type-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.type-text .lead, .type-order .lead { margin-top: 16px; }
.type-order { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.type-links { list-style: none; display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--muted); }
@media (max-width: 900px) { .type-text, .type-order { grid-template-columns: 1fr; } }
.contact-note { display: block; margin-top: 6px; font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- line art
   Background drawings (README "Line art"; tools/make_line_art.py -> src/static/art/, macro art() in macros.html):
   drawn at full strength, faded here so they never compete with the text; decorative only (empty alt, aria-hidden).
   Each is shown at its own canvas size (the SVG's width/height are display px), so every drawing has the same
   apparent line width. Slots:
   .art-side   beside a section heading (from 1240 px, where there is room). Placed in the container right after
               the heading block and lifted by its own height: it stands just above what follows the heading
               (cards, table ...), however many lines the heading has in each language.
   .art-hero   beside a page title, from the top of the hero (the SVG is inlined: no request, never the LCP element)
   .art-under  in the flow under a text column (from 901 px)
   .art-404    beside the 404 title (vertically centred), under it on smaller screens
   All absolute ones sit behind the content of their section (z-index -1 in the section's own stacking context),
   their right edge at --art-end from the window edge (default: 80 px past the content edge = 20 px from the window
   edge at 1440, up to 40 px past it below 1400 - the section clips; the round drum drawings, the phone, the carbide
   tip and the globe stay whole). The fade runs out towards the text (inline start) and towards what follows (bottom); per
   placement (.art-at-<name>) --art-top / --art-gap / --art-fade-* / --art-o set where it sits and how strong.
   Right-to-left pages: on the left; mirrored only with .art-mirror (machines may be, the globe and the drum never -
   an unmirrored drawing gets the mask the other way round instead). */
.art-wrap { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.art { display: block; max-width: none; height: auto; pointer-events: none; user-select: none; -webkit-user-select: none; }
.art-side, .art-hero, .art-404 {
  position: absolute; z-index: -1;
  inset-inline-end: var(--art-end, max(-40px, calc(50% - 700px)));
  opacity: var(--art-o, .22);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--art-fade-s, 18%)), linear-gradient(to bottom, #000 var(--art-fade-b, 86%), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--art-fade-s, 18%)), linear-gradient(to bottom, #000 var(--art-fade-b, 86%), transparent);
  mask-composite: intersect;
}
[dir="rtl"] :is(.art-side, .art-hero, .art-404):not(.art-mirror) {
  -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--art-fade-s, 18%)), linear-gradient(to bottom, #000 var(--art-fade-b, 86%), transparent);
  mask-image: linear-gradient(to left, transparent, #000 var(--art-fade-s, 18%)), linear-gradient(to bottom, #000 var(--art-fade-b, 86%), transparent);
}
[dir="rtl"] .art-mirror { transform: scaleX(-1); }
/* side: top stays auto = where the next block starts (under the heading), then lifted by its height + a gap */
.art-side { translate: 0 calc(-100% - var(--art-gap, 8px)); }
@supports not (translate: 0 0) { .art-side { display: none; } }  /* old browsers: it would sit on the cards */
.art-hero { inset-block-start: var(--art-top, 32px); --art-o: .26; }
.art-under { max-width: 80%; margin-block-start: clamp(32px, 4vw, 52px); opacity: .3; }
.art-404 { inset-block-start: 50%; translate: 0 -50%; --art-o: .3; }
/* placements */
.art-at-home-products { --art-fade-b: 100%; --art-gap: 16px; --art-end: calc(50% - 700px); }   /* stands on its ground line; the conveyor may run off the edge */
.art-at-home-steps { --art-end: max(0px, calc(50% - 700px)); }             /* the phone stays whole */
.art-at-tools-series { --art-end: max(8px, calc(50% - 700px)); }           /* the carbide tip stays whole */
.art-at-contact { --art-top: 24px; }
@media (max-width: 1439px) {                                  /* the globe beside the long title: a little smaller, whole */
  .art-at-contact { width: 300px; --art-end: max(0px, calc(50% - 700px)); }
}
@media (max-width: 1399px) {                                  /* round drawings whole: a cut circle looks like a mistake */
  .art-at-tools-best { width: 440px; --art-end: 0px; }
  .art-404 { width: 360px; --art-end: 0px; }
}
@media (max-width: 1239px) {
  .art-side, .art-hero { display: none; }                     /* below that they would reach the text */
  .art-404 { position: static; translate: none; width: min(320px, 70%); margin-block-start: 40px; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 900px) { .art-under { display: none; } }
@media (max-width: 599px) { .art-404 { display: none; } }
@media (forced-colors: active) { .art { display: none; } }
@media print { .art { display: none; } }

/* ---------------------------------------------------------------- Animation (README "Animation")
   A full-width band with an animated line drawing (tools/make_animation.py -> src/static/anim/, macro anim_band()):
   picks on a turning milling drum cut the asphalt, the chips go up the conveyor. Drawn at its canvas size like the
   line art (1200 x 320 display px: the same apparent line width as every other drawing), with the cut (canvas x 560)
   in the middle of the window; narrower windows clip the ends, phones show it smaller (--s). A bit stronger than the
   background drawings (here it is the subject). The SVG stays paused (class is-paused, a still drawing without
   JavaScript or with reduced motion); main.js moves it on while the visitor scrolls past it. */
.anim-band { --s: 1; position: relative; height: calc(320px * var(--s)); overflow: hidden; overflow: clip;
  margin-block: clamp(20px, 3vw, 40px) calc(-1 * clamp(24px, 4vw, 56px)); }   /* the next section's top padding runs under the faded road */
.anim-band .anim {
  position: absolute; inset-block-start: 0; left: 50%; margin-left: calc(-560px * var(--s));
  width: calc(1200px * var(--s)); height: calc(320px * var(--s)); max-width: none;
  opacity: var(--anim-o, .6); pointer-events: none; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
  mask-composite: intersect;
}
[dir="rtl"] .anim-band .anim { margin-left: calc(-640px * var(--s)); transform: scaleX(-1); }   /* drives to the left */
@media (max-width: 899px) { .anim-band { --s: .85; } }
@media (max-width: 599px) { .anim-band { --s: .7; } }
@media (forced-colors: active) { .anim-band { display: none; } }
@media print { .anim-band { display: none; } }

/* ---------------------------------------------------------------- floating WhatsApp button */
.wa-float {
  position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #177a41; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: background-color .2s, transform .2s;
}
.wa-float:hover { background: #136a38; transform: translateY(-2px); }
.wa-float .icon { width: 22px; height: 22px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
body.menu-open .wa-float { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
