/* ============================================
   شركة نجمة الفرسان للصناعات الغذائية
   ألوان متناسقة مع الشعار - أخضر ذهبي أبيض
   ============================================ */

:root {
    /* ألوان الشعار - يمكن تعديلها لتناسب ألوان logo.png */
    --primary: #1a5f3c;
    --primary-dark: #0f3d26;
    --primary-light: #2d8b5a;
    --accent: #c9a227;
    --accent-light: #e5c84d;
    --accent-dark: #9a7b1a;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text: #2c3e2e;
    --text-muted: #5a6b5c;
    --shadow: rgba(26, 95, 60, 0.15);
    --radius: 12px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background: var(--off-white);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== الهيدر والشعار ========== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    min-height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--primary);
}

.logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-list a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-dark);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== صورة الغلاف ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 60, 0.85) 0%, rgba(15, 61, 38, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px;
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ========== الأقسام العامة ========== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========== حول الشركة ========== */
.about-section {
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1.1rem;
}

/* ========== الرؤية والرسالة والهدف ========== */
.vision-section {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26, 95, 60, 0.1);
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.card-vision { border-top: 4px solid var(--primary); }
.card-mission { border-top: 4px solid var(--accent); }
.card-goal { border-top: 4px solid var(--primary-light); }

/* ========== اتصل بنا ========== */
.contact-section {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-item a,
.contact-item p {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.contact-item a {
    display: block;
    margin-bottom: 4px;
}

/* الفورم */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid rgba(26, 95, 60, 0.2);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

/* ========== الفوتر ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.footer-contact a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: left;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== responsive ========== */
@media (max-width: 992px) {
    .logo-text {
        font-size: 1rem;
        white-space: normal;
        max-width: 180px;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 0.95rem;
        max-width: 140px;
    }

    .footer-logo {
        flex-direction: column;
    }

    .footer-logo-text {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }

    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: var(--white);
        box-shadow: -4px 0 20px var(--shadow);
        transition: var(--transition);
        padding: 32px;
    }

    .nav.is-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        min-height: 70vh;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-copy {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 28px 20px;
    }
}
