/* =====================================================================
   Al-Rawda — General Contracting & Elevators
   Design system: graphite + signal red, "vertical motion" motif.
   Logical properties everywhere so RTL (ar) and LTR (en) share one sheet.
   ===================================================================== */

:root {
  /* Neutrals — midnight navy + cool steel (corporate, calm, high-contrast) */
  --ink: #0b1a2e;
  --ink-2: #10233f;
  --ink-3: #173153;
  --ink-4: #23436d;
  --steel: #8e9cb1;
  --steel-2: #c5cfdc;
  --paper: #f4f6f9;
  --paper-2: #e9eef4;
  --white: #ffffff;
  --text: #0f1b2c;
  --muted: #56667b;
  --line: rgba(11, 26, 46, .10);
  --line-dark: rgba(255, 255, 255, .10);

  /* Brand — refined crimson from the Al-Rawda mark, used sparingly as the single accent */
  --red: #c8102e;
  --red-600: #a60c25;
  --red-700: #7c091b;
  --red-50: #fcebee;
  --led: #ff4057;

  /* Type — Noto Kufi Arabic (display) + Tajawal (text) */
  --font-display: "Noto Kufi Arabic", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", "Noto Kufi Arabic", system-ui, sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-md: 1.0625rem;  /* 17 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --fs-2xl: clamp(1.55rem, 1.15rem + 1.5vw, 2.25rem);
  --fs-3xl: clamp(1.8rem, 1.25rem + 2.1vw, 2.85rem);
  --fs-hero: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);

  /* Spacing (8pt) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11,26,46,.05), 0 12px 32px -14px rgba(11,26,46,.20);
  --shadow-lg: 0 30px 60px -28px rgba(11,26,46,.45);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --container: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.45; margin: 0; font-weight: 700; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 var(--s-4); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999; background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 640px) { .container { width: min(100% - 3rem, var(--container)); } }

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

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--red); --fg: #fff; --bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { --bg: var(--red-600); --bd: var(--red-600); transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover .icon.arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon.arrow { transform: scaleX(-1) translateX(4px); }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.35); }
.btn--ghost:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--dark { --bg: var(--ink); --bd: var(--ink); }
.btn--dark:hover { --bg: var(--ink-3); --bd: var(--ink-3); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--line:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--sm { min-height: 40px; padding: .45rem 1rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--red); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--ink); color: var(--steel-2); font-size: var(--fs-xs); border-bottom: 1px solid var(--line-dark); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar__info { display: none; gap: 1.5rem; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__info a:hover { color: #fff; }
.topbar__social { display: flex; gap: .25rem; margin-inline-start: auto; }
.topbar__social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar__social a:hover { color: #fff; background: var(--ink-3); }
@media (min-width: 900px) { .topbar__info { display: flex; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,26,46,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  transition: background .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(11,26,46,.97); }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.brand__name b { color: var(--red); font-weight: 700; }
.brand__tag { font-size: .75rem; color: var(--steel); letter-spacing: .02em; }

.nav { display: none; margin-inline-start: auto; }
.nav > ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a, .nav button.nav__toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .8rem; border-radius: 8px; background: none; border: 0; color: var(--steel-2);
  font-family: var(--font-display); font-weight: 500; font-size: .92rem;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav button.nav__toggle:hover, .nav a.is-active { color: #fff; }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -1rem; min-width: 300px;
  list-style: none; margin: 0; padding: .6rem;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 10px; width: 100%; }
.nav__menu a:hover { background: var(--ink-3); }
.nav__menu .icon { width: 22px; height: 22px; color: var(--red); margin-top: .15rem; }
.nav__menu strong { display: block; color: #fff; font-weight: 600; }
.nav__menu small { display: block; color: var(--steel); font-family: var(--font-body); font-size: .78rem; line-height: 1.5; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; color: var(--steel-2); border: 1px solid var(--line-dark); border-radius: 999px; font-size: .8rem; font-family: var(--font-display); }
.lang-switch:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.header-cta { display: none; }


.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; background: var(--ink-3); border: 0; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-actions { margin-inline-start: 0; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 380px);
  background: var(--ink); color: #fff; padding: 1.25rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 1rem;
}
[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: .85rem .25rem; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); }
.drawer nav ul ul a { padding-inline-start: 1rem; color: var(--steel-2); font-size: .92rem; }

/* ---------------------------------------------------------------- hero (full-screen media slider) */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__slide[data-type="image"] img { transform: scale(1.06); }
.hero__slide[data-type="image"].is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
/* cinematic shade: darker at the bottom for text, a soft top band so the transparent header stays legible */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,14,26,.70) 0%, rgba(6,14,26,.10) 22%, rgba(6,14,26,0) 45%, rgba(6,14,26,.55) 72%, rgba(6,14,26,.92) 100%),
    linear-gradient(90deg, rgba(6,14,26,.45), transparent 55%); }
