/* 
 * Mechanic Website - Services Page Styles
 * Additional styles specific to the services page
 */

/* Service Intro Styles */
.service-intro {
    padding: 4rem 0;
    background-color: #fff;
}

.service-intro .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.intro-content {
    flex: 1 1 60%;
    min-width: 300px;
}

.intro-content h2 {
    text-align: left;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.intro-content h2:after {
    left: 0;
    transform: none;
}

.service-contact-box {
    flex: 1 1 30%;
    min-width: 250px;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.service-contact-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-contact-box p {
    margin-bottom: 1.5rem;
}

.service-contact-box .btn {
    margin-bottom: 1rem;
}

/* Service Categories Navigation */
.service-categories {
    background-color: var(--primary-color);
    padding: 1.5rem 0;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Service Sections */
.service-section {
    padding: 5rem 0;
    background-color: #fff;
}

.alternate-bg {
    background-color: var(--light-color);
}

.service-heading {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-heading .service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-subtitle {
    font-size: 1.2rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.alternate-bg .service-card {
    background-color: #fff;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-details {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
    flex-wrap: wrap;
}

.price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.time {
    color: #777;
    font-style: italic;
}

/* Service Guarantee */
.service-guarantee {
    padding: 5rem 0;
    background: linear-gradient(rgba(26, 62, 94, 0.9), rgba(26, 62, 94, 0.9)),
                url('../images/shop-exterior.svg') center/cover no-repeat;
    color: #fff;
}

.guarantee-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-guarantee h2 {
    color: #fff;
    margin-bottom: 2rem;
}

.service-guarantee h2:after {
    background-color: var(--accent-color);
    width: 100px;
}

.service-guarantee ul {
    text-align: left;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.service-guarantee li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-guarantee li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.guarantee-cta {
    margin-top: 2rem;
}

/* FAQ Section */
.service-faq {
    padding: 5rem 0;
    background-color: #fff;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #e8e8e8;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-grow: 1;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Responsive styles for services page */
@media (max-width: 992px) {
    .service-intro .container {
        flex-direction: column;
    }
    
    .service-card {
        height: auto;
    }
}

@media (max-width: 768px) {
    .category-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-link {
        width: 80%;
        text-align: center;
    }
    
    .service-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-heading .service-icon {
        width: 60px;
        height: 60px;
    }
}