/* =========================================================
   ليموزين كايرو — Liomouse Cairo
   موقع عربي RTL من صفحة واحدة · HTML + CSS فقط
   1. المتغيرات      2. الأساسيات     3. الأزرار
   4. الترويسة       5. الواجهة       6. السيارات
   7. التواصل        8. التذييل       9. الاستجابة
   ========================================================= */

/* ============ 1. المتغيرات ============ */
:root {
  --ink:        #0B0D0E;
  --ink-2:      #121517;
  --ink-3:      #1A1E20;
  --accent:     #C8102E;
  --accent-2:   #A00D25;
  --accent-soft:#E4646E;

  --text:       #F4F2EF;
  --text-mute:  #A9AFB3;
  --line:       rgba(244, 242, 239, .14);

  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;

  --shell: 1180px;
  --gutter: 22px;
  --section-y: clamp(64px, 8vw, 118px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============ 2. الأساسيات ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-size: .9rem;
}
.skip-link:focus { inset-inline-start: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

/* موقع الشركة */
.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-mute);
}
.location .pin { color: var(--accent-soft); flex: 0 0 auto; }
.location-lg { font-size: 1.05rem; color: var(--text); }

/* ============ 3. الأزرار ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding-inline: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding-inline: 20px; font-size: .9rem; }
.btn-lg { min-height: 60px; padding-inline: 46px; font-size: 1.08rem; }
.btn-block { width: 100%; margin-top: 18px; }

/* ============ 4. الترويسة ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 14, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 82px;
}

.brand { flex: 0 0 auto; display: inline-flex; }
.brand-logo {
  width: 78px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: opacity .25s var(--ease);
}
.brand:hover .brand-logo { opacity: .9; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
}
.site-nav a {
  position: relative;
  font-size: .98rem;
  font-weight: 500;
  color: var(--text-mute);
  padding-block: 6px;
  transition: color .22s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .28s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

/* ============ 5. الواجهة ============ */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  min-height: min(90vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(90px, 16vh, 170px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero picture { display: contents; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* نثبّت الإطار على السيارة والسائق */
  object-position: 50% 56%;
  z-index: -2;
  filter: saturate(.76) contrast(1.06) brightness(.86);
  transform: scale(1.04);
  transform-origin: 50% 56%;
  animation: hero-drift 26s var(--ease) both;
}
@keyframes hero-drift {
  from { transform: scale(1.1); }
  to   { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; transform: scale(1.04); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(260deg, rgba(11,13,14,.96) 0%, rgba(11,13,14,.86) 34%, rgba(11,13,14,.46) 66%, rgba(11,13,14,.62) 100%),
    linear-gradient(to top, rgba(11,13,14,.94) 0%, rgba(11,13,14,.35) 42%, rgba(11,13,14,0) 70%),
    radial-gradient(120% 80% at 78% 62%, rgba(11,13,14,0) 0%, rgba(11,13,14,.55) 100%);
}

.hero-brand {
  margin-block: 18px 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-soft);
}
.hero h1 {
  font-size: clamp(2.3rem, 1.1rem + 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.24;
  margin-bottom: 20px;
}
.hero-lede {
  max-width: 46ch;
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  font-weight: 300;
  color: rgba(244, 242, 239, .82);
  margin-bottom: 36px;
}

/* ============ 6. السيارات ============ */
.section-fleet { background: var(--ink-2); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 62px);
}
.section-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-lede { color: var(--text-mute); font-size: 1.02rem; }

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.car {
  display: flex;
  flex-direction: column;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.car:hover { border-color: rgba(200, 16, 46, .5); transform: translateY(-3px); }

.car-figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.car-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.car:hover .car-figure img { transform: scale(1.04); }

.car-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}
.car-body h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.car-body p { color: var(--text-mute); font-size: .96rem; line-height: 1.7; }
.car-body .btn { margin-top: auto; }

/* ============ 7. التواصل ============ */
.section-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(.5) contrast(1.02);
}
.contact-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,13,14,.92) 0%, rgba(11,13,14,.86) 55%, rgba(11,13,14,.95) 100%);
}
.contact-inner { max-width: 640px; margin-inline: auto; }
.contact-inner h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.contact-inner .location-lg { margin-bottom: 34px; }
.contact-inner .btn-lg { margin-bottom: 40px; }

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding-inline: 26px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .98rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(26, 30, 32, .6);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.socials a:hover { border-color: var(--accent); background: rgba(200, 16, 46, .16); }
.socials svg { flex: 0 0 auto; }

/* ============ 8. التذييل ============ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(42px, 5vw, 62px);
}
.footer-inner { text-align: center; }
.brand-logo-footer {
  width: 132px;
  height: 106px;
  margin-inline: auto;
  margin-bottom: 20px;
}
.footer-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.footer-place { color: var(--text-mute); font-size: .96rem; margin-bottom: 20px; }

.footer-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 22px;
  font-size: .95rem;
}
.footer-socials a { color: var(--text-mute); transition: color .22s var(--ease); }
.footer-socials a:hover { color: var(--accent-soft); }

.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: .85rem;
  color: var(--text-mute);
}

/* ============ 9. الاستجابة ============ */

/* لوحي كبير */
@media (max-width: 1080px) {
  .fleet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* لوحي */
@media (max-width: 860px) {
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .hero-img { object-position: 56% 58%; }
}

/* جوال كبير */
@media (max-width: 700px) {
  :root { --gutter: 18px; --section-y: 62px; }

  .header-inner { gap: 12px; min-height: 72px; }
  .brand-logo { width: 62px; height: 50px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: .9rem; }
  .btn-sm { min-height: 42px; padding-inline: 15px; font-size: .85rem; }

  .hero { min-height: auto; padding-block: 92px 52px; }
  .hero h1 { line-height: 1.3; }
  .hero-lede { margin-bottom: 30px; }
  .btn-lg { width: 100%; padding-inline: 20px; }

  .car-body { padding: 20px 20px 22px; }
  .socials { gap: 10px; }
  .socials a { flex: 1 1 100%; justify-content: center; }
}

/* جوال صغير */
@media (max-width: 460px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .85rem; }
  .brand-logo { width: 54px; height: 44px; }
  .btn-sm { padding-inline: 12px; font-size: .8rem; }
  .car-body h3 { font-size: 1.22rem; }
  .brand-logo-footer { width: 112px; height: 90px; }
}
