/* ===== المتغيرات ===== */
:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --accent: #ff6f00;
    --accent-light: #ffab40;
    --bg-light: #f5f7fa;
    --text: #1a237e;
    --text-muted: #5c6bc0;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(13, 71, 161, 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(--text);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== الهيدر والشعار ===== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* ===== صور الغلاف (Hero) ===== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 420px;
    margin-top: 60px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0d47a1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(0, 33, 113, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 3;
    padding: 3rem 1.5rem 4rem;
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== الأقسام العامة ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

/* ===== عن الشركة ===== */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.about-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.about-card.highlight .about-icon,
.about-card.highlight h3 {
    color: var(--white);
}

.about-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.about-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-card.highlight p {
    color: rgba(255,255,255,0.9);
}

/* المحتوى النصي عن الشركة */
.about-text-block {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent);
}

.about-text-title {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.about-text-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

/* ===== الرؤية والرسالة والهدف ===== */
.values-section {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent);
    transition: transform 0.2s;
}

.value-card:hover {
    transform: translateY(-2px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== معلومات التواصل ===== */
.contact-info-section {
    background: var(--white);
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    min-width: 200px;
    transition: background 0.2s, transform 0.2s;
}

a.contact-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.02);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

a.contact-card:hover .contact-label {
    color: rgba(255,255,255,0.9);
}

.contact-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== فورم اتصل بنا ===== */
.form-section {
    background: var(--bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1rem;
    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;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

/* ===== التذييل ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.footer p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-contact {
    margin-top: 0.5rem;
    font-weight: 600;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== الجوال ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 70vh;
    }
}
