/* --- 1. Layout & Wrappers --- */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Intro and Grid Overview */
.service-detail {
    text-align: center;
    margin-bottom: 60px;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.repair-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.grid-item {
    background: #fdfdfd;
    padding: 15px;
    border-left: 4px solid #0d5b02;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

/* --- 2. Alternating Feature Rows --- */
.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text, .feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: 250px; /* Increased height for better balance with longer text */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 3. Hero Overlay (Glassmorphism) --- */
.slider-overlay {
    /* Change top to 50% and ensure transform is exactly -50% */
    top: 50% !important; 
    left: 8% !important;
    transform: translateY(-50%) !important;
    
    /* Keep your existing glass effects */
    background: rgba(0, 0, 0, 0.4) !important; 
    backdrop-filter: blur(5px);
    padding: 25px 35px 45px 35px !important;
    max-width: 600px !important;
    border-radius: 8px;
    border-left: 6px solid #0d5b02;
    text-align: left !important;
    
    /* Add this to ensure it doesn't grow too tall */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-overlay h1 {
    font-size: 2.5rem !important;
    margin: 0 0 15px 0 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-strapline {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    color: #f0f0f0 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* --- 4. Why Trust Us (Stacked Layout) --- */
.why-choose-us {
    background-color: #f9f9f9;
    padding: 80px 8%;
    text-align: center;
    border-top: 1px solid #eee;
}

.why-choose-us h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1.1rem;
}

.benefits-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.benefit-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #0d5b02;
}

.card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.benefit-card p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* --- 5. Call to Action --- */
.cta-section {
    background: #f1f1f1;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    margin-top: 40px;
}

.book-now-btn {
    display: inline-block;
    background-color: #0d5b02;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.book-now-btn:hover {
    transform: scale(1.05);
    background-color: #158006;
}

/* Privacy & Terms Page Styling */
.policy-container {
    max-width: 800px;
    margin: 40px auto;
    line-height: 1.8;
    color: #333;
}

.policy-container h1 {
    color: var(--brand-green);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.policy-divider {
    border: 0;
    border-top: 2px solid var(--brand-green);
    width: 60px;
    margin: 20px 0 40px 0;
}

.policy-container h2 {
    margin-top: 30px;
    font-size: 1.4rem;
    color: #1a1a1a;
}

.policy-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-container li {
    margin-bottom: 10px;
}

/* --- 6. Responsive Mobile Layout --- */
@media (max-width: 768px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .feature-image {
        order: -1;
    }

    .feature-image img {
        height: 250px; /* Shorter for mobile screens */
    }

    .slider-overlay {
        /* Reduce padding so the box doesn't push out so much */
        padding: 15px 20px !important;
        background: rgba(0, 0, 0, 0.3) !important; 
        backdrop-filter: blur(2px);
        /* Ensure it stays centered and doesn't hit the edges */
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        
        /* Tighten up the gap at the top/bottom */
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .slider-overlay h1 {
        /* Significantly smaller font for mobile screens */
        font-size: 1.5rem !important; 
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }

    .hero-strapline {
        /* Smaller strapline so it takes up fewer lines */
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    .repair-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-us {
        padding: 60px 5%;
    }
}