/* ==========================================================================
   Cravanat.com - Unified Stylesheet (Mobile-First, RTL, High-Speed)
   ========================================================================== */

:root {
  --primary: #0f2942;        /* أزرق هندسي داكن */
  --primary-light: #1e4268;
  --accent: #e67e22;         /* برتقالي صناعي لأزرار التحويل */
  --accent-hover: #cf6d17;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --bg-body: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 41, 66, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  padding-bottom: 64px; /* مساحة لشريط الموبايل السفلي */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-bar {
  background-color: #091b2c;
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-phone {
  color: #fbbf24;
  font-weight: 700;
  direction: ltr;
  display: inline-block;
}

.site-header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo-title span {
  color: var(--accent);
}

.logo-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px;
  right: 0;
  left: 0;
  background: #ffffff;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--border-color);
  gap: 12px;
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  font-weight: 700;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background-color: var(--bg-soft);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    box-shadow: none;
    border-top: none;
    padding: 0;
    gap: 6px;
  }
  .nav-cta {
    display: inline-flex;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: center;
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--primary);
}

.btn-primary-outline {
  background-color: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  width: 100%;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.btn-primary-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #0b2035 0%, #163b5c 100%);
  color: #ffffff;
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 68px 0 74px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(230, 126, 34, 0.2);
  border: 1px solid #e67e22;
  color: #fed7aa;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.45rem;
  }
}

.hero-lead {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.hero-notice {
  background: rgba(255, 255, 255, 0.08);
  border-right: 4px solid var(--accent);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #f8fafc;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-actions .btn {
  flex: 1 1 210px;
  padding: 14px 20px;
  font-size: 1.02rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  color: #fbbf24;
  font-weight: 800;
}

.stat-item span {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.hero-card h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #fbbf24;
}

.hero-checklist li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-checklist li:last-child {
  border-bottom: none;
}

.check-icon {
  color: #4ade80;
  font-weight: 800;
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: 56px 0;
}

.section-soft {
  background-color: var(--bg-soft);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}

.section-header h2 {
  font-size: 1.7rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.05rem;
  }
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   GEO Direct Answer Box
   ========================================================================== */
.geo-summary-box {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-right: 6px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: -28px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.geo-summary-box h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.geo-summary-box p {
  color: var(--text-main);
  font-size: 0.98rem;
  margin: 0;
}

/* ==========================================================================
   Cards Grid (Caravan Types)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  background: #e2e8f0;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 800;
}

.card-body p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-specs {
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  margin-bottom: 16px;
  margin-top: auto;
}

.card-specs li {
  margin-bottom: 4px;
  color: var(--text-main);
}

.card-specs li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Technical Comparison Table
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.specs-table th,
.specs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  font-size: 0.95rem;
}

.specs-table th {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.specs-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  width: 24%;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-box {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(230, 126, 34, 0.14);
  color: var(--accent);
  font-weight: 800;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.feature-box h3 {
  font-size: 1.12rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WhatsApp Quote Form
   ========================================================================== */
.quote-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--accent);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .quote-wrapper {
    padding: 40px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (min-width: 680px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 0.93rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  background-color: #ffffff;
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 41, 66, 0.1);
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 18px;
}

.checkbox-pill {
  background: var(--bg-soft);
  border: 1px solid #dbeafe;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-pill input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.btn-submit-wa {
  width: 100%;
  background: var(--whatsapp);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  font-size: 1.12rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-submit-wa:hover {
  background: var(--whatsapp-hover);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.client-name {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* ==========================================================================
   Footer & Mobile Sticky Bar
   ========================================================================== */
.site-footer {
  background-color: #091b2c;
  color: #cbd5e1;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* شريط التواصل السفلي للموبايل */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-bar a {
  padding: 14px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 0.98rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sticky-call {
  background-color: var(--primary);
}

.sticky-wa {
  background-color: var(--whatsapp);
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}