@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');
/* ضبط طريقة حساب الأحجام ومنع خروج العناصر عن الشاشة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* جعل كافة الصور متجاوبة تلقائياً مع حجم الشاشة */
img {
    max-width: 100%;
    height: auto;
}

/* منع التمرير الأفقي غير المرغوب فيه */
body {
    overflow-x: hidden;
    width: 100%;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "poppins",serif;
}
body {
    background-color: #dfe0db;
}
header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:2rem auto ;
    padding: 0 0.2rem;
    max-width: 1200px;
}
.logo a{
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(8,47,82);
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}

.navigation ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 2rem;
    
}
.navigation a {
    text-decoration: none;
    color: rgb(8, 47, 82);
}
.navigation a:hover {
    color: rgb(255, 0, 0);
}
.navigation a[href="#request-form"] {
    background-color: #2c9095;
    color: #dfe0db;
    padding: 8px 24px;
    border-radius: 50px;
    display: inline-block;   
}
.navigation a[href="#Quote"] :hover {
    background-color: 14 , 72 , 125;
    color: #ffffff;
}
hr{
    opacity: 10%;
}

.hero {
    width: 100%;
    text-align: center;
    position: relative;
    display: flex;
    justify-content:center;
    align-items: center;  
    margin-bottom: 60px;
}
.heroimg {
    width: 100%;
    height: auto;
    display: block;
}
.hero-text {
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50% , -50%);
color: #ffffff;
font-size: 3.5rem;
font-weight: 500;
line-height: 1.3;
white-space: nowrap;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 5);
}
img { min-height: 90vh;
    max-width: 90%;
    height: auto;
    opacity: 90%;
}
.services-section {
padding: 20px 10%;
   padding-left: 7%;
   text-align: left;
}
.services-title {
    font-size: 5rem;
    font-weight: 400;
    color: #222222;
    margin-bottom: 12px;
}
.services-subtitle {
    font-size: 3rem;
    font-weight: 500;
    color: #222222;
    margin-bottom: 20px;
    line-height: 1.3;
}
.services-desc {
    font-size: 1rem;
    color: #222222;
    line-height: 1.6;
    max-width: 550px;
}
.why-jomco-section {
    padding: 60px 10%;
    background-color: #ffffff;
}
.why-jomco-header {
    max-width: 650px;
    margin-bottom: 40px;
}
.why-jomco-header h2 {
    font-size: 3rem;
    font-weight: 500;
    color: #222222; 
    margin-bottom: 15px;
}
.why-jomco-header h3 {
    font-size: 3rem;
    font-weight: 400;
    color: #222222;
    margin-bottom: 15px;
}
.why-jomco-header p {
    font-size: 1rem;
    color: #222222;
    line-height: 1.6;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4 , 1fr);
    gap: 30px;
}
.features-card h4 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #222222;
    margin-bottom: 12px;
}
.features-card p {
    font-size: 0.95rem;
    color: #222222;
    line-height: 1.5;
    margin-bottom: 15px;
}
.schedule-link {
    display: inline-block;
    color: #362c95;
    text-decoration: underline;
    font-size: 0.95;
}
.schedule-link : :hover {
    color :#000000 ;
}
/*
@media (max-width : 900px) {
    .features-grid {
       grid-template-columns: repeat(2,1fr); 
    }
}
@media (max-width : 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}*/
.approach-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    background-color: #ffffff;
}
.approach-image {
    flex: 1;
}
.approach-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.approach-content {
    flex: 1;
}
.approach-content h2 {
    font-size: 2.8rem;
    font-weight: 400;
    color: #222222;
    line-height: 1.25;
    margin-bottom: 35px;
    max-width: 480px; 
}
.btn-approach {
    display: inline-block;
    background-color: #2c9095;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3 ease;
}
.btn-approach :hover {
    background-color: #1c2b4c;
}

.request-section {
    display: flex;
    justify-content: space-between;
    padding: 60px 10%;
    background-color: #d8dbdf; /* الخلفية الرمادية الفاتحة مثل الصورة */
    gap: 60px;
}

.request-text {
    flex: 1;
    max-width: 350px;
}

