/* static/css/pages/service_van_wraps.css */
/*
  AMENDED: The redundant `.section-title` style block has been removed, as these
  styles are now handled by the generic `.section-title` component in `layout.css`.
*/

/* ==========================================================================
   Service Detail Hero & Trust Bar
   ========================================================================== */

.service-detail-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;

    /* FIX: Prevents vertical truncation of the van/graphic images */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure the absolute image inside (if using <img> tag) also behaves */
.service-detail-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Same as background-size: cover for <img> */
    z-index: 1;
}

.service-detail-hero__overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2;
}

.service-detail-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.service-detail-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin: 1rem 0 2rem 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   Service Page Layout & Content
   ========================================================================== */

.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .service-detail-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.service-intro h2 {
    font-size: 1.75rem;
    margin-top: 0;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .value-prop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-prop {
    text-align: center;
    background-color: #fff;
    border: 1px solid var(--border-light-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.value-prop h3 {
    font-size: 1.2rem;
    margin-top: 0;
}

/* ... timeline styles ... */
.timeline-section {
    margin: 3rem 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-item__connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-item__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1;
}

.timeline-item__line {
    width: 2px;
    background-color: var(--border-light-color);
    flex-grow: 1;
    min-height: 50px;
}

.timeline-item:last-child .timeline-item__line {
    display: none;
}

.timeline-item__content {
    padding-top: 0.5rem;
}

.timeline-item__content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--brand-dark-blue);
}

.timeline-item__content p {
    margin-top: 0;
    color: var(--text-muted-color);
    line-height: 1.6;
}


/* ==========================================================================
   Desktop Hero Image Adjustments
   ========================================================================== */
@media (min-width: 992px) {
    .service-detail-hero {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: unset;
    }
    .service-detail-hero__image {
        object-fit: cover;
    }
}