:root {
  --ink: #111b22;
  --ink-soft: #1d2b34;
  --metal: #64757e;
  --fog: #edf1f2;
  --surface: #ffffff;
  --surface-2: #e3e9eb;
  --line: #d4dde0;
  --signal: #c51f2d;
  --signal-dark: #99141f;
  --amber: #d38a3a;
  --success: #267a55;
  --danger: #c23a46;
  --text: #111b22;
  --muted: #63737b;
  --inverse: #f8faf9;
  --header-height: 82px;
  --container: 1240px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 8px 24px rgba(17, 27, 34, .07);
  --shadow: 0 18px 48px rgba(17, 27, 34, .12);
  --focus: 0 0 0 4px rgba(197, 31, 45, .16);
  --font-body: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --font-display: "Barlow Condensed", "IBM Plex Sans Arabic", sans-serif;
  --ease: 220ms cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

body.dark-mode {
  --ink: #edf3f4;
  --ink-soft: #d9e3e6;
  --metal: #98a9b0;
  --fog: #0b1217;
  --surface: #121d23;
  --surface-2: #19272e;
  --line: #2a3a42;
  --text: #edf3f4;
  --muted: #9babb2;
  --inverse: #f8faf9;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .2);
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

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

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--fog);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--ease), color var(--ease);
}

