﻿:root {
    --max-width: 1200px;
    --accent: #0b6e4f; /* أخضر أساسي */
    --accent-dark: #06503a; /* أخضر غامق للعناوين */
    --muted: #4b5563; /* رمادي متوسط للنصوص */
    --bg: #ffffff; /* خلفية بيضاء */
    --card: #ffffff; /* لون البطاقات */
    --radius: 14px;
}

/* ===== عام ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, -apple-system, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

/* ===== الحاوية ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem;
}

/* ===== الهيدر ===== */
.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.site-title {
    font-size: clamp(1.1rem,2.4vw,1.6rem);
    margin: 0;
    color: var(--accent-dark);
}

/* ===== القائمة الرئيسية ===== */
.main-nav {
    position: relative;
    font-weight: 600;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

    .nav-toggle-label:hover {
        background: rgba(11, 110, 79, 0.1);
    }

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-list li a {
        display: inline-block;
        padding: 0.4rem 0.6rem;
        text-decoration: none;
        color: var(--accent-dark);
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
    }

        .nav-list li a:hover {
            background: rgba(11, 110, 79, 0.08);
        }

/* ===== الهيرو ===== */
.hero {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: center;
}

.hero-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0.8rem;
    color: var(--accent-dark);
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

    .btn:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
    }

    .btn.ghost {
        background: transparent;
        border: 1px solid var(--accent);
        color: var(--accent);
    }

        .btn.ghost:hover {
            background: var(--accent);
            color: #fff;
        }

/* ===== البطاقات ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(11,16,20,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(11,16,20,0.08);
    }

    .card h4 {
        margin: 0 0 0.5rem;
        color: var(--accent-dark);
    }

.card-extra {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== المقالات ===== */
.articles-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 1rem;
}

.article-item {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .article-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .article-item h4 {
        margin: 0 0 0.75rem;
        font-size: 1.25rem;
        color: var(--accent-dark);
    }

    .article-item p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.7;
        color: var(--muted);
    }

/* ===== قسم الاتصال ===== */
.contact-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-dark);
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .contact-section form label {
        display: flex;
        flex-direction: column;
        font-weight: 500;
        color: #1f2937;
    }

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    margin-top: 0.3rem;
    transition: border 0.2s, box-shadow 0.2s;
}

    .contact-section input:focus,
    .contact-section textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 6px rgba(11,110,79,0.2);
    }

/* ===== الفوتر ===== */
.site-footer {
    background: #ffffff;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e6f0ed;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.foot-links a {
    margin-left: 0.8rem;
    color: var(--muted);
    text-decoration: none;
}

/* ===== MEDIA QUERIES لتجاوب كامل ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-row {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-list {
        flex-direction: column;
        display: none;
        background: #fff;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        border: 1px solid #ddd;
        padding: 1rem;
        border-radius: 8px;
        z-index: 999;
    }

        .nav-list li {
            margin-bottom: 0.5rem;
        }

    .nav-toggle:checked + .nav-toggle-label + .nav-list {
        display: flex;
    }

    .nav-toggle-label {
        display: block;
    }


@media (max-width: 480px) {
    .hero-text h2 {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .articles-list {
        grid-template-columns: 1fr;
    }
}
