/* AUTEXA showroom. Dark, quiet, gold accent. Logical properties so Arabic (RTL) mirrors cleanly. */
:root {
  --bg: #0a0b0d; --bg-2: #111317; --bg-3: #171a1f; --line: #23272e; --line-2: #2e333b;
  --text: #f2f0eb; --muted: #9aa0a8; --dim: #6b717a;
  --gold: #d4b06a; --gold-2: #e9cf96; --gold-ink: #1a1408;
  --wa: #25d366; --red: #e0262f;
  --radius: 14px; --wrap: 1240px;
  --f-head: "Sora", "Inter", system-ui, sans-serif; --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"] { --f-head: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif; --f-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); overflow-x: hidden; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.pad { padding-block: 88px; }
.center { text-align: center; margin-top: 36px; }
.muted { color: var(--muted); }
.kicker { color: var(--gold); font: 600 12px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 14px; }
.lead { font-size: 19px; color: var(--text); }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
svg { width: 1em; height: 1em; flex: none; }
svg.car-art { width: 100%; height: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding-inline: 26px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn:active { transform: scale(.98); }
.btn svg { font-size: 18px; }
html[dir="rtl"] .btn [data-icon="arrow"] svg, html[dir="rtl"] .link svg, html[dir="rtl"] .car-card__go svg { transform: scaleX(-1); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-3); border-color: var(--muted); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #06210f; }
.btn--wa:hover { background: #3ee07a; border-color: #3ee07a; }
.btn--sm { height: 40px; padding-inline: 16px; font-size: 14px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; }

/* top bar + header */
.topbar { background: #070809; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar__in { display: flex; justify-content: space-between; gap: 24px; height: 38px; align-items: center; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { gap: 22px !important; }
.topbar svg { color: var(--gold); font-size: 15px; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(10, 11, 13, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-head.is-scrolled { border-color: var(--line); background: rgba(10, 11, 13, .92); }
.site-head__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1; direction: ltr; }
.logo__mark { font: 800 26px/1 "Sora", sans-serif; letter-spacing: .14em; }
.logo__mark b { color: var(--gold); font-weight: 800; }
.logo__sub { font: 500 9px/1 "Inter", sans-serif; letter-spacing: .42em; color: var(--muted); margin-top: 6px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); background: var(--bg-3); }
.site-head__act { display: flex; align-items: center; gap: 12px; }
.nav__lang { font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 10px; }
.nav__lang:hover { color: var(--gold); }
.nav__lang--m { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; font-size: 22px; }

/* hero */
.hero { position: relative; overflow: hidden; padding-top: 72px; padding-bottom: 40px; }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(212, 176, 106, .22), transparent 70%); pointer-events: none; }
html[dir="rtl"] .hero__glow { inset: -20% auto auto -10%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; min-height: 460px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 86px); font-weight: 800; margin-bottom: 22px; }
.hero__sub { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__art { position: relative; }
.hero__art::before { content: ""; position: absolute; inset: 50% 4% auto; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .35; top: 86%; }
.hero-car { width: 112%; margin-inline-start: -4%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); animation: drive-in 1.2s cubic-bezier(.2,.8,.2,1) both; }
html[dir="rtl"] .hero-car { transform: scaleX(-1); animation-name: drive-in-rtl; }
@keyframes drive-in { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes drive-in-rtl { from { opacity: 0; transform: scaleX(-1) translateX(80px); } to { opacity: 1; transform: scaleX(-1); } }

/* search bar */
.search-bar { position: relative; z-index: 2; display: grid; grid-template-columns: auto repeat(4, 1fr) auto; gap: 10px; align-items: center; padding: 14px; margin-top: 28px; background: rgba(23, 26, 31, .85); border: 1px solid var(--line-2); border-radius: 20px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.search-bar h2 { font-size: 16px; font-weight: 600; margin: 0; padding-inline: 12px 8px; white-space: nowrap; }
select, input, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; height: 50px; outline: none; transition: border-color .2s; }
textarea { padding-block: 12px; height: auto; resize: vertical; }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239aa0a8' stroke-width='2' stroke-linecap='round' d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; }
html[dir="rtl"] select { background-position: left 12px center; }
select:focus, input:focus, textarea:focus { border-color: var(--gold); }
::placeholder { color: var(--dim); }

/* stats */
.stats-wrap { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--bg); padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font: 700 34px/1 var(--f-head); color: var(--gold); }
.stats span { color: var(--muted); font-size: 14px; }

/* section heads + rail */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.sec-head h2 { margin-bottom: 6px; }
.sec-head p.muted { margin: 0; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 20px; transition: background .2s, border-color .2s; }
.rail-btn:hover { background: var(--bg-3); border-color: var(--gold); }
.rail-btn--prev svg { transform: scaleX(-1); }
html[dir="rtl"] .rail-btn svg { transform: scaleX(-1); }
html[dir="rtl"] .rail-btn--prev svg { transform: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* car card */
.car-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.car-card:hover { border-color: rgba(212, 176, 106, .55); transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.9); }
.car-card__media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 100%, #262a31 0%, #14161a 55%, #0f1114 100%); display: grid; place-items: center; overflow: hidden; }
.car-card__media .car-art { width: 88%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.car-card:hover .car-art { transform: scale(1.05); }
.car-photo { width: 100%; height: 100%; object-fit: cover; }
.car-card__note { position: absolute; inset-inline-end: 12px; bottom: 10px; font-size: 11px; color: var(--dim); }
.badge { position: absolute; inset-inline-start: 12px; top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(212, 176, 106, .14); color: var(--gold-2); border: 1px solid rgba(212, 176, 106, .35); }
.badge--used { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line-2); }
html[lang="ar"] .badge { letter-spacing: 0; }
.car-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.car-card__brand { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.car-card__title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.car-card__title span { display: block; font: 500 14px/1.4 var(--f-body); color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.car-card__specs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.car-card__specs li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: var(--bg-3); border-radius: 8px; padding: 5px 9px; }
.car-card__specs svg { color: var(--gold); font-size: 15px; }
.car-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.price { font: 700 20px/1 var(--f-head); }
.price small { font: 500 12px/1 var(--f-body); color: var(--gold); margin-inline-end: 2px; }
.price--ask { font: 600 15px/1 var(--f-body); color: var(--gold-2); }
.car-card__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 17px; transition: background .2s, color .2s, border-color .2s; }
.car-card:hover .car-card__go { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* brands + types */
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; height: 104px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .2s, background .2s; text-align: center; padding: 10px; direction: ltr; }
.brand-tile span { font: 700 17px/1.2 "Sora", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.brand-tile small { color: var(--dim); font-size: 12px; }
.brand-tile:hover { border-color: var(--gold); background: var(--bg-3); }
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-tile { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); transition: border-color .2s; overflow: hidden; }
.type-tile .car-art { width: 92%; margin: 0 auto 10px; opacity: .9; transition: transform .4s; }
.type-tile:hover { border-color: var(--gold); }
.type-tile:hover .car-art { transform: translateX(6px); }
.type-tile b { font: 700 18px/1 var(--f-head); }
.type-tile small { position: absolute; inset-inline-end: 22px; bottom: 18px; color: var(--muted); }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.why__ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(212, 176, 106, .1); color: var(--gold); font-size: 26px; margin-bottom: 18px; }
.why h3 { font-size: 18px; }
.why p { color: var(--muted); font-size: 15px; margin: 0; }

