/* قواعد عامة */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fb;
}

/* تنسيق الشعار داخل الهيدر */
.navbar-brand img {
  height: 60px;
}

/* ألوان الخلفية المخصصة */
.navbar-custom,
.bg-custom {
  background-color: #0d1b2a;
}

/* فئات مساعدة لتحديد الحد الأقصى للعرض */
.max-width-700 {
  max-width: 700px;
  margin: 0 auto;
}
.max-width-600 {
  max-width: 600px;
  margin: 0 auto;
}

/* ---------------------------- */
/* HERO - Single Image Version */
/* ---------------------------- */

/* -------------------------- */
/* تنسيق كروت الخدمات الجديدة */
/* -------------------------- */
.service-card-v2 {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 1rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

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

.service-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.service-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #1a2d45;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  border-top: 1px solid #eee;
}

.service-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #111;
}

.view-all-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  color: #111;
  transition: background 0.2s ease-in-out;
}

.view-all-btn:hover {
  background-color: #f5f5f5;
}

/* -------------------------- */
/* Gallery */
.gallery-grid {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.gallery-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Features */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.feature-item {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
}

.feature-item i {
  font-size: 2rem;
  color: #f4b400;
  margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
  .features-grid {
    flex-direction: column;
  }

  .feature-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .feature-item i {
    margin-bottom: 0;
    margin-right: 1rem;
    margin-top: 0.2rem;
  }
}

.container {
  max-width: 1500px; /* أو 1200px لو تحب عرضه أكبر شوية */
  margin: 0 auto;
  padding: 0 15px; /* مسافة داخلية بسيطة من الأطراف */
}

/* FAQ Accordion */
.faq-image {
  max-width: 300px;
  height: auto;
  object-fit: cover;
}

@media (max-width: 767px) {
  .faq-image {
    max-width: 220px;
  }
}

.contact-header-section img {
  max-height: 300px;
  object-fit: cover;
}

.contact-info i {
  display: block;
  margin-bottom: 0.5rem;
}

/* Testimonials Slider */
.testimonial-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  background: #fff;
  color: #000;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 450px;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: left;
  margin: 0 10px;
}

.testimonial-card .stars {
  color: #f4b400;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: inline-block;
}

.testimonial-card::after {
  content: "\201D";
  font-family: Georgia, serif;
  font-size: 2.5rem;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: #dcdcdc;
}

.testimonial-card p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.testimonial-card h6 {
  font-weight: bold;
  margin-bottom: 0;
}

.testimonial-card small {
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 767px) {
  .testimonial-card {
    max-width: 90%;
    height: auto;
  }
}

.footer-section i {
  font-size: 1rem;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  transition: 0.3s;
}

.footer-section i:hover {
  background-color: #f4b400;
  color: white;
}

.footer-section input::placeholder {
  font-size: 0.85rem;
}

.footer-section h6 {
  font-size: 1rem;
}

.handyman-services {
  padding: 40px 0;
}

.handyman-services h2 {
  margin-top: 40px;
  color: #2a2a2a;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.service-item {
  margin: 20px 0;
  padding: 10px 15px;
  background: #f7f7f7;
  border-left: 4px solid #0073e6;
}

.service-item h3 {
  margin: 0 0 5px;
}

.contact-cta {
  background: #0073e6;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.contact-cta .btn {
  margin-top: 20px;
  background: white;
  color: #0073e6;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

/* تنسيق الحاوية العامة للكروت */
.services.container {
  padding: 60px 20px;
}

/* تنسيق الكروت لتبدو عائمة */
.service-card {
  background: white;
  border: none; /* ✅ ألغِ أي حدود */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* تأثير عند المرور */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* صورة الكارت */
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* محتوى الكارت */
.service-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* البادج أعلى الصورة */

.service-card .badge {
  z-index: 2;
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #1e293b;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.service-card .card {
  border: none !important;
  box-shadow: none !important;
}

.custom-outline-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  color: #111;
  transition: background 0.2s ease-in-out;
}

.custom-outline-btn:hover {
  background-color: #f5f5f5;
  color: #111;
}
.promo-banner {
  margin-bottom: -40px;
  position: relative;
  z-index: 5;
}
/* Lazy background fade-in effect */
.lazy-bg {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.lazy-bg.loaded {
  opacity: 1;
}
/* تأثير ظهور الصورة */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.hero-overlay-content h1 {
  word-break: normal;
  white-space: normal;
  overflow-wrap: normal;
}
.swiper-pagination-bullet {
  width: 16px !important;
  height: 16px !important;
  margin: 6px !important;
  touch-action: manipulation; /* تحسّن التفاعل */
}

.swiper-pagination {
  padding-top: 10px;
  padding-bottom: 10px;
}

.stars {
  color: #f4b400;
}
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
}
.btn-warning {
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-warning:hover {
  background-color: #f59e0b !important;
  transform: translateY(-2px);
}

/* ===== GALLERY GRID FIX ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  background: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3; /* كل الصور نفس المقاس النسبي */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}



