@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}

body {
    background: #fff;
    color: #222;
}

.section {
    padding: 60px 7%;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #d4a017;
    letter-spacing: 1px; 
}

.section-title.yellow {
    color: #f4b400;
}


.section-desc {
    font-size: 17px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
/* HERO SECTION */
.hero {
    height: 100vh;
    background: url('@visiondevelopmentsae\ launches\ REEM\ in\ Liwan\ and….jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* طبقة شفافة فوق الصورة */
.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(1px);
}

/* محتوى الهيرو */
.hero-content {
    position: relative;
    max-width: 750px;
    text-align: center;
    color: white;
    animation: fadeUp 1.2s ease;
}

/* العنوان الرئيسي */
.hero .title {
    font-size: 55px;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffd46a, #d4a017);
    -webkit-background-clip: text;
    color: transparent;
}

/* العنوان الفرعي */
.hero .subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* الوصف */
.hero .desc {
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #eee;
}

/* الأزرار */
.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

/* زر رئيسي */
.btn.primary {
    background: #d4a017;
    color: #111;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    transition: 0.3s;
}

.btn.primary:hover {
    background: #f3c63a;
    transform: translateY(-3px);
}

/* زر ثانوي */
.btn.secondary {
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 18px;
    border: 2px solid #d4a017;
    color: #ffd46a;
    font-weight: 700;
    transition: 0.3s;
}

.btn.secondary:hover {
    background: #d4a017;
    color: #111;
    transform: translateY(-3px);
}

/* حركة ظهور */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.primary {
    background: #f4b400;
    color: #000;
}

.secondary {
    background: #333;
    color: white;
}

/* ================ ABOUT ================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.about-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.about-item h3 {
    color: #f4b400;
    font-size: 32px;
    font-weight: 800;
}

/* ================ SERVICES ================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ================ PROJECTS ================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 240px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #f4b400;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
}

/* ================ WHY ================ */
.dark {
    background: #1c1c1c;
    color: white;
}

.why-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.why-item {
    padding: 25px;
    background: #2a2a2a;
    border-radius: 12px;
}

.cta-box {
    background: #2a2a2a;
    padding: 30px;
    margin-top: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CONTACT SECTION */
.contact-section {
    padding: 90px 20px;
    text-align: center;
    background: #111;
    color: #fff;
}

.contact-section .section-title {
    font-size: 32px;
    font-weight: 800;
}

.contact-section .section-desc {
    color: #ccc;
    font-size: 17px;
    margin-bottom: 40px;
}

/* الحاوية */
.contact-container {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

/* معلومات الاتصال */
.contact-info {
    display: flex;              /* تفعيل الفليكس */
    justify-content: space-between; /* توزيع المسافات بين العناصر */
    gap: 20px;                  /* مسافة بين الصناديق */
    flex-wrap: wrap;            /* السماح بالانتقال لسطر جديد في الشاشات الصغيرة */
}

.info-box {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #333;
    text-align: center;
    transition: 0.3s;
    width: 33%;
}
.info-box {
    flex: 1;                     /* كل صندوق ياخذ نفس العرض */
    min-width: 250px;            /* الحد الأدنى لعرض الصندوق */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.info-box:hover {
    transform: translateY(-6px);
    border-color: #d4a017;
    box-shadow: 0 6px 18px rgba(212,160,23,0.25);
}

.info-box i {
    font-size: 30px;
    color: #d4a017;
    margin-bottom: 10px;
}

.info-box h3 {
    font-size: 20px;
    margin-bottom: 6px;
}
.info-box a{
    color: white;
    text-decoration: none;
    unicode-bidi: embed;
    direction: ltr;
}
/* نموذج المراسلة */
.contact-form {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #d4a017;
    outline: none;
}

/* زر الإرسال */
.contact-form button {
    align-self: center;
    margin-top: 10px;
}

/* RESPONSIVE */
/* @media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
} */


/* ================ FOOTER ================ */
.footer {
    background: #111;
    color: #ddd;
    padding: 40px 7%;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

/* للهواتف */
@media screen and (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* عمود واحد فقط */
        text-align: center;
        direction: rtl;
    }
    
    .footer-grid img {
        margin: 0 auto; /* توسيط الصورة */
        display: block;
    }
    
    .footer-grid h4 {
        margin-top: 0;
        color: #fff;
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-grid a {
        display: inline-block;
        margin: 5px 0;
        padding: 5px 0;
    }
    
    .footer-grid p {
        margin: 10px 0;
        line-height: 1.6;
    }
}

.footer h4 {
    color: #f4b400;
}

.copy {
    text-align: center;
    color: #777;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid,
    .service-grid,
    .projects-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 45px;
    }
}
.companies {
    padding: 70px 20px;
    text-align: center;
    background: #f7f7f7;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #d4a017;
}

.companies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.company-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    transition: 0.35s ease;
    position: relative;
    overflow: hidden;
}

.company-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.company-box .icon {
    width: 75px;
    height: 75px;
    background: #d4a017;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #ffffff;
    transition: 0.3s;
}

.company-box:hover .icon {
    background: #000;
}

.company-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.company-box p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    max-width: 90%;
    margin: auto;

    /* حدّ 3 أسطر */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.service-card .icon {
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.service-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.about {
    text-align: center;
    padding: 80px 20px;
}

.about .section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.about .section-desc {
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 40px;
    color: #555;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.about-item {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #d4a017; /* خط ذهبي سفلي */
}

.about-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.about-item h3 {
    font-size: 34px;
    font-weight: 800;
    margin: 10px 0;
    color: #111;
}

.about-item p {
    font-size: 16px;
    color: #555;
}

.about-icon {
    width: 70px;
    height: 70px;
    background: #d4a017;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    color: white;
    font-size: 28px;
}
/* WHY SECTION */
.why {
    background: #111;
    color: white;
    padding: 90px 20px;
    text-align: center;
}

.why .section-title {
    font-size: 32px;
    font-weight: 800;
}

.why .section-desc {
    font-size: 17px;
    color: #ccc;
    margin: 10px auto 40px;
    max-width: 650px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin: 50px auto;
    max-width: 1100px;
}

.why-item {
    background: #1a1a1a;
    padding: 30px 25px;
    border-radius: 14px;
    border: 1px solid #2a2a2a;
    transition: 0.3s ease;
    position: relative;
    box-shadow: 0 0px 8px rgba(255, 215, 0, 0.1);
}

.why-item:hover {
    transform: translateY(-8px);
    background: #222;
    border-color: #d4a017;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.25);
}

.why-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.why-item p {
    font-size: 15px;
    color: #ccc;
    line-height: 1.7;
}

.why-icon {
    width: 75px;
    height: 75px;
    background: #d4a017;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #111;
}

/* CTA BOX */
.cta-box {
    margin-top: 60px;
    padding: 35px 25px;
    background: #222;
    border-radius: 18px;
    border: 1px solid #2a2a2a;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

.cta-box p {
    font-size: 18px;
    color: #eee;
    margin-bottom: 20px;
}

.btn.primary {
    background: #d4a017;
    color: #111;
    padding: 12px 35px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn.primary:hover {
    background: #f3c63a;
    transform: translateY(-3px);
}
.company-box, .service-card, .project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
}

.company-box:hover, .service-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(212, 160, 23, 0.25);
}

/* الظلال للأيقونات */
/* .company-box .icon, .service-card .icon, .why-icon {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
} */

/* تحسين overflow للنصوص */
.company-box p, .service-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* صور المشاريع */
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
}
/* =============== OWNER SECTION =============== */
.owner-section {
    padding: 80px 5%;
    background: #f8f8f8;
}

.owner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* الصورة */
.owner-image {
    flex: 1;
}

.owner-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* النص */
.owner-info {
    flex: 1;
}

.owner-name {
    font-size: 26px;
    margin: 10px 0;
    color: #333;
}

.owner-desc {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* زر */
.owner-info .btn {
    display: inline-block;
    margin-top: 10px;
}

/* موبايل */
@media (max-width: 850px) {
    .owner-container {
        flex-direction: column;
        text-align: center;
    }

    .owner-info {
        text-align: center;
    }
}
