/* ===========================================
   Tashlih.net - Main Stylesheet
   شراء سيارات تشليح - ملف التنسيقات الرئيسي
   =========================================== */

/* ===========================================
   CSS Variables - المتغيرات
   =========================== */
:root {
  /* Colors */
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-secondary: #d69e2e;
  --color-secondary-light: #ecc94b;
  --color-dark: #1a202c;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-light: #f7fafc;
  --color-white: #ffffff;
  --color-border: #e2e8f0;

  /* Typography */
  --font-family: "Tajawal", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ===========================================
   Reset & Base
   =========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: #1a202c;
  background-color: #ffffff;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ===========================================
   Utility Classes
   =========================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(26, 54, 93, 0.1);
  color: #1a365d !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* تأكيد ألوان العناوين بالأسود */
.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #000000 !important;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* تأكيد ألوان الوصف بالرمادي الداكن */
.section-description {
  font-size: 1.125rem;
  color: #2d3748 !important;
  max-width: 600px;
  margin: 0 auto;
}

/* فئة النص الأساسي باللون الذهبي */
.text-primary {
  color: #d69e2e !important;
}

/* فئة النص الأسود */
.text-black {
  color: #000000 !important;
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, #d69e2e, #ecc94b);
  color: #1a202c !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b7791f, #d69e2e);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: #ffffff;
  color: #1a365d !important;
  border: 2px solid #1a365d;
}

.btn-secondary:hover {
  background-color: #1a365d;
  color: #ffffff !important;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===========================================
   Header
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0.75rem 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-image {
    height: 60px;
  }
}

/* Navigation */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: #1a202c !important;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #d69e2e !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: #d69e2e;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 0.5rem 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #1a202c !important;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: #f7fafc;
  color: #d69e2e !important;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-call {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d69e2e, #ecc94b);
  color: #1a202c !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

@media (min-width: 768px) {
  .btn-call {
    display: flex;
  }
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a365d;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #1a202c !important;
  border-radius: var(--radius-md);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: #f7fafc;
  color: #d69e2e !important;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-dropdown-menu {
  display: none;
  padding-right: 1rem;
  margin-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: block;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-menu-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.mobile-menu-cta .btn-call {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ===========================================
   Hero Section - قسم البطل
   =========================================== */
.hero {
  padding-top: 100px;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-clean {
  background-color: #f8f9fa;
  background-image: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: right;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(214, 158, 46, 0.15);
  color: #b7791f !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #000000 !important;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title span {
  display: block;
  color: #d69e2e !important;
}

.hero-description {
  font-size: 1.125rem;
  color: #2d3748 !important;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-description strong {
  color: #1a365d !important;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a365d !important;
}

.stat-label {
  font-size: 0.875rem;
  color: #4a5568 !important;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

/* ===========================================
   About Brief Section - قسم التعريف المختصر
   =========================================== */
.about-brief {
  background-color: #ffffff;
}

.about-brief-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-brief-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-brief-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #000000 !important;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .about-brief-text h2 {
    font-size: 2rem;
  }
}

.about-brief-text p {
  font-size: 1.1rem;
  color: #2d3748 !important;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-brief-text p strong {
  color: #1a365d !important;
}

.about-brief-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brief-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1a202c !important;
  font-weight: 500;
}

.brief-feature i {
  color: #25d366 !important;
  font-size: 1.25rem;
}

.about-brief-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ===========================================
   Services Section - قسم الخدمات
   =========================================== */
/* تحسين تخطيط الخدمات - 3 بطاقات في صف واحد على الشاشات الكبيرة */
.services {
  background-color: #f8f9fa !important;
}

.services .section-title {
  color: #000000 !important;
}

.services .section-description {
  color: #2d3748 !important;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: #ffffff !important;
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: #d69e2e;
}

/* تحسين عرض الصور في الخدمات */
.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000 !important;
  margin: 1.5rem 1.5rem 0.75rem;
}

.service-description {
  font-size: 1rem;
  color: #4a5568 !important;
  margin: 0 1.5rem 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d69e2e !important;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 1.5rem 1.5rem;
  transition: var(--transition);
}

.service-link:hover {
  gap: 0.75rem;
}

/* Features Section - خلفية بيضاء مع نصوص سوداء */
.features {
  background-color: #ffffff !important;
}

.features .section-title {
  color: #000000 !important;
}

.features .section-description {
  color: #2d3748 !important;
}

/* تحسين شبكة المميزات لعرض 2 أعمدة */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: #f7fafc !important;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d69e2e;
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(214, 158, 46, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d69e2e !important;
  font-size: 1.5rem;
}

.feature-card:hover .feature-icon {
  background-color: #d69e2e;
  color: #ffffff !important;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.95rem;
  color: #4a5568 !important;
  line-height: 1.6;
}

/* Cities Section - خلفية رمادية مع بطاقات مدن */
.cities {
  background-color: #f8f9fa !important;
}

.cities .section-title {
  color: #000000 !important;
}

.cities .section-description {
  color: #2d3748 !important;
}

/* تحسين شبكة المدن لعرض 4 أعمدة */
.cities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.city-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.city-card:hover img {
  transform: scale(1.1);
}

.city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.city-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
}

