/* css/global.css - FINAL FIXED VERSION */

/* 1. المتغيرات */
:root {
    --brand-orange: #f57c00;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --container-width: 1200px;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #000000;
    --text-primary: #ffffff;
}

/* 2. الأساسيات */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: flex; flex-direction: column; min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* الكلاس السحري لضبط العرض */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

/* --- 3. الهيدر (Header) --- */
header {
    background: var(--bg-primary);
    height: 80px;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 2px solid var(--brand-orange);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { height: 50px; }

.nav-menu { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-weight: 700; font-size: 16px; position: relative; }
.nav-menu a:hover { color: var(--brand-orange); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.btn-booking-header { background: var(--brand-orange); color: #fff; padding: 10px 25px; border-radius: 50px; font-weight: bold; font-size: 14px; }
.theme-toggle-btn, .menu-toggle { background: transparent; border: 1px solid #ddd; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); }
.menu-toggle { display: none; }

/* --- 4. الفوتر الجديد (Premium Footer Styles) --- */
/* css/global.css - TALAL IDENTITY WITH ESLAM LAYOUT */

/* 1. المتغيرات (تم ضبط الهوية على البرتقالي) */
:root {
    --brand-orange: #f57c00; /* لون طلال البرتقالي */
    --bg-black: #050505;     /* أسود داكن جداً مثل الصورة */
    --bg-dark-gray: #111111;
    --text-gray: #b3b3b3;
    --text-white: #ffffff;
    --border-color: #222;
}

/* 2. إعدادات الفوتر الأساسية */
.es-footer {
    background-color: var(--bg-black);
    color: var(--text-gray);
    padding: 80px 0 30px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    border-top: 4px solid var(--brand-orange); /* الخط العلوي البرتقالي */
    margin-top: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. الشبكة العلوية (4 أعمدة) */
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

/* العناوين والخط البرتقالي تحتها */
.footer-widget h3 {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--brand-orange); /* الخط أصبح برتقالي */
}

/* النصوص والروابط */
.footer-desc {
    line-height: 1.8;
    font-size: 14px;
    margin-top: 15px;
    color: #ccc;
}

.footer-subtitle {
    color: var(--brand-orange); /* العنوان الفرعي برتقالي */
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(-5px);
}
/* سهم صغير عند هوفر الروابط */
.footer-links a::before {
    content: '\f104'; /* FontAwesome Left Arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    opacity: 0;
    transition: 0.3s;
    color: var(--brand-orange);
    font-size: 12px;
}
.footer-links a:hover::before {
    opacity: 1;
}


/* معلومات التواصل */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}
.contact-list i {
    color: var(--brand-orange);
    font-size: 16px;
}

/* 4. النشرة البريدية (نفس الستايل الدائري) */
.newsletter-box {
    margin-top: 25px;
}
.newsletter-text {
    margin-bottom: 15px;
    font-size: 13px;
}
.newsletter-form {
    position: relative;
    display: flex;
    background: var(--bg-dark-gray);
    border: 1px solid #333;
    border-radius: 50px;
    padding: 5px;
}
.newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    font-family: 'Cairo', sans-serif;
}
.newsletter-form button {
    background-color: var(--brand-orange);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    transition: 0.3s;
}
.newsletter-form button:hover {
    background-color: #fff;
    color: var(--brand-orange);
}

/* 5. الشريط السفلي */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
}

/* السوشيال ميديا */
.social-icons {
    display: flex;
    gap: 10px;
}
.social-icons a {
    width: 38px;
    height: 38px;
    background-color: var(--bg-dark-gray);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid #222;
}
.social-icons a:hover {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: translateY(-3px);
}

/* الحقوق + بادج المطور */
.copyright-area {
    display: flex;
    align-items: center;
    gap: 20px;
}
.copy-text {
    font-size: 13px;
    color: #888;
}

/* === بادج المطور (نفس الشكل ولكن باللون البرتقالي) === */
.dev-badge {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 11px;
    border-radius: 4px;
    overflow: hidden;
    height: 26px;
    transition: 0.3s;
}

.dev-powered {
    background-color: #ffffff;
    color: #000;
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.dev-name {
    background-color: var(--brand-orange); /* برتقالي حسب هوية طلال */
    color: #ffffff;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.dev-badge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-widget h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    .contact-list li {
        justify-content: center;
    }
    .footer-bottom-bar {
        flex-direction: column-reverse; /* السوشيال تحت والحقوق فوق */
        gap: 20px;
        text-align: center;
    }
    .copyright-area {
        flex-direction: column;
        gap: 15px;
    }
    .social-icons {
        justify-content: center;
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .header-inner { padding: 0 20px; }
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-col h4::after { right: 50%; transform: translateX(50%); }
    .social-links { justify-content: center; }
    .contact-col li { justify-content: center; }
    .bottom-flex { flex-direction: column; gap: 10px; text-align: center; }
}

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; left: -100%; width: 80%; height: 100%; background: #fff; z-index: 9999; transition: 0.3s; display: flex; flex-direction: column; }
.mobile-menu.active { left: 0; }
.mobile-menu-header { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu a { display: block; padding: 15px 20px; border-bottom: 1px solid #f5f5f5; font-weight: bold; color: #333; }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 9990; }
.menu-overlay.active { display: block; }
.close-menu-btn { position: absolute; top: 15px; right: 15px; border: none; background: none; font-size: 20px; }
.btn-booking-header-mobile { display: none; margin: 20px; text-align: center; padding: 15px; background: var(--brand-orange); color: white; border-radius: 50px; font-weight: bold; }
@media (max-width: 768px) { .btn-booking-header { display: none; } .btn-booking-header-mobile { display: block; } }