/* ==========================================================
   Base / Reset
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* انتقال سلس عند تبديل الوضع الليلي/النهاري */
body,
nav,
section,
footer,
.car-card,
.faq-toggle,
.tab-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: "Tajawal", sans-serif;
  direction: rtl;
 -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+ */
  user-select: none;         /* Standard */
}

/* ==========================================================
   Tab Buttons (فلترة الماركات)
   ========================================================== */
.tab-btn {
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
}

.tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.tab-btn:not(.active):hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.dark .tab-btn {
  color: #94a3b8;
}

html.dark .tab-btn.active {
  background: #ff6600;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}

html.dark .tab-btn:not(.active):hover {
  background: #1e293b;
  color: #f1f5f9;
}

/* ==========================================================
   Swiper — تخصيص
   ========================================================== */
.swiper-pagination-bullet-active {
  background: #ff6600 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1rem !important;
  font-weight: 900;
}

.car-card {
  min-height: 148px;
}

/* ==========================================================
   FAQ Accordion
   ========================================================== */
.faq-toggle i {
  transition: transform 0.3s ease;
}

.faq-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* ==========================================================
   Scroll Reveal
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   Floating mobile CTA — تجنّب تغطية آخر قسم في الصفحة
   ========================================================== */
@media (max-width: 768px) {
  section:last-of-type {
    padding-bottom: 96px;
  }
}


input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}