﻿/* SEO & Content Enhancement Sections */

.seo-section {
    padding: var(--section-y-lg, 2.5rem) 0;
    background: #f0fdf4;
}

.seo-section__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-section__header h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2rem;
    color: #0b3320;
    margin-bottom: 0.75rem;
}

.seo-section__header p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Blog Cards Grid */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.35rem;
}

.seo-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.seo-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #d1fae5;
}

.seo-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.seo-card__content h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #0b3320;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.seo-card__content p {
    color: #2d5a3d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.seo-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: #185c38;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.seo-card__cta:hover {
    text-decoration: underline;
}

/* Services – compact cards, native horizontal scroll + snap (see vehicle-section.css for fleet) */
.services-section {
    padding: var(--section-y, 2.25rem) 0;
    background: #ffffff;
    overflow: hidden;
}

.services-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    container-type: inline-size;
    container-name: services-slider;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scroll-padding-inline: 1rem;
    padding: 0.5rem 0 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-slider-container::-webkit-scrollbar {
    display: none;
}

.services-slider-container:focus {
    outline: none;
}

.services-slider-container:focus-visible {
    outline: 2px solid #185c38;
    outline-offset: 4px;
    border-radius: 12px;
}

.services-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
}

.services-slider-slide {
    flex: 0 0 100cqi;
    min-width: 100cqi;
    max-width: 100cqi;
    padding: 0 0.75rem;
    box-sizing: border-box;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    opacity: 0.88;
    transition: opacity 0.35s ease;
}

.services-slider-slide.active {
    opacity: 1;
}

@supports not (container-type: inline-size) {
    .services-slider-slide {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.service-card {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    padding: 1.35rem 1.25rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    max-width: 520px;
    margin: 0 auto;
}

.service-card img {
    width: 100%;
    max-width: 280px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.35rem;
    color: #0b3320;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    max-width: 36rem;
}

.service-card__highlight {
    margin-top: auto;
    display: inline-block;
    background: #fef9ec;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #fde68a;
}

@media (prefers-reduced-motion: reduce) {
    .services-slider-slide {
        transition: none;
    }
}

@media (max-width: 768px) {
    .seo-section, .services-section {
        padding: 1.75rem 0;
    }
    .service-card {
        padding: 1.15rem 1rem 1.35rem;
    }
    .service-card img {
        height: 130px;
        margin-bottom: 0.85rem;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }
    .service-card p {
        font-size: 0.9rem;
    }
}