.request-text h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #2d2d2d;
    font-weight: 400;
    margin-bottom: 25px;
}

.request-text p {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5;
}

.request-form-wrapper {
    flex: 1.2;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    color: #333333;
}

.name-fields {
    display: flex;
    gap: 15px;
}

.sub-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-desc {
    font-size: 0.75rem;
    color: #666666;
}

/* تنسيق حقول الإدخال البيضاوية */
.request-form input,
.request-form textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #888888;
    border-radius: 20px;
    background-color: transparent;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

.request-form textarea {
    border-radius: 16px;
    resize: vertical;
}

/* زر SEND الكحلي البيضاوي */
.btn-send {
    align-self: flex-start;
    background-color: #2b3f6c;
    color: #ffffff;
    padding: 10px 32px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    letter-spacing: 1px;
    margin-top: 5px;
}

.btn-send:hover {
    background-color: #1c2b4c;
}

/* التجاوب مع الشاشات الصغيرة 
@media (max-width: 768px) {
    .request-section {
        flex-direction: column;
    }
    .name-fields {
        flex-direction: column;
    }*/

/* تذييل الصفحة باللون الأسود */
.site-footer {
    background-color: #000000; /* لون الخلفية أسود */
    color: #ffffff;
    padding: 80px 10% 60px 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* النص على اليسار */
.footer-left h2 {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
}

/* المحتوى على اليمين */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
}

.footer-email {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.7;
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icons a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

/* تجاوب الشاشات الصغيرة 
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-right {
        align-items: flex-start;
    }
    
    .footer-email {
        font-size: 1.3rem;
    }

    .footer-left h2 {
        font-size: 1.8rem;
    }
}*/
html {
    scroll-behavior: smooth;
}

/* تنسيق الهيدر العام */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #ffffff;
}

.main-header .logo a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2b3f6c;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-header nav a {
    text-decoration: none;
    color: #444444;
    font-size: 0.95rem;
}

.main-header nav a.active {
    text-decoration: underline;
}

.quote-btn {
    background-color: #2b3f6c;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 20px;
}

/* تنسيق قسم صفحة الاتصال الرئيسية */
.contact-page-section {
    display: flex;
    padding: 50px 8%;
    gap: 50px;
    background-color: #e2e5e8; /* خلفية الرمادي الفاتح بنفس الصورة */
}

.contact-page-left {
    flex: 1.1;
}