main { flex: 1 0 auto; width: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: none; box-shadow: var(--focus); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.025em;
}

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--signal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.eyebrow-light { color: #f1b0b6; }

.section-heading h2 {
  max-width: 700px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  text-transform: uppercase;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.text-link, .card-link, .back-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-weight: 700;
  transition: color var(--ease), gap var(--ease);
}

.text-link:hover, .card-link:hover, .back-link:hover { color: var(--signal); gap: .9rem; }

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(13, 24, 31, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(16px);
}

.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .8rem; color: #fff; min-width: max-content; }
.brand-mark { width: 56px; height: 52px; display: grid; place-items: center; }
.logo-img { width: 56px; height: 52px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; }
.brand-copy small { margin-top: .4rem; color: #91a1aa; font-size: .58rem; font-weight: 700; letter-spacing: .2em; }

.nav-links, .nav-items, .nav-tools { display: flex; align-items: center; }
.nav-links { gap: 1.5rem; }
.nav-items { gap: .2rem; }
.nav-tools { gap: .5rem; padding-inline-start: 1.25rem; border-inline-start: 1px solid rgba(255,255,255,.13); }

.nav-link {
  position: relative;
  padding: .8rem .9rem;
  color: #aebac0;
  font-size: .84rem;
  font-weight: 700;
  transition: color var(--ease);
}

.nav-link::after { content: ""; position: absolute; inset-inline: .9rem; bottom: .35rem; height: 2px; background: var(--signal); transform: scaleX(0); transition: transform var(--ease); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.icon-button, .culture-select {
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #eaf0f2;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.icon-button { width: 38px; display: grid; place-items: center; font-size: 1rem; }
.culture-select { padding: 0 1.8rem 0 .75rem; font-size: .72rem; font-weight: 700; }
.icon-button:hover, .culture-select:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: #fff; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Heroes */
.hero, .page-hero { position: relative; overflow: hidden; background: #111d24; color: var(--inverse); }
.home-hero { min-height: min(760px, calc(100vh - var(--header-height))); display: grid; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(7,16,22,.94) 0%, rgba(7,16,22,.78) 40%, rgba(7,16,22,.12) 76%), linear-gradient(0deg, rgba(7,16,22,.45), transparent 45%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 700px) 1fr; align-items: center; padding-block: 7rem; }
.hero-copy h1 { max-width: 720px; color: #fff; font-size: clamp(4.3rem, 9vw, 7.8rem); text-transform: uppercase; text-wrap: balance; }
.hero-copy p { max-width: 620px; margin: 1.5rem 0 2rem; color: #c9d3d7; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-badge { justify-self: end; align-self: end; width: 114px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: #fff; transform: rotate(-8deg); }
.hero-badge span { font-size: .6rem; letter-spacing: .2em; }
.hero-badge strong { font-family: var(--font-display); font-size: 2rem; }
.road-line { position: absolute; z-index: 2; inset-inline-start: 0; bottom: 0; width: 44%; height: 5px; background: var(--signal); }

.page-hero { padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 35%, rgba(197,31,45,.23), transparent 28%), repeating-linear-gradient(115deg, transparent 0 80px, rgba(255,255,255,.025) 80px 81px); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(3.8rem, 8vw, 7rem); text-transform: uppercase; }
.page-hero p { max-width: 660px; margin: 1.15rem 0 0; color: #b8c5cb; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.inventory-hero .page-hero-inner { display: grid; grid-template-columns: 1fr minmax(460px, 620px); align-items: end; column-gap: 4rem; }
.inventory-hero .eyebrow, .inventory-hero h1, .inventory-hero p { grid-column: 1; }

/* Buttons and forms */
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
  transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 8px 22px rgba(197,31,45,.22); }
.btn-primary:hover { background: var(--signal-dark); color: #fff; box-shadow: 0 12px 28px rgba(197,31,45,.3); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: #fff; color: #111b22; }
.btn-outline { border-color: var(--line); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--signal); color: var(--signal); }

.inventory-search { grid-column: 2; grid-row: 1 / span 3; padding: .7rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.inventory-search__primary { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.inventory-search .input { min-height: 50px; padding-inline-start: 2.8rem; border-color: transparent; background: rgba(5,12,17,.55); color: #fff; }
.inventory-search .input::placeholder { color: #8fa0a8; }
.search-icon { position: absolute; z-index: 1; inset-inline-start: 1.8rem; top: 50%; width: 15px; height: 15px; border: 2px solid #91a1a9; border-radius: 50%; transform: translateY(-50%); pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; background: #91a1a9; transform: rotate(45deg); }
.inventory-filters { margin-top: .65rem; border-top: 1px solid rgba(255,255,255,.14); color: #fff; }
.inventory-filters summary { min-height: 44px; display: flex; align-items: center; gap: .55rem; padding: .65rem .45rem .1rem; color: #d8e1e4; cursor: pointer; font-size: .76rem; font-weight: 700; letter-spacing: .04em; list-style: none; }
.inventory-filters summary::-webkit-details-marker { display: none; }
.inventory-filters summary::after { width: 7px; height: 7px; margin-inline-start: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg); transition: transform var(--ease); }
.inventory-filters[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.inventory-filters__count { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--signal); color: #fff; font-size: .68rem; }
.inventory-filters__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: .75rem .1rem .25rem; }
.inventory-filter-field { min-width: 0; display: grid; gap: .35rem; color: #aebcc2; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.inventory-filter-field--wide { grid-column: 1 / -1; }
.inventory-filter-field .input { min-height: 42px; padding: .6rem .75rem; color-scheme: dark; font-size: .78rem; text-transform: none; }
.inventory-filter-field select.input { padding-inline-end: 2rem; }
.inventory-filters__actions { display: flex; justify-content: flex-end; padding: .55rem .15rem .1rem; }
.inventory-filters__clear { color: #c7d2d6; font-size: .72rem; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; }
.inventory-filters__clear:hover { color: #fff; text-decoration-color: var(--signal); }

.modern-form { padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .5rem; color: var(--text); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.input, textarea { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--fog); color: var(--text); transition: border-color var(--ease), background var(--ease), box-shadow var(--ease); }
.input:focus, textarea:focus { outline: none; border-color: var(--signal); background: var(--surface); box-shadow: var(--focus); }
textarea { resize: vertical; min-height: 150px; }
.validation-error { display: block; margin-top: .35rem; color: var(--danger); font-size: .78rem; }
.form-message { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 600; }
.success-message { background: rgba(38,122,85,.1); color: var(--success); }
.error-message { background: rgba(194,58,70,.1); color: var(--danger); }

/* Home */
.intro-section { background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.intro-copy p { max-width: 720px; color: var(--text); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.55; }
.inventory-section { background: var(--fog); }

/* Vehicle cards */
.cards-grid { --card-min: 270px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr)); gap: 1.25rem; }
.featured-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.car-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(17,27,34,.03); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.car-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--signal) 35%, var(--line)); box-shadow: var(--shadow); }
.car-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-soft); }
.car-media img, .car-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.car-card:hover .car-media img, .car-card:hover .img-placeholder { transform: scale(1.035); }
.year-badge { position: absolute; inset-inline-start: 1rem; top: 1rem; padding: .35rem .55rem; border-radius: 999px; background: rgba(13,24,31,.82); color: #fff; font-size: .68rem; font-weight: 700; backdrop-filter: blur(8px); }
.img-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #1a2932, #253943); color: #91a4ad; }
.img-placeholder::before { content: ""; position: absolute; width: 150%; height: 1px; background: rgba(255,255,255,.09); transform: rotate(-25deg); box-shadow: 0 22px rgba(255,255,255,.04), 0 -22px rgba(255,255,255,.04); }
.img-placeholder span { position: relative; z-index: 1; max-width: 80%; font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.car-card-body { padding: 1.25rem; }
.car-card-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.car-card-title { font-size: 1.7rem; text-transform: uppercase; }
.car-color { --size: 18px; width: var(--size); height: var(--size); display: inline-block; flex: 0 0 auto; margin-top: .25rem; border: 2px solid var(--surface); border-radius: 50%; background: var(--car-color, #d4dadd); box-shadow: 0 0 0 1px var(--line), inset 0 0 0 1px rgba(0,0,0,.08); vertical-align: middle; }
.car-meta { min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: .8rem 0 1.1rem; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.meta-divider { width: 3px; height: 3px; border-radius: 50%; background: var(--signal); }
.chassis-number { overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.card-link { width: 100%; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .78rem; }
.load-more-row { display: flex; justify-content: center; padding-top: 2.5rem; }
.load-more-row .btn { min-width: 190px; }
.inventory-results__toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.inventory-results__toolbar p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* About */
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.story-card { min-height: 310px; display: flex; flex-direction: column; justify-content: end; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.story-index { align-self: flex-start; margin-bottom: auto; color: var(--signal); font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.story-card h2 { max-width: 420px; font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase; }
.story-card p { max-width: 520px; margin: 1rem 0 0; }
.story-card-featured { background: var(--signal); border-color: var(--signal); }
.story-card-featured h2, .story-card-featured .story-index, .story-card-featured p { color: #fff; }
.story-card-dark { background: #111d24; border-color: #111d24; }
.story-card-dark h2, .story-card-dark .story-index { color: #fff; }
.story-card-dark p { color: #aebcc2; }

/* Car details */
.car-details { padding-top: 2.5rem; }
.back-link { margin-bottom: 1.5rem; color: var(--muted); font-size: .8rem; }
.car-details-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.details-media { min-width: 0; min-height: 570px; background: #17252d; }
.car-main-img, .car-main-placeholder { width: 100%; height: 100%; min-height: 570px; object-fit: cover; }
.car-main-img { transition: opacity 160ms ease, transform 220ms ease; }
.car-main-img.is-switching { opacity: .35; transform: scale(1.008); }
.car-main-placeholder { position: relative; }
.details-panel { display: flex; flex-direction: column; padding: clamp(2rem, 5vw, 4rem); }
.details-panel .car-card-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.car-details-title { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-display); font-size: clamp(2.8rem, 4.4vw, 4rem); text-transform: uppercase; }
.details-year { grid-row: 1; margin: 0; color: var(--signal); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.details-specs { margin: 2.5rem 0 0; }
.details-specs div { display: grid; grid-template-columns: minmax(110px, .8fr) 1.2fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.details-specs dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.details-specs dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: .86rem; font-weight: 700; }
.details-note { padding-top: 1rem; border-top: 1px solid var(--line); }
.details-note span { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.details-note p { margin-top: .4rem; }
.details-action { margin-top: auto; padding-top: 2rem; }
.details-action .btn { width: 100%; }
.gallery-section { padding-top: 4rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-thumbnail { position: relative; width: 100%; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(17, 27, 34, .04); cursor: pointer; transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.gallery-thumbnail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 420ms cubic-bezier(.2, .8, .2, 1); }
.gallery-thumbnail:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.gallery-thumbnail:hover img { transform: scale(1.025); }
.gallery-thumbnail[aria-pressed="true"] { border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 16%, transparent), var(--shadow-sm); }
.gallery-thumbnail:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; box-shadow: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contact-intro > p { max-width: 540px; }
.contact-list { display: grid; gap: .65rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.contact-item { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.contact-item:hover { transform: translateX(4px); border-color: var(--signal); box-shadow: var(--shadow-sm); }
.ci { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text); font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.ci-whatsapp { background: rgba(37,211,102,.12); color: #15994a; }
.ci-facebook { background: rgba(24,119,242,.12); color: #1877f2; text-transform: lowercase; }
.ci-location { color: var(--signal); }
.contact-title { font-size: .82rem; font-weight: 700; }
.contact-sub { margin-top: .15rem; color: var(--muted); font-size: .74rem; }
.contact-arrow { color: var(--muted); }
.contact-form-panel { position: relative; }
.contact-form-panel::before { content: ""; position: absolute; z-index: -1; top: -16px; inset-inline-end: -16px; width: 130px; height: 130px; border-top: 3px solid var(--signal); border-inline-end: 3px solid var(--signal); border-radius: 0 var(--radius-lg) 0 0; }

/* Footer */
.footer { margin-top: auto; padding: 2rem 0; background: #0d181f; color: #fff; border-top: 4px solid var(--signal); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #41515a; border-radius: 50%; color: #fff; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; }
.footer-brand span { margin-top: .2rem; color: #80919a; font-size: .68rem; }
.footer-links { display: flex; gap: 1.5rem; color: #aebbc1; font-size: .78rem; font-weight: 700; }
.footer-links a:hover { color: #fff; }

/* RTL */
html[dir="rtl"] body { direction: rtl; font-family: "IBM Plex Sans Arabic", var(--font-body); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: "IBM Plex Sans Arabic", var(--font-display); letter-spacing: 0; }
html[dir="rtl"] .car-details-title { font-family: var(--font-display); }
html[dir="rtl"] .home-hero::before { background: linear-gradient(-90deg, rgba(7,16,22,.94) 0%, rgba(7,16,22,.78) 40%, rgba(7,16,22,.12) 76%), linear-gradient(0deg, rgba(7,16,22,.45), transparent 45%); }
html[dir="rtl"] .hero-copy h1 { line-height: 1.15; }
html[dir="rtl"] .contact-item:hover { transform: translateX(-4px); }
html[dir="rtl"] .card-link span, html[dir="rtl"] .text-link span, html[dir="rtl"] .details-action span { transform: rotate(180deg); }
html[dir="rtl"] .back-link span { transform: rotate(180deg); }

/* Responsive */
@media (max-width: 980px) {
  :root { --header-height: 72px; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: var(--header-height); inset-inline: 0; display: none; align-items: stretch; flex-direction: column; gap: 1.25rem; max-height: calc(100vh - var(--header-height)); padding: 1.25rem 20px 1.5rem; overflow-y: auto; background: #0d181f; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 45px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .nav-items { align-items: stretch; flex-direction: column; }
  .nav-link { padding: .9rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-tools { justify-content: space-between; padding: 0; border: 0; }
  .inventory-hero .page-hero-inner { display: block; }
  .inventory-search { margin-top: 2.5rem; }
  .car-details-hero { grid-template-columns: 1fr; }
  .details-media, .car-main-img, .car-main-placeholder { min-height: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 4rem 0; }
  .brand-mark { width: 44px; height: 44px; }
  .logo-img { width: 48px; height: 48px; }
  .brand-copy small { display: none; }
  .home-hero { min-height: 680px; }
  .home-hero::before { background: linear-gradient(90deg, rgba(7,16,22,.9), rgba(7,16,22,.48)), linear-gradient(0deg, rgba(7,16,22,.6), transparent); }
  .hero-bg { object-position: 54% center; }
  .hero-inner { display: block; padding-block: 6rem; }
  .hero-copy h1 { font-size: clamp(3.7rem, 17vw, 5.5rem); }
  .hero-badge { display: none; }
  .road-line { width: 62%; }
  .page-hero { padding: 4rem 0; }
  .page-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .intro-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .story-card { min-height: 260px; }
  .inventory-search__primary { grid-template-columns: 1fr; }
  .inventory-search .btn { width: 100%; }
  .inventory-search__primary .search-icon { top: 25px; }
  .cards-grid { --card-min: 240px; }
  .details-panel { padding: 1.5rem; }
  .details-specs div { grid-template-columns: 1fr; gap: .25rem; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-links { width: 100%; justify-content: space-between; padding-top: 1.25rem; border-top: 1px solid #2b3b44; }
}

@media (max-width: 440px) {
  .brand-copy strong { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .car-card-title { font-size: 1.5rem; }
  .inventory-filters__grid { grid-template-columns: 1fr; }
  .inventory-filter-field--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: reveal-up .7s both; }
  .hero-badge { animation: reveal-badge .8s .18s both; }
  .car-card { animation: reveal-up .45s both; }
  .car-card:nth-child(2) { animation-delay: .05s; }
  .car-card:nth-child(3) { animation-delay: .1s; }
  .car-card:nth-child(4) { animation-delay: .15s; }
  @keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes reveal-badge { from { opacity: 0; transform: rotate(-8deg) scale(.85); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
}

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

@media print {
  .site-header, .footer, .hero, .page-hero, .btn, .back-link { display: none !important; }
  body { background: #fff; color: #000; }
}
