/* static/css/pages/service_car_wraps.css */

/*
    Styling for the Car Wraps & Color Change page.
    Inherits from .service-detail-layout but adds specific flair for the automotive lifestyle aesthetic.
*/

/* --- "Why Wrap?" Grid --- */
.why-wrap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-wrap-grid .value-prop {
    text-align: center;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.why-wrap-grid .value-prop:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-prop__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.why-wrap-grid h3 {
    margin-top: 0;
    color: var(--brand-dark-blue);
}

/* --- Service Grid (2-Column) --- */
.service-grid-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .service-grid-two {
        grid-template-columns: 1fr 1fr;
    }
}

.service-grid-item {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.service-grid-item h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

/*
 * Scoped Brand Bar for Car Wraps Page
 * Uses the ID selector #car-wraps-brands to ensure higher specificity
 * than the generic tire shop styles.
 */
#car-wraps-brands {
    padding: 2rem 0;
    background-color: var(--white-color);
}

#car-wraps-brands .brand-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem; 
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* 
   The ID selector (#car-wraps-brands) + class (.brand-logo) 
   creates a very specific rule that overrides the generic .brand-logo rule.
*/
#car-wraps-brands .brand-logo {
    height: auto !important; /* Force override of fixed height if necessary */
    max-height: 75px;       /* Set the specific max-height for wrap brands */
    width: auto;
    max-width: 150px;
    opacity: 0.7;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

#car-wraps-brands .brand-logo:hover {
    opacity: 1;
    filter: grayscale(100%);
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* 1. Ensure the promo container centers its children */
    .full-width-promo__image-container {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 1.5rem; 
    }

    /* 2. Constrain the promo image size */
    .full-width-promo__image {
        display: block;
        max-width: 220px; 
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }
    #car-wraps-brands .brand-bar {
        gap: 1.5rem;
    }
    #car-wraps-brands .brand-logo {
        max-height: 75px; 
    }    
}

/*
 * Section: Wrap Finishes (Refactored)
 * -----------------------------------
 */
.finishes-section {
    padding: 2rem 0;
}

.finish-group {
    margin-bottom: 3rem;
}

.finish-group h3 {
    font-size: 1.5rem;
    color: var(--brand-dark-blue);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.finish-group p {
    color: var(--text-muted-color);
    max-width: 700px;
    margin-bottom: 2rem;
}

.material-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.material-swatch-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.material-swatch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.material-swatch-card__image-container {
    width: 100%;
    padding-top: 66.66%; /* 3:2 aspect ratio */
    position: relative;
    background-color: #eee;
}

.material-swatch-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-swatch-card__content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.material-swatch-card__title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark-color);
}

.material-swatch-card__description {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1; /* Pushes brand to bottom */
}

.material-swatch-card__brand {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    text-align: right;
}

/*
 * Section: Testimonials
 * ---------------------
 */
.testimonials-section {
    padding: 3rem 0;
    background-color: var(--background-light-color); /* Light background to stand out */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-card__text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark-color);
    margin: 0 0 1.5rem 0;
    flex-grow: 1; /* Pushes footer to the bottom */
}

.testimonial-card__footer {
    text-align: right;
    font-style: normal;
}

.testimonial-card__author {
    font-weight: 600;
    color: var(--brand-dark-blue);
}

@media (max-width: 768px) {
    body.page-vehicle-wraps-landing .service-hub-grid {
        display: grid;
        /* Force 1 column on mobile, overriding any inherited styles */
        grid-template-columns: 1fr !important; 
        gap: 1.5rem;
        width: 100%;
        padding: 0 1rem; /* Add breathing room on edges */
        box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    }

    /* Ensure cards don't overflow their container */
    body.page-vehicle-wraps-landing .service-card {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}