/* 
 * SAMAA Luxury Cars — Premium Stylesheet
 * Colors: Black (Primary), Gold (Accent), White (Text)
 */

:root {
  --primary: #0a0a0a;
  --secondary: #1a1a1a;
  --gold: #d4af37;
  --gold-hover: #f1c40f;
  --text-light: #f5f5f5;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(26, 26, 26, 0.8);
  --transition: all 0.3s ease;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

h2 span {
  color: var(--gold);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Reusable Components */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

section:nth-child(even) {
  background-color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(10, 10, 10, 0.95);
}

header.scrolled .logo img {
  max-height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 100%), url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?q=80&w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.adv-card {
  background-color: var(--primary);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.adv-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.adv-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.adv-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.adv-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cars Section */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.car-card {
  background-color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

.car-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-img {
  transform: scale(1.05);
}

.car-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(10, 10, 10, 0.8);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.car-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-name {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.car-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature i {
  color: var(--gold);
}

.car-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Services & How it works */
.services-grid, .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border-left: 2px solid var(--gold);
  background-color: var(--primary);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.service-card p {
  color: var(--text-muted);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin: 0 auto 1.5rem;
  z-index: 2;
  position: relative;
}

.step-card h3 {
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--text-muted);
}

.how-note {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 2px solid var(--gold);
  border-radius: 12px;
  transform: translate(15px, 15px);
  z-index: -1;
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.2rem;
  color: var(--text-light);
}

.contact-details p {
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
footer {
  background-color: #050505;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  max-height: 140px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-title {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* RTL Support */
html[dir="rtl"] {
  font-family: 'Tajawal', var(--font-body);
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .logo {
  font-family: 'Tajawal', var(--font-heading);
}
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .btn { flex-direction: row-reverse; }
html[dir="rtl"] .car-category { right: auto; left: 1rem; }
html[dir="rtl"] .service-card { border-left: none; border-right: 2px solid var(--gold); }
html[dir="rtl"] .contact-item { flex-direction: row; }
html[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 5px; }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s;
  }
  
  .nav-links.active { left: 0; }
  html[dir="rtl"] .nav-links { left: auto; right: -100%; }
  html[dir="rtl"] .nav-links.active { right: 0; }
  
  .nav-actions { display: none; }
  
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links a:hover { padding: 0; }
}
