:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #141A24;
  --muted: #5B6577;
  --line: #DDE2EA;
  --accent: #1F48C6;
  --accent-hover: #183BA6;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6ECFA;
  --deep: #0F1B3D;
  --wa: #25D366;
  --wa-ink: #0B3B20;
  --font: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 20px;
  --s-lg: 40px;
  --s-xl: 88px;
  --container: 1200px;
  --shadow: 0 1px 2px rgba(20, 34, 70, .05), 0 8px 24px rgba(20, 34, 70, .06);
}

/* Reset (zero specificity so components always win) */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
:where(img, svg) { display: block; max-width: 100%; height: auto; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-md); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--surface); padding: 8px 14px; border-radius: var(--r-md); }

h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-md);
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--surface); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: #1FBE5B; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* Header */
.site-header { background: var(--surface); border-block-end: 1px solid var(--line); position: sticky; inset-block-start: 0; z-index: 50; }
.admin-bar .site-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { inset-block-start: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: var(--s-lg); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; line-height: 1.2; }
.brand__mark { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 22px; height: 22px; }
.brand img { max-height: 44px; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-weight: 500; color: var(--muted); padding-block: 6px; border-block-end: 2px solid transparent; transition: color .15s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--s-sm); }
.lang-switch { font-size: 15px; }
.lang-switch:empty { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-md); width: 46px; height: 46px; place-items: center; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .header-inner { gap: var(--s-sm); min-height: 66px; }
  .menu-toggle { display: grid; order: 3; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn--primary { display: none; }
  .main-nav { display: none; position: absolute; inset-inline: 0; inset-block-start: 100%; background: var(--surface); border-block-end: 1px solid var(--line); margin: 0; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: var(--s-xs) var(--s-md) var(--s-md); }
  .main-nav a { display: block; padding-block: 14px; border-block-end: 1px solid var(--line); color: var(--ink); }
  .main-nav li:last-child a { border-block-end: 0; }
}

/* Hero */
.hero { padding-block: var(--s-xl); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-lg) 64px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-block-start: var(--s-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-block-start: 32px; }
.hero__visual { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #2A57D8 0%, var(--accent) 45%, var(--deep) 100%); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual .car-art { position: absolute; inset-inline: 6%; inset-block-end: 14%; width: 88%; color: #fff; }
.hero__visual::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 18%; background: rgba(15, 27, 61, .35); }
@media (max-width: 860px) {
  .hero { padding-block: var(--s-lg) 56px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 16 / 10; }
}

/* Sections */
.section { padding-block: var(--s-xl); }
.section--white { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-md); margin-block-end: var(--s-lg); flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-block-start: var(--s-xs); }
.text-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 18px; height: 18px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
@media (max-width: 700px) { .section { padding-block: 64px; } }

