/* =============================================
   CRAZY CAR GENESIS — Design System
   Primary: Crazy Car Red  |  Theme: Dark Tech
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  /* ── Brand Colors (Crazy Car) ── */
  --red:          #E30613;
  --red-hover:    #B8050F;
  --red-dim:      rgba(227, 6, 19, 0.12);
  --red-border:   rgba(227, 6, 19, 0.25);
  --red-glow:     0 0 24px rgba(227, 6, 19, 0.3);

  /* ── Backgrounds ── */
  --bg:           #0B0E14;
  --bg-2:         #111519;
  --bg-3:         #161B24;
  --bg-card:      rgba(255, 255, 255, 0.03);

  /* ── Text ── */
  --white:        #FFFFFF;
  --text:         #D8DDE8;
  --muted:        #6B7585;

  /* ── Borders ── */
  --border:       rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.04);

  /* ── Typography ── */
  --font:         'Tajawal', system-ui, -apple-system, sans-serif;

  /* ── Transitions ── */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t3:           all 0.3s var(--ease);
  --t4:           all 0.4s var(--ease);
}

/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; direction: rtl; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--t3); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ══ LAYOUT ══ */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  padding: 1.4rem 0;
  transition: var(--t4);
}
.nav.scrolled {
  padding: .75rem 0;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--red-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

/* Logo combo: CC logo + Genesis wings */
.nav-brand { display: flex; align-items: center; gap: 1rem; }
.nav-brand .cc-logo { height: 40px; }
.nav-brand .sep {
  width: 1px; height: 32px;
  background: var(--red-border);
}
.nav-brand .genesis-wings { height: 28px; opacity: .85; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-nav-book {
  padding: .5rem 1.25rem;
  background: var(--red);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 700; font-size: .88rem;
  box-shadow: 0 4px 14px rgba(227,6,19,.3);
  transition: var(--t3);
}
.btn-nav-book:hover {
  background: var(--red-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227,6,19,.45);
}
.btn-nav-book::after { display: none !important; }

.nav-toggle { display: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }

/* ══════════════════════════════
   DRAWER (Mobile)
══════════════════════════════ */
.drawer {
  position: fixed; top: 0; right: -100%;
  width: 290px; height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 300; padding: 5rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: right .4s var(--ease);
}
.drawer.open { right: 0; }
.drawer a {
  font-size: 1.05rem; color: var(--muted);
  border-bottom: 1px solid var(--border); padding-bottom: 1rem;
}
.drawer a:hover { color: var(--red); }
.drawer-close {
  position: absolute; top: 1.5rem; left: 1.5rem;
  font-size: 1.2rem; cursor: pointer; color: var(--muted);
}
.drawer-close:hover { color: var(--white); }

.overlay-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  z-index: 299; opacity: 0; visibility: hidden; transition: var(--t3);
}
.overlay-mask.show { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 2rem; font-weight: 700; font-size: 1rem;
  border-radius: 6px; cursor: pointer; border: none; outline: none;
  transition: var(--t3); font-family: var(--font); white-space: nowrap;
}
.btn-red {
  background: var(--red); color: var(--white);
  box-shadow: 0 4px 20px rgba(227,6,19,.35);
}
.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(227,6,19,.55);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(11,14,20,.97) 42%,
    rgba(11,14,20,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 660px;
  animation: fadeUp .9s var(--ease) both;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 36px; height: 2px; background: var(--red);
}
.hero-eyebrow span {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero p {
  font-size: 1.1rem; color: var(--muted);
  max-width: 500px; margin-bottom: 2.5rem; line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.red-divider {
  width: 50px; height: 2px;
  background: linear-gradient(to left, transparent, var(--red), transparent);
  margin: 1.5rem 0;
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-hint span { font-size: .68rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; }
.scroll-hint i { color: var(--red); }

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--red-border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stat-item { position: relative; }
.stat-item + .stat-item::before {
  content: ''; position: absolute; top: 50%; right: 0;
  transform: translateY(-50%); height: 40px; width: 1px;
  background: var(--border);
}
.stat-num {
  display: block; font-size: 2.2rem; font-weight: 800;
  color: var(--red); line-height: 1;
}
.stat-label { display: block; font-size: .85rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
}

/* ══════════════════════════════
   SECTIONS BASE
══════════════════════════════ */
section { padding: 6rem 0; }

.section-eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--red);
}
.section-eyebrow span {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800;
  color: var(--white); line-height: 1.2; margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.8; }
.text-red { color: var(--red); }

/* ══════════════════════════════
   WHY US
══════════════════════════════ */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4.5rem; align-items: center; margin-top: 4rem;
}
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.why-img-wrap { position: relative; }
.why-img-wrap::before {
  content: ''; position: absolute;
  top: -14px; left: -14px; right: 14px; bottom: 14px;
  border: 1px solid var(--red-border); border-radius: 8px; pointer-events: none;
}
.why-img-wrap img {
  width: 100%; height: 440px; object-fit: cover;
  border-radius: 8px; position: relative; z-index: 1;
}
.why-badge {
  position: absolute; bottom: -1rem; right: -1rem; z-index: 2;
  background: var(--red); color: var(--white);
  padding: 1rem 1.5rem; border-radius: 6px;
  font-weight: 800; font-size: .85rem; text-align: center; line-height: 1.4;
}

.why-points { display: flex; flex-direction: column; gap: 1.5rem; }
.why-point {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.5rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-card);
  transition: var(--t3);
}
.why-point:hover { border-color: var(--red-border); transform: translateX(-4px); box-shadow: var(--red-glow); }
.why-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--red-dim); color: var(--red);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.why-point h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.why-point p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ══════════════════════════════
   MODELS
