/* Navbar */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

.custom-navbar {
    top: 1rem;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
}

/* Container */
.nav-container {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-navbar-inner {
    background-color: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #f1f2f4;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* عشان المنيو تنزل تحت في الشاشات الصغيرة */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Logo */
.logo {
    width: 200px;
}

/* Links */
.nav-link {
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--main);
    font-weight: 600;
}

.navbar-nav .nav-link.active {
    color: var(--main) !important;
    font-weight: 600 !important;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

html:lang(en) .nav-actions {
    margin-right: 0 !important;
}

/* RTL (Arabic) */
html[dir="rtl"] .nav-actions {
    margin-right: auto;
    margin-left: 0;
}

/* Language Button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--main);
    cursor: pointer;
}

.lang-btn i {
    font-size: 0.75rem;
}

.dropdown-item {
    text-align: start;
}

.lang-text,
.dropdown-item {
    font-family: "Inter", sans-serif !important;
}

/* التنسيق الافتراضي للزرار (الديسك توب) */
.contact-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1.3rem;
    background-color: var(--main);
    color: #fff;
    border-radius: 0.6rem;
    text-decoration: none;
    display: inline-block; /* لضمان قبول التنسيقات */
    text-align: center;
    transition: all 0.3s ease;
}

/* التعديل عند فتح المنيو في الشاشات الصغيرة (أقل من 992px) */
@media (max-width: 991px) {
    .nav-actions {
        width: 100%; /* الحاوية تاخد العرض كامل */
        margin-bottom: 1rem; /* مسافة بسيطة من اللينكات اللي فوقه */
    }

    .contact-btn {
        display: block; /* يخليه ياخد سطر لوحده */
        width: 30%; /* يكبر لمالئ العرض */
        margin: auto;
        font-size: 1.1rem; /* تكبير حجم الخط */
        padding: 0.8rem; /* تكبير مساحة الضغط للـ Touch */
        border-radius: 0.8rem;
    }
}

/* Responsive */

/* Medium screens */
@media (max-width: 1200px) {
    .logo {
        width: 200px;
    }
}

/* Small screens */
@media (max-width: 992px) {
    .logo {
        width: 180px;
    }
}

/* Extra small screens */
@media (max-width: 768px) {
    .logo {
        width: 150px;
    }
}

/* Phones */
@media (max-width: 576px) {
    .logo {
        width: 120px;
    }
}

/* Navbar collapse adjustments for tablets & phones */
@media (max-width: 991px) {
    .navbar-collapse {
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.2rem;
        margin: 1.5rem 0;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .lang-btn {
        font-size: 1.05rem;
    }

    .navbar-brand {
        order: 0;
        width: auto;
    }

    .navbar-toggler {
        order: 1;
    }

    .custom-navbar-inner {
        order: 2;
    }
}
