/* css/home.css - FINAL VERSION (Rich Content) */

/* =========================================
   1. المتغيرات والأساسيات (Global & Reset)
   ========================================= */
:root {
    --brand-orange: #f57c00;
    --transition-speed: 0.3s;
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #252525;
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition-speed); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   2. الهيدر والقائمة (Header & Menu)
   ========================================= */
header {
    width: 100%;
    background: var(--bg-primary);
    padding: 0 20px;
    height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 2px solid var(--brand-orange);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.logo img { height: 50px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 25px; }
.nav-menu a { font-weight: 700; color: var(--text-primary); }
.nav-menu a:hover { color: var(--brand-orange); }

.btn-booking-header { 
    background: var(--brand-orange); color: #fff; padding: 10px 25px; 
    border-radius: 50px; font-weight: bold; font-size: 15px; 
}

/* القائمة الجانبية (Mobile Menu) */
.mobile-menu { 
    position: fixed; top: 0; left: -100%; width: 80%; height: 100%; 
    background-color: var(--bg-card); z-index: 9999; 
    transition: 0.3s ease-in-out; box-shadow: 2px 0 10px var(--shadow-color);
    display: flex; flex-direction: column; 
}
.mobile-menu.active { left: 0; }
.mobile-menu-header { 
    padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); 
    background: transparent; 
}
.mobile-menu-header img { margin: 0 auto; opacity: 0.9; }
.mobile-menu ul { padding: 0; margin-top: 10px; }
.mobile-menu ul li { border-bottom: 1px solid var(--border-color); }
.mobile-menu ul li a { display: block; padding: 15px 25px; color: var(--text-primary); font-weight: 700; }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9990; display: none; }
.menu-overlay.active { display: block; }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--text-primary); background: none; border: none; }

/* =========================================
   3. تنسيقات الصفحة الرئيسية (Home Page)
   ========================================= */

/* Hero Section */
.hero-compact { 
    position: relative; height: 85vh; min-height: 600px; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; color: #fff; overflow: hidden; 
    border-bottom: 5px solid var(--brand-orange); background-color: #222; 
}
.hero-bg-img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 0; filter: brightness(0.4); 
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; width: 100%; }
.hero-content h1 { 
    font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; margin: 0; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.7); color: #ffffff; 
}
.hero-content p { 
    color: #fff; font-weight: 900; margin-top: 20px; font-size: 1.5rem; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.9); background: var(--brand-orange); 
    display: inline-block; padding: 8px 25px; border-radius: 50px; 
}

/* General Layout */
.section-padding { padding: 90px 0; position: relative; }
.bg-stone { background-color: var(--bg-secondary); }
.tagline { color: var(--brand-orange); font-weight: 900; display: block; margin-bottom: 15px; font-size: 1.1rem; }
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 40px; color: var(--text-primary); }

