/* assets/css/style.css - النسخة المستقرة v7.0 */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary: #004d99;
    --primary-dark: #003366;
    --accent: #4da6ff;
    --accent-hover: #0073e6;
    --bg-body: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --shadow-card: 0 10px 30px -5px rgba(0, 77, 153, 0.08);
}

/* --- أساسيات --- */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body { font-family: 'Cairo', sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; overflow-x: hidden; direction: rtl; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- الهيدر والشريط العلوي --- */
.top-bar { background: var(--primary-dark); color: white; padding: 8px 0; font-size: 13px; border-bottom: 3px solid var(--accent); }
.top-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.top-right, .top-left { display: flex; gap: 15px; align-items: center; }
.top-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.top-item i { color: var(--accent); }

.site-header { background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 10px 0; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 18px; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 10px; z-index: 1002; }

.main-nav { display: flex; gap: 20px; }
.nav-link { font-weight: 700; color: var(--primary); font-size: 16px; position: relative; transition: 0.3s; padding: 5px 0; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.mobile-menu-btn { display: none; font-size: 24px; color: var(--primary); cursor: pointer; z-index: 1002; }

/* --- الهيرو --- */
.hero-section { padding: 100px 20px; min-height: 500px; background: linear-gradient(135deg, #003366 0%, #004d99 100%); position: relative; display: flex; align-items: center; color: white; overflow: hidden; text-align: center; }
.hero-bg-overlay { position: absolute; inset: 0; background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.1; animation: bgMove 40s linear infinite; }
@keyframes bgMove { from { background-position: 0 0; } to { background-position: 100px 100px; } }
.hero-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; width: 100%; }
.hero-title { font-size: 3rem; font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.hero-desc { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }
.btn-hero { padding: 12px 30px; background: var(--accent); color: white; font-weight: 800; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--accent); }
.btn-hero.outline { background: transparent; border-color: white; }
.btn-hero:hover { background: #0073e6; border-color: #0073e6; }
.btn-hero.outline:hover { background: white; color: var(--primary); }

/* --- الأقسام العامة --- */
.stats-section { background: white; padding: 40px 0; border-bottom: 1px solid #e2e8f0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary); font-weight: 800; }
.line { width: 60px; height: 4px; background: var(--accent); margin: 10px auto; border-radius: 10px; }

/* --- الشبكات (Grids) --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-item { text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 900; color: var(--accent); margin: 0; }

/* --- الكروت (Cards) --- */
.feature-box { text-align: center; padding: 30px; border: 1px solid #f1f5f9; border-radius: 15px; transition: 0.3s; height: 100%; box-shadow: var(--shadow-card); background: white; }
.feature-box:hover { transform: translateY(-5px); border-color: var(--accent); }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: #e6f2ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid #f1f5f9; transition: 0.3s; }
.news-img { height: 200px; width: 100%; object-fit: cover; }
.news-body { padding: 25px; }

/* --- آراء العملاء (Testimonials) --- */
.testimonials-section { padding: 80px 0; background: linear-gradient(to bottom, #fff, #f1f5f9); }
.testimonial-card { background: white; padding: 30px; border-radius: 15px; box-shadow: var(--shadow-card); border: 1px solid #e2e8f0; position: relative; }
.testimonial-text { font-style: italic; color: var(--text-main); margin-bottom: 20px; line-height: 1.7; }
.client-info { display: flex; align-items: center; gap: 15px; }
.client-avatar { width: 50px; height: 50px; background: var(--accent); border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.client-name { font-weight: 800; color: var(--primary); display: block; }
.client-role { font-size: 0.85rem; color: var(--text-light); }

/* --- شريط الشركاء المتحرك (Partners Ticker) - تم الإصلاح --- */
.partners-section { padding: 50px 0; background: #f8fafc; overflow: hidden; border-top: 1px solid #e2e8f0; white-space: nowrap; }
.partners-wrapper { display: inline-flex; animation: scrollPartners 40s linear infinite; min-width: 200%; }
.partner-logo { flex: 0 0 auto; width: 200px; text-align: center; opacity: 0.6; font-size: 1.1rem; color: #64748b; font-weight: bold; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.partner-logo:hover { opacity: 1; color: var(--primary); transform: scale(1.1); }
.partner-logo i { margin-left: 10px; font-size: 1.5rem; }
@keyframes scrollPartners { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* --- شريط الأخبار (News Ticker) --- */
.news-ticker-bar { background: var(--primary); color: white; border-bottom: 3px solid var(--accent); height: 45px; overflow: hidden; display: flex; align-items: center; }
.ticker-wrapper { display: flex; align-items: center; width: 100%; overflow: hidden; }
.ticker-label { background: var(--accent); padding: 5px 10px; font-weight: 800; font-size: 0.8rem; margin-left: 10px; border-radius: 4px; white-space: nowrap; z-index: 2; margin-right: 20px; }
.ticker-move { display: inline-block; white-space: nowrap; padding-left: 100%; padding-right: 0; animation: ticker-scroll 60s linear infinite; animation-delay: -25s; }
.ticker-item { color: white; margin-left: 40px; font-weight: 600; font-size: 0.9rem; }
@keyframes ticker-scroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(100%, 0, 0); } }

/* --- حالة المكتب --- */
.status-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; background: rgba(255,255,255,0.1); padding: 3px 10px; border-radius: 15px; margin-right: 15px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; position: relative; }
.status-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; animation: pulse-glow 1.5s infinite; }
.status-open .status-dot { background-color: #10b981; } .status-open .status-dot::after { border-color: #10b981; } .status-open .status-text { color: #d1fae5; }
.status-closed .status-dot { background-color: #ef4444; } .status-closed .status-dot::after { border-color: #ef4444; } .status-closed .status-text { color: #fee2e2; }
@keyframes pulse-glow { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

/* --- النماذج (Forms) - Book & Contact --- */
.page-container { max-width: 1100px; margin: 50px auto; padding: 0 20px; }
.booking-wrapper, .contact-wrapper { display: flex; gap: 30px; align-items: flex-start; }
.form-box { flex: 2; background: white; padding: 40px; border-radius: 15px; box-shadow: var(--shadow-card); border: 1px solid #eef2f6; }
.info-box { flex: 1; background: var(--primary); color: white; padding: 40px 30px; border-radius: 15px; text-align: center; position: sticky; top: 100px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid #dfe6e9; border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 1rem; background: #f9fafb; transition: 0.3s; }
.form-input:focus { border-color: var(--accent); background: white; }
.btn-submit { background: var(--accent); color: white; width: 100%; padding: 15px; border: none; border-radius: 8px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: #0073e6; }
.success-msg { background: #d1fae5; color: #065f46; padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.info-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 24px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* === التجاوب (Mobile & Tablet) === */
@media (max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
    .booking-wrapper, .contact-wrapper { flex-direction: column; }
    .form-box, .info-box { width: 100%; flex: none; }
    .info-box { order: -1; margin-bottom: 20px; position: static; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: white; flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #f1f5f9; gap: 0; }
    .main-nav.active { display: flex; animation: slideDown 0.3s ease; }
    .nav-link { width: 100%; padding: 15px 0; border-bottom: 1px solid #f1f5f9; margin: 0; }
    
    .top-inner { flex-direction: column; gap: 5px; text-align: center; }
    .top-right, .top-left { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .mobile-hide { display: none !important; }
    
    .hero-section { padding: 60px 20px; text-align: center; min-height: auto; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    
    .grid-4, .grid-3, .news-grid { grid-template-columns: 1fr; }
    .two-cols { grid-template-columns: 1fr; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }