/* ==========================================================================
   الرشيدي لكماليات السيارات — static site
   Dark showroom theme. Hand-written, no framework.
   ========================================================================== */

:root {
  --bg: #0b0a0e;
  --bg-soft: #0e0c12;
  --surface: #14111a;
  --surface-2: #1b1722;
  --ink: #f7f2ef;
  --ink-soft: #e6dfe4;
  --muted: #a89fa9;
  --red: #ff3833;
  --red-ink: #ff6b66;
  --red-soft: rgba(255, 56, 51, 0.5);
  --green: #25d366;
  --blue: #2f6bd8;
  --gold: #ffc531;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 20px;
  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 40px);
  --font: 'Tajawal', 'Segoe UI', 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
main, header, section, footer { max-width: 100vw; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--red-ink); text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--red); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 10px; z-index: 100; font-weight: 700;
}
.skip:focus { top: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 800; font-size: 15px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--wa {
  background: linear-gradient(180deg, #2be070, #1db954);
  color: #04170b;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .3);
}
.btn--wa:hover { box-shadow: 0 14px 36px rgba(37, 211, 102, .45); }
.btn--call {
  background: linear-gradient(180deg, #3a7ce8, #255fc4);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 107, 216, .3);
}
.btn--call:hover { box-shadow: 0 14px 36px rgba(47, 107, 216, .45); }

.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(86svh, 740px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 52% 42%;
  animation: heroZoom 3s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 1%, rgba(11,10,14,.88) 34%, rgba(11,10,14,.42) 66%, rgba(11,10,14,.62) 100%),
    linear-gradient(to left, rgba(11,10,14,.92) 0%, rgba(11,10,14,.62) 42%, rgba(11,10,14,0) 78%),
    radial-gradient(85% 55% at 50% 100%, rgba(255,56,51,.16), transparent 62%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(90px, 16vh, 150px) clamp(34px, 6vh, 64px);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  max-width: 720px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10, 8, 12, .58);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.chip .star { color: var(--gold); font-size: 14px; }
.chip .sep { color: var(--muted); }

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 76px);
  font-weight: 900; line-height: 1.02; letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 8px 46px rgba(0,0,0,.6);
}
.hero h1 .accent {
  color: var(--red);
  text-shadow: 0 0 38px rgba(255,56,51,.45), 0 8px 46px rgba(0,0,0,.6);
}
.hero__en {
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: #ff8a83; direction: ltr; margin-inline-start: 2px;
}
.hero__intro {
  margin: 0; max-width: 44ch;
  font-size: clamp(15px, 3.6vw, 17px); line-height: 1.9; color: #ded7dc;
}

/* ---------- Facts bar ---------- */
.factsbar {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}
.factsbar__grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.fact {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.fact:last-child { border-bottom: 0; }
.fact__icon {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,56,51,.1); border: 1px solid rgba(255,56,51,.28);
  color: var(--red);
}
.fact__icon svg { width: 18px; height: 18px; }
.fact__label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.fact__value { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.fact a { color: var(--ink); }
.fact a:hover { color: var(--red-ink); }
.dot-open {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px rgba(37,211,102,.8);
  margin-inline-end: 7px; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; padding: 14px 0;
  background: #0d0b11; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker__run { display: flex; flex: none; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 24px; padding-inline-end: 24px;
  white-space: nowrap; font-size: 15px; font-weight: 800; color: var(--ink-soft);
}
.ticker__item i { font-style: normal; color: var(--red); font-size: 11px; }
@keyframes tick { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(52px, 9vw, 96px); }
.section--tight { padding-block: clamp(34px, 6vw, 60px); }

.head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(24px, 4vw, 38px); }
.label {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--red); font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
}
.label::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--red);
}
.head h2 {
  margin: 0;
  font-size: clamp(26px, 6vw, 40px); font-weight: 800; line-height: 1.15; color: var(--ink);
}
.lead { margin: 0; max-width: 52ch; color: var(--muted); font-size: 15px; line-height: 1.95; }

