/* =================================== */
/* ملف layout.css - أساس لكل الصفحات  */
/* =================================== */

:root {
    --primary-color: #0056b3;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --gray-color: #f8f9fa;
    --border-color: #e9ecef;
}

body {
    font-family: 'Cairo', sans-serif; 
    margin: 0; 
    direction: rtl;
    background-color: var(--light-color); 
    overflow-x: hidden; 
    padding-top: 80px; /* Space for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Styling --- */
.section-padding {
    padding: 80px 0;
}

/* ============================ */
/* Desktop Styles (Default)    */
/* ============================ */
.main-header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0; 
    z-index: 1000; 
    background-color: var(--light-color); 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}

.navbar-logo img { height: 55px; }
.nav-menu-container { display: flex; } /* For Desktop */
.nav-list { display: flex; list-style: none; padding: 0; margin: 0; gap: 40px; align-items: center; }
.nav-list a { color: var(--dark-color); text-decoration: none; font-weight: 700; font-size: 1rem; }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.hamburger-menu { display: none; } /* Hidden on desktop */

/* Grid for services page on desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ================================================ */
/* Mobile & Tablet Styles (Responsive Magic)       */
/* ================================================ */
@media (max-width: 992px) {
    /* General adjustments */
    .container {
        padding: 0 15px;
    }
    h1 { font-size: 2.5rem; } /* Smaller headings */

    /* Header adjustments */
    .nav-menu-container { 
        /* This is the slide-out menu */
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 280px;
        height: 100%;
        background-color: var(--light-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        padding-top: 60px;
        z-index: 1001;
    }
    .nav-menu-container.is-open {
        right: 0; /* Slide into view */
    }
    .nav-list {
        flex-direction: column; /* Stack links vertically */
        align-items: flex-start;
        padding: 20px;
        width: 100%;
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
        font-size: 1.8rem;
        cursor: pointer;
        background: none;
        border: none;
        color: var(--dark-color);
        z-index: 1002;
    }

    /* Fix controls on services page */
    .controls-container {
        flex-direction: column;
        align-items: stretch;
    }

    /* Stack service cards in one column */
    .services-grid {
        grid-template-columns: 1fr; /* One column for all services */
    }
}