/* --- [NEW] Stats Section (شريط الإحصائيات) --- */
.stats-section {
    background-color: #111;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin: 0 0 10px;
    font-weight: 900;
}
.stat-item p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 0;
}

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.about-img-box { 
    position: relative; width: 100%; border-radius: 80px 5px 80px 5px; 
    overflow: hidden; box-shadow: 15px 15px 40px rgba(0,0,0,0.1); 
    border: 3px solid var(--brand-orange); transition: all 0.4s ease; aspect-ratio: 1/1; 
}
.about-img-box:hover { border-radius: 5px 80px 5px 80px; transform: translateY(-5px); box-shadow: 20px 20px 50px rgba(194, 65, 12, 0.25); }
.about-text-frame { 
    border: 2px solid var(--brand-orange); padding: 40px; border-radius: 20px; 
    background: var(--bg-card); position: relative; box-shadow: 0 10px 30px var(--shadow-color); 
}
.about-text-frame::before { 
    content: '“'; position: absolute; top: -30px; right: 40px; 
    font-size: 80px; line-height: 1; color: var(--brand-orange); 
    background: var(--bg-card); padding: 0 10px; 
}

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { 
    background: var(--bg-card); border-radius: 20px; padding: 40px 30px; text-align: center; 
    cursor: pointer; box-shadow: 0 10px 30px var(--shadow-color); min-height: 350px; 
    display: flex; flex-direction: column; align-items: center; 
    border-bottom: 5px solid var(--brand-orange); transition: transform 0.3s ease; 
}
.service-card:hover { transform: translateY(-10px); }
.service-card h4 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 800; color: var(--text-primary); }
.service-card p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; margin: 0 0 30px 0; flex-grow: 1; }
.icon-svg { width: 40px; height: 40px; fill: var(--brand-orange); margin-bottom: 20px; display: inline-block; }
.btn-card-action { 
    padding: 12px 30px; background-color: var(--bg-primary); color: var(--brand-orange); 
    border: 2px solid var(--brand-orange); border-radius: 50px; text-decoration: none; 
    font-size: 1rem; font-weight: bold; transition: 0.3s; 
}
.service-card:hover .btn-card-action { background-color: var(--brand-orange); color: #fff; }

/* --- [NEW] Process Section (قسم كيف نعمل) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.process-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    position: relative;
    border-top: 4px solid var(--brand-orange);
    text-align: center;
    transition: 0.3s;
}
.process-card:hover { transform: translateY(-5px); }
.step-number {
    background: var(--brand-orange);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Portfolio Section */
.switcher-bar-home { display: flex; justify-content: center; gap: 15px; margin: 40px auto; max-width: 1200px; padding: 0 15px; }
.switch-btn-home { 
    background-color: var(--bg-card); color: var(--text-primary); border: 2px solid var(--border-color); 
    padding: 15px 40px; border-radius: 50px; font-family: 'Cairo', sans-serif; font-weight: 900; 
    font-size: 18px; cursor: pointer; transition: all 0.3s ease; outline: none; 
}
.switch-btn-home.active { 
    background-color: var(--brand-orange); color: #ffffff; border-color: var(--brand-orange); 
    box-shadow: 0 10px 20px rgba(245, 124, 0, 0.3); 
}
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.portfolio-item { 
    border-radius: 15px; overflow: hidden; position: relative; background: #000; 
    cursor: pointer; border: 1px solid var(--border-color); 
}
#home-singles .portfolio-item, #home-projects .portfolio-item { aspect-ratio: 1 / 1; }
#home-reels .portfolio-item { aspect-ratio: 9 / 16; height: auto; }
.portfolio-item img, .portfolio-item video { width: 100%; height: 100%; object-fit: cover; }
.project-card-wrapper { display: flex; flex-direction: column; text-decoration: none; }
.project-name-under { 
    text-align: center; color: var(--text-primary); font-weight: 800; font-size: 14px; 
    padding: 10px 5px; display: block; min-height: 42px; line-height: 1.4; 
}

/* --- [NEW] Clients Section (قسم العملاء) --- */
.clients-section {
    background: var(--bg-secondary);
    padding: 50px 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.clients-track {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0.6;
}
.clients-track img {
    height: 50px;
    filter: grayscale(100%);
    transition: 0.3s;
}
.clients-track img:hover { filter: grayscale(0); opacity: 1; }

/* FAQ Section */
.faq-outer-frame { 
    border: 3px solid var(--border-color); border-radius: 25px; padding: 50px; max-width: 1000px; 
    margin: 0 auto; position: relative; background: var(--bg-card); 
}
.faq-outer-frame::after { 
    content: 'أسئلة شائعة'; position: absolute; top: -18px; right: 50px; 
    background: var(--brand-orange); color: #fff; padding: 5px 20px; border-radius: 20px; font-weight: bold; font-size: 14px; 
}
.faq-item { background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { 
    padding: 20px 10px; font-weight: 800; font-size: 1.2rem; cursor: pointer; 
    display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); 
}
.faq-item summary:hover { color: var(--brand-orange); }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--brand-orange); }
.faq-item details[open] summary::after { content: '-'; }
.faq-item p { padding: 0 10px 20px; margin: 0; color: var(--text-secondary); line-height: 1.7; }

