/* ================================================
   AllWayShalom - Services Page Styles
   ================================================ */

.services-page {
    padding: 40px 0;
    min-height: calc(100vh - var(--header-height));
}

.services-container {
    display: flex;
    gap: 32px;
}

/* Sidebar Extensions */
.has-children .subcategory-list {
    display: none;
    padding-left: 16px;
    margin-top: 8px;
}

.has-children.expanded .subcategory-list {
    display: block;
}

.subcategory-list li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.subcategory-list li a:hover {
    background: var(--bg-lightbeige);
    color: var(--brand-dark);
}

/* ==================== SERVICES CONTENT ==================== */
.services-content {
    flex: 1;
    min-width: 0;
}

.services-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.services-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-box .form-input {
    width: 300px;
    padding-right: 44px;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: color var(--transition);
}

.search-btn:hover {
    color: var(--brand-dark);
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Service Card */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-lightbeige);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.service-body {
    padding: 24px;
    flex: 1;
}

.service-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.service-title a {
    color: var(--brand-dark);
}

.service-title a:hover {
    color: var(--accent-green);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-provider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-info {
    flex: 1;
}

.provider-name {
    display: block;
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 2px;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-lightbeige);
}

.service-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: 1fr auto;
    }

    .service-image {
        height: auto;
        grid-row: 1 / 3;
    }

    .service-body {
        padding: 20px;
    }

    .service-footer {
        grid-column: 2;
    }
}

@media (max-width: 992px) {
    .services-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .service-card {
        display: flex;
        flex-direction: column;
    }

    .service-image {
        height: 180px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box .form-input {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-body {
        padding: 16px;
    }

    .service-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .service-footer .btn {
        width: 100%;
    }
}

@media (max-width: 544px) {
    .page-title {
        font-size: 1.5rem;
    }
}