.city-tagline {
  font-size: 0.875rem;
  color: #ffffff !important;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Testimonials Section - خلفية رمادية مع بطاقات بيضاء */
.testimonials {
  background-color: #f8f9fa !important;
}

.testimonials .section-title {
  color: #000000 !important;
}

.testimonials .section-description {
  color: #2d3748 !important;
}

/* تحسين شبكة آراء العملاء */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: #ffffff !important;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.testimonial-text {
  font-size: 1rem;
  color: #4a5568 !important;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1a365d !important;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: #718096 !important;
}

/* FAQ Section */
.faq {
  background-color: #ffffff !important;
}

.faq .section-title {
  color: #000000 !important;
}

.faq .section-description {
  color: #2d3748 !important;
}

.faq-item {
  background-color: #f7fafc !important;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a365d !important;
  cursor: pointer;
  transition: var(--transition);
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: right;
}

.faq-question:hover {
  color: #d69e2e !important;
}

.faq-question i {
  color: #d69e2e !important;
  font-size: 1.25rem;
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 1.5rem;
  font-size: 1rem; /* Fixed: Added unit and semicolon */
  color: #4a5568 !important; /* Added for consistency */
  line-height: 1.7; /* Added for consistency */
}


/* =========================================================
   FIX v5: Ensure content always visible + footer styling
   ========================================================= */

/* 1) Hard override: if JS sets opacity:0 inline, keep cards visible */
.service-card,
.feature-card,
.city-card,
.testimonial-card,
.services-grid > *,
.features-grid > *,
.cities-grid > *,
.testimonials-grid > * {
  opacity: 1 !important;
}

/* Keep animation class compatible (optional) */
.fade-in-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 2) Section backgrounds + readable text */
#services, #features, #cities, #testimonials, #faq, #contact {
  background: #ffffff;
  color: #111111;
}

#services p, #features p, #cities p, #testimonials p, #faq p, #contact p,
#services li, #features li, #cities li, #testimonials li, #faq li, #contact li,
#services a, #features a, #cities a, #testimonials a, #faq a, #contact a,
#services span, #features span, #cities span, #testimonials span, #faq span, #contact span {
  color: #333333;
}

/* 3) Cards consistent */
.service-card, .feature-card, .city-card, .testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  padding: 24px;
}

/* Headings in cards */
.service-card h3, .feature-card h3, .city-card h3, .testimonial-card h3,
.service-card h4, .feature-card h4, .city-card h4, .testimonial-card h4 {
  color: #111111;
}

/* 4) Footer — make it clearly visible and readable */
.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 70px 0 30px;
}