/* Car grid + card */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.car-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color .15s ease; }
.car-card:hover { border-color: #B9C5E8; }
.car-card__media { display: block; aspect-ratio: 16 / 10; background: linear-gradient(160deg, var(--accent-soft), #CBD7F4); position: relative; overflow: hidden; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; }
.car-card__media .car-art { position: absolute; inset-inline: 10%; inset-block-end: 16%; width: 80%; color: var(--accent); opacity: .85; }
.car-card__body { padding: var(--s-md); display: flex; flex-direction: column; gap: var(--s-sm); flex: 1; }
.car-card__cat { font-size: 14px; color: var(--muted); }
.car-card__title { font-size: 21px; line-height: 1.3; }
.car-card__title a:hover { color: var(--accent); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 17px; height: 17px; color: var(--ink); opacity: .7; }
.car-card__foot { margin-block-start: auto; padding-block-start: var(--s-sm); border-block-start: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s-sm); }
.price { font-weight: 700; color: var(--accent); font-size: 24px; line-height: 1.1; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.badge--off { background: #F1F2F5; color: var(--muted); }

/* Why us: split statement + list */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.why__statement p { color: var(--muted); margin-block-start: var(--s-md); max-width: 30em; }
.why__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 22px; border-block-end: 1px solid var(--line); }
.why__list li:first-child { padding-block-start: 0; }
.why__list li:last-child { border-block-end: 0; }
.why__icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.why__icon svg { width: 22px; height: 22px; }
.why__list h3 { font-size: 18px; }
.why__list p { color: var(--muted); font-size: 16px; margin-block-start: 2px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: var(--s-lg); } }

/* How it works: connected row on navy */
.how { background: var(--deep); color: #E8ECF6; }
.how h2 { color: #fff; }
.how .section-head p { color: #AEB8D2; }
.how__row { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.how__row::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 23px; height: 1px; background: rgba(255,255,255,.18); }
.how__step { position: relative; padding-inline-end: var(--s-lg); }
.how__dot { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 0 0 6px var(--deep); }
.how__dot svg { width: 22px; height: 22px; }
.how__step h3 { color: #fff; margin-block-start: var(--s-md); }
.how__step p { color: #AEB8D2; margin-block-start: 6px; max-width: 22em; }
@media (max-width: 760px) {
  .how__row { grid-template-columns: 1fr; gap: 32px; }
  .how__row::before { inset-inline-start: 23px; inset-inline-end: auto; inset-block: 0; width: 1px; height: auto; }
  .how__step { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding: 0; }
  .how__step h3 { margin: 0; align-self: center; }
  .how__step p { grid-column: 2; }
}

/* Page header */
.page-head { padding-block: 56px 40px; background: var(--surface); border-block-end: 1px solid var(--line); }
.page-head p { color: var(--muted); margin-block-start: var(--s-xs); max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { text-align: center; padding: 64px var(--s-md); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 24px; margin-block-end: var(--s-xs); }

/* Single car */
.car-single { padding-block: 40px var(--s-xl); }
.crumbs { font-size: 15px; color: var(--muted); margin-block-end: var(--s-md); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.car-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.gallery__main { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--accent-soft), #CBD7F4); position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .car-art { position: absolute; inset-inline: 10%; inset-block-end: 16%; width: 80%; color: var(--accent); opacity: .85; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-block-start: 12px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: none; }
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car-info h1 { font-size: clamp(28px, 3.4vw, 40px); }
.car-info .car-card__cat { margin-block-end: 6px; display: block; }
.car-desc { margin-block-start: var(--s-lg); max-width: 42em; }
.car-desc p + p { margin-block-start: 1em; }
.spec-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-block-start: var(--s-lg); }
.spec-table div { background: var(--surface); padding: 16px 18px; }
.spec-table dt { font-size: 14px; color: var(--muted); }
.spec-table dd { font-weight: 600; margin-block-start: 2px; }
.book-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); position: sticky; inset-block-start: 100px; }
.book-box .price { font-size: 34px; }
.rates { margin-block: var(--s-md); border-block: 1px solid var(--line); }
.rates li { display: flex; justify-content: space-between; padding-block: 12px; font-size: 16px; }
.rates li + li { border-block-start: 1px solid var(--line); }
.rates span { color: var(--muted); }
.rates strong { font-weight: 600; }
.book-box .btn + .btn { margin-block-start: 10px; }
.book-note { font-size: 14px; color: var(--muted); margin-block-start: var(--s-sm); text-align: center; }
@media (max-width: 960px) { .car-layout { grid-template-columns: 1fr; } .book-box { position: static; } }

/* Generic page content */
.entry { padding-block: 56px var(--s-xl); }
.entry-content { max-width: 46em; }
.entry-content > * + * { margin-block-start: 1em; }
.entry-content h2 { margin-block-start: 1.6em; font-size: 26px; }
.entry-content ul { list-style: disc; padding-inline-start: 1.4em; }
.entry-content a { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--deep); color: #AEB8D2; padding-block: 64px 28px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-lg); }
.site-footer .brand { color: #fff; }
.footer-about { margin-block-start: var(--s-sm); max-width: 26em; }
.site-footer h2 { color: #fff; font-size: 17px; margin-block-end: var(--s-sm); }
.site-footer li + li { margin-block-start: 8px; }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; margin-block-start: 4px; flex: none; color: #7F8DB3; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.footer-bottom { margin-block-start: 48px; padding-block-start: 20px; border-block-start: 1px solid rgba(255,255,255,.12); font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Floating WhatsApp */
.wa-float { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(11, 59, 32, .28); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .wa-float, .btn, .car-card { transition: none; } }
