/* css/services.css */

/* --- Page Hero --- */
.page-hero { 
    position: relative; height: 350px; display: flex; align-items: center; justify-content: center; 
    text-align: center; border-bottom: 5px solid var(--brand-orange); overflow: hidden;
    background-color: #222;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
    filter: brightness(0.4);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 20px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 15px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.page-hero p { font-size: 1.1rem; background: var(--brand-orange); color: #fff; display: inline-block; padding: 6px 25px; border-radius: 50px; font-weight: 700; }

/* --- Intro Section --- */
.section-padding { padding: 80px 0; }
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.section-intro h2 { font-size: 2.5rem; color: var(--text-primary); margin-bottom: 20px; font-weight: 900; }
.section-intro p { font-size: 1.1rem; color: var(--text-secondary); }

/* --- Services Mosaic Grid --- */
.services-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 80px; }

.mosaic-item { 
    background: var(--bg-card); /* متغير */
    border-radius: 20px; overflow: hidden; 
    box-shadow: 0 10px 30px var(--shadow-color); 
    border: 1px solid var(--border-color);
    display: flex; flex-direction: column; transition: transform 0.3s;
}
.mosaic-item:hover { transform: translateY(-5px); border-color: var(--brand-orange); }
.mosaic-item.tall { grid-row: span 2; }

.mosaic-img { height: 250px; overflow: hidden; position: relative; }
.mosaic-item.tall .mosaic-img { height: 100%; min-height: 400px; }
.mosaic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mosaic-item:hover .mosaic-img img { transform: scale(1.1); }

.mosaic-content { padding: 30px; background: var(--bg-card); flex-grow: 1; position: relative; z-index: 2; }
.mosaic-content h3 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 15px; font-weight: 800; }
.mosaic-content h3::after { content: ''; display: block; width: 40px; height: 3px; background: var(--brand-orange); margin-top: 10px; }
.mosaic-content p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

/* --- Workflow Grid --- */
.workflow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 60px; }
.step-card {
    background: var(--bg-card); /* متغير */
    padding: 40px 25px; border-radius: 20px; text-align: center;
    border: 1px solid var(--border-color); border-bottom: 5px solid var(--brand-orange);
    box-shadow: 0 5px 20px var(--shadow-color); transition: 0.3s;
}
.step-card:hover { transform: translateY(-5px); }
.step-card h4 { font-size: 1.4rem; color: var(--brand-orange); font-weight: 900; margin-bottom: 15px; }
.step-card p { color: var(--text-secondary); font-weight: 600; }

/* --- Responsive --- */
@media (max-width: 992px) { 
    .services-mosaic { grid-template-columns: 1fr; }
    .mosaic-item.tall { grid-row: auto; }
    .mosaic-item.tall .mosaic-img { height: 250px; min-height: auto; }
}
@media (max-width: 768px) { 
    .section-padding { padding: 40px 0 80px; }
    .section-intro h2 { font-size: 2rem; }
    .page-hero { height: 280px; }
}