/*
Theme Name: Drichi Services Modern
Author: Gemini
Description: A modern, responsive theme for Drichi Services with images.
Version: 1.2
*/

/* 1. Reset and Global Variables */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #3aafa9;
    --text-color: #333333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 2. Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.top-bar-contact span { margin-right: 15px; }
.social-icons a { margin-left: 10px; color: var(--white); }

/* 3. Header & Navigation */
header {
    background: var(--white);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 60px; width: auto; }

nav ul { display: flex; gap: 20px; }
nav ul li a { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
nav ul li a:hover { color: var(--accent-color); }

/* 4. Hero Section */
.hero {
    /* Updated to a reliable placeholder image showing modern office/cleaning vibe */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://loremflickr.com/1600/900/office,clean');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; animation: slideUp 1s ease-out; }
.hero p { font-size: 1.2rem; max-width: 700px; margin-bottom: 30px; animation: slideUp 1.2s ease-out; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--accent-color);
}
.btn:hover { background-color: transparent; border-color: var(--white); }

/* 5. Services Grid with Images */
.section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; color: var(--primary-color); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-color);
}

.service-image-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #ddd; /* Fallback color */
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.1);
}

.service-content { padding: 20px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }

/* 6. Benefits Section */
.benefits {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.benefits-content { flex: 1; padding: 50px; }
.benefits-list li { margin-bottom: 15px; display: flex; align-items: center; }
.benefits-list li::before { content: "✔"; color: var(--accent-color); margin-right: 10px; font-weight: bold; }

.benefits-image {
    flex: 1;
    height: 100%;
    min-height: 450px;
    /* Updated placeholder */
    background: url('https://loremflickr.com/800/800/cleaner,professional') center/cover;
}

/* 7. Contact & Footer */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.contact-info-box h4 { margin-top: 20px; margin-bottom: 10px; color: var(--accent-color); }

footer {
    background: #111;
    color: #888;
    padding: 20px 5%;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .top-bar { flex-direction: column; text-align: center; gap: 10px; }
    .hero h1 { font-size: 2rem; }
    .benefits { flex-direction: column; }
    nav ul { display: none; }
}