/* --- Base Styles --- */
body { margin: 0; padding: 0; box-sizing: border-box; }




/* --- Hero --- */
.contact-hero {
    height: 538px;
    background: linear-gradient(rgba(19, 26, 32, 0.55), rgba(19, 26, 32, 0.55)), url('../assets/hero_bg.jpg');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.hero-subtitle { font-family: 'Inter'; font-size: 40px; font-weight: 400; margin: 0; }
.hero-title { font-family: 'Palanquin'; font-size: 60px; margin-top: 10px; }

/* --- Form --- */
.contact-section { padding: 80px 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h5 { color: #364A6F; font-family: 'Montserrat'; font-size: 24px; font-weight: 600; }
.section-header h2 { color: #353844; font-family: 'Poppins'; font-size: 24px; font-weight: 500; }

.form-card {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #D6D9DB;
    border-radius: 12px;
    padding: 40px;
}
.form-title { font-family: 'DM Sans'; font-size: 24px; text-align: center; color: #353844; }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.input-group label { display: block; font-family: 'Poppins'; color: #3D3E45; margin-bottom: 8px; }
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D6D9DB;
    border-radius: 6px;
    font-family: 'Poppins';
}

.submit-btn {
    background: #364A6F;
    color: #fff;
    border: none;
    padding: 16px 124px;
    border-radius: 12px;
    font-family: 'Poppins';
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
}

/* --- Footer --- */
/* ============================================================
   MOBILE ONLY STYLES (Applies only to screens <= 991px)
   ============================================================ */
@media (max-width: 991px) {

    /* --- Navbar & Mobile Menu --- */
    .menu-toggle {
        display: flex; /* Shows hamburger icon */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Completely hidden off-screen */
        top: 0;
        height: 100vh;
        width: 75%;
        background: #1E293B; /* Solid dark background for readability */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        z-index: 2000;
        box-shadow: -10px 0 20px rgba(0,0,0,0.4);
    }

    .nav-links.active {
        right: 0; /* Slides menu in */
    }

    /* --- Hero Section Responsive --- */
    .contact-hero {
        height: 400px; /* Shorter hero for mobile */
    }

    .hero-subtitle {
        font-size: 24px; /* Scaled down from 40px */
    }

    .hero-title {
        font-size: 36px; /* Scaled down from 60px */
        padding: 0 10px;
    }

    /* --- Contact Form Responsive --- */
    .contact-section {
        padding: 40px 15px;
    }

    .section-header h5 {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 22px;
        padding: 0 10px;
    }

    .form-card {
        padding: 25px 15px; /* Less padding on small screens */
        border: none; /* Optional: cleaner look on mobile */
    }

    .grid-form {
        grid-template-columns: 1fr; /* Force form into 1 column */
        gap: 20px;
    }

    .submit-btn {
        width: 100%; /* Button takes full width on mobile */
        padding: 16px 0;
    }

    /* --- Footer Responsive --- */
    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer elements */
        text-align: center;
        gap: 30px;
    }

    .footer-desc {
        margin: 20px auto;
        max-width: 100%;
    }

    .footer-nav ul {
        padding: 0;
    }
}
/* --- Footer Section --- */
.footer-main {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-desc {
    font-size: 16px;
    line-height: 23px;
    max-width: 450px;
    margin: 20px 0;
}

.footer-nav h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--white);
    padding-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .about-row, .about-row.reverse { flex-direction: column; text-align: center; }
    .hero-title { font-size: 40px; }
    .gradient-box { display: none; }
}
/* تنسيق الموبايل */
@media (max-width: 991px) {
    .menu-toggle {
        display: block; /* إظهار الزر في الموبايل فقط */
        z-index: 1001;
    }

    .nav-links {
        display: none; /* إخفاء المنيو العادي */
        flex-direction: column;
        position: fixed;
        right: 0;
        top: 0;
        background: #364A6F; /* لون مناسب للمنيو */
        width: 70%;
        height: 100vh;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav-links.active {
        display: flex; /* إظهاره عند الضغط على الزر */
    }
}
/* --- Navbar Base --- */
.navbar {
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* إخفاء زر التوجل في الويب */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* --- Mobile Responsive (أقل من 991px) --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex; /* إظهار الزر الآن */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* مخفية تماماً جهة اليمين */
        top: 0;
        height: 100vh;
        width: 70%;
        background: #1E293B; /* لون غامق للمنيو */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    /* عندما يتم الضغط على الزر (بواسطة JS) */
    .nav-links.active {
        right: 0; /* تظهر المنيو */
    }

    /* تحويل زر التوجل لشكل X عند الفتح */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
.navbar .logo img 
{
width:64px;
}