/* ===== متغيرات ألوان الشعار (هوية العنوان المميز) ===== */
:root {
    --primary: #1a365d;
    --primary-dark: #0f2744;
    --primary-light: #2c5282;
    --accent: #3182ce;
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-600: #718096;
    --gray-800: #2d3748;
    --shadow: 0 4px 20px rgba(26, 54, 93, 0.15);
    --shadow-lg: 0 10px 40px rgba(26, 54, 93, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== الشريط العلوي ===== */
.top-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.top-bar .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav a:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 1.25rem;
    cursor: pointer;
}

/* ===== السلايدر ===== */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    margin-top: 80px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(15, 39, 68, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 24px;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    opacity: 0.95;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.slider-btn.prev { right: 24px; }
.slider-btn.next { left: 24px; }

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ===== الأقسام العامة ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    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(--primary), var(--accent));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== حول الشركة ===== */
.about-section {
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray-800);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

/* ===== الرؤية والرسالة والهدف ===== */
.vision-section {
    background: var(--white);
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.vision-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.vision-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.vision-card p {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ===== نبذة عن الشركة ===== */
.brief-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.brief-content {
    max-width: 900px;
    margin: 0 auto 40px;
}

.brief-content p {
    margin-bottom: 16px;
    color: var(--gray-800);
}

.brief-list {
    list-style: none;
    margin: 20px 0;
}

.brief-list li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.brief-list li::before {
    content: '✔️';
    position: absolute;
    right: 0;
}

.brief-content .tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-top: 24px;
}

.brief-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.brief-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== معرض الصور ===== */
.gallery-section {
    background: var(--gray-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== اتصل بنا ===== */
.contact-section {
    background: var(--primary);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-title::after {
    background: var(--white);
}

.contact-box {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    min-width: 280px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255,255,255,0.15);
}

.contact-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

/* ===== التذييل ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 48px 0;
}

.footer-inner {
    text-align: center;
}

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 16px;
    opacity: 0.95;
}

.footer-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-address {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===== responsive ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    .vision-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .top-bar.nav-open .nav {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 16px;
    }
    .top-bar.nav-open .nav ul {
        flex-direction: column;
    }
    .hero-slider {
        height: 70vh;
        min-height: 400px;
        margin-top: 80px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .section {
        padding: 56px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .logo {
        height: 44px;
    }
    .logo-name {
        font-size: 1.2rem;
    }
}