/* showroom */
.showroom { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding: 56px; border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(80% 140% at 100% 0%, rgba(212,176,106,.18), transparent 60%), var(--bg-2); }
.showroom__mark { font: 800 clamp(60px, 10vw, 150px)/1 "Sora", sans-serif; letter-spacing: .08em; color: transparent; -webkit-text-stroke: 1px rgba(212,176,106,.35); text-align: end; direction: ltr; }
.showroom__mark b { -webkit-text-stroke: 0; color: var(--gold); }

/* page hero */
.page-hero { padding: 64px 0 36px; background: radial-gradient(60% 120% at 80% 0%, rgba(212,176,106,.12), transparent 60%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.page-hero p { margin: 0; }

/* inventory */
.inv { padding-block: 32px 88px; }
.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); position: sticky; top: 86px; z-index: 5; }
.inv__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 26px 0 20px; color: var(--muted); }
.inv__bar label { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.inv__bar select { height: 42px; width: auto; min-width: 190px; }
.grid-cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.empty { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* car detail */
.car-hero { padding: 28px 0 56px; background: radial-gradient(70% 90% at 30% 20%, rgba(212,176,106,.1), transparent 60%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--dim); font-size: 14px; margin-bottom: 24px; }
.crumbs a:hover { color: var(--gold); }
.car-hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.car-stage { position: relative; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(110% 80% at 50% 100%, #2a2e35 0%, #14161a 55%, #0d0f12 100%); overflow: hidden; }
.car-stage__img { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.car-stage .stage-art { width: 86%; filter: drop-shadow(0 26px 30px rgba(0,0,0,.6)); }
.car-stage .car-photo { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.thumbs button { flex: none; width: 92px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button.is-on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car-buy { position: sticky; top: 96px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.car-buy h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin: 0; }
.car-buy h1 span { display: block; font: 500 16px/1.4 var(--f-body); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.car-buy__price { padding: 14px 0; border-block: 1px solid var(--line); margin: 6px 0; }
.car-buy__price .price { font-size: 32px; }
.car-buy__quick { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.car-buy__quick li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; background: var(--bg-3); padding: 10px 12px; border-radius: 10px; }
.car-buy__quick svg { color: var(--gold); font-size: 17px; }
.enquiry { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.enquiry h3 { font-size: 17px; margin-bottom: 4px; }
.enquiry--page { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.car-info { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding-top: 24px; }
.h-sm { font-size: 22px; margin: 0 0 16px; }
.car-info .lead { color: var(--muted); margin-bottom: 36px; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.feat svg { color: var(--gold); font-size: 18px; margin-top: 3px; }
.spec-table { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec-table div:nth-child(odd) { background: var(--bg-2); }
.spec-table div:last-child { border-bottom: 0; }
.spec-table dt { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spec-table dt svg { color: var(--gold); }
.spec-table dd { margin: 0; font-weight: 600; text-align: end; }

/* about + contact */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about p { color: var(--muted); }
.about .lead { color: var(--text); font-size: 22px; font-family: var(--f-head); line-height: 1.4; }
.about__art { padding: 40px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(110% 80% at 50% 100%, #2a2e35 0%, #14161a 60%); }
html[dir="rtl"] .about__art svg { transform: scaleX(-1); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__cards .hero__cta { grid-column: 1 / -1; margin-top: 6px; }
.c-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.c-card > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(212,176,106,.1); color: var(--gold); font-size: 20px; margin-bottom: 12px; }
.c-card h3 { font-size: 15px; color: var(--muted); font-weight: 500; font-family: var(--f-body); margin-bottom: 6px; }
.c-card p { margin: 0; font-weight: 600; }
.c-card a:hover { color: var(--gold); }

/* footer */
.site-foot { background: #070809; border-top: 1px solid var(--line); padding-top: 64px; color: var(--muted); font-size: 15px; }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.logo--foot { margin-bottom: 18px; color: var(--text); }
.site-foot h4 { color: var(--text); font-size: 15px; margin-bottom: 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-foot a:hover { color: var(--gold); }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { color: var(--gold); font-size: 17px; margin-top: 3px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; color: var(--text); }
.social a:hover { border-color: var(--gold); }
.site-foot__base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 22px; font-size: 13px; color: var(--dim); }
.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-car { animation: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1100px) {
  .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { grid-template-columns: repeat(4, 1fr); }
  .search-bar h2 { grid-column: 1 / -1; padding: 4px 4px 0; }
  .search-bar .btn { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .topbar__hours { display: none !important; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 114px 0 0; flex-direction: column; gap: 0; padding: 16px 24px; background: var(--bg); transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
  html[dir="rtl"] .nav { transform: translateX(-100%); }
  .nav { visibility: hidden; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-size: 20px; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav__lang--m { display: block; color: var(--gold) !important; }
  .site-head__act .nav__lang { display: none; }
  .menu-btn { display: inline-flex; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hero__art { order: -1; max-width: 560px; }
  .grid-cars { grid-template-columns: repeat(2, 1fr); }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .car-hero__grid, .car-info, .about, .contact { grid-template-columns: 1fr; }
  .car-buy { position: static; }
  .showroom { grid-template-columns: 1fr; padding: 36px; }
  .showroom__mark { text-align: start; }
  .filters { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .pad { padding-block: 64px; }
  .topbar__in > span:first-child { display: none; }
  .topbar__in { justify-content: flex-end; }
  .site-head__in { height: 64px; gap: 12px; }
  .nav { inset-block-start: 102px; }
  .logo__mark { font-size: 21px; }
  .site-head .btn--wa span { display: none; }
  .site-head .btn--wa { width: 40px; padding: 0; }
  .hero { padding-top: 28px; }
  .rail { grid-auto-columns: 82%; }
  .rail-nav { display: none; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .btn { grid-column: 1 / -1; }
  .grid-cars { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-foot__base { flex-direction: column; }
  .inv__bar { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 52px; height: 52px; font-size: 26px; inset-inline-end: 16px; bottom: 16px; }
}

/* ---------- real photos + brand logos ---------- */
.logo-mask { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; vertical-align: middle; }
.logo-mask--xs { width: 16px; height: 16px; margin-inline-end: 7px; position: relative; top: -1px; color: var(--text); }
.logo-mask--sm { width: 22px; height: 22px; margin-inline-end: 8px; position: relative; top: -2px; color: var(--text); }
.logo-mask--lg { width: 46px; height: 40px; color: var(--text); transition: color .2s, transform .3s; }

.hero { padding-top: 0; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 36px; }
.hero__photo { position: absolute; inset: 0; background: #111 center 62% / cover no-repeat; transform: scale(1.04); animation: hero-in 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.04); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,13,.94) 0%, rgba(10,11,13,.72) 38%, rgba(10,11,13,.15) 72%, rgba(10,11,13,.35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(10,11,13,0) 38%); }
html[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(10,11,13,.94) 0%, rgba(10,11,13,.72) 38%, rgba(10,11,13,.15) 72%, rgba(10,11,13,.35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(10,11,13,0) 38%); }
.hero__glow, .hero::after { display: none; }
.hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 110px; align-items: end; }
.hero__copy { max-width: 620px; }
.hero__tag { margin: 0; justify-self: end; align-self: end; }
.hero__tag a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(10,11,13,.6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); font-size: 14px; color: var(--text); }
.hero__tag a:hover { border-color: var(--gold); }
.hero__tag svg { color: var(--gold); }
html[dir="rtl"] .hero__tag svg { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .hero__photo { animation: none; } }

.car-card__media { aspect-ratio: 3 / 2; }
.car-card__media .car-photo { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.car-card:hover .car-photo { transform: scale(1.05); }
.car-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); pointer-events: none; }
.car-card__media .badge { z-index: 1; backdrop-filter: blur(6px); background: rgba(10,11,13,.6); }
.car-card__brand { display: flex; align-items: center; }

.brands-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.brand-tile { height: 150px; gap: 10px; }
.brand-tile span { font-size: 14px; letter-spacing: .06em; }
.brand-tile:hover .logo-mask { color: var(--gold); transform: scale(1.06); }

.type-tile { padding: 0; aspect-ratio: 4 / 3; display: block; }
.type-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.type-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,13,.9), rgba(10,11,13,0) 55%); }
.type-tile > div { position: absolute; inset: auto 0 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px; }
.type-tile small { position: static; }
.type-tile:hover img { transform: scale(1.06); }

.car-stage__img { aspect-ratio: 3 / 2; }
.car-stage .car-photo { display: block; }
.thumbs button { width: 104px; aspect-ratio: 3 / 2; opacity: .7; transition: opacity .2s; }
.thumbs button.is-on, .thumbs button:hover { opacity: 1; }
.car-stage .badge { z-index: 1; backdrop-filter: blur(6px); background: rgba(10,11,13,.6); }
.photo-credit { margin: 0; padding: 0 14px 12px; font-size: 12px; color: var(--dim); }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--gold); }

.about__art { padding: 0; overflow: hidden; aspect-ratio: 3 / 2; }
.about__art img { width: 100%; height: 100%; object-fit: cover; }
html[dir="rtl"] .about__art img { transform: none; }

.credits-sub { max-width: 760px; margin-top: 8px !important; }
.credits-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.credits-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.credits-table th, .credits-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credits-table th { color: var(--muted); font-weight: 500; background: var(--bg-2); }
.credits-table td img { width: 96px; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; }
.credits-table a { color: var(--gold-2); word-break: break-word; }
.site-foot__base a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .hero__in { padding-top: 160px; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(10,11,13,.75) 55%, rgba(10,11,13,.25) 100%) !important; }
  .hero__tag { justify-self: start; }
}

.logo-mask--lg.logo-mask--wide { width: 96px; }
.logo-mask--xs.logo-mask--wide { width: 34px; }
.logo-mask--sm.logo-mask--wide { width: 46px; }
/* hero photo sits on the right so the whole car shows; fades into the page on the left */
.hero__photo { inset: 0 0 0 auto; width: 68%; background-position: 50% 55%; -webkit-mask: linear-gradient(90deg, transparent 0%, #000 34%); mask: linear-gradient(90deg, transparent 0%, #000 34%); }
html[dir="rtl"] .hero__photo { inset: 0 auto 0 0; -webkit-mask: linear-gradient(270deg, transparent 0%, #000 34%); mask: linear-gradient(270deg, transparent 0%, #000 34%); }
.hero__shade { background: linear-gradient(90deg, rgba(10,11,13,.9) 0%, rgba(10,11,13,.35) 45%, rgba(10,11,13,0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(10,11,13,0) 30%); }
html[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(10,11,13,.9) 0%, rgba(10,11,13,.35) 45%, rgba(10,11,13,0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(10,11,13,0) 30%); }
@media (max-width: 900px) {
  .hero__photo, html[dir="rtl"] .hero__photo { inset: 0 0 auto 0; width: 100%; height: 300px; -webkit-mask: linear-gradient(0deg, transparent 0%, #000 45%); mask: linear-gradient(0deg, transparent 0%, #000 45%); }
  .hero__in { padding-top: 250px; }
  .hero__shade { background: none !important; }
}
