/* ─── services.css ──────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.svc-hero {
    position: relative;
    background: linear-gradient(150deg, var(--teal-xl) 0%, var(--teal-d) 55%, var(--teal) 100%);
    padding: 72px 24px 80px;
    overflow: hidden;
    text-align: center;
    border-radius: 0 0 48px 48px;
}
.svc-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.svc-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.6px;
    margin-bottom: 10px;
    line-height: 1.15;
}
[dir="rtl"] .svc-hero-title { letter-spacing: 0; }
.svc-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Search form */
.svc-search-form { width: 100%; }
.svc-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
[dir="rtl"] .svc-search-wrap { padding: 6px 18px 6px 6px; }
.svc-search-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.svc-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    min-width: 0;
}
.svc-search-input::placeholder { color: var(--muted); }
.svc-search-btn {
    flex-shrink: 0;
    padding: 11px 24px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--t);
    white-space: nowrap;
}
.svc-search-btn:hover { background: var(--teal-d); }

/* Decorative orbs */
.svc-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}
.svc-hero-orb-1 { width: 320px; height: 320px; background: rgba(217,112,61,.22); top: -80px; right: -60px; }
.svc-hero-orb-2 { width: 260px; height: 260px; background: rgba(255,255,255,.06); bottom: -60px; left: -60px; }

/* ══════════════════════════════════════════════════════
   BROWSE SECTION
══════════════════════════════════════════════════════ */
.svc-browse { padding: 0 0 64px; background: var(--bg); }

/* ── Category rows ──────────────────────────────────────────────────────────── */
.svc-cats-row {
    padding: 24px 0 0;
}
.svc-l2-row, .svc-l3-row {
    padding: 12px 0 0;
    animation: catRowIn .2s ease;
}
@keyframes catRowIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.svc-subcats-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 10px;
    padding: 0 2px;
}
.svc-subcats-label--l3 { color: var(--teal); }

/* Horizontal scroll container */
.svc-cats-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.svc-cats-scroll::-webkit-scrollbar { display: none; }

/* Pills */
.svc-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease),
                color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.svc-cat-pill:hover {
    border-color: var(--teal);
    background: rgba(46,124,133,.05);
    color: var(--teal);
}
.svc-cat-pill--active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 4px 14px rgba(46,124,133,.28);
}
.svc-cat-pill--active:hover { background: var(--teal-d); border-color: var(--teal-d); }

/* L2 pills - slightly smaller */
#svcL2 .svc-cat-pill, #svcL3 .svc-cat-pill {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 99px;
}

.svc-cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.svc-cat-pill--active .svc-cat-dot { background: rgba(255,255,255,.7) !important; }

/* ── Filter bar ─────────────────────────────────────────────────────────────── */
.svc-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.svc-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    min-width: 80px;
}

.svc-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.svc-filter-item {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    padding: 7px 12px;
    background: var(--bg);
    transition: border-color var(--t);
}
.svc-filter-item:focus-within { border-color: var(--teal); }
.svc-filter-item svg { color: var(--muted); flex-shrink: 0; }
.svc-filter-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    padding-inline-end: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}
[dir="rtl"] .svc-filter-select {
    background-position: left 0 center;
    padding-inline-end: 0;
    padding-inline-start: 16px;
}

/* ══════════════════════════════════════════════════════
   SERVICE GRID & CARDS
══════════════════════════════════════════════════════ */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Card */
.service-card {
    background: var(--bg);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--t), box-shadow var(--t), transform .25s var(--ease);
}
.service-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 32px rgba(46,124,133,.14);
    transform: translateY(-4px);
}

/* Thumbnail */
.sc-thumb { height: 172px; position: relative; overflow: hidden; flex-shrink: 0; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.service-card:hover .sc-thumb img { transform: scale(1.05); }
.sc-thumb-bg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.sc-thumb-bg svg { width: 48px; height: 48px; color: rgba(255,255,255,.55); }

/* Featured badge */
.sc-badge {
    position: absolute;
    top: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--orange);
    color: #fff;
}
[dir="ltr"] .sc-badge { right: 10px; }
[dir="rtl"] .sc-badge { left: 10px; }

