/**
 * Services Section Styles
 * ServiceMates Theme
 */

/* Section Container */
.section-services {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* Header Styles */
.sm-services-header {
    text-align: center;
    margin-bottom: 50px;
}

.sm-services-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color, #f93) 0%, var(--secondary-color, #FF5326) 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.sm-services-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.sm-services-subtitle {
    font-size: 17px;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.sm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .sm-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .sm-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sm-services-title {
        font-size: 28px;
    }
    
    .section-services {
        padding: 50px 0;
    }
}

/* Service Card */
.sm-service-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.08s);
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #f93);
}

.sm-service-link {
    display: flex;
    align-items: center;
    padding: 24px;
    text-decoration: none;
    gap: 20px;
    position: relative;
}

/* Service Icon */
.sm-service-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(255, 83, 38, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sm-service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary-color, #f93);
    transition: all 0.3s ease;
}

.sm-service-card:hover .sm-service-icon {
    background: linear-gradient(135deg, var(--primary-color, #f93) 0%, var(--secondary-color, #FF5326) 100%);
    transform: rotate(8deg) scale(1.05);
}

.sm-service-card:hover .sm-service-icon svg {
    color: #fff;
}

/* Service Content */
.sm-service-content {
    flex: 1;
    min-width: 0;
}

.sm-service-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.sm-service-card:hover .sm-service-title {
    color: var(--primary-color, #f93);
}

.sm-service-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service Arrow */
.sm-service-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.sm-service-arrow svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.sm-service-card:hover .sm-service-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary-color, #f93);
}

.sm-service-card:hover .sm-service-arrow svg {
    color: #fff;
}

/* View All Button */
.sm-services-footer {
    text-align: center;
}

.sm-services-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--primary-color, #f93);
    color: var(--primary-color, #f93);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.sm-services-view-all svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.sm-services-view-all:hover {
    background: linear-gradient(135deg, var(--primary-color, #f93) 0%, var(--secondary-color, #FF5326) 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.3);
}

.sm-services-view-all:hover svg {
    transform: translateX(4px);
}

/* Dark Mode / Parallax Background Support */
.section-services.has-bg {
    background: transparent;
}

.section-services.light .sm-services-title {
    color: #fff;
}

.section-services.light .sm-services-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.section-services.light .sm-service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ==========================================
   Footer Social & Citation Links
   ========================================== */

/* Social Icons Container */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Individual Social Icon */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* Platform-specific colors on hover */
.social-facebook:hover {
    background: #1877f2;
}

.social-twitter:hover {
    background: #1da1f2;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-yelp:hover {
    background: #d32323;
}

.social-google:hover {
    background: #4285f4;
}

.social-linkedin:hover {
    background: #0077b5;
}

.social-youtube:hover {
    background: #ff0000;
}

.social-pinterest:hover {
    background: #bd081c;
}

/* Citation Links Container */
.footer-citations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.citations-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Citation Link */
.citation-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.citation-link:hover {
    background: var(--primary-color, #f93);
    color: #fff;
    transform: translateY(-2px);
}

/* Platform-specific styles */
.citation-yellowpages:hover {
    background: #ffcc00;
    color: #000;
}

.citation-bbb:hover {
    background: #005a8e;
}

.citation-angi:hover {
    background: #ff6138;
}

.citation-homeadvisor:hover {
    background: #f68b1e;
}

.citation-thumbtack:hover {
    background: #009fd9;
}

.citation-nextdoor:hover {
    background: #8bc53f;
}

.citation-houzz:hover {
    background: #7ac142;
}

/* Responsive */
@media (max-width: 767px) {
    .footer-social {
        justify-content: center;
    }
    
    .footer-citations {
        justify-content: center;
        text-align: center;
    }
    
    .citations-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

