/* =========================================================
   fixes.css — تحسينات وإصلاحات بدون تغيير التصميم الأساسي
   يُحمَّل بعد responsive.css
   ========================================================= */

/* صور مرنة لا تكسر التخطيط */
img { max-width: 100%; height: auto; }

/* وضوح نص الهيرو فوق صورة السيارة */
.homepage-hero-top h1,
.homepage-hero-top p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}
@media (max-width: 991px) {
    .homepage-hero-top .background-preview { position: relative; }
    .homepage-hero-top .background-preview::after {
        content: "";
        position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
        pointer-events: none;
    }
    .homepage-hero-top .d-table { position: relative; z-index: 1; }
}

/* بطاقات "مشغول ماعندك وقت" بارتفاع متساوٍ (كانت البطاقة 04 أقصر) */
.boxed-item { height: calc(100% - 30px); }

/* أيقونات الفوتر والأسهم باتجاه صحيح للعربية */
.footer-menu ul li i.fa-angle-left { margin-left: 6px; }

/* شبكة روابط الخدمات والماركات (بدل القائمة الطويلة) */
.seo-links-wrap { margin-top: 50px; }
.seo-links-wrap h3 {
    font-size: 22px; color: #333; margin-bottom: 20px; text-align: center;
}
.seo-links {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.seo-links li a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e3e7f3;
    background: #fbfcff;
    color: #00299b;
    font-size: 14px;
    border-radius: 3px;
    transition: all .2s ease;
}
.seo-links li a:hover,
.seo-links li a:focus {
    background: #00299b; color: #fff; border-color: #00299b; text-decoration: none;
}

/* الزر الأزرق فوق قائمة الروابط كان ملاصقاً لها */
.seo-cta { margin-bottom: 10px; }

/* قوائم الاختيار الطويلة (سنة الموديل) قابلة للتمرير */
.select-options { max-height: 260px; overflow-y: auto; }

