/* ====================================
   نظام التصميم - شركة سلة الغذاء الصحي
   ==================================== */

:root {
    /* الألوان الرئيسية */
    --primary-color: #2d7a3e;
    --primary-dark: #1f5a2c;
    --primary-light: #4a9f5d;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #059669;

    /* الألوان المحايدة */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    /* الظلال */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* الخطوط */
    --font-main: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-headings: 'Tajawal', 'Cairo', sans-serif;

    /* الأبعاد */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;

    /* مساحات الأمان */
    --safe-padding-sm: 15px;
    --safe-padding-md: 30px;
    --safe-padding-lg: 50px;
    --safe-padding-xl: 80px;
    --safe-margin-sm: 15px;
    --safe-margin-md: 30px;
    --safe-margin-lg: 50px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* التحولات */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ====================================
   إعدادات عامة
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ====================================
   شريط التنقل
   ==================================== */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--safe-padding-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 150px;
    width: auto;
    transition: var(--transition-normal);
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(45, 122, 62, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* ====================================
   البطل (Hero Section)
   ==================================== */

.hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, rgba(45, 122, 62, 0.95), rgba(5, 150, 105, 0.95)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 120px var(--safe-padding-md) 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100px);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: var(--font-headings);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   الأقسام العامة
   ==================================== */

.section {
    padding: var(--safe-padding-xl) var(--safe-padding-md);
}

.section-no-padding-top {
    padding-top: 0;
}

.section-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.section-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

.section-cta .cta-button {
    background-color: white;
    color: var(--primary-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1f5a2c;
    padding-bottom: var(--safe-padding-md);
    margin-bottom: 25px;
    margin-right: auto;
    margin-left: auto;
    font-family: var(--font-headings);
    position: relative;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(to left, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(45, 122, 62, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--safe-margin-lg);
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.9;
}

/* ====================================
   بطاقات المميزات
   ==================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-white);
    padding: var(--safe-padding-lg) var(--safe-padding-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: var(--font-headings);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ====================================
   بطاقات الخدمات
   ==================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-image-wrapper {
    overflow: hidden;
    height: 200px;
}

.service-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover .service-header::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-body {
    padding: 25px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    padding-right: 10px;
}

.service-item::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ====================================
   معلومات الشركة
   ==================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-headings);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.value-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    border-right: 4px solid var(--primary-color);
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ====================================
   صفحة التواصل
   ==================================== */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.contact-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-details a {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ====================================
   التذييل
   ==================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: var(--safe-padding-xl) var(--safe-padding-md) var(--safe-padding-md);
    margin-top: 80px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--safe-margin-lg);
    margin-bottom: var(--safe-margin-lg);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: var(--font-headings);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
    padding-right: 15px;
    position: relative;
}

.footer-links a::before {
    content: '◄';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* ====================================
   استجابة الشاشات
   ==================================== */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 75%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--safe-padding-lg) var(--safe-padding-md);
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

/* ====================================
   تأثيرات إضافية
   ==================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تحسين الطباعة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');