/* ---------- Gallery ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.work__shot {
  position: relative; display: block; padding: 0; margin: 0;
  aspect-ratio: 3 / 4; width: 100%;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #0f0d13; cursor: zoom-in;
  transition: border-color .2s ease, transform .25s ease;
}
.work__shot img.work__blur {
  position: absolute; inset: -12%; z-index: 0;
  width: 124%; height: 124%; max-width: none;
  object-fit: cover;
  filter: blur(20px) brightness(.45) saturate(1.1);
  transform: scale(1.08);
}
.work__shot img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
}
.work__shot span {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 26px 12px 11px;
  font-size: 12.5px; font-weight: 800; color: #fff; text-align: start;
  background: linear-gradient(to top, rgba(8,7,10,.92), rgba(8,7,10,0));
}
.work__shot span i { font-style: normal; color: var(--red-ink); font-size: 14px; }
.work__shot:hover { border-color: var(--red-soft); transform: translateY(-2px); }
.work__hint { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product {
  display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center;
  background: linear-gradient(180deg, var(--surface-2), #100e15);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 12px;
  transition: border-color .2s ease, transform .25s ease;
}
.product:hover { border-color: var(--red-soft); }
.product__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center; padding: 5px;
  background: radial-gradient(120% 120% at 50% 0%, #262031, #0f0d14 78%);
  border: 1px solid var(--line);
}
.product__frame img {
  position: absolute; inset: 5px;
  width: calc(100% - 10px); height: calc(100% - 10px);
  object-fit: contain; border-radius: 9px;
}
.product__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.product__body h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.product__body p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.product__credit { font-size: 11px; color: #8d8590; }
.product__credit:hover { color: var(--red-ink); }
.product__ask {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: auto; padding: 8px 13px; border-radius: 10px;
  background: rgba(255,56,51,.1); border: 1px solid rgba(255,56,51,.32);
  color: #ff8f89; font-size: 12.5px; font-weight: 800;
  transition: background .2s ease, color .2s ease;
}
.product__ask:hover { background: var(--red); color: #fff; }
.product__ask span[aria-hidden] { font-size: 13px; }

/* ---------- Extras ---------- */
.extras { display: grid; gap: 10px; }
.extra {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--surface-2), #100e15);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.extra:hover { border-color: var(--red-soft); transform: translateY(-2px); }
.extra__thumb {
  flex: none; width: 68px; height: 68px; border-radius: 14px; overflow: hidden;
  background: #0f0d14; border: 1px solid var(--line); display: grid; place-items: center;
}
.extra__thumb img { width: 100%; height: 100%; object-fit: contain; }
.extra__thumb svg { width: 30px; height: 26px; stroke: var(--red); fill: none; stroke-width: 2.4; }
.extra__body { flex: 1 1 auto; min-width: 0; }
.extra__body h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.extra__body p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.extra__go {
  flex: none; font-size: 12.5px; font-weight: 800; color: #ff8f89;
  display: inline-flex; align-items: center; gap: 5px;
}

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 12px; }
.review {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), #100e15);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px 18px;
}
.review__mark {
  position: absolute; top: -6px; inset-inline-end: 16px;
  font-size: 84px; line-height: 1; color: rgba(255,56,51,.18); pointer-events: none;
}
.review__stars { color: var(--gold); letter-spacing: 4px; font-size: 14px; }
.review__text { margin: 10px 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); font-weight: 600; }
.review__name { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.note a { font-weight: 700; }

/* ---------- Visit ---------- */
.visit { display: grid; gap: 16px; }
.visit__card {
  background: linear-gradient(180deg, var(--surface-2), #0f0d14);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 20px;
}
.visit__row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.visit__row:last-child { border-bottom: 0; }
.visit__row .k { font-size: 12px; font-weight: 700; color: var(--muted); }
.visit__row .v { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.75; }
.visit__row .v a { color: var(--ink); }
.visit__row .v a:hover { color: var(--red-ink); }
.visit__row .v small { display: block; font-size: 12.5px; font-weight: 600; color: var(--red-ink); margin-top: 3px; }
.visit__photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #0f0d14;
  display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0;
}
.visit__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.visit__photo figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 22px 14px 10px; font-size: 12px; color: #ddd6db;
  background: linear-gradient(to top, rgba(8,7,10,.9), transparent);
}