/* Contact Section */
.contact-card { 
    display: flex; flex-wrap: wrap; background: var(--bg-card); border-radius: 25px; 
    overflow: hidden; box-shadow: 0 15px 50px var(--shadow-color); border: 1px solid var(--border-color); 
}
.contact-info { 
    flex: 1; min-width: 300px; background-color: var(--brand-orange); color: #fff; padding: 60px; 
    display: flex; flex-direction: column; justify-content: center; 
}
.contact-form { flex: 1.3; padding: 60px; background-color: var(--bg-card); min-width: 300px; }
.contact-form h3 { color: var(--text-primary); margin-bottom: 20px; }
.form-input { 
    width: 100%; height: 60px; padding: 0 55px 0 20px; background-color: var(--bg-primary); 
    border: 1px solid var(--border-color); border-right: 5px solid #ddd; border-radius: 8px; 
    font-size: 16px; color: var(--text-primary); transition: all 0.3s ease; 
}
.form-input:focus { background-color: var(--bg-card); border-color: var(--brand-orange); border-right-color: var(--brand-orange); }
.btn-send { 
    width: 100%; height: 60px; background-color: var(--brand-orange); color: #fff; border: none; 
    border-radius: 8px; font-size: 18px; font-weight: 900; cursor: pointer; display: flex; 
    align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 20px rgba(194, 65, 12, 0.3); 
}
.btn-send:hover { background-color: #d86900; transform: translateY(-3px); }

/* Blog Section */
.blog-swiper { width: 100%; padding: 40px 0 60px; overflow: hidden; }
.blog-card { 
    background: var(--bg-card); border-radius: 16px; overflow: hidden; 
    box-shadow: 0 10px 30px var(--shadow-color); border: 1px solid var(--border-color); 
    height: 100%; display: flex; flex-direction: column; transition: 0.3s ease; 
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--brand-orange); }
.img-frame { width: 100%; height: 220px; overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .img-frame img { transform: scale(1.1); }
.blog-card-body { padding: 20px; text-align: center; }
.blog-card-body h4 { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 15px; }
.read-more-btn { color: var(--brand-orange); font-weight: bold; }
.swiper-pagination-bullet-active { background: var(--brand-orange) !important; width: 25px !important; border-radius: 5px !important; }

/* Modal */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.7); 
    backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; 
    z-index: 7000; padding: 20px; 
}
.modal-content { 
    background: var(--bg-card); color: var(--text-primary); width: 100%; max-width: 550px; 
    border-radius: 25px; padding: 40px; position: relative; border: 3px solid var(--brand-orange); 
}
.close-modal { position: absolute; top: 15px; left: 20px; font-size: 30px; cursor: pointer; color: var(--brand-orange); }

/* Footer */
.premium-footer { background-color: #111; color: #b0b0b0; padding: 60px 0 0; border-top: 4px solid var(--brand-orange); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; width: 90%; max-width: 1200px; margin: 0 auto 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-weight: 800; border-bottom: 2px solid var(--brand-orange); display: inline-block; padding-bottom: 5px; }
.footer-bottom { border-top: 1px solid #333; padding: 20px; text-align: center; font-size: 14px; background-color: #000; color: #888; }

/* Responsive */
@media (max-width: 992px) {
    header { padding: 0 15px; }
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-card { flex-direction: column; }
    .hero-compact { height: 40vh; }
    .btn-booking-header { display: none; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .switcher-bar-home { flex-wrap: wrap; gap: 10px; }
    .switch-btn-home { padding: 12px 20px; font-size: 14px; flex: 1 1 auto; }
    .img-frame { height: 180px; }
    .about-text-frame::before { display: none; }
}