/* =============================================
   ServiceNeeds — Services Page Styles
   ============================================= */

/* ---- Filter Tabs ---- */
.services-full {
    padding: var(--section-padding);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    padding: 0;
    background: transparent;
    border: none;
}

.filter-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-secondary);
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    max-width: 120px;
    text-align: center;
}

.filter-btn img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-btn:hover {
    color: var(--clr-text-primary);
    background: transparent;
    border-color: transparent;
}

.filter-btn:hover img {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background: transparent;
    color: var(--clr-primary);
    border-color: transparent;
    box-shadow: none;
    font-weight: 600;
}

.filter-btn.active img {
    border: 2px solid var(--clr-primary);
    filter: none;
    opacity: 1;
}

/* ---- Services Main Grid ---- */
.services-main-grid {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 12px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    max-width: 900px;
    margin: 0 auto;
}

.svc-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.svc-card:last-child {
    border-bottom: none;
}

.svc-card.hidden {
    display: none;
}

.svc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.svc-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.svc-price {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 12px;
}

.svc-price b {
    color: #000;
}

.price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 400;
    margin-right: 6px;
}

.price-discount {
    color: #0f766e;
    font-weight: 700;
    font-size: 1rem;
}

.price-range {
    color: #0f766e;
    font-weight: 700;
    font-size: 1rem;
}

.svc-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.view-details {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.view-details:hover {
    text-decoration: underline;
}

.svc-media {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 12px;
}

.svc-media img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: -16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.add-btn {
    background: #fff;
    color: #0f766e;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 6px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    z-index: 2;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-btn:hover {
    background: #f0fdfa;
    border-color: #ccfbf1;
}

.options-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
}

/* ---- How It Works ---- */
.how-section {
    padding: var(--section-padding);
    background: var(--clr-dark-2);
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: center;
}

.how-step {
    text-align: center;
    padding: 28px 20px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.how-step h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.how-step p {
    color: var(--clr-text-secondary);
    font-size: 0.83rem;
    line-height: 1.6;
}

.how-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), transparent);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .how-connector {
        display: none;
    }
}

@media (max-width: 640px) {
    .services-main-grid {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 8px;
        justify-items: center;
    }

    .filter-btn {
        max-width: 100%;
        width: 100%;
        font-size: 0.75rem;
        gap: 8px;
    }

    .filter-btn img {
        width: 100%;
        max-width: 70px;
        height: auto;
        aspect-ratio: 1;
        padding: 10px;
    }

    /* ---- Services Card Mobile Fixes ---- */
    .services-main-grid {
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }

    .svc-card {
        gap: 16px;
        padding: 20px 0;
    }

    .svc-info h3 {
        font-size: 1.05rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .svc-price {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .svc-desc {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .view-details {
        font-size: 0.85rem;
    }

    .svc-media {
        width: 100px;
        padding-bottom: 0px;
    }

    .svc-media img {
        width: 100px;
        height: 100px;
        margin-bottom: -16px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .add-btn {
        padding: 6px 20px;
        font-size: 0.85rem;
        border: 1px solid #ccfbf1;
        border-radius: 8px;
        color: #0f766e;
    }

    .options-text {
        font-size: 0.7rem;
        margin-top: 4px;
    }
}