.contact-page-left h2 {
    font-size: 3.2rem;
    line-height: 1.15;
    color: #2b2b2b;
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* الشارة الكحلية الصغرى */
.service-tag-btn {
    display: inline-block;
    background-color: #2b3f6c;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

/* النموذج والحقول */
.contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #777777;
    border-radius: 20px;
    background-color: transparent;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

.contact-page-form textarea {
    border-radius: 16px;
    resize: vertical;
}

/* العمود الأيمن للصورة */
.contact-page-right {
    flex: 0.9;
}

.contact-page-right img {
    width: 100%;
    height: 100%;
    max-height: 750px;
    object-fit: cover;
    border-radius: 4px;
}

/* تجاوب الشاشات الصغيرة 
@media (max-width: 850px) {
    .contact-page-section {
        flex-direction: column;
    }
    .contact-page-right img {
        max-height: 400px;
    }
}*/

/* تنسيق صفحة About */
.about-page-section {
    display: flex;
    padding: 70px 8%;
    gap: 60px;
    background-color: #e2e5e8; /* نفس خلفية الرمادي */
    align-items: center;
}

.about-page-left {
    flex: 1.1;
}

.about-page-left h2 {
    font-size: 3.2rem;
    line-height: 1.15;
    color: #2b2b2b;
    font-weight: 400;
    margin-bottom: 30px;
}

.about-page-left p {
    font-size: 0.98rem;
    color: #444444;
    line-height: 1.65;
    margin-bottom: 20px;
}

.about-page-left p strong {
    color: #111111;
}

.about-page-right {
    flex: 0.9;
}

.about-page-right img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    border-radius: 4px;
}
/*
@media (max-width: 850px) {
    .about-page-section {
        flex-direction: column;
        padding: 40px 5%;
    }
}*/
/* ==========================================
   تنسيقات صفحة Services
========================================== */
.services-hero {
    display: flex;
    padding: 80px 8% 50px 8%;
    gap: 60px;
    background-color: #e2e5e8;
    align-items: flex-start;
}

.services-hero-left {
    flex: 1;
}

.services-hero-left h2 {
    font-size: 3.5rem;
    line-height: 1.15;
    color: #2b2b2b;
    font-weight: 400;
    margin: 0;
}

.services-hero-right {
    flex: 1;
}

.services-hero-right p {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* صورة الفني الجانبية/البانر */
.services-banner-img {
    width: 100%;
    background-color: #e2e5e8;
    padding: 0 8% 60px 8%;
    box-sizing: border-box;
}

.services-banner-img img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* شبكة الخدمات 3 أعمدة */
.services-grid-section {
    background-color: #e2e5e8;
    padding: 0 8% 90px 8%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 50px;
}

.service-card h3 {
    font-size: 1.35rem;
    color: #2b2b2b;
    font-weight: 500;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* التجاوب مع الشاشات الصغيرة 
@media (max-width: 900px) {
    .services-hero {
        flex-direction: column;
        padding: 40px 5%;
    }
    .services-hero-left h2 {
        font-size: 2.5rem;
    }
    .services-banner-img {
        padding: 0 5% 40px 5%;
    }
    .services-grid-section {
        padding: 0 5% 60px 5%;
    }
    .services-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
}*/
/* ==========================================
   تنسيقات الشاشات الصغيرة والموبايل (أقل من 768px)
   ========================================== */
@media (max-width: 1023px) {

    /* 1. القائمة العلوية (Header & Navigation) */
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    nav.navigation ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    /* 2. شبكة المميزات (Features Grid) */
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .features-card {
        width: 100%;
    }

    /* 3. قسم Approach (الصورة والنص) */
    .approach-section {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .approach-image, 
    .approach-content {
        width: 100%;
    }

    /* 4. أحجام النصوص على الموبايل */
    h1, h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }
}
/* ==========================================
   إصلاح التجاوب الشامل للموبايل (iPhone & Android)
   ========================================== */

/* 1. منع أي عنصر من الخروج عن حدود الشاشة */
* {
    box-sizing: border-box !important;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {

    /* 2. تحويل النموذج والفوتر إلى عمود واحد (Vertical Stack) */
    #request-form,
    .request-section,
    form,
    footer,
    .footer-container,
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        margin: 0 auto !important;
        gap: 20px !important;
    }

    /* 3. جعل جميع حقول الإدخال والأزرار تأخذ 100% من عرض الشاشة */
    input[type="text"],
    input[type="email"],
    input[type="file"],
    textarea,
    select,
    button,
    .btn,
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. محاذاة النصوص والتفاصيل داخل الموبايل */
    #request-form div,
    footer div {
        width: 100% !important;
    }
}
/* ==========================================
   إصلاح صفحة Services والعناوين الكبيرة للموبايل
   ========================================== */

@media (max-width: 768px) {

    /* 1. ضبط الهيدر وشريط التنقل */
    header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 10px !important;
        text-align: center !important;
        gap: 10px !important;
    }

    header .logo, 
    header .logo a {
        font-size: 1.1rem !important;
        text-align: center !important;
    }

    nav.navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    nav.navigation a {
        font-size: 0.85rem !important;
        padding: 4px 8px !important;
    }

    /* 2. تصغير حجم العنوان الرئيسي وضبط التفاف الكلمات */
    h1, h2, 
    .hero-text, 
    .hero-text p, 
    .hero h1, 
    .hero h2, 
    .services-hero h1,
    .services-hero h2 {
        font-size: 1.75rem !important; /* تصغير الخط ليتسع بالكامل */
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* 3. ضبط أبعاد القسم ليناسب الموبايل */
    section, 
    .hero, 
    .services-section, 
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }
}
/* ==========================================
   جعل الفقرة تنزل تحت العنوان في صفحة Services
   ========================================== */
@media (max-width: 768px) {

    /* تحويل الحاوية الرئيسية إلى عمود واحد فقط */
    .services-hero,
    .hero,
    .hero-container,
    .services-section,
    section {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 15px !important;
    }

    /* جعل العنوان والفقرة يأخذان العرض الكامل 100% */
    section h1, 
    section h2, 
    section div, 
    section p,
    .hero h1,
    .hero p {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* ==========================================
   إصلاح الصورة الممطوطة والإيميل المقصوص للموبايل
   ========================================== */

/* 1. إصلاح الصورة الممطوطة (Hero Image) */
.hero img,
.Heroimg,
.hero-img {
    width: 100% !important;
    height: 380px !important; /* ارتفاع متناسق ومناسب للموبايل */
    object-fit: cover !important; /* يمنع تمطيط الصورة ويحافظ على جودتها وأبعادها */
    object-position: center !important;
}

/* 2. إصلاح الإيميل والنصوص المقصوصة في الفوتر */
footer,
footer p,
footer a,
footer div {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    word-break: break-all !important; /* يسمح للإيميل بالالتفاف لسطر جديد لكي لا يخرج عن الشاشة */
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

footer a, 
footer p {
    font-size: 0.9rem !important; /* حجم خط مناسب للإيميل على الهواتف */
}
/* ==========================================
   إصلاح تقطيع عنوان الفوتر (JOMCO MAINTENANCE GROUP)
   ========================================== */

footer h1,
footer h2,
footer h3,
footer div,
footer p.logo {
    font-size: 1.25rem !important; /* تصغير الخط ليتنسق مع شاشة الموبايل */
    word-break: normal !important; /* منع تقطيع الكلمة الواحدة بين السطور */
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* تطبيق تقطيع النص فقط على البريد الإلكتروني والروابط الطويلة */
footer a {
    word-break: break-word !important;
}
/* ==========================================
   1. إلغاء النقاط والخطوط الافتراضية
   ========================================== */
nav.navigation ul, 
nav.navigation li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

nav.navigation a {
    text-decoration: none !important;
    color: #2d3748;
    font-weight: 600;
}

/* ==========================================
   2. تنسيق الهيدر والقائمة (Desktop)
   ========================================== */
header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 30px !important;
}

nav.navigation ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
}

nav.navigation a.Quote-btn {
    background-color: #1a365d !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    display: inline-block !important;
}

/* ==========================================
   3. إصلاح الصور الممطوطة والتجاوب
   ========================================== */
img {
    max-width: 100%;
    height: auto;
}

.hero img, .Heroimg {
    width: 100% !important;
    height: 380px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ==========================================
   4. ضبط الشاشة للموبايل
   ========================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    nav.navigation ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    #request-form, form, footer {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    input, textarea, button {
        width: 100% !important;
    }

    footer h1, footer h2, footer h3 {
        font-size: 1.2rem !important;
        word-break: normal !important;
    }

    footer p, footer a {
        word-break: break-all !important;
    }
}
/* ==========================================
   إصلاح إظهار كافة الخدمات الـ 6 على الموبايل
   ========================================== */
@media (max-width: 768px) {
    /* إلغاء تحديد الارتفاع وإظهار كل المحتوى */
    .services-section, 
    .services-grid, 
    .services-container,
    section[class*="service"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* إظهار كافة بطاقات الخدمات وتكبير عرضها */
    .services-grid > div, 
    .services-container > div,
    .service-card,
    div[class*="service"] {
        display: block !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
/* ==========================================
   تقريب العنوان من النص (تقليل المسافة الفاصلة)
   ========================================== */
@media (max-width: 768px) {
    /* تقليل المسافة أسفل العنوان مباشرة */
    .services-section h2,
    .services-section h3, 
    .services-container h3, 
    .services-grid h3,
    .service-card h3,
    div[class*="service"] h3,
    div[class*="service"] h4 {
        margin-bottom: 2px !important;
        padding-bottom: 0 !important;
    }

    /* إزالة المسافة العلوية للنص الوصفي */
    .services-section p, 
    .services-container p, 
    .services-grid p,
    .service-card p,
    div[class*="service"] p {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}