/* ============================================
   شركة المزرعة الليبية الأولى - أنماط الموقع
   ============================================ */

:root {
    --color-primary: #1a5f3c;
    --color-primary-dark: #0f3d26;
    --color-primary-light: #2d8b5a;
    --color-accent: #c9a227;
    --color-bg: #f8f6f1;
    --color-card: #ffffff;
    --color-text: #2c2c2c;
    --color-text-muted: #5a5a5a;
    --font-ar: 'Tajawal', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    direction: rtl;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== الهيدر والشعار ========== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ========== قسم الغلاف (الهيرو) ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 95, 60, 0.75) 0%, rgba(15, 61, 38, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px 24px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.95;
    margin-bottom: 28px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ========== الأقسام العامة ========== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ========== حول الشركة ========== */
.about-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow);
}

.about-intro {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.8;
}

.about-intro strong {
    color: var(--color-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.about-item {
    background: var(--color-bg);
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.about-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.about-item h3 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.about-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ========== منتجاتنا ========== */
.products {
    background: var(--color-card);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    text-align: center;
}

.product-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-caption {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}

/* ========== اتصل بنا ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.contact-card {
    background: var(--color-card);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-card a,
.contact-card p {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.contact-card a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* ========== الفوتر ========== */
.footer {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 40px 0 24px;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.9;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== responsive ========== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        right: 0;
        background: var(--color-card);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-hover);
        border-radius: 0 0 0 var(--radius);
        transform: translateX(100%);
        transition: transform 0.3s;
        gap: 16px;
    }

    .nav.nav-open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 70vh;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-card {
        padding: 32px 24px;
    }

    .section {
        padding: 56px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 44px;
    }

    .company-name {
        font-size: 1rem;
        white-space: normal;
        max-width: 140px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
