:root {
  --green: #22c55e;
  --green-soft: #bbf7d0;
  --green-pale: #ecfdf5;
  --text-main: #022c22;
  --text-muted: #6b7280;
  --bg-main: #f9fafb;
  --bg-soft: #f3f4f6;
  --border-soft: #e5e7eb;
  --radius-lg: 24px;
  --radius-xl: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.16);
  --shadow-small: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* إعدادات عامة */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Almarai", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0f2fe 0, #f9fafb 45%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* حاوية أساسية */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === Navbar === */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 68px;
  height: auto;
  animation: float 8s ease-in-out infinite;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* روابط التنقل */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111827;
  transition: all 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 8px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to left, var(--green), var(--green-soft));
  transform-origin: center;
  transform: scaleX(0);
  opacity: 0;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: #ecfdf5;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* زر قائمة الموبايل */
.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle-label span {
  height: 2px;
  border-radius: 999px;
  background: #111827;
  width: 100%;
  transition: all 0.25s ease;
}

/* === Hero === */

.hero {
  position: relative;
  padding: 40px 0 70px;
  overflow: hidden;
}

.hero-oval {
  position: absolute;
  inset-inline: 50%;
  top: -40px;
  width: 780px;
  max-width: 120%;
  transform: translateX(50%);
  z-index: -1;
}

/* دوائر متحركة في الـ SVG */
.hero-orbit {
  fill: #a7f3d0;
  animation: orbit 10s linear infinite;
}
.orbit-2 {
  animation-delay: 1.5s;
}
.orbit-3 {
  animation-delay: 3s;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.15);
  font-size: 12px;
  color: #047857;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 12px;
}

.title-main {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(to left, #065f46, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.title-sub {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-description {
  margin: 12px 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

/* أزرار دائرية */

.circle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.circle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 80px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 13px;
  font-weight: 600;
  background: white;
  color: #065f46;
  box-shadow: var(--shadow-small);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.circle-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  background: #ecfdf5;
}

.circle-main {
  background: radial-gradient(circle at 10% 0%, #bbf7d0, #22c55e);
  color: #022c22;
  border: none;
}

.circle-main:hover {
  background: radial-gradient(circle at 0 0, #a7f3d0, #16a34a);
}

.circle-ghost {
  background: #f9fafb;
}

/* شريط الاتصال أسفل الهيرو */
.hero-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: #4b5563;
  margin-top: 4px;
}

.hero-contact-strip a {
  color: #16a34a;
  font-weight: 600;
}

/* الجزء البصري للهيرو */

.hero-visual {
  position: relative;
}

.hero-car {
  width: 100%;
  max-width: 340px;
  display: block;
  margin-inline: auto;
  animation: carFloat 6s ease-in-out infinite;
}

/* مربعات الصور المتحركة */

.floating-gallery {
  position: absolute;
  inset-inline: -20px auto;
  bottom: -10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-small);
  padding: 10px 12px;
  min-width: 180px;
  max-width: 210px;
  font-size: 12px;
  animation: float-card 8s ease-in-out infinite;
}

.image-card p {
  margin: 6px 0 0;
  color: #4b5563;
}

.image-placeholder {
  border-radius: 12px;
  height: 70px;
  background: linear-gradient(135deg, #bbf7d0, #ecfdf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #047857;
  font-weight: 600;
}

.card-1 {
  animation-delay: 0s;
}
.card-2 {
  margin-inline-start: 40px;
  animation-delay: 1.2s;
}
.card-3 {
  margin-inline-start: 10px;
  animation-delay: 2.4s;
}

/* === Sections عامة === */

.section {
  padding: 60px 0;
}

.section-soft {
  background: linear-gradient(to bottom, #f9fafb, #ecfeff);
}

.section-title {
  font-size: 22px;
  text-align: center;
  margin: 0 0 6px;
}

.section-subtitle {
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.section-text h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.section-text p {
  font-size: 14px;
  line-height: 1.9;
  color: #4b5563;
  margin: 6px 0;
}

/* شارات ناعمة */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.soft-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}

/* SVG من نحن */
.section-visual {
  display: flex;
  justify-content: center;
}

.about-svg {
  width: 240px;
  animation: float 7s ease-in-out infinite;
}

/* === الخدمات === */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: white;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-small);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: #a7f3d0;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.service-card p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
}

/* === طلب خدمة === */

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.request-points {
  padding-right: 18px;
  font-size: 13px;
  color: #4b5563;
}

.request-points li {
  margin-bottom: 4px;
}

/* فورم الطلب */

.request-form {
  background: white;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.form-row {
  margin-bottom: 10px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #111827;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 9px 10px;
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: #22c55e;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(to left, #22c55e, #4ade80);
  color: #022c22;
  box-shadow: var(--shadow-small);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  filter: brightness(1.03);
}

.primary-button-full {
  width: 100%;
  justify-content: center;
}

.form-note {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
}

/* === تواصل معنا === */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  background: white;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-small);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 13px;
}

.contact-card h3 {
  margin-top: 0;
  font-size: 15px;
  margin-bottom: 6px;
}

.contact-card p {
  margin: 4px 0;
  color: #4b5563;
}

.contact-card a {
  color: #16a34a;
  font-weight: 600;
}

.contact-map svg {
  width: 100%;
}

.map-caption {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
}

/* === Footer === */

.footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 12px 0 16px;
}

.footer-content {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* === Animations === */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes carFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  40% {
    transform: translateY(-8px) translateX(-3px);
  }
  70% {
    transform: translateY(-3px) translateX(3px);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1.2deg);
  }
}

@keyframes orbit {
  0% {
    transform: translate(0, 0);
    opacity: 0.9;
  }
  50% {
    transform: translate(-10px, 8px);
    opacity: 0.6;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0.9;
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* === استجابة الموبايل / التابلت === */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .floating-gallery {
    position: static;
    margin-top: 12px;
  }

  .section-grid,
  .request-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 70px;
    background: rgba(249, 250, 251, 0.98);
    border-bottom: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    padding: 10px 16px 14px;
  }

  .nav-links a {
    padding: 8px 4px;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 28px;
  }

  .title-main {
    font-size: 24px;
  }
}
/* إطار صورة السيارة الرئيسية */
.hero-car-frame {
  position: relative;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000; /* لو الصورة فيها فراغات */
  animation: carFloat 6s ease-in-out infinite;
}

.hero-car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* تاغ صغير على الصورة */
.hero-car-tag {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ecfdf5;
  backdrop-filter: blur(10px);
}

/* صورة داخل الكروت المتحركة */
.image-thumb {
  width: 100%;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
}

/* تعديل بسيط على الكرت لأنه صار يحتوي صورة حقيقية */
.image-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-small);
  padding: 8px 10px;
  min-width: 180px;
  max-width: 210px;
  font-size: 12px;
  animation: float-card 8s ease-in-out infinite;
}

.image-card p {
  margin: 0;
  color: #4b5563;
}
