/**
 * ==========================================================
 * ShopCore Servicing Page CSS
 * File: assets/css/servicing.css
 * ==========================================================
 */

/* ==========================================================
 * 1. TOP BANNER (MATCHES ARCHIVE PAGES)
 * ========================================================== */
.shopcore-archive-top-banner {
    width: 100%;
    aspect-ratio: 14 / 3;
    max-height: 300px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

.shopcore-archive-banner-link,
.shopcore-archive-banner-inner {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

.shopcore-archive-top-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease, opacity 0.25s ease;
}

.shopcore-archive-banner-link:hover img {
    transform: scale(1.02);
    opacity: 0.96;
}

/* Breadcrumb */
.sc-servicing-breadcrumb-wrap {
    margin-bottom: 24px;
}

.sc-servicing-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.sc-servicing-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.sc-servicing-breadcrumb a:hover {
    color: #ef1d25;
}

.sc-servicing-breadcrumb span {
    color: #ef1d25;
    font-weight: 600;
}

/* ==========================================================
 * 2. MAIN CONTAINER & SECTION HEADINGS
 * ========================================================== */
.sc-servicing-page {
    padding: 36px 0 60px 0;
    background: #ffffff;
}

.sc-servicing-section-header {
    margin-bottom: 24px;
}

.sc-servicing-section-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-servicing-section-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ==========================================================
 * 3. SERVICES CARD GRID (MATCHING REFERENCE UI)
 * ========================================================== */
.sc-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.sc-service-card {
    background: #f1f4f8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sc-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
    background: #eef2f6;
}

.sc-service-thumb {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #0f172a;
}

.sc-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sc-service-card:hover .sc-service-img {
    transform: scale(1.05);
}

.sc-service-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sc-service-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.sc-service-card:hover .sc-service-title {
    color: #ef1d25;
}

.sc-service-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.sc-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.sc-service-btn i {
    font-size: 15px;
    color: #25d366;
    transition: color 0.25s ease;
}

.sc-service-btn:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.sc-service-btn:hover i {
    color: #ffffff;
}

/* ==========================================================
 * 4. SERVICING PRODUCTS SECTION
 * ========================================================== */
.sc-servicing-products-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.sc-servicing-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==========================================================
 * 5. RESPONSIVE MEDIA QUERIES
 * ========================================================== */
@media (max-width: 1200px) {
    .sc-services-grid,
    .sc-servicing-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .sc-services-grid,
    .sc-servicing-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .shopcore-archive-top-banner {
        aspect-ratio: 14 / 3;
        height: auto;
        margin-bottom: 18px;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .sc-servicing-section-title {
        font-size: 20px;
    }

    .sc-services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sc-servicing-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sc-service-thumb {
        height: 170px;
    }
}

@media (max-width: 380px) {
    .shopcore-archive-top-banner {
        aspect-ratio: 14 / 3;
        height: auto;
        margin-bottom: 14px;
        border-radius: 6px;
    }
}
