/* ==========================================
   البوابة الحديثة - Modern Gateway
   ملف التنسيقات الرئيسي
   ========================================== */

/* --- إعادة تعيين --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- متغيرات --- */
:root {
    --primary: #1a3a5c;       /* أزرق داكن */
    --primary-dark: #0f2440;
    --accent: #c8a44e;        /* ذهبي */
    --accent-hover: #b8933a;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #6b7280;
    --gray-800: #1f2937;
    --success: #059669;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* --- الأساسيات --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- الأزرار --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* --- Header --- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-ar {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    white-space: nowrap;
}

.logo-en {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* --- Navigation --- */
.nav-list {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-list a {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    color: var(--gray-800);
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--gray-300);
    font-size: 1.5rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 30px;
    line-height: 1.8;
    opacity: 0.9;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Sections --- */
.section {
    padding: 70px 0;
}

.section.bg-light {
    background: var(--gray-100);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--gray-600);
}

/* --- About Summary --- */
.about-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-summary-text h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-summary-text p {
    margin-bottom: 12px;
    color: var(--gray-600);
}

/* --- Image Placeholder --- */
.image-placeholder {
    background: var(--gray-200);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--gray-600);
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray-600);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* --- Values --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

/* --- Product Categories --- */
.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.category-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-card .product-image {
    margin-bottom: 15px;
}

.product-card .image-placeholder {
    min-height: 180px;
    border-radius: var(--radius);
}

.product-card h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.product-card p {
    color: var(--gray-600);
    margin-bottom: 12px;
}

.product-features {
    list-style: disc;
    padding-right: 20px;
    color: var(--gray-600);
}

.product-features li {
    margin-bottom: 4px;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-container h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-form-container > p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.2);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.contact-info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-info-card h3 {
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-info-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 4px;
    direction: ltr;
    unicode-bidi: embed;
}

/* --- Footer --- */
.footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 50px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.footer h4 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer p {
    color: #bbb;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    color: #bbb;
    margin-bottom: 6px;
}

.footer-bottom {
    background: #0a1828;
    text-align: center;
    padding: 16px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #888;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    /* Nav */
    .mobile-menu-btn {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 75px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-bottom: 3px solid var(--accent);
    }

    .nav-list.active {
        display: flex;
    }

    /* Hero */
    .hero { padding: 50px 20px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    /* Grids */
    .about-summary,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-summary-image {
        order: -1;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.product-card,
.testimonial-card,
.category-card,
.value-card {
    animation: fadeInUp 0.5s ease forwards;
}


/* --- Notifications --- */
.form-notification {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
    display: none;
}

.form-notification.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-notification.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}