══════════════════════════════ */
.models-section { background: var(--bg-2); }
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem; margin-top: 3.5rem;
}
.model-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; transition: var(--t3);
}
.model-card:hover {
  border-color: var(--red-border); transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.6), var(--red-glow);
}
.model-img {
  height: 145px; overflow: hidden;
  background: radial-gradient(circle at center, var(--red-dim) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.model-img img { max-height: 115px; object-fit: cover; width: 100%; border-radius: 4px; }

/* CSS Fallback — يظهر أيقونة أنيقة إذا فشلت الصورة */
.model-img.img-fallback {
  font-size: 3rem; color: var(--red);
}
.model-info { padding: 1.1rem 1rem; }
.model-name { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.model-type { font-size: .78rem; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; }

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 4rem;
  border: 1px solid var(--border); background: var(--border);
  border-radius: 10px; overflow: hidden;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.srv-item {
  background: var(--bg); padding: 2.5rem 2rem;
  transition: background .3s var(--ease); position: relative; overflow: hidden;
}
.srv-item::before {
  content: ''; position: absolute;
  top: 0; right: 0; width: 3px; height: 0;
  background: var(--red); transition: height .4s var(--ease);
}
.srv-item:hover { background: var(--bg-2); }
.srv-item:hover::before { height: 100%; }
.srv-num {
  font-size: 2.8rem; font-weight: 800;
  color: var(--red-dim); line-height: 1; margin-bottom: 1rem;
}
.srv-item h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.srv-item p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ══════════════════════════════
   GDS SECTION
══════════════════════════════ */
.gds-section {
  background: var(--bg-2);
  border-top: 1px solid var(--red-border);
  border-bottom: 1px solid var(--red-border);
}
.gds-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 5rem; align-items: center;
}
@media (max-width: 900px) { .gds-inner { grid-template-columns: 1fr; gap: 3rem; } }

.gds-image img {
  width: 100%; border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.gds-bullets { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.gds-bullet {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; transition: var(--t3);
}
.gds-bullet:hover { border-color: var(--red-border); }
.gds-bullet i { color: var(--red); font-size: 1rem; width: 18px; }
.gds-bullet span { font-size: .92rem; color: var(--text); }

/* ══════════════════════════════
   TESTIMONIALS
══════════════════════════════ */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3.5rem;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 2rem; transition: var(--t3);
}
.testi-card:hover { border-color: var(--red-border); box-shadow: var(--red-glow); }
.testi-stars { color: var(--red); font-size: .9rem; margin-bottom: 1rem; }
.testi-text { color: var(--text); font-size: .92rem; line-height: 1.8; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red-dim); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; border: 1px solid var(--red-border);
}
.testi-name { font-size: .9rem; font-weight: 700; color: var(--white); }
.testi-car { font-size: .78rem; color: var(--red); margin-top: .1rem; }

/* ══════════════════════════════
   BOOKING
══════════════════════════════ */
.booking-section { background: var(--bg-3); }
.booking-inner {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 5rem; align-items: start;
}
@media (max-width: 900px) { .booking-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.booking-form {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--muted); margin-bottom: .4rem; letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 6px; color: var(--white);
  font-family: var(--font); font-size: .93rem;
  transition: var(--t3);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  background: var(--red-dim);
  box-shadow: 0 0 0 3px rgba(227,6,19,.12);
}
.field select option { background: var(--bg-2); }
.field textarea { min-height: 100px; resize: vertical; }
.form-title { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }

.booking-info { padding-top: .5rem; }
.booking-contact { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.bc-item { display: flex; align-items: flex-start; gap: 1rem; }
.bc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--red-dim); color: var(--red);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}
.bc-item strong { display: block; color: var(--white); font-size: .92rem; }
.bc-item span, .bc-item a { color: var(--muted); font-size: .88rem; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--red-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 768px) { 
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
}

.footer-brand { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.footer-brand .cc-logo { height: 42px; width: auto; margin-bottom: .5rem; }
.footer-brand .genesis-wings { height: 22px; width: auto; opacity: .6; margin-bottom: .75rem; }
.footer-brand p { color: var(--muted); font-size: .88rem; line-height: 1.8; max-width: 280px; }

.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; transition: var(--t3);
}
.footer-social a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.footer-col h4 {
  font-size: .8rem; font-weight: 700; color: var(--white);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.25rem; position: relative; padding-bottom: .6rem;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 20px; height: 2px; background: var(--red);
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: var(--muted); font-size: .88rem;
  display: flex; align-items: center; gap: .4rem;
}
.footer-links a:hover { color: var(--red); transform: translateX(3px); }
.footer-bottom {
  text-align: center; padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .82rem;
}
.footer-bottom a { color: var(--red); }

/* ══════════════════════════════
   FLOATING BUTTONS
══════════════════════════════ */
.floating {
  position: fixed; bottom: 2rem; left: 2rem;
  display: flex; flex-direction: column; gap: .75rem; z-index: 100;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: var(--t3);
  position: relative;
}
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #25D366; }
.float-wa:hover { background: #1DA851; }
.float-home { background: var(--red); font-size: 1.2rem; }
.float-home:hover { background: var(--red-hover); }

.float-btn::before {
  content: attr(data-tip); position: absolute;
  left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: var(--bg-2); color: var(--text);
  padding: .35rem .85rem; border-radius: 6px;
  font-size: .78rem; white-space: nowrap;
  border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transition: var(--t3);
}
.float-btn:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { opacity: .5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1; transform: translateX(-50%) translateY(7px); }
}

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.show { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
