/* ===== المتغيرات والأساسيات ===== */
:root {
    --primary: #1a5f4a;
    --primary-dark: #0f3d32;
    --primary-light: #2d8a6e;
    --accent: #c9a227;
    --accent-light: #e6c04a;
    --dark: #1a1a1a;
    --gray: #4a4a4a;
    --light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --font: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== الشريط العلوي ===== */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.95rem;
}

.top-bar-inner {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-link {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-link:hover {
    color: var(--accent-light);
}

.top-link .icon {
    font-size: 1rem;
}

/* ===== الهيدر والشعار ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo-link {
    display: block;
}

.logo {
    height: 55px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ===== الهيرو / الغلاف ===== */
.hero {
    position: relative;
    height: 75vh;
    min-height: 450px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(26, 31, 47, 0.75) 0%, rgba(26, 95, 74, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.95);
    margin-bottom: 28px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-dots .dot.active,
.hero-dots .dot:hover {
    background: var(--white);
}

/* ===== الأقسام العامة ===== */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== حول الشركة ===== */
.about-section {
    background: var(--light);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 18px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-content p strong {
    color: var(--primary-dark);
}

/* ===== الرؤية والرسالة والهدف ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-vision { border-top-color: var(--primary); }
.card-mission { border-top-color: var(--primary-light); }
.card-goal { border-top-color: var(--accent); }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 14px;
    font-weight: 700;
}

.card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.75;
}

/* ===== معرض الصور ===== */
.gallery-section {
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== اتصل بنا ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background: var(--primary-dark);
    color: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
}

.contact-info h3 {
    font-size: 1.35rem;
    margin-bottom: 22px;
    font-weight: 700;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-info a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--light);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 8px;
}

/* ===== الفوتر ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 36px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 45px;
    width: auto;
    opacity: 0.95;
}

.footer-text,
.footer-address {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== responsive ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .hero {
        height: 60vh;
        min-height: 380px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }
}

@media (max-width: 480px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .section {
        padding: 50px 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
