/* ======================================================
   1. إعدادات المتغيرات والألوان الفاخرة (Premium Theme)
   ====================================================== */
:root {
    --gold: #D4AF37;
    --gold-hover: #F1D279;
    --dark-bg: #0a0a0a;
    --footer-bg: #050505;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ======================================================
   2. التنسيق العام (Global Reset)
   ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl; /* دعم اللغة العربية */
    text-align: right;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

ul {
    list-style: none;
}

/* ======================================================
   3. الهيدر الزجاجي (Sticky Glass Header)
   ====================================================== */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links li a {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links li a:hover, .nav-links li a.nav-active {
    color: var(--gold);
}

.nav-cta {
    background: linear-gradient(45deg, var(--gold), var(--gold-hover));
    color: #000 !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======================================================
   4. الفوتر الفخم (المعدل للإصلاح)
   ====================================================== */
.footer {
    background-color: var(--footer-bg);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* تقسيم الأعمدة بشكل احترافي */
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-brand p {
    color: var(--text-dim);
    margin: 20px 0;
    font-size: 1rem;
    line-height: 1.8;
}

.footer-col h5 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

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

.footer-col ul li a {
    color: #d1d1d1;
    font-size: 1rem;
    display: block;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-right: 10px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1d1d1;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--gold);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.soc-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 1.2rem;
}

.soc-link:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
}

/* ======================================================
   5. الأزرار العائمة
   ====================================================== */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.5rem;
}

.float-wa { background-color: #25D366; }
.float-call { background-color: var(--gold); color: #000; }

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

/* ======================================================
   6. التجاوب (Responsive)
   ====================================================== */
@media (max-width: 992px) {
    .nav-links, .nav-cta { display: none; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h5::after {
        right: 50%;
        transform: translateX(50%);
    }
    .social-links, .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}