/* static/css/home.css */

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), 
                url('../images/hero.jpg') no-repeat center center/cover; /* Ensure this path is correct */
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    color: white; 
    padding: 0 20px;
}
.hero h1 { font-size: clamp(3rem, 10vw, 6rem); line-height: 1; margin-bottom: 15px; font-weight: 900; text-transform: uppercase; }
.hero h1 span { color: var(--primary-red); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 3px; }
.btn-more { padding: 22px 55px; background: var(--primary-red); color: white; text-decoration: none; font-weight: 800; text-transform: uppercase; border-radius: 4px; transition: var(--transition); }


/* --- SERVICES SECTION --- */
.services-section { padding: 120px 0; background: var(--section-dark-bg); color: white; position: relative; }
.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 { font-size: 2.8rem; text-transform: uppercase; font-weight: 900; }

.slider-wrapper { position: relative; max-width: 1500px; margin: 0 auto; padding: 0 100px; } 
.services-container { 
    display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 30px; 
    padding: 40px 0; scrollbar-width: none; scroll-snap-type: x mandatory; align-items: stretch;
}
.services-container::-webkit-scrollbar { display: none; }

.service-card { 
    width: 340px; flex: 0 0 340px; background: var(--card-dark-bg); 
    padding: 60px 40px; border-left: 6px solid var(--primary-red); 
    border-top: 1px solid rgba(255,255,255,0.05); transition: var(--transition); 
    scroll-snap-align: start; scroll-snap-stop: always; box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    display: flex; flex-direction: column;
}
.service-card p { line-height: 1.6; margin: 0; }
.service-card:hover { background: #3d3d3d; transform: translateY(-15px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); border-top-color: rgba(255,255,255,0.2); }
.service-card i { font-size: 3.5rem; color: var(--primary-red); margin-bottom: 30px; }

.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; 
    background: var(--primary-red); color: white; border: none; cursor: pointer; z-index: 10; 
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.nav-arrow:hover { background: var(--white); color: var(--dark); transform: translateY(-50%) scale(1.1); }
.arrow-left { left: 20px; } .arrow-right { right: 20px; }

.why-us-wrapper {
    /* Change this line: */
    background-color: #ffffff; /* Was #f8f9fa */
    
    padding: 100px 8%; 
    font-family: 'Roboto', sans-serif;
}

.why-us-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px; /* Space between image and text */
}

/* Left Side: Image */
.why-us-image {
    flex: 1;
    position: relative;
}

.why-us-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 20px 20px 0px var(--primary-red); /* Your specific offset style */
    object-fit: cover;
}

/* Right Side: Content */
.why-us-content {
    flex: 1;
}

.why-us-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}

.why-us-content .subheading {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    line-height: 1.5;
}

.reason-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.reason-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.reason-text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.reason-text p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}


/* --- FAQ SECTION --- */
.faq-section { background: var(--white); padding: 120px 0; border-top: 1px solid #eee; }
.faq-item { margin-bottom: 15px; }
.faq-question {
    width: 100%; text-align: left; background: #f9f9f9; border: 1px solid #eee; padding: 20px; 
    color: var(--primary-red); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; 
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition);
}
.faq-answer {
    max-height: 0; overflow: hidden; transition: all 0.4s ease-out; background: #ffffff; 
    color: #444; border-left: 4px solid var(--primary-red); border-right: 1px solid #eee; border-bottom: 1px solid #eee;
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1100px) {
    .slider-wrapper { padding: 0 10px; }
    
    /* Stack Why Us on mobile */
    .why-us-container {
        flex-direction: column;
        gap: 50px;
    }
    .why-us-image img {
        width: 100%;
        max-width: 500px;
        display: block;
        margin: 0 auto;
    }
}

/* Add this to the bottom of static/css/home.css */

@media (max-width: 768px) {
    /* 1. Hide the arrows on mobile */
    .nav-arrow {
        display: none;
    }

    /* 2. Adjust padding so the cards have room to breathe */
    .slider-wrapper {
        padding: 0 20px;
    }

    /* 3. Make the cards slightly narrower so the next card "peeks" out */
    /* This gives the user a visual hint that they can swipe */
    .service-card {
        width: 85% !important; 
        flex: 0 0 85% !important; 
    }
}