.footer a { color: #e5e7eb; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer .footer-brand img { max-width: 180px; height: auto; }
.footer .footer-title {
  font-weight: 700;
  margin: 0 0 14px;
  color: #ffffff;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 10px 0; }
.footer .footer-bottom {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(229,231,235,0.9);
}

@media (max-width: 900px) {
  .footer .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 60px 0 26px; }
}

/* 5) If you have badge pills in section headers, keep them readable */
.section-badge, .section-badge * { color: #ffffff !important; }


/* =========================================================
   UI Upgrade: Contact + CTA (Sell your car) + Gallery
   ========================================================= */

/* --- CTA Section (هل تريد بيع سيارتك؟) --- */
.cta-section{
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2a4a, #1a365d) !important;
  color: #fff !important;
}
.cta-section::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 20% 20%, rgba(214,158,46,0.25), transparent 55%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.10), transparent 55%),
              radial-gradient(circle at 30% 80%, rgba(37,211,102,0.12), transparent 55%);
  transform: rotate(8deg);
  pointer-events:none;
}
.cta-section .container{ position: relative; }
.cta-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.cta-text{
  flex: 1 1 520px;
}
.cta-text h2{
  color:#fff !important;
  font-size: 36px;
  margin: 0 0 10px;
}
.cta-text p{
  color: rgba(255,255,255,0.86) !important;
  font-size: 16px;
  margin: 0 0 18px;
}
.cta-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.cta-section .btn{
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.cta-section .btn:hover{
  transform: translateY(-2px);
}
.btn-whatsapp{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
@media (max-width: 992px){
  .cta-content{ flex-direction: column; align-items: stretch; }
  .cta-text h2{ font-size: 30px; }
}

/* --- Contact Section (تواصل معنا) --- */
.contact{
  background: #ffffff !important;
}
.contact .section-badge{
  background: rgba(26,54,93,0.08);
  color:#1a365d;
}
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:22px;
  align-items:start;
  margin-top: 26px;
}
@media (max-width: 992px){
  .contact-grid{ grid-template-columns: 1fr; }
}
.contact-card{
  background:#fff;
  border-radius:14px;
  padding:18px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.contact-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(214,158,46,0.14);
  color:#a97812;
  flex: 0 0 44px;
}
.contact-details h3{
  margin: 0 0 6px;
  font-size: 16px;
  color:#111;
}
.contact-details span,
.contact-details a{
  color:#333 !important;
  font-size: 14px;
  text-decoration: none;
}
.contact-details a:hover{ text-decoration: underline; }

.contact-form, .contact-form-container{
  background:#fff;
  border-radius:16px;
  padding:22px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}
.contact-form h3{
  margin: 0 0 12px;
  font-size: 18px;
  color:#111;
}
.form-group label{
  display:block;
  margin: 0 0 6px;
  color:#222;
  font-weight: 600;
  font-size: 13px;
}
.form-group input,
.form-group textarea,
.form-group select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background:#fff;
  color:#111;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  border-color: rgba(214,158,46,0.75);
  box-shadow: 0 0 0 4px rgba(214,158,46,0.18);
}
.btn-block{
  width:100%;
  justify-content:center;
}
.contact .btn-primary{
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
}

/* --- Gallery Section (معرض الصور) --- */
.gallery{
  background:#fff !important;
}
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin-top: 26px;
}
@media (max-width: 1200px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px){
  .gallery-grid{ grid-template-columns: 1fr; }
}
.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:#f6f6f6;
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}
.gallery-item img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .45s ease, filter .45s ease;
}
.gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events:none;
}
.gallery-item:hover img{
  transform: scale(1.08);
  filter: saturate(1.05);
}
.gallery-item:hover::after{
  opacity: 1;
}

/* Footer polish (in case it looks off) */
footer{
  background:#0f172a !important;
  color: rgba(255,255,255,0.85) !important;
}
footer a{ color: rgba(255,255,255,0.90) !important; }
footer a:hover{ text-decoration: underline; }



