/* ------------------------------- */
/* --- إعدادات عامة ومتغيرات --- */
/* ------------------------------- */

:root {
    --color-primary: #163A5E;
    --color-primary-dark: #1e4d7a;
    --color-accent: #FF8800;
    --color-accent-hover: #ff9f33;
    --color-light: #f9fafb;
    --color-white: #ffffff;
    --color-dark-text: #374151;
    --color-light-text: #6B7280;
    --color-border: #e5e7eb;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* --- إعادة تعيين أساسية --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--color-light);
    color: var(--color-dark-text);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- تنسيقات مساعدة --- */
.container {
    width: 90%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.text-accent {
    color: var(--color-accent);
}

.text-accent-light {
    color: var(--color-accent-hover);
}

.text-primary {
    color: var(--color-primary);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-light {
    background-color: var(--color-light);
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-title .title-divider {
    width: 6rem;
    height: 4px;
    background-color: var(--color-accent);
    margin: 0 auto;
    border-radius: 2px;
}

.section-title .subtitle {
    font-size: 1.125rem;
    color: var(--color-light-text);
    max-width: 600px;
    margin: 1rem auto 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ------------------------------- */
/* --- الناف بار (Header) --- */
/* ------------------------------- */
nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(22, 58, 94, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-white);
    font-size: 1.25rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

/* -- Logo image when using an actual file -- */
.logo-image {
    width: 140px;
    height: auto;
    max-height: 140px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.logo-title {
    color: var(--color-white);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-subtitle {
    color: #fca5a5; /* light-orange/red from original */
    font-size: 0.75rem;
    margin-top: -5px;
}

.nav-links {
    display: none; /* مخفي في الموبايل */
    gap: 1.5rem;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.cta-button {
    display: none; /* مخفي في الموبايل */
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-white);
    font-size: 0.875rem;
}

.cta-button:hover {
    opacity: 0.9;
}

.cta-button i {
    margin-left: 0.5rem;
}

/* ------------------------------- */
/* --- قسم الهيرو (Hero) --- */
/* ------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
    position: relative;
    padding-top: 6rem; /* لتعويض الناف بار */
    padding-bottom: 4rem;
}

/* Hero background image variant (user requested images/33.jpg with blue overlay and reduced opacity) */
.hero.hero-image {
    background-image: linear-gradient(rgba(10, 63, 116, 0.55), rgba(10, 63, 116, 0.55)), url('images/33.jpg');
    background-size: cover;
    background-position: center center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-visual img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; }

.hero-content h1 {
    font-size: 2.75rem; /* أصغر قليلاً للموبايل */
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: #e5e7eb; /* light-gray */
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button {
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.18s ease;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.button:focus {
    outline: 3px solid rgba(255,136,0,0.18);
    outline-offset: 3px;
}

.button:active {
    transform: translateY(1px) scale(0.995);
}

.button-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-white);
}

.button-accent:hover {
    box-shadow: 0 10px 30px rgba(255,136,0,0.18);
}

.button-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.button-light {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.button-light {
    border: 2px solid rgba(22,58,94,0.06);
}

.button-light:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.button-light:hover {
    background-color: #f3f4f6; /* slightly-gray */
    transform: translateY(-2px);
}

.button-full {
    width: 100%;
    justify-content: center;
}

.hero-truck {
    display: none; /* مخفي في الموبايل */
    justify-content: center;
    align-items: center;
}

.hero-truck svg {
    max-height: 400px;
    width: 100%;
}

/* ------------------------------- */
/* --- قسم "من نحن" --- */
/* ------------------------------- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-light-text);
    margin-bottom: 1.5rem;
}

.about-content p strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* ------------------------------- */
/* --- قسم "خدماتنا" --- */
/* ------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.service-card > p {
    color: var(--color-light-text);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-dark-text);
}

.service-card li i {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ------------------------------- */
/* --- قسم "معرض الأعمال" --- */
/* ------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-white);
    padding: 1.5rem 1rem 1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------- */
/* --- قسم "تواصل معنا" --- */
/* ------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info {
    padding: 2rem;
    border-radius: 1rem;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-accent);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #d1d5db; /* light-gray */
    margin: 0;
}

.social-media {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-media h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 1.125rem;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-accent);
}

/* --- نموذج الاتصال --- */
.contact-form-container {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ------------------------------- */
/* --- الفوتر (Footer) --- */
/* ------------------------------- */
footer {
    padding: 2rem 0;
    color: var(--color-white);
}

footer .container {
    text-align: center;
    color: #d1d5db; /* light-gray */
    font-size: 0.875rem;
}

/* ------------------------------- */
/* --- زر الواتساب --- */
/* ------------------------------- */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 4rem;
    height: 4rem;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 40;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #1DAE54;
    transform: scale(1.1);
}

/* زر الهاتف العائم - مظهر مشابه لواتساب لكن بلون الموقع البرتقالي */
.phone-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%) !important;
    color: var(--color-white) !important;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    z-index: 9999;
    border: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.phone-button:hover {
    transform: scale(1.08);
    filter: brightness(1.03);
}

.phone-button:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(255,136,0,0.12);
}

.phone-button i {
    font-size: 1.4rem;
    color: var(--color-white) !important;
}

/* ------------------------------- */
/* --- التجاوب (Responsive) --- */
/* ------------------------------- */

/* شاشات متوسطة (Tablets) */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .cta-button {
        display: inline-flex;
    }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* hero media element removed; no additional styles required */
    .hero-truck {
        display: flex;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Larger logo on tablets and up */
    .logo-image {
        width: 180px;
        max-height: 180px;
    }
}

/* شاشات كبيرة (Desktops) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Bigger logo on desktop */
    .logo-image {
        width: 260px;
        max-height: 260px;
    }
}