[dir="rtl"] .hero::before { background:
    linear-gradient(180deg, rgba(6,14,26,.70) 0%, rgba(6,14,26,.10) 22%, rgba(6,14,26,0) 45%, rgba(6,14,26,.55) 72%, rgba(6,14,26,.92) 100%),
    linear-gradient(270deg, rgba(6,14,26,.45), transparent 55%); }

.hero__inner { position: relative; padding-bottom: 9.5rem; display: grid; gap: var(--s-4); justify-items: start; }
.hero__tag { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 500; color: var(--steel-2); letter-spacing: .02em; }
.hero__tag::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem); line-height: 1.45; max-width: 22ch; text-wrap: balance; }
html[lang="en"] .hero__title { line-height: 1.2; letter-spacing: -.01em; }
.hero__tag, .hero__title { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hero.is-switching .hero__tag, .hero.is-switching .hero__title { opacity: 0; transform: translateY(10px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: var(--s-2); }
.btn--glass { --bg: rgba(255,255,255,.08); --fg: #fff; --bd: rgba(255,255,255,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }

/* bottom control bar: numbered slides with progress */
.hero__bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; border-top: 1px solid rgba(255,255,255,.14); background: linear-gradient(0deg, rgba(6,14,26,.55), rgba(6,14,26,0)); }
.hero__bar-inner { display: flex; align-items: stretch; gap: 1rem; }
.hero__dots { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.hero__dot { position: relative; display: flex; align-items: center; gap: .6rem; padding: 1.15rem .2rem 1.25rem; background: none; border: 0; color: rgba(255,255,255,.55); text-align: start; font-family: var(--font-display); font-size: var(--fs-xs); transition: color .3s; min-width: 0; }
.hero__dot:hover, .hero__dot.is-active { color: #fff; }
.hero__dot-num { font-weight: 600; direction: ltr; }
.hero__dot-label { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.hero__dot-track { position: absolute; inset-inline: 0; top: -1px; height: 2px; background: transparent; overflow: hidden; }
.hero__dot-fill { display: block; height: 100%; width: 0; background: var(--red); }
.hero__dot.is-active .hero__dot-fill { animation: slide-progress var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__dot-fill { animation-play-state: paused; }
[dir="rtl"] .hero__dot-fill { margin-inline-start: auto; }
@keyframes slide-progress { from { width: 0; } to { width: 100%; } }
@media (min-width: 900px) { .hero__dot-label { display: inline; } .hero__dot { padding-inline-end: 1.4rem; } }
.hero__pause { flex: none; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; }
.hero__pause:hover { background: #fff; color: var(--ink); }
.hero__pause .icon { width: 16px; height: 16px; }
.hero__pause .i-play, .hero.is-paused .hero__pause .i-pause { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }

.hero__scroll { position: absolute; bottom: 5.6rem; inset-inline-end: max(1rem, calc((100% - var(--container)) / 2)); z-index: 3; display: none; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* ---------------------------------------------------------------- transparent header over the hero */
.has-hero .topbar { position: absolute; top: 0; inset-inline: 0; z-index: 51; background: transparent; border-bottom-color: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.has-hero .site-header { position: fixed; top: 38px; inset-inline: 0; background: transparent; border-bottom-color: rgba(255,255,255,.12); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .35s var(--ease), top .35s var(--ease), box-shadow .35s var(--ease); }
.has-hero .site-header.is-scrolled { top: 0; background: rgba(11,26,46,.94); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); border-bottom-color: var(--line-dark); }
.has-hero .site-header .nav a, .has-hero .site-header .nav button.nav__toggle { color: rgba(255,255,255,.88); }
.has-hero .site-header .nav a:hover, .has-hero .site-header .nav a.is-active { color: #fff; }
.has-hero .lang-switch { border-color: rgba(255,255,255,.3); color: #fff; }
.has-hero .menu-btn { background: rgba(255,255,255,.1); }
@media (max-width: 899px) {
  .has-hero .topbar { display: none; }
  .has-hero .site-header { top: 0; }
}

/* ---------------------------------------------------------------- stats band (under the slider) */
.stats-band { background: var(--white); border-bottom: 1px solid var(--line); position: relative; }
.stats-band::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: min(28%, 360px); height: 3px; background: var(--red); }
.stats-band__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat-item { display: flex; align-items: center; gap: 1rem; padding: var(--s-6) var(--s-3); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item:nth-child(2n) { border-inline-end: 0; }
.stat-item > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; color: var(--red); background: var(--red-50); stroke-width: 1.7; }
.stat-item__num { display: inline-flex; align-items: baseline; gap: .1rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); line-height: 1.1; color: var(--ink); direction: ltr; }
.stat-item__num small { color: var(--red); font-size: .6em; }
.stat-item__label { color: var(--muted); font-size: var(--fs-sm); margin-top: .25rem; }
@media (min-width: 900px) {
  .stats-band__grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-bottom: 0; padding: var(--s-7) var(--s-5); justify-content: center; }
  .stat-item:nth-child(2n) { border-inline-end: 1px solid var(--line); }
  .stat-item:last-child { border-inline-end: 0; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--s-9); position: relative; }
.section--tight { padding-block: var(--s-8); }
.section--dark { background: var(--ink); color: #e3e9f1; }
.section--dark .section-head p { color: var(--steel-2); }
.section--white { background: var(--white); }
.section--steel { background: var(--paper-2); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.section-head--split { align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: var(--s-7); } }
.section-head h2 { font-size: var(--fs-2xl); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.kicker__floor { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding-inline: .3rem; border-radius: 5px; background: var(--ink); color: var(--led); font-size: .72rem; letter-spacing: .05em; direction: ltr; }
.section--dark .kicker__floor { background: #06111f; }

/* ---------------------------------------------------------------- pillars */
.pillars { display: grid; gap: var(--s-5); }
@media (min-width: 640px) and (max-width: 999px) { .pillars { grid-template-columns: 1fr 1fr; } .pillars > :last-child { grid-column: 1 / -1; min-height: 380px; } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: var(--s-6); color: #fff; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--ink); }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,26,46,.05) 20%, rgba(11,26,46,.92) 82%); }
.pillar:hover img { transform: scale(1.06); filter: saturate(1); }
.pillar__num { position: absolute; top: var(--s-5); inset-inline-start: var(--s-5); font-family: var(--font-display); font-size: .78rem; color: var(--led); background: #06111f; padding: .2rem .5rem; border-radius: 5px; direction: ltr; }
.pillar h3 { font-size: var(--fs-xl); margin-bottom: .6rem; }
.pillar p { color: var(--steel-2); font-size: var(--fs-sm); margin-bottom: 1rem; }
.pillar ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.pillar li { font-size: .75rem; padding: .2rem .6rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #e3e9f1; }
.pillar .link-arrow { color: #fff; }
.pillar .link-arrow .icon { color: var(--red); }

/* ---------------------------------------------------------------- elevator showcase (dark) */
.showcase { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .showcase { grid-template-columns: 1fr 1.1fr; align-items: stretch; } }
.showcase__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); counter-reset: car; }
.showcase__list li { border-bottom: 1px solid var(--line-dark); }
.showcase__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem .25rem; color: var(--steel-2); transition: color .25s, padding .3s var(--ease); }
.showcase__list a::before { counter-increment: car; content: counter(car, decimal-leading-zero); font-family: var(--font-display); font-size: .78rem; color: var(--steel); direction: ltr; }
.showcase__list strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: #fff; transition: color .25s; }
.showcase__list span.desc { display: block; font-size: var(--fs-xs); color: var(--steel); line-height: 1.55; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), margin .3s; }
.showcase__list a .icon { color: var(--steel); transition: color .25s, transform .3s; }
.showcase__list li.is-active a, .showcase__list a:hover { padding-inline-start: .9rem; }
.showcase__list li.is-active strong { color: var(--red); }
.showcase__list li.is-active span.desc { max-height: 5em; margin-top: .3rem; }
.showcase__list li.is-active a .icon { color: #fff; }
.showcase__stage { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.showcase__stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.showcase__stage figure.is-active { opacity: 1; }
.showcase__stage img { width: 100%; height: 100%; object-fit: cover; }
.showcase__stage figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: var(--s-5); background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-family: var(--font-display); }
.showcase__badge { position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 12px; background: rgba(11,26,46,.8); backdrop-filter: blur(8px); color: #fff; font-size: var(--fs-xs); border: 1px solid var(--line-dark); }
.showcase__badge b { font-family: var(--font-display); font-size: 1.6rem; color: var(--red); line-height: 1; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { font-size: 1.15rem; }
.card__body p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.card__body .link-arrow { margin-top: auto; padding-top: .6rem; }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--red-50); color: var(--red); margin-bottom: .3rem; }
.card__icon .icon { width: 26px; height: 26px; }
.card--feature { padding: var(--s-6) var(--s-5); gap: .6rem; }
.card--feature h3 { font-size: 1.1rem; }
.card--feature p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.card-link::after { content: ""; position: absolute; inset: 0; }

/* reasons (why us) */
.reasons { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.reason { background: var(--white); padding: var(--s-6) var(--s-5); transition: background .3s; }
.reason:hover { background: var(--paper); }
.reason .icon { width: 30px; height: 30px; color: var(--red); margin-bottom: 1rem; }
.reason h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.reason p { color: var(--muted); font-size: var(--fs-sm); margin: 0; line-height: 1.7; }

/* ---------------------------------------------------------------- projects */
.projects-feature { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) {
  .projects-feature { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 260px; }
  .projects-feature > :nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .projects-feature > :nth-child(2) { grid-column: span 2; }
  .projects-feature > :nth-child(3) { grid-column: span 2; }
  .projects-feature > :nth-child(4), .projects-feature > :nth-child(5) { grid-column: span 3; }
}
.project-tile { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-5); border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; background: var(--ink-2); }
.project-tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.project-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(8,18,34,.9)); }
.project-tile:hover .project-tile__bg { transform: scale(1.05); }
.project-tile__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--steel-2); margin-bottom: .4rem; }
.project-tile__units { position: absolute; top: var(--s-4); inset-inline-end: var(--s-4); background: var(--red); color: #fff; border-radius: 10px; padding: .45rem .7rem; font-family: var(--font-display); text-align: center; line-height: 1.1; }
.project-tile__units b { display: block; font-size: 1.4rem; }
.project-tile__units small { font-size: .65rem; opacity: .9; }
.project-tile h3 { font-size: 1.2rem; }
.project-tile:first-child h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); }
.project-tile__logo { position: absolute; top: var(--s-4); inset-inline-start: var(--s-4); width: 52px; height: 52px; border-radius: 12px; background: #fff; padding: 5px; object-fit: contain; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15); font-size: .75rem; }
.chip--red { background: var(--red-50); color: var(--red-600); border-color: transparent; }
.chip--dark { background: var(--ink); color: #fff; border-color: transparent; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-6); }
.filters a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-size: .85rem; color: var(--muted); transition: all .2s; }
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters a small { font-size: .7rem; opacity: .7; }

.project-card .card__media { aspect-ratio: 16 / 10; position: relative; }
.project-card .card__media .project-card__logo { position: absolute; bottom: -22px; inset-inline-start: var(--s-5); width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 6px; object-fit: contain; box-shadow: var(--shadow); z-index: 2; }
.project-card .card__body { padding-top: var(--s-6); }
.project-card__client { font-size: var(--fs-xs); color: var(--red); font-family: var(--font-display); font-weight: 600; }
.project-card__scope { display: flex; justify-content: space-between; gap: .5rem; padding-top: .8rem; margin-top: auto; border-top: 1px dashed var(--line); font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------------------- clients marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--s-5); width: max-content; animation: marquee 50s linear infinite; direction: ltr; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-box { flex: none; width: 150px; height: 110px; display: grid; place-items: center; padding: 14px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.logo-box { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.logo-box img { max-height: 78px; width: auto; object-fit: contain; transition: transform .45s var(--ease); }
.logo-box:hover { transform: translateY(-4px); border-color: rgba(200,16,46,.3); box-shadow: 0 18px 36px -20px rgba(200,16,46,.45); }
.logo-box:hover img { transform: scale(1.06); }
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .logo-wall { grid-template-columns: repeat(8, 1fr); } }
.logo-wall .logo-box { width: auto; }
.logo-wall figcaption { font-size: .7rem; color: var(--muted); text-align: center; margin-top: .4rem; line-height: 1.4; }

/* ---------------------------------------------------------------- credentials */
.credentials { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .credentials { grid-template-columns: repeat(2, 1fr); } }
.credential { display: flex; gap: 1rem; align-items: flex-start; padding: var(--s-5); border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); }
.credential .icon { width: 28px; height: 28px; color: var(--red); margin-top: .2rem; }
.credential h3 { font-size: 1rem; color: #fff; margin-bottom: .2rem; }
.credential p { margin: 0; color: var(--steel); font-size: var(--fs-sm); }
.credential b { color: #fff; font-family: var(--font-display); direction: ltr; unicode-bidi: embed; }

/* ---------------------------------------------------------------- split / about */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.2fr 1fr; } }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--land img { aspect-ratio: 4 / 3; }
.split__badge { position: absolute; bottom: -1.5rem; inset-inline-end: -0.5rem; background: var(--red); color: #fff; padding: 1.2rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-family: var(--font-display); max-width: 220px; }
.split__badge b { display: block; font-size: 2.6rem; line-height: 1; direction: ltr; }
.split__badge span { font-size: .85rem; }
@media (min-width: 1240px) { .split__badge { inset-inline-end: -2rem; } }
.prose { font-size: var(--fs-md); }
.prose p { color: var(--muted); }
.prose h2 { font-size: var(--fs-xl); margin: var(--s-6) 0 var(--s-3); color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.section--dark .prose p { color: var(--steel-2); }
.lead { font-size: var(--fs-lg); color: var(--ink); line-height: 1.9; }
.section--dark .lead { color: #fff; }

.ticks { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-inline-start: 2rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.ticks strong { color: var(--ink); font-weight: 600; }
.section--dark .ticks li { color: var(--steel-2); }
.section--dark .ticks strong { color: #fff; }
.ticks--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.vm { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .vm { grid-template-columns: repeat(3, 1fr); } }
.vm article { padding: var(--s-6); border-radius: var(--radius); background: var(--white); border-top: 3px solid var(--red); box-shadow: var(--shadow); }
.vm h3 { font-size: 1.2rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .6rem; }
.vm h3 .icon { color: var(--red); width: 26px; height: 26px; }
.vm p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.letter { position: relative; padding: var(--s-7) var(--s-6); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.letter .icon.quote { position: absolute; top: -18px; inset-inline-start: var(--s-6); width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--red); color: #fff; }
.letter p { color: var(--steel-2); }
.letter footer { font-family: var(--font-display); color: #fff; margin-top: var(--s-4); }

/* timeline-ish process */
.process { display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li { list-style: none; position: relative; padding: var(--s-5); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.process li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: transparent; -webkit-text-stroke: 1px var(--red); margin-bottom: .5rem; direction: ltr; text-align: start; }
.process h3 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.process p { margin: 0; color: var(--steel); font-size: var(--fs-sm); }
.process { padding: 0; margin: 0; }
@media (min-width: 900px) { .split .process { grid-template-columns: repeat(2, 1fr); } }

/* sectors */
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 900px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.sector { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-size: .92rem; }
.sector .icon { color: var(--red); width: 24px; height: 24px; }

/* ---------------------------------------------------------------- page header */
.page-hero { position: relative; color: #fff; background: var(--ink); padding-block: var(--s-9) var(--s-8); overflow: hidden; isolation: isolate; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 0%, rgba(11,26,46,.55) 70%, rgba(11,26,46,.4)); }
.page-hero h1 { font-size: var(--fs-3xl); font-weight: 700; max-width: 24ch; }
.page-hero p { max-width: 62ch; color: var(--steel-2); font-size: var(--fs-md); margin-top: var(--s-4); margin-bottom: 0; }
.page-hero__shaft { position: absolute; inset-block: 0; inset-inline-end: 8%; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.25), transparent); z-index: -1; }
.page-hero__shaft::after { content: ""; position: absolute; inset-inline-start: -3px; width: 7px; height: 60px; border-radius: 4px; background: var(--red); animation: car 6s var(--ease) infinite alternate; }
@keyframes car { from { top: 15%; } to { top: 75%; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--steel-2); margin-bottom: var(--s-5); font-family: var(--font-display); }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- service detail */
.layout-aside { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.aside-sticky { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .aside-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.panel { background: var(--white); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow); }
.panel--dark { background: var(--ink); color: #fff; }
.panel h3 { font-size: 1.1rem; margin-bottom: var(--s-4); }
.panel-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.panel-nav a { display: flex; justify-content: space-between; align-items: center; padding: .7rem .8rem; border-radius: 10px; font-size: var(--fs-sm); color: var(--muted); transition: background .2s, color .2s; }
.panel-nav a:hover { background: var(--paper); color: var(--ink); }
.panel-nav a.is-active { background: var(--ink); color: #fff; }
.panel-nav .icon { width: 14px; height: 14px; }
.feature-grid { display: grid; gap: var(--s-4); margin-block: var(--s-6); }
@media (min-width: 700px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature { padding: var(--s-5); background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.feature__num { font-family: var(--font-display); font-size: .78rem; color: var(--red); direction: ltr; display: inline-block; margin-bottom: .4rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.media-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: var(--s-6); background: var(--paper-2); }
.media-hero img { width: 100%; height: 100%; object-fit: cover; }

.warranty { display: flex; align-items: center; gap: 1rem; padding: var(--s-5); border-radius: var(--radius); background: linear-gradient(135deg, var(--red), var(--red-700)); color: #fff; }
.warranty b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; direction: ltr; }
.warranty span { font-size: var(--fs-sm); line-height: 1.5; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--font-display); font-size: .85rem; font-weight: 500; color: var(--ink); }
.panel--dark .field label, .section--dark .field label { color: #e3e9f1; }
.field label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; font: inherit; font-size: var(--fs-sm); color: var(--text);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(200,16,46,.12); }
.panel--dark .input, .panel--dark .select, .panel--dark .textarea { background: var(--ink-2); border-color: var(--ink-4); color: #fff; }
.field-error { color: var(--red); font-size: .8rem; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-note { font-size: .78rem; color: var(--steel); display: flex; gap: .4rem; align-items: center; }

.segmented { display: flex; flex-wrap: wrap; gap: .5rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-family: var(--font-display); font-size: .85rem; background: var(--white); transition: all .2s; }
.segmented input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.segmented input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------------------------------------------------------------- contact */
.contact-cards { display: grid; gap: var(--s-4); }
.contact-card { display: flex; gap: 1rem; padding: var(--s-5); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.contact-card a.tel { display: inline-flex; align-items: center; min-height: 40px; font-family: var(--font-display); color: var(--ink); direction: ltr; margin-inline-end: .8rem; }
.contact-card a.tel:hover { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; border: 0; width: 100%; height: 380px; filter: grayscale(.4) contrast(1.05); }

/* ---------------------------------------------------------------- blog */
.post-card .card__media { aspect-ratio: 16 / 9; }
.post-meta { display: flex; align-items: center; gap: .5rem; color: var(--steel); font-size: var(--fs-xs); }
.article { max-width: 760px; }
.article .prose p { color: #3c434b; font-size: 1.08rem; line-height: 1.95; }
html[lang="en"] .article .prose p { line-height: 1.8; }

/* ---------------------------------------------------------------- spare parts */
.parts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (min-width: 700px) { .parts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .parts-grid { grid-template-columns: repeat(4, 1fr); } }
.part { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.part:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.part__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 1rem; }
.part__img img { max-height: 100%; object-fit: contain; }
.part__body { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); }
.part__body h3 { font-size: .95rem; }
.part__body span { font-size: .78rem; color: var(--steel); }
.part[hidden] { display: none; }

/* ---------------------------------------------------------------- CTA band */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: var(--ink); color: #fff; padding: var(--s-7) var(--s-5); isolation: isolate; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 20%, rgba(200,16,46,.45), transparent 45%), linear-gradient(90deg, rgba(11,26,46,.95), rgba(11,26,46,.6)); }
[dir="rtl"] .cta::after { background: radial-gradient(circle at 15% 20%, rgba(200,16,46,.45), transparent 45%), linear-gradient(270deg, rgba(11,26,46,.95), rgba(11,26,46,.6)); }
.cta__inner { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .cta { padding: var(--s-8) var(--s-7); } .cta__inner { grid-template-columns: 1.4fr auto; } }
.cta h2 { font-size: var(--fs-2xl); font-weight: 700; }
.cta p { color: var(--steel-2); margin: .6rem 0 0; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta__warranties { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: var(--s-5); }
.cta__warranties div { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); color: #e3e9f1; }
.cta__warranties b { font-family: var(--font-display); font-size: 1.6rem; color: #fff; direction: ltr; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--steel-2); padding-top: var(--s-9); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer h3 { font-size: .95rem; color: #fff; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin: var(--s-4) 0; max-width: 40ch; color: var(--steel); }
.footer-slogan { display: inline-flex; gap: .6rem; font-family: var(--font-display); color: #fff; font-size: .9rem; }
.footer-slogan span:not(:last-child)::after { content: "·"; color: var(--red); margin-inline-start: .6rem; }
.footer-branch { margin-bottom: var(--s-4); }
.footer-branch strong { color: #fff; font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: .2rem; }
.footer-branch a.tel { direction: ltr; display: inline-flex; align-items: center; min-height: 36px; margin-inline-end: .7rem; color: var(--steel-2); font-family: var(--font-display); font-size: .85rem; }
.footer-social { display: flex; gap: .5rem; margin-top: var(--s-4); }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); }
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: var(--s-5); font-size: var(--fs-xs); color: var(--steel); }

/* floating actions */
.fab { position: fixed; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(1.2rem + env(safe-area-inset-right, 0px)); z-index: 60; display: flex; flex-direction: column; gap: .6rem; }
.fab a { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.fab a:hover { transform: scale(1.07); }
.fab__wa { background: #1fa855; }
.fab__call { background: var(--red); }
.fab .icon { width: 26px; height: 26px; }
.to-top { opacity: 0; pointer-events: none; transition: opacity .3s; background: var(--ink-3) !important; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* misc */
.center { text-align: center; }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.muted { color: var(--muted); }
.thanks { text-align: center; max-width: 620px; margin-inline: auto; }
.thanks__icon { width: 84px; height: 84px; margin: 0 auto var(--s-5); border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 0 0 12px rgba(200,16,46,.12); }
.thanks__icon .icon { width: 40px; height: 40px; stroke-width: 2.2; }
.empty { padding: var(--s-7); text-align: center; color: var(--muted); background: var(--white); border-radius: var(--radius); }

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

@media print {
  .site-header, .topbar, .site-footer, .fab, .intro { display: none !important; }
}

.card--feature > .icon { width: 30px; height: 30px; color: var(--red); }
fieldset legend.kicker { padding: 0; }
html[lang="en"] .hero__lead, html[lang="en"] .page-hero p { line-height: 1.7; }
html[lang="en"] body { line-height: 1.65; }

/* keep slider controls clear of the floating WhatsApp / call buttons */
@media (max-width: 1399px) { .hero__bar-inner { padding-inline-end: 72px; } }
.hero__scroll { inset-inline-end: auto; left: 50%; margin-left: -13px; bottom: 5.4rem; }

/* =====================================================================
   Opening animation (logo intro) — once per session on the home page
   Timeline: arms sweep in → up/down triangles meet → red spheres pop → wordmark → soft fade into the slider
   ===================================================================== */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: auto; background: radial-gradient(70% 60% at 50% 45%, #0e1d33 0%, #070f1c 70%, #050b15 100%); animation: intro-out .65s 2.75s ease forwards; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
html:not(.intro-on) .intro { display: none; }
html.intro-on { overflow: hidden; }


.intro__stage { position: relative; display: grid; justify-items: center; gap: 1.4rem; animation: intro-stage-out .6s 2.55s ease-in forwards; }
@keyframes intro-stage-out { to { opacity: 0; transform: scale(1.06); filter: blur(3px); } }
.intro__glow { position: absolute; top: 50%; left: 50%; width: 520px; height: 520px; margin: -340px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.22), transparent 62%); opacity: 0; animation: intro-fade .9s 1s ease-out forwards; pointer-events: none; }

.rw-mark { width: clamp(132px, 24vw, 190px); height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.rw-arms { transform-box: view-box; transform-origin: 258px 256px; animation: intro-swirl 1.5s .1s cubic-bezier(.16,1,.3,1) both; }
.rw-arm { opacity: 0; animation: intro-fade .5s calc(.15s + var(--i) * .07s) ease-out forwards; }
@keyframes intro-swirl { from { transform: rotate(-150deg) scale(.55); } to { transform: none; } }
.rw-tri { transform-box: fill-box; opacity: 0; }
.rw-tri--up { animation: intro-tri-up .7s .6s cubic-bezier(.34,1.56,.64,1) forwards; }
.rw-tri--down { animation: intro-tri-down .7s .72s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes intro-tri-up { from { opacity: 0; transform: translateY(-120%); } to { opacity: 1; transform: none; } }
@keyframes intro-tri-down { from { opacity: 0; transform: translateY(120%); } to { opacity: 1; transform: none; } }
.rw-dot { transform-box: fill-box; transform-origin: center; opacity: 0; animation: intro-pop .5s calc(1.05s + var(--i) * .08s) cubic-bezier(.34,1.8,.64,1) forwards; }
@keyframes intro-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.intro__word { display: grid; justify-items: center; gap: .35rem; text-align: center; color: #fff; }
.intro__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.3; letter-spacing: .02em; opacity: 0; animation: intro-up .7s 1.45s cubic-bezier(.16,1,.3,1) forwards; }
html[lang="en"] .intro__name { letter-spacing: .12em; }
.intro__sub { font-size: var(--fs-sm); color: var(--steel-2); opacity: 0; animation: intro-up .7s 1.6s cubic-bezier(.16,1,.3,1) forwards; }
.intro__line { display: block; width: 0; height: 2px; margin: .4rem 0 .2rem; background: linear-gradient(90deg, transparent, var(--red), transparent); animation: intro-line .7s 1.75s ease-out forwards; }
@keyframes intro-line { to { width: 140px; } }
.intro__slogan { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: var(--fs-xs); color: #e3e9f1; letter-spacing: .08em; opacity: 0; animation: intro-up .6s 1.9s ease-out forwards; }
.intro__slogan b { font-weight: 500; }
.intro__slogan i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
@keyframes intro-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes intro-fade { to { opacity: 1; } }

.intro__skip { position: absolute; bottom: 1.5rem; inset-inline-end: 1.5rem; z-index: 2; padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.7); font-size: var(--fs-xs); font-family: var(--font-display); animation: intro-stage-out .3s 2.45s forwards; }
.intro__skip:hover { color: #fff; border-color: #fff; }
.intro.is-skipped { animation: intro-skip .45s ease forwards; }
@keyframes intro-skip { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------------------------------------------------------------- header over the slider: subtle darkening */
.has-hero .topbar { background: rgba(6,14,26,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom-color: rgba(255,255,255,.08); }
.has-hero .site-header { background: linear-gradient(180deg, rgba(6,14,26,.55) 0%, rgba(6,14,26,.32) 100%); backdrop-filter: blur(8px) saturate(120%); -webkit-backdrop-filter: blur(8px) saturate(120%); border-bottom-color: rgba(255,255,255,.08); }

/* while the logo intro plays, the slider waits; its headline glides in when the intro ends */
html.intro-on .hero__inner, html.intro-on .hero__bar { opacity: 0; transform: translateY(18px); }
.hero__inner, .hero__bar { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* =====================================================================
   Mobile & tablet refinements
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
/* iOS zooms into inputs below 16px — keep form text at 16px on touch screens */
@media (max-width: 1023px) { .input, .select, .textarea { font-size: 16px; } }
/* tablet: images in split sections become landscape so the text is reachable quickly */
@media (max-width: 999px) {
  .split__media img { aspect-ratio: 16 / 10; max-height: 460px; }
  .split { gap: var(--s-8); }
  .section { padding-block: var(--s-8); }
  .section-head { margin-bottom: var(--s-6); }
  .media-hero { aspect-ratio: 16 / 10; }
  .showcase__stage { min-height: 320px; }
  .showcase__list span.desc { max-height: none; margin-top: .3rem; }
}
/* phones */
@media (max-width: 639px) {
  .section { padding-block: var(--s-7); }
  .pillar { min-height: 400px; padding: var(--s-5); }
  .reason { padding: var(--s-5); }
  .cta { padding: var(--s-6) var(--s-5); }
  .cta__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .page-hero { padding-block: var(--s-8) var(--s-7); }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: none; }
  .split__badge { inset-inline-end: .75rem; bottom: -1.25rem; padding: 1rem 1.1rem; }
  .split__badge b { font-size: 2rem; }
  .logo-box { width: 120px; height: 90px; }
  .stat-item { padding: var(--s-5) var(--s-2); gap: .7rem; }
  .stat-item > .icon { width: 34px; height: 34px; padding: 7px; }
}
/* very narrow phones: keep the header on one line */
@media (max-width: 400px) {
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.05rem; }
  .lang-switch { padding: .35rem .6rem; }
  .lang-switch .icon { display: none; }
  .header-actions { gap: .35rem; }
}
@media (max-width: 370px) { .brand__tag { display: none; } }
/* landscape phones / short screens: keep the hero content inside the viewport */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 420px; }
  .hero__inner { padding-bottom: 6.2rem; gap: var(--s-3); }
  .hero__title { font-size: 1.4rem; }
  .hero__dot { padding-block: .8rem .9rem; }
  .intro .rw-mark { width: 110px; }
}

/* =====================================================================
   Partners — two full-colour logo rows gliding in opposite directions
   ===================================================================== */
.partners { position: relative; display: grid; gap: var(--s-5); padding-block: var(--s-3);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.partners__row { overflow: hidden; padding-block: 14px; }
.partners__track { display: flex; gap: var(--s-5); width: max-content; animation: partners-scroll 55s linear infinite; will-change: transform; }
.partners__row--rev .partners__track { animation-direction: reverse; animation-duration: 62s; }
.partners__row:hover .partners__track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(calc(-50% - var(--s-5) / 2)); } }

.partner { position: relative; flex: none; width: 200px; margin: 0; display: grid; justify-items: center; gap: .55rem; }
.partner__logo { position: relative; display: grid; place-items: center; width: 100%; height: 124px; padding: 18px 22px; overflow: hidden;
  background: linear-gradient(180deg, #fff, #f7f9fc); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(11,26,46,.04), 0 10px 24px -16px rgba(11,26,46,.25);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.partner__logo img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
/* light sweep across the card on hover */
.partner__logo::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; transform: rotate(18deg) translateX(-160%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); transition: transform .8s var(--ease); pointer-events: none; }
/* brand-red ring that draws in */
.partner__logo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--red), rgba(200,16,46,0) 45%, rgba(200,16,46,0) 60%, var(--red));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s var(--ease); }
.partner figcaption { max-width: 100%; font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.4; opacity: .75; transition: color .3s, opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner:hover .partner__logo { transform: translateY(-8px); border-color: transparent; box-shadow: 0 26px 46px -22px rgba(200,16,46,.45), 0 10px 20px -14px rgba(11,26,46,.3); }
.partner:hover .partner__logo::before { opacity: 1; }
.partner:hover .partner__logo::after { transform: rotate(18deg) translateX(420%); }
.partner:hover .partner__logo img { transform: scale(1.08); }
.partner:hover figcaption { color: var(--ink); opacity: 1; }
@media (max-width: 639px) {
  .partner { width: 150px; }
  .partner__logo { height: 100px; padding: 14px; border-radius: 14px; }
  .partner__logo img { max-height: 66px; }
  .partners { gap: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  .partners { mask-image: none; -webkit-mask-image: none; }
  .partners__row { overflow-x: auto; }
  .partners__track { animation: none; }
}