/* =========================================================
   v7: Apply CTA background style to Header + Hero (first section)
   ========================================================= */

/* Header gradient background (same feel as CTA) */
.header{
  background: linear-gradient(135deg, #0f2a4a, #1a365d) !important;
  color: #fff !important;
}
.header::before{
  content:"";
  position:absolute;
  inset:-60%;
  background: radial-gradient(circle at 20% 20%, rgba(214,158,46,0.22), transparent 55%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.10), transparent 55%),
              radial-gradient(circle at 30% 80%, rgba(37,211,102,0.10), transparent 55%);
  transform: rotate(8deg);
  pointer-events:none;
}
.header .header-container{ position: relative; }
.header .nav-link,
.header .dropdown-toggle,
.header .nav-link i{
  color: #ffffff !important;
}
.header .nav-link:hover,
.header .nav-link.active{
  color: rgba(255,255,255,0.92) !important;
}
.header .hamburger span{ background:#fff !important; }

/* Keep dropdown readable */
.dropdown-menu{
  background: #ffffff !important;
}
.dropdown-item{
  color:#111 !important;
}

/* Hero uses the same gradient style */
.hero.hero-clean{
  background: linear-gradient(135deg, #0f2a4a, #1a365d) !important;
  color:#fff !important;
  position: relative;
  overflow:hidden;
}
.hero.hero-clean::before{
  content:"";
  position:absolute;
  inset:-45%;
  background: radial-gradient(circle at 20% 20%, rgba(214,158,46,0.25), transparent 55%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.10), transparent 55%),
              radial-gradient(circle at 30% 80%, rgba(37,211,102,0.12), transparent 55%);
  transform: rotate(8deg);
  pointer-events:none;
}
.hero.hero-clean .hero-container{ position: relative; }
.hero.hero-clean .hero-title,
.hero.hero-clean .hero-title span,
.hero.hero-clean .hero-description{
  color:#ffffff !important;
}
.hero.hero-clean .hero-description{ opacity: .92; }
.hero.hero-clean .hero-badge{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
.hero.hero-clean .hero-badge span,
.hero.hero-clean .hero-badge i{
  color:#fff !important;
}



/* =========================================================
   v8: Fix header text/link contrast on dark header background
   ========================================================= */
.header .logo,
.header .logo *,
.header .nav-link,
.header .nav-link *,
.header .mobile-menu-toggle,
.header .mobile-menu-toggle *{
  color:#ffffff !important;
}

.header .nav-link::after{
  background-color: rgba(255,255,255,0.65) !important;
}

/* Hover/active on dark header */
.header .nav-link:hover,
.header .nav-link.active{
  color:#ffd166 !important;
}

/* Dropdown menu stays light for readability */
.header .dropdown-menu{
  background:#ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}
.header .dropdown-menu a,
.header .dropdown-menu .dropdown-item{
  color:#111111 !important;
}
.header .dropdown-menu a:hover,
.header .dropdown-menu .dropdown-item:hover{
  background: rgba(0,0,0,0.04) !important;
}

/* Mobile menu panel stays light */
.mobile-menu{
  background:#ffffff !important;
}
.mobile-nav-link{
  color:#111111 !important;
}
.mobile-nav-link.active,
.mobile-nav-link:hover{
  color:#d69e2e !important;
}


/* =========================================================
   Floating Contact Buttons (Call + WhatsApp)
   Replaces old animated WhatsApp button
   ========================================================= */

.floating-contact{
  position: fixed;
  right: 18px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-contact a{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.floating-contact a:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.floating-contact a:active{
  transform: translateY(-1px);
}

.floating-contact .call-btn{
  background: #0d6efd;
}

.floating-contact .whatsapp-btn{
  background: #25d366;
}

.floating-contact i{
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 576px){
  .floating-contact{
    right: 14px;
    bottom: 80px;
  }
  .floating-contact a{
    width: 52px;
    height: 52px;
  }
}
