/* =========================================================
   مؤسسة البركة لتوريد المياه — Stylesheet مشترك لكل صفحات الموقع
   تم استخراجه من التصميم الأصلي بدون أي تغيير في الألوان أو الشكل،
   مع إضافة تنسيقات جديدة لعناصر SEO (Breadcrumbs, FAQ, Submenus)
   بنفس الهوية البصرية الحالية.
   ========================================================= */

/* 1. أساسيات */
body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f7fb;
    color: #2c2c2c;
    line-height: 1.9;
    font-size: 18px;
    overflow-x: hidden;
    padding-top: 60px;
}

/* 2. العناوين */
.section h2 {
    color: #0056b3;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
}
.section h3 { color: #0056b3; }
h1, .header h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

/* 3. أزرار التواصل في الأقسام */
.contact-buttons-container {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.contact-buttons-container .call-group,
.contact-buttons-container .whatsapp-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 4. شريط التنقل العلوي الثابت (Main Navbar) */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    height: 40px;
}
.navbar-logo {
    max-height: 40px;
    width: auto;
    margin-left: 10px;
}
.navbar-title {
    font-size: 1.2rem;
    font-weight: 700;
    flex-grow: 1;
}
.navbar-title a { color: inherit; text-decoration: none; }

/* 5. القائمة الجانبية (Sidebar) */
.sidebar {
    width: 250px;
    background-color: #0056b3;
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -250px;
    transition: right 0.3s ease, box-shadow 0.3s ease;
    padding-top: 20px;
    z-index: 1000;
    overflow-y: auto;
}
.sidebar.active { right: 0; box-shadow: -5px 0 15px rgba(0,0,0,0.3); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { padding: 12px 20px; }
.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    display: block;
    transition: color 0.3s;
}
.sidebar ul li a:hover,
.sidebar ul li a.active-link { color: #ffd700; font-weight: bold; }
.sidebar-header {
    text-align: center;
    padding: 15px;
    background: #003a85;
    color: #ffffff;
    position: relative;
}
.sidebar-header h2 { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.4; }
.sidebar-header p { font-size: 14px; margin: 5px 0 0; color: #ffffff; }
.sidebar-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

/* 5.ب القوائم الفرعية داخل القائمة الجانبية (خدماتنا / مناطق الرياض) */
.sidebar details { border-top: 1px solid rgba(255,255,255,0.15); }
.sidebar details summary {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar details summary::-webkit-details-marker { display: none; }
.sidebar details summary:hover { color: #ffd700; }
.sidebar details summary::after { content: "▾"; margin-right: 8px; }
.sidebar details[open] summary::after { content: "▴"; }
.sidebar details ul li { padding: 8px 20px 8px 20px; }
.sidebar details ul li a { font-size: 15.5px; opacity: 0.95; }
.sidebar details ul li a::before { content: "— "; }

/* 6. زر الإغلاق (X) وزر القائمة (☰) */
.close-sidebar {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #ffd700;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}
.close-sidebar:hover { color: white; }
.menu-toggle {
    font-size: 20px;
    cursor: pointer;
    color: white;
    background-color: transparent;
    padding: 5px 10px;
    border-radius: 4px;
    transition: transform 0.3s;
    border: none;
    line-height: 1;
}
.menu-toggle:hover { transform: scale(1.1); }

/* 7. الهيدر والمحتوى */
.content { padding: 20px; transition: opacity 0.3s ease; }
.header {
    background: linear-gradient(90deg, #0056b3, #003a85);
    color: white;
    text-align: center;
    padding: 30px 10px;
    position: relative;
}
.header h1 { font-size: 2rem; font-weight: 700; margin: 0; }
.header p { font-size: 1.2rem; margin-top: 10px; }
.header-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

/* 7.ب هيدر داخلي للصفحات الفرعية (نفس هوية الهيدر الرئيسي، أصغر) */
.page-hero {
    background: linear-gradient(90deg, #0056b3, #003a85);
    color: white;
    text-align: center;
    padding: 26px 15px 30px;
}
.page-hero h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 10px; }
.page-hero p { font-size: 1.05rem; margin: 0; opacity: .95; }

/* 7.ج Breadcrumbs */
.breadcrumbs {
    max-width: 800px;
    margin: 14px auto 0;
    padding: 0 15px;
    font-size: 0.95rem;
    color: #eaf1ff;
}
.breadcrumbs a { color: #ffd700; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: #cfe0ff; }
.breadcrumbs .current { color: #ffffff; font-weight: 700; }
.breadcrumbs .crumb-label { color: #cfe0ff; }

/* 8. زر اطلب الآن — أبيض/أزرق للاتصال، أخضر/أبيض للواتساب (شكل كبسولة موحّد لكل الموقع) */
.order-now {
    background-color: #fff;
    padding: 13px 26px;
    border: 1px solid rgba(0,82,165,.16);
    border-radius: 999px;
    color: #0052A5;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 5px;
    box-shadow: 0 6px 16px rgba(0,82,165,.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.order-now.whatsapp,
.order-now[href*="wa.me/"] {
    background-color: #25d366;
    color: #fff;
    border-color: #25d366;
    box-shadow: 0 6px 16px rgba(37,211,102,.20);
}
.order-now:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(0,82,165,.22); }
.order-now.whatsapp:hover,
.order-now[href*="wa.me/"]:hover { box-shadow: 0 9px 20px rgba(37,211,102,.28); }

/* 9. الأزرار الصغيرة — نفس شكل زر اطلب الآن بحجم أصغر */
.mini-order-now {
    background-color: #fff;
    padding: 11px 22px;
    border: 1px solid rgba(0,82,165,.16);
    border-radius: 999px;
    color: #0052A5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 5px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,82,165,.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-order-now.whatsapp,
.mini-order-now[href*="wa.me/"] {
    background-color: #25d366;
    color: #fff;
    border-color: #25d366;
    box-shadow: 0 6px 16px rgba(37,211,102,.20);
}
.mini-order-now:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(0,82,165,.22); }
.mini-order-now.whatsapp:hover,
.mini-order-now[href*="wa.me/"]:hover { box-shadow: 0 9px 20px rgba(37,211,102,.28); }

/* 10. صور الهيرو والأيقونات */
.hero { text-align: center; padding: 20px 0; }
.hero img {
    max-width: 600px;
    width: 90%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.5s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.hero img:hover { transform: scale(1.03); }
#features .feature-icon,
#prices .price-icon,
#services .water-quality-image {
    width: 80px;
    height: auto;
    margin: 15px auto 25px;
    display: block;
    max-width: 90%;
}
#services .water-quality-image { width: 100%; max-width: 400px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.truck-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mini-logo-icon {
    width: 80px;
    height: auto;
    vertical-align: middle;
    margin-left: 5px;
}

.about-logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 5px;
}

/* 11. الأقسام والحركة */
.section {
    margin: 20px auto;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: right;
}
.section.visible { opacity: 1; transform: translateY(0); }

/* 12. الفوتر */
.footer {
    background: linear-gradient(90deg, #0056b3, #003a85);
    color: white;
    text-align: center;
    padding: 25px 15px 10px;
    margin-top: 40px;
}
.footer h3 { margin: 0 0 10px 0; font-size: 1.5em; }
.footer a { color: #ffd700; text-decoration: none; font-weight: bold; }
.footer a:hover { text-decoration: underline; }
.footer-logo { max-width: 180px; height: auto; margin-bottom: 15px; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 20px auto;
    text-align: right;
}
.footer-links-col { min-width: 160px; }
.footer-links-col h4 { color: #ffd700; margin: 0 0 10px; font-size: 1rem; }
.footer-links-col ul { list-style: none; padding: 0; margin: 0; }
.footer-links-col ul li { margin-bottom: 8px; }
.footer-links-col ul li a { color: #eaf1ff; font-weight: 400; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 15px;
    padding-top: 12px;
    font-size: 0.9rem;
    color: #d9e6ff;
}

/* 13. زر واتساب العائم */
.whatsapp-float { position: fixed; bottom: 20px; left: 20px; z-index: 1001; }
.whatsapp-float .btn {
    background-color: #25d366;
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.whatsapp-float .btn:hover { transform: scale(1.05); }

/* 14. آراء العملاء */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.testimonial-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #ffd700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    line-height: 1.6;
    text-align: right;
}
.testimonial-card .quote { font-style: italic; margin-bottom: 10px; color: #333; }
.testimonial-card .author {
    text-align: left;
    font-weight: 700;
    color: #0056b3;
    font-size: 0.95em;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

/* 15. قوائم الوايتات والأحياء */
#areas ul, #six-ton-promo ul, #eighteen-ton-promo ul, .checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 20px;
    padding-right: 0;
    list-style: none;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
    text-align: right;
}
#areas ul li, .checklist li {
    flex-basis: 40%;
    font-weight: bold;
    color: #003a85;
    line-height: 1.8;
    font-size: 1.15rem;
    padding: 10px 15px;
    background-color: #e6f0ff;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}
#areas ul li:hover, .checklist li:hover { background-color: #d1e3ff; transform: scale(1.02); }
#six-ton-promo ul li, #eighteen-ton-promo ul li {
    flex-basis: 40%;
    font-weight: bold;
    color: #0056b3;
    line-height: 1.8;
    font-size: 1.1rem;
    padding: 10px 15px;
    position: relative;
}
#six-ton-promo ul li::before, #eighteen-ton-promo ul li::before {
    content: "💧";
    color: #0056b3;
    font-weight: bold;
    display: inline-block;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
}

/* 16. قوائم الخدمات والمميزات */
#services ul { list-style-type: square; list-style-position: inside; padding-right: 20px; text-align: right; }
#features ul { list-style: none; padding-right: 0; text-align: right; }
#features ul li {
    padding: 10px 15px;
    margin-bottom: 12px;
    font-weight: bold;
    color: #003a85;
    font-size: 1.15rem;
    background-color: #e6f0ff;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}
#features ul li:hover { background-color: #d1e3ff; transform: scale(1.02); }

/* 17. النصوص المميزة */
.highlight-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #002b66;
    background-color: #d1e3ff;
    border-bottom: 1px solid #b3d4ff;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.3s;
}
.highlight-text:hover { background-color: #b3d4ff; }

/* 18. نصوص أقسام الوايت */
#six-ton-promo p:not(.contact-buttons-container p, .truck-image + p),
#eighteen-ton-promo p:not(.contact-buttons-container p, .truck-image + p) {
    text-align: center;
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 15px;
}

/* 18.ب FAQ */
.faq-item {
    border: 1px solid #e2e8f5;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fbfcff;
    overflow: hidden;
}
.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 700;
    color: #003a85;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: #0056b3; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 18px 16px; color: #444; text-align: right; }

/* 18.ج جدول مقارنة الأحجام / بطاقات */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 15px 0 5px;
}
.compare-card {
    border: 2px solid #e6f0ff;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.compare-card h3 { margin-top: 0; color: #0056b3; }

/* 18.د روابط داخل النص */
.section p a, .section li a {
    color: #0056b3;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #ffd700;
    text-underline-offset: 3px;
}
.section p a:hover, .section li a:hover { color: #003a85; }

/* 19. استجابة للشاشات الصغيرة */
@media (max-width: 600px) {
    body { padding-top: 60px; }
    .sidebar { width: 200px; right: -200px; }
    .hero img { max-width: 95%; }
    .section { padding: 20px; max-width: 95%; }
    .header h1 { font-size: 1.6rem; }
    .page-hero h1 { font-size: 1.35rem; }
    .order-now { font-size: 16px; padding: 10px 20px; }
    .whatsapp-float .btn { padding: 8px 14px; font-size: 14px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    #areas ul li, #six-ton-promo ul li, #eighteen-ton-promo ul li, .checklist li {
        flex-basis: 100%;
        font-size: 1rem;
        padding: 8px 12px;
    }
    #six-ton-promo ul li::before, #eighteen-ton-promo ul li::before { font-size: 0.9rem; margin-right: 6px; }
    #features ul li { font-size: 1rem; padding: 8px 12px; }
    .highlight-text { font-size: 1.1rem; padding: 1px 3px; }
    .header-logo { max-width: 200px; margin-bottom: 15px; }
    .mini-logo-icon { width: 80px; }
    .about-logo { max-width: 180px; margin-bottom: 15px; }
    .navbar-title { font-size: 1rem; }
    .footer-links { text-align: center; justify-content: center; }
}
@media (min-width: 601px) {
    .contact-buttons-container br.mobile-break { display: none; }
}
