:root {
  --primary-color: #f47b20;
  --primary-dark: #d56312;
  --text-color: #222;
  --muted-text: #666;
  --bg-light: #f7f7f7;
  --bg-section: #ffffff;
  --border-radius: 14px;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.06);
}

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

body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--text-color);
  line-height: 1.7;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

h1, h2, h3 {
  color: var(--text-color);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  right: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(to left, var(--primary-color), var(--primary-dark));
  border-radius: 999px;
}

.section-subtitle {
  color: var(--muted-text);
  font-size: 0.98rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffffee;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.logo-text-main {
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-text-sub {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.2s ease-out;
  border-radius: 999px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 7px 18px rgba(244, 123, 32, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(244, 123, 32, 0.45);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(244, 123, 32, 0.08), transparent),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.04), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-text {
  color: var(--muted-text);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  font-size: 0.83rem;
}

.badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #eee;
  background: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.hero-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.03);
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-card-text {
  font-size: 0.88rem;
  color: var(--muted-text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  font-size: 0.86rem;
  color: var(--muted-text);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

/* Billboard slider */
.hero-billboard {
  margin-top: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  background: #000;
  height: 260px;
}

.hero-billboard-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;              /* NEW: لتوسيط الصورة عمودياً وأفقياً */
  align-items: center;
  justify-content: center;
}

.hero-billboard-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-billboard img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* NEW: حتى ما تنقص الصورة */
  display: block;
}

/* Label */
.hero-billboard-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Arrows */
.hero-billboard-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.hero-billboard-arrow:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.05);
}

.hero-billboard-arrow.prev {
  right: auto;
  left: 0.8rem;
}

.hero-billboard-arrow.next {
  right: 0.8rem;
}

/* Features */
.features {
  background: var(--bg-light);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-section);
  border-radius: var(--border-radius);
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f0f0f0;
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

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

/* Brands */
.brands-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
}

.brand-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted-text);
  min-width: 150px;
  max-width: 220px;
}

.brand-logo-placeholder {
  width: 140px;
  height: 60px;
  border-radius: 10px;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  background: #fff;
}

.brand-logo-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Products overview */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--bg-section);
  border-radius: var(--border-radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.product-card h3 {
  font-size: 1rem;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.product-card .btn {
  margin-top: auto;
  font-size: 0.86rem;
  padding-inline: 1rem;
  padding-block: 0.4rem;
}

/* B2B */
.b2b {
  background: #fff;
}

.b2b-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted-text);
}

.list li::before {
  content: "•";
  margin-left: 0.4rem;
  color: var(--primary-color);
  font-weight: bold;
}

.list-small {
  font-size: 0.86rem;
}

.b2b-highlight {
  background: linear-gradient(135deg, rgba(244, 123, 32, 0.06), #fff);
  border-radius: var(--border-radius);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(244,123,32,0.15);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  color: var(--muted-text);
}

.b2b-highlight-title {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 0.4rem;
}

.b2b-cta {
  margin-top: 1.4rem;
}

/* Dealers */
.dealers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.9rem;
}

.dealer-card {
  background: var(--bg-section);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid #eee;
  box-shadow: var(--shadow-soft);
}

.dealer-city {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.dealer-info {
  color: var(--muted-text);
  font-size: 0.86rem;
}

.map-placeholder {
  margin-top: 1.5rem;
  width: 100%;
  border-radius: 18px;
  border: 1px dashed #ddd;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #fafafa;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.map-link {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* Testimonials */
.testimonials {
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.testimonial-card {
  background: var(--bg-section);
  border-radius: var(--border-radius);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: var(--muted-text);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.92rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: #999;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.contact-form {
  background: var(--bg-section);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f0f0f0;
}

.contact-form-text {
  margin-bottom: 1rem;
}

.contact-form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
}

.contact-info {
  font-size: 0.9rem;
  color: var(--muted-text);
  display: grid;
  gap: 0.7rem;
}

.contact-item-title {
  font-weight: 600;
  color: var(--text-color);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.social-links a {
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #eee;
  background: #fff;
}

/* Footer */
footer {
  border-top: 1px solid #eee;
  padding: 1.2rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted-text);
  background: #fff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.86rem;
}

/* Hover elevation for cards */
.hero-card,
.card,
.product-card,
.dealer-card,
.testimonial-card,
.contact-form,
.b2b-highlight {
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.hero-card:hover,
.card:hover,
.product-card:hover,
.dealer-card:hover,
.testimonial-card:hover,
.contact-form:hover,
.b2b-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.08);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 99999;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.15s ease-out;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

.whatsapp-icon-img {
  width: 32px;
  height: 32px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .b2b-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .dealers-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.8rem 1.25rem 1rem;
    flex-direction: column;
    gap: 0.6rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-billboard {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .products-grid,
  .card-grid,
  .dealers-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .brands-logos {
    justify-content: center;
  }

  .brand-item {
    align-items: center;
    text-align: center;
  }

  .hero-billboard {
    height: 200px;
  }

  .hero-billboard-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
}

/* Language switch – نفس ستايل الأزرار */
.lang-switch {
  margin-inline-start: 0.5rem;
  font-size: 0.9rem;
}

/* English layout overrides */
body.lang-en {
  direction: ltr;
  text-align: left;
}

body.lang-en .section-title::after {
  left: 0;
  right: auto;
}
