/* ===== Performance, Accessibility & Conversion Enhancements ===== */

.skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--bs-primary, #f4623a);
  color: #fff !important;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #212529;
  outline-offset: 2px;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.92) !important;
}

.districts-seo-content {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.districts-seo-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #212529;
}

.districts-seo-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
  color: #495057;
}

.map-facade {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #e8f4fc 0%, #d4e8f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  font-family: inherit;
  color: #1a5276;
}

.map-facade:hover,
.map-facade:focus-visible {
  background: linear-gradient(135deg, #dceefb 0%, #c5dff0 100%);
  outline: 3px solid var(--bs-primary, #f4623a);
  outline-offset: 2px;
}

.map-facade i {
  font-size: 2.5rem;
  color: var(--bs-primary, #f4623a);
}

.map-facade-loaded iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  border: none;
}

.mobile-cta-bar .cta-call {
  background: #0d6efd;
}

.mobile-cta-bar .cta-whatsapp {
  background: #25d366;
}

.mobile-cta-bar a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

@media (max-width: 991.98px) {
  .mobile-cta-bar {
    display: grid;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

.hero-cta-btn {
  min-height: 48px;
  min-width: 180px;
  font-size: 1.1rem;
}

.nav-link,
.category-btn,
.btn {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .blog .blog-item .blog-img img,
  .blog .blog-item,
  .portfolio-section-2026 .work-card,
  .portfolio-section-2026 .work-image img {
    transition: none !important;
  }

  .owl-carousel {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--bs-primary, #f4623a);
  outline-offset: 2px;
}

img[width][height] {
  height: auto;
}
/* تنسيق عنوان القسم */
.section-header .header-line {
    width: 60px;
    height: 4px;
    background: #007bff;
    border-radius: 2px;
}

.section-header h2 {
    color: #1a1d20;
    position: relative;
}

/* تصميم البطاقة المصغر والمتناسق */
.compact-service-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.1; /* أبعاد هندسية متزنة (أقرب للمربع) */
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none !important;
    background-color: #f0f0f0;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 2;
    text-align: center;
}

.compact-service-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* تأثيرات التفاعل */
.compact-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.compact-service-card:hover .card-bg {
    transform: scale(1.1);
}

/* ضبط الجوال (صورتين في الصف) */
@media (max-width: 767px) {
    .col-6 {
        padding: 6px; /* تقليل المسافات الجانبية لتكبير المحتوى */
    }
    
    .compact-service-card {
        aspect-ratio: 1 / 1.2; /* طول أكبر قليلاً للجوال */
        border-radius: 12px;
    }
    
    .compact-service-card .card-title {
        font-size: 0.95rem; /* تصغير الخط ليناسب المساحة */
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* ضبط الحاسوب (4 صور في الصف) */
@media (min-width: 992px) {
    .compact-service-card {
        aspect-ratio: 1 / 1.1;
    }
}
