/* 
   بوابة المبيعات - Sales Gateway
   Professional Redesigned Stylesheet
   استخدام ألوان اللوقو الرسمية
*/

:root {
    /* ألوان اللوقو الرسمية */
    --primary-blue: #003060;
    --primary-gold: #c5a059;
    --primary-green: #2ecc71;
    --accent-blue: #0050a0;
    
    /* ألوان النصوص */
    --text-main: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    
    /* ألوان الخلفيات */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    
    /* الحدود والظلال */
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 48, 96, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 48, 96, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 48, 96, 0.16);
    
    /* الانحناءات */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* التدرجات */
    --gradient-primary: linear-gradient(135deg, #003060 0%, #0050a0 100%);
    --gradient-gold: linear-gradient(135deg, #c5a059 0%, #d4b574 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 48, 96, 0.9) 0%, rgba(0, 80, 160, 0.85) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Header & Navigation ==================== */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 75px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

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

/* ==================== Hero Section ==================== */
.hero-section {
    background: var(--gradient-overlay), url('images/hero_banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(197, 160, 89, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 48, 96, 0.3);
}

.btn-gold {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-success {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-outline {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== Sections ==================== */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 900;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ==================== Services Grid ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 800;
}

.service-card-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-card-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card-features li {
    padding: 10px 0;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card-features li:last-child {
    border-bottom: none;
}

.service-card-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-green);
    font-size: 1rem;
}

/* ==================== Service Icons ==================== */
.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==================== Pricing Cards ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    padding: 45px 35px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--primary-gold);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.25);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.pricing-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 800;
}

.pricing-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin: 25px 0;
}

.pricing-price span {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: right;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-green);
    font-size: 1rem;
}

/* ==================== Stats Section ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 500;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 90px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p {
    color: #bdc3c7;
    line-height: 1.9;
    font-size: 1.05rem;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 90px;
    width: auto;
}

.footer h3 {
    color: var(--primary-gold);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 12px;
    font-weight: 800;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-right: 5px;
}

.footer-links a i {
    color: var(--primary-gold);
    font-size: 0.85rem;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.footer-contact i {
    color: var(--primary-gold);
    font-size: 1.3rem;
    min-width: 25px;
}

.payment-methods-footer img {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-bottom a {
    color: #7f8c8d;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-bottom a:hover {
    color: var(--primary-gold);
}

/* ==================== Mobile & Hamburger Menu ==================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    backdrop-filter: blur(4px);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 999;
        transition: right 0.4s ease;
        padding: 100px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    }

    nav.active {
        right: 0;
    }
    
    .menu-overlay.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .header-container {
        padding: 10px 20px;
    }
    
    .logo img {
        height: 55px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== Utility Classes ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Hero sections for different pages */
body.features-page .hero-section {
}

body.pricing-page .hero-section {
}

body.contact-page .hero-section {
}

/* تحسين محاذاة بطاقات الأسعار */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 25px;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* إصلاح محاذاة بطاقات الأسعار - نسخة محسنة */
.pricing-grid {
}

.pricing-card {
}

.pricing-features {
}

.pricing-card .btn-primary {
}

@media (max-width: 1024px) {
    .pricing-grid {
    }
    .pricing-card {
    }
}

/* إصلاح محاذاة بطاقات الأسعار - نسخة محسنة */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 700px;
}

.pricing-features {
    flex: 1;
    margin-bottom: 25px;
}

.pricing-card .btn-primary {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card {
        min-height: auto;
    }
}

/* تقليل ارتفاع بنر المنيو في الموبايل فقط */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        min-height: 250px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 15px;
        min-height: 220px;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
}

/* توحيد ترتيب الصور في صفحة الخدمات - الموبايل فقط */
@media (max-width: 768px) {
    /* جعل جميع الصور تظهر أسفل النص في الموبايل */
    .section > .container > div[style*="grid"] > div[style*="order"] {
        order: 2 !important;
    }
    
    /* جعل جميع النصوص تظهر أعلى الصور في الموبايل */
    .section > .container > div[style*="grid"] > div[style*="order"]:last-child {
        order: 1 !important;
    }
    
    /* تحسين المسافات في الموبايل */
    .section > .container > div[style*="grid"] {
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    /* تقليل المسافات أكثر في الشاشات الصغيرة جداً */
    .section > .container > div[style*="grid"] {
        gap: 1.5rem !important;
    }
    
    .section h2 {
        font-size: 1.8rem !important;
    }
    
    .section p {
        font-size: 1rem !important;
    }
}

/* إصلاح جدول مقارنة الباقات على الموبايل فقط */
@media (max-width: 768px) {
    /* جعل الجدول قابل للتمرير أفقياً */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    /* تصغير حجم الخط والمسافات في الجدول */
    .comparison-table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    .comparison-table th {
        font-size: 0.9rem !important;
    }
    
    /* تصغير الأيقونات */
    .comparison-table i {
        font-size: 1.1rem !important;
    }
    
    /* تحسين عرض عمود الميزة */
    .comparison-table td:first-child {
        min-width: 140px;
        font-weight: 600;
    }
    
    /* تحسين عرض أعمدة الباقات */
    .comparison-table td:not(:first-child) {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    /* تصغير أكثر للشاشات الصغيرة جداً */
    .comparison-table {
        font-size: 0.8rem;
        min-width: 550px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.8rem !important;
    }
    
    .comparison-table th {
        font-size: 0.85rem !important;
    }
    
    .comparison-table i {
        font-size: 1rem !important;
    }
    
    .comparison-table td:first-child {
        min-width: 120px;
    }
    
    .comparison-table td:not(:first-child) {
        min-width: 90px;
    }
}

/* إخفاء اللوقو في المنيو على الويب - يظهر فقط على الموبايل */
.mobile-menu-logo {
    display: none;
}

/* تكبير اللوقو في الهيدر على الموبايل فقط */
@media (max-width: 768px) {
    /* تكبير اللوقو */
    header .logo img {
        height: 60px !important;
    }
    
    /* الحفاظ على ارتفاع الهيدر */
    header {
        padding: 0.8rem 0 !important;
    }
    
    /* تنسيق اللوقو في القائمة الجانبية */
    .mobile-menu-logo {
        display: block;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
    }
    
    .mobile-menu-logo img {
        filter: brightness(0) invert(1);
    }
}

@media (max-width: 480px) {
    /* تكبير اللوقو للشاشات الصغيرة جداً */
    header .logo img {
        height: 50px !important;
    }
    
    .mobile-menu-logo img {
        width: 80px !important;
        height: auto !important;
    }
}