/* Body */
.sc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }

/* Provider row */
.sc-provider { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sc-avatar {
    width: 28px; height: 28px;
    border-radius: 6px;
    object-fit: cover;
    font-size: 11px; font-weight: 700; color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.sc-provider-name { font-size: 12px; font-weight: 600; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-verified {
    display: flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; color: var(--teal);
}
.sc-verified svg { width: 11px; height: 11px; }
.sc-level {
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px;
    background: rgba(46,124,133,.10);
    color: var(--teal);
    white-space: nowrap;
    flex-shrink: 0;
}
.sc-level--expert { background: rgba(217,112,61,.10); color: var(--orange); }

/* Title */
.sc-title {
    font-size: 14px; font-weight: 600; color: var(--text);
    line-height: 1.45; margin-bottom: 10px; flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating + city row */
.sc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.sc-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text); }
.sc-stars { color: #F59E0B; font-size: 11px; }
.sc-count { color: var(--muted); font-weight: 400; }
.sc-city { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.sc-city svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Footer */
.sc-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--border); gap: 8px;
}
.sc-price { line-height: 1.3; }
.sc-price-from { font-size: 11px; color: var(--muted); }
.sc-price-val { font-size: 17px; font-weight: 800; color: var(--text); }
.sc-price-unit { font-size: 11px; color: var(--muted); }
.sc-hire {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px; font-weight: 700; font-family: inherit;
    background: var(--teal); color: #fff;
    border: none; cursor: pointer;
    transition: background var(--t), transform var(--t);
    white-space: nowrap;
    flex-shrink: 0;
}
.sc-hire:hover { background: var(--teal-d); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════
   SKELETON LOADING
══════════════════════════════════════════════════════ */
.svc-skeleton {
    background: var(--bg);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    overflow: hidden;
}
.svc-skeleton-thumb {
    height: 172px;
    background: linear-gradient(90deg, var(--bg2) 25%, #eee 50%, var(--bg2) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
.svc-skeleton-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.svc-skeleton-line {
    height: 12px; border-radius: 6px;
    background: linear-gradient(90deg, var(--bg2) 25%, #eee 50%, var(--bg2) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
.svc-skeleton-line--sm { width: 55%; }
.svc-skeleton-line--md { width: 70%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
[dir="rtl"] .svc-skeleton-thumb,
[dir="rtl"] .svc-skeleton-line { animation-direction: reverse; }

/* ══════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════ */
.svc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
}
.svc-empty-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--muted);
}
.svc-empty h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.svc-empty p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   SPINNER (reused on load-more button)
══════════════════════════════════════════════════════ */
.btn-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════
   LOAD MORE
══════════════════════════════════════════════════════ */
.svc-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.svc-load-more-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 36px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    background: var(--bg);
    color: var(--text);
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer;
    transition: border-color var(--t), background var(--t), color var(--t), box-shadow var(--t);
}
.svc-load-more-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(46,124,133,.04);
    box-shadow: 0 4px 16px rgba(46,124,133,.12);
}

/* ══════════════════════════════════════════════════════
   RTL
══════════════════════════════════════════════════════ */
[dir="rtl"] .svc-hero-title { letter-spacing: 0; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .svc-hero { padding: 56px 20px 64px; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
    .svc-hero { padding: 44px 16px 52px; }
    .svc-hero-sub { font-size: 14px; }
    .svc-search-wrap { padding: 5px 5px 5px 14px; }
    [dir="rtl"] .svc-search-wrap { padding: 5px 14px 5px 5px; }
    .svc-search-btn { padding: 10px 16px; font-size: 13px; }
    .svc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .sc-thumb { height: 140px; }
    .svc-filter-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-filter-controls { width: 100%; }
    .svc-filter-item { flex: 1; }
}
