/* ============================================
   إعدادات عامة وتصميم أساسي
   ============================================ */

/* إعادة تعيين الأنماط الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* متغيرات الألوان */
:root {
    --primary-color: #99A66A;      /* أخضر زيتوني */
    --secondary-color: #F2AA52;   /* برتقالي ذهبي */
    --accent-color: #D9674E;      /* أحمر مرجاني */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* إعدادات الخطوط والجسم */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* الحاوية الرئيسية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   شريط التنقل (Navigation Bar)
   ============================================ */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

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

/* زر القائمة للموبايل */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle:hover span {
    background-color: var(--primary-color);
}

/* ============================================
   سلايدر البانرات (Hero Slider)
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(153, 166, 106, 0.8), rgba(242, 170, 82, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

/* أزرار السلايدر */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.slider-btn:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px var(--shadow);
}

.slider-btn.prev {
    right: 20px;
}

.slider-btn.next {
    left: 20px;
}

/* نقاط التنقل */
.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.dot.active,
.dot:hover {
    background-color: var(--white);
    transform: scale(1.2);
}

/* ============================================
   قسم معلومات الشركة (About Section)
   ============================================ */

.about-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    padding: 0.75rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.values-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* أنماط المحتوى المحسّن لقسم من نحن */
.about-intro {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(153, 166, 106, 0.2);
}

.about-intro p:first-of-type {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-credentials {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(153, 166, 106, 0.05), rgba(242, 170, 82, 0.05));
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.about-credentials p {
    color: var(--text-dark);
    line-height: 1.9;
}

.about-partners {
    margin-bottom: 2rem;
}

.about-partners > p {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.partner-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-right: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(153, 166, 106, 0.15);
}

.partner-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.partner-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.partner-item p strong {
    color: var(--accent-color);
    font-weight: 600;
}

.brands-list {
    list-style: none;
    margin-top: 1rem;
    padding-right: 1.5rem;
}

.brands-list li {
    padding: 0.75rem 0;
    padding-right: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
}

.brands-list li::before {
    content: '🏷️';
    position: absolute;
    right: 0;
    font-size: 1.1rem;
}

.brands-list li strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-values {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(153, 166, 106, 0.2);
}

.about-values h3 {
    margin-top: 0;
}


/* ============================================
   قسم المنتجات المميزة (Featured Products)
   ============================================ */

.featured-products {
    padding: 4rem 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.products-grid.full-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(153, 166, 106, 0.3);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--white);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(153, 166, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(153, 166, 106, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* ============================================
   قسم الفيديو (Video Section)
   ============================================ */

.video-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light), var(--white));
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--text-dark);
}

/* ============================================
   رأس صفحة المنتجات (Page Header)
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ============================================
   التذييل (Footer)
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(242, 170, 82, 0.4);
}

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

/* ============================================
   الرسوم المتحركة (Animations)
   ============================================ */

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

/* ============================================
   التصميم المتجاوب (Responsive Design)
   ============================================ */

/* تابلت */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* موبايل */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 15px var(--shadow);
        transition: var(--transition);
        gap: 1rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slider-btn.prev {
        right: 10px;
    }
    
    .slider-btn.next {
        left: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-credentials {
        padding: 1.25rem;
    }
    
    .partner-item {
        padding: 1.25rem;
    }
    
    .partner-item h4 {
        font-size: 1.15rem;
    }
    
    .about-intro p:first-of-type {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid.full-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
}

/* موبايل صغير */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .about-section,
    .featured-products,
    .video-section,
    .contact-page {
        padding: 2rem 0;
    }
    
    .contact-form-section {
        padding: 1.25rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* ============================================
   تحسينات الأداء والوصولية
   ============================================ */

/* تحسين تحميل الصور */
img {
    max-width: 100%;
    height: auto;
}

/* إخفاء العناصر عند التحميل */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* تحسين التركيز للوصولية */
a:focus,
button:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ============================================
   صفحة الاتصال (Contact Page)
   ============================================ */

.contact-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(153, 166, 106, 0.2);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-form-section {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(153, 166, 106, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
}

.btn-submit svg {
    transition: var(--transition);
}

.btn-submit:hover svg {
    transform: translateX(-5px);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message.success {
    background-color: rgba(153, 166, 106, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.form-message.error {
    background-color: rgba(217, 103, 78, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

/* ============================================
   تحسين الطباعة */
@media print {
    .navbar,
    .slider-btn,
    .slider-dots,
    .footer {
        display: none;
    }
}

