/* Services Page Specific Styles */

/* Services Categories Badges */
.services-categories-badges {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    max-width: 600px;
    margin: 0 auto;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    white-space: nowrap;
}

.category-badge:hover,
.category-badge.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.badge-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.category-badge.active .badge-count {
    background: rgba(255, 255, 255, 0.3);
}
.services-categories {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.categories-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition-smooth);
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-2px);
}

/* Services Grid */
.services-grid {
    padding: 4rem 0;
    background: var(--background-light);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

/* Service Card Detailed */
.service-card-detailed {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    opacity: 1;
    transform: scale(1);
}

.service-card-detailed.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.service-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card-detailed:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 85, 48, 0.8) 0%,
        rgba(139, 69, 19, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card-detailed:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.service-card-detailed:hover .service-icon {
    transform: scale(1);
}

.service-content {
    padding: 2rem;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.service-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge.therapeutic {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.service-badge.wellness {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.service-badge.preventive {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.service-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-item i {
    color: var(--primary-color);
}

.service-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

.service-btn i {
    transition: var(--transition-smooth);
}

.service-btn:hover i {
    transform: translateX(5px);
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pricing-card.featured .pricing-header h3 {
    color: white;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0.25rem;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card.featured .period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.pricing-card.featured .pricing-features .feature {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-features .feature:last-child {
    border-bottom: none;
}

.pricing-features .feature i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.pricing-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.pricing-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.pricing-card.featured .pricing-btn {
    background: white;
    color: var(--primary-color);
}

.pricing-card.featured .pricing-btn:hover {
    background: var(--accent-color);
    color: white;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 10px;
}

.pricing-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: var(--background-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 1.5rem 2rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.service-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--accent-color);
    color: white;
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-categories-badges {
        padding: 1rem 0;
    }

    .badges-container {
        gap: 0.5rem;
        max-width: 100%;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
    }

    .category-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .badge-count {
        padding: 0.1rem 0.4rem;
        font-size: 0.7rem;
        min-width: 1.2rem;
    }
    .services-categories {
        position: static;
    }

    .categories-filter {
        display: flex;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .service-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
    
    .service-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .categories-filter {
        display: flex;
        gap: 0.75rem;
        padding: 0 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-height: 40px;
        flex-shrink: 0;
    }
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }

    .faq-answer p {
        padding: 1rem 1.5rem;
    }
}

/* Filter Animation */
.service-card-detailed {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-detailed.filtering {
    transform: scale(0.8);
    opacity: 0.3;
}

.service-card-detailed.show {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hover Effects */
.service-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card-detailed:hover::before {
    transform: scaleX(1);
}

/* Loading States */
.service-card-detailed.loading {
    pointer-events: none;
    opacity: 0.7;
}

.service-card-detailed.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
