@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&display=swap');

:root {
    --services-bg: #fbf7f4;
    --services-card: #ffffff;
    --services-ink: #1f2430;
    --services-muted: #6b7280;
    --services-accent: var(--primary);
    --services-accent-soft: var(--primary-lighter);
    --services-border: #ebe7f2;
    --services-peach: #fff1e6;
    --services-lilac: #f3f2ff;
    --services-shadow: 0 18px 35px rgba(30, 37, 68, 0.12);
}

.services-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    color: var(--services-ink);
    font-family: "Sora", "Segoe UI", sans-serif;
}

.services-header {
    margin: 18px 0 24px;
}

.services-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.services-header p {
    font-size: 14px;
    margin: 0;
    color: var(--services-muted);
}

.category-strip {
    display: flex;
    gap: 26px;
    padding: 4px 0 14px;
    border-radius: 0;
    background: transparent;
    border: none;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
    overflow: visible;
}


.category-item {
    min-width: 120px;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 4px 4px 12px;
    text-decoration: none;
    border-radius: 16px;
    color: var(--services-ink);
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition: color 0.2s ease;
    position: relative;
}

.category-item:hover {
    transform: none;
    box-shadow: none;
}

.category-item.is-active {
    background: transparent;
    box-shadow: none;
    border: none;
}

.category-icon {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: transparent;
    font-size: 52px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.category-item.is-active .category-icon {
    background: transparent;
    color: inherit;
    border: none;
    box-shadow: none;
}

.category-item.is-active .category-label {
    color: #111827;
}

.category-item.is-active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: #111827;
    border-radius: 999px;
}

.category-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.filter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.services-divider {
    border-top: 1px solid #e5e7eb;
    margin: 14px 0 24px;
}

.search-form {
    display: flex;
    gap: 10px;
    background: var(--services-card);
    border: 1px solid var(--services-border);
    padding: 9px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(24, 32, 62, 0.08);
    width: 340px;
    max-width: 100%;
}

.search-form input[type="text"] {
    flex: 1;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-form button {
    border: none;
    background: var(--services-accent);
    color: var(--text-dark-blue, #32317c);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(36, 83, 214, 0.3);
}

.city-filter select {
    width: 200px;
    max-width: 100%;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--services-border);
    font-size: 14px;
    background: var(--services-card);
    color: var(--services-ink);
    box-shadow: 0 8px 16px rgba(24, 32, 62, 0.08);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.service-card {
    background: var(--services-card);
    border: 1px solid var(--services-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.service-image {
    display: block;
    height: 150px;
    overflow: hidden;
    background: #f0f2ff;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-image-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: #94a3b8;
}

.service-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tag {
    background: var(--services-accent-soft);
    color: var(--services-accent);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.service-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--services-ink);
    text-decoration: none;
}

.service-name:hover {
    color: var(--services-accent);
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--services-muted);
}

.no-services {
    text-align: center;
    padding: 40px 20px;
    color: var(--services-muted);
}

.no-services h3 {
    font-size: 16px;
    margin: 0 0 6px 0;
}

@media (max-width: 900px) {
    .filter-section {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .services-page {
        padding: 24px 16px 40px;
    }

    .category-strip {
        padding: 14px;
        gap: 14px;
    }
}