/* ---------- CTA band ---------- */
.band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(255,56,51,.28), transparent 56%),
    linear-gradient(180deg, #1d1013, #0d0a0e);
  border-block: 1px solid rgba(255,56,51,.22);
  padding-block: clamp(46px, 8vw, 84px);
  text-align: center;
}
.band__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.band__kicker { color: #ff8a83; font-size: 13px; font-weight: 800; }
.band h2 {
  margin: 0; font-size: clamp(28px, 7vw, 44px); font-weight: 900; color: #fff; line-height: 1.2;
}
.band__sub { margin: 0; max-width: 44ch; color: #cbbfc6; font-size: 14.5px; line-height: 1.9; }
.band .ctas { justify-content: center; margin-top: 8px; }
.slogan { width: min(300px, 62vw); height: auto; color: #ff817a; margin-top: 10px; }
.slogan svg { width: 100%; height: auto; }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--ink); padding: 12px 18px; border-radius: 14px;
  font-size: 13.5px; font-weight: 800;
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
}
.social a:hover { border-color: var(--red-soft); transform: translateY(-2px); background: #201b29; }
.social svg { width: 19px; height: 19px; flex: none; }
.social span { direction: ltr; }
.social .s-fb svg { fill: #1877f2; }
.social .s-ig svg { fill: #e1306c; }
.social .s-tt svg { fill: #fff; }
.social .s-yt svg { fill: #ff0033; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 30px 110px;
  background: #09080c;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer__mark { width: 42px; height: 3px; border-radius: 2px; background: var(--red); }
.footer p { margin: 0; max-width: 60ch; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.footer .copy { font-size: 11.5px; color: #7c7480; }

/* ---------- Mobile action dock ---------- */
.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(11,10,14,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(130%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.dock.is-visible { transform: none; }
.dock .btn { width: 100%; padding: 13px 10px; font-size: 14px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6,5,8,.97);
  display: grid; grid-template-rows: 1fr auto;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage {
  position: relative; display: grid; place-items: center; padding: 44px 12px 8px; min-height: 0;
}
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--muted);
}
.lightbox__nav { display: flex; gap: 8px; }
.lightbox button {
  background: rgba(255,255,255,.07); border: 1px solid var(--line-strong);
  color: #fff; border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.14); }
.lightbox__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .work__shot.reveal:nth-child(2), .js .products .product.reveal:nth-child(2) { transition-delay: .05s; }
.js .work__shot.reveal:nth-child(3), .js .products .product.reveal:nth-child(3) { transition-delay: .1s; }
.js .work__shot.reveal:nth-child(4), .js .products .product.reveal:nth-child(4) { transition-delay: .15s; }

/* ---------- Larger screens ---------- */
@media (max-width: 639px) {
  .hero__media img { object-position: 50% 30%; }
  .hero { min-height: min(80svh, 700px); }
}

@media (min-width: 640px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .factsbar__grid { grid-template-columns: repeat(3, 1fr); }
  .fact { border-bottom: 0; border-inline-end: 1px solid var(--line); padding-inline: 18px; }
  .fact:first-child { padding-inline-start: 0; }
  .fact:last-child { border-inline-end: 0; }
  .visit { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

@media (min-width: 900px) {
  .hero { min-height: min(88svh, 780px); }
  .hero__inner { padding-block: 140px 72px; gap: 18px; }
  .work { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .product {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 12px 16px;
  }
  .product__frame { aspect-ratio: 4 / 5; }
  .product:hover { transform: translateY(-3px); }
  .product__body h3 { font-size: 17px; }
  .extras { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .footer { padding-block: 34px 40px; }
  .dock { display: none; }
}

@media (min-width: 1180px) {
  .work { gap: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; }
  .ticker__track { animation: none; }
  .dot-open { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dock { transition: none; }
}

.fact__sub { display:block; font-size:12.5px; font-weight:600; color:var(--muted); margin-top:2px; }
.hrs { display:grid; gap:6px; }
.hrs__row { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.hrs__row b { font-weight:700; color:var(--ink); }
.hrs__row i { font-style:normal; font-weight:600; color:var(--ink); }
.hrs__off b, .hrs__off i { color:var(--muted); }