/* رسائل التحقق من النماذج */
.form-note {
    display: none; margin-top: 15px; padding: 10px 15px;
    border-radius: 3px; font-size: 14px; text-align: center;
}
.form-note.show { display: block; }
.form-note.ok { background: #e8f7ee; color: #1b7a3d; }
.form-note.err { background: #fdecec; color: #b42318; }

/* زر واتساب في الفوتر بدل نموذج الاشتراك غير المفعّل */
.footer-wa-btn {
    display: block; text-align: center; background: #25d366; color: #fff !important;
    padding: 10px 15px; font-weight: 700; border-radius: 2px; margin-top: 10px;
}
.footer-wa-btn:hover { background: #1ebe5a; text-decoration: none; }
.address-info a { color: inherit; }

/* أزرار عائمة: اتصال + واتساب */
.float-contact {
    position: fixed; bottom: 20px; right: 20px; z-index: 999;
    display: flex; flex-direction: column; gap: 10px;
}
.float-contact a {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform .2s ease;
}
.float-contact a:hover { transform: scale(1.08); color: #fff; text-decoration: none; }
.float-contact .fc-wa { background: #25d366; }
.float-contact .fc-call { background: #00299b; }
/* زر العودة للأعلى يبقى على اليسار حتى لا يتداخل */
.back-to-top { left: 20px; right: auto; }

/* نتائج البحث */
.search-results { list-style: none; padding: 0; margin: 15px 0 0; max-height: 50vh; overflow-y: auto; }
.search-results li a {
    display: block; padding: 10px 12px; border-bottom: 1px solid #eee; color: #00299b;
}
.search-results li a:hover { background: #f4f6fc; text-decoration: none; }
.search-results .no-result { padding: 10px 12px; color: #777; }

/* إمكانية الوصول: إطار تركيز واضح للوحة المفاتيح */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .select-styled:focus-visible {
    outline: 2px solid #ffb400; outline-offset: 2px;
}

/* الأرقام والهواتف تُعرض من اليسار لليمين داخل النص العربي */
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* تحسين التفاف النصوص الطويلة */
p, li, h1, h2, h3 { overflow-wrap: anywhere; }

@media (max-width: 575px) {
    .float-contact { bottom: 14px; right: 14px; }
    .float-contact a { width: 50px; height: 50px; font-size: 24px; }
    .footer-top-info p { font-size: 20px; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* أيقونات العدادات */
.count-icon .fa { font-size: 38px; vertical-align: middle; margin-left: 6px; }
.address-info a[href^="mailto"] { text-transform: none; }
.search-results li a, .search-results .no-result { text-align: right; }

/* بطاقات التقييم على جوجل */
.review-cta { text-align: center; }
.review-cta p { padding-left: 0; }
.review-cta p:before { display: none; }
.review-cta .review-btn { margin-top: 18px; padding: 10px 22px; font-size: 14px; }
.quotation-profile.review-icon {
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #00299b; font-size: 30px;
    width: 70px; height: 70px; border-radius: 50%;
}

/* قسم أعطال الماركة */
.brand-faults .services-list ul li { margin-bottom: 12px; }
.brand-tip {
    background: #fff; border-right: 4px solid #00299b; padding: 15px 20px;
    margin: 25px 0 30px; color: #555; box-shadow: 0 10px 20px rgba(0,0,0,.04);
}
.brand-tip i { color: #ffb400; font-size: 18px; margin-left: 6px; }
.btn.btn-wa { background: #25d366; border-color: #25d366; margin-right: 10px; }
.btn.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; }
@media (max-width: 575px) { .btn.btn-wa { margin: 10px 0 0; } }

/* عنوان الصفحات الجديدة في الشريط العلوي */
.breadcumbs-area h1.bc-title { color: #fff; margin: 0 0 15px; font-size: 2rem; }
.breadcumbs-area span { color: #fff; }

/* محتوى الصفحات النصية (الأسئلة، الضمان، المناطق، المقالات) */
.article-body { color: #555; font-size: 16px; line-height: 1.9; }
.article-body .lead-text { font-size: 18px; color: #333; margin-bottom: 30px; }
.article-body h2 {
    font-size: 24px; color: #00299b; margin: 35px 0 15px;
    padding-bottom: 10px; border-bottom: 2px solid #eef1f8;
}
.article-body ul:not(.seo-links) { padding-right: 20px; margin-bottom: 20px; }
.article-body ul:not(.seo-links) li { margin-bottom: 8px; list-style: disc; }
.article-body a { color: #00299b; text-decoration: underline; }
.article-body .seo-links a, .article-body .blog-card a.link-color { text-decoration: none; }
.area-links { justify-content: flex-start; margin-bottom: 20px; }

.faq-item {
    border: 1px solid #e3e7f3; background: #fbfcff; margin-bottom: 12px; border-radius: 3px;
}
.faq-item summary {
    cursor: pointer; padding: 16px 20px; font-weight: 700; color: #222; font-size: 17px;
    list-style: none; position: relative; padding-left: 45px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: #00299b;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: #00299b; }
.faq-item p { padding: 0 20px 18px; margin: 0; }

.blog-card {
    border: 1px solid #e3e7f3; padding: 25px; margin-bottom: 20px; background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.03);
}
.blog-card h2 { border: 0; margin: 0 0 10px; padding: 0; font-size: 22px; }
.blog-card h2 a { color: #222; text-decoration: none; }
.blog-card h2 a:hover { color: #00299b; }

.page-cta {
    margin-top: 50px; padding: 35px 20px; background: #f7f9fe; border-top: 3px solid #00299b;
}
.page-cta h3 { color: #222; margin-bottom: 8px; }
.page-cta p { margin-bottom: 20px; }
.center-col { margin-left: auto !important; margin-right: auto !important; }
.article-body ul:not(.seo-links) { padding-right: 0; }
.article-body ul:not(.seo-links) li {
    list-style: none; position: relative; padding-right: 20px; text-align: right;
}
.article-body ul:not(.seo-links) li::before {
    content: ""; position: absolute; right: 2px; top: 13px;
    width: 7px; height: 7px; background: #00299b; border-radius: 50%;
}
