/* ==========================================================================
   SFM Services Page Styles
   Clean, professional service presentation
   ========================================================================== */

/* Services Page Specific Variables */
:root {
    --service-gradient: linear-gradient(135deg, rgba(11, 93, 42, 0.08), rgba(244, 196, 48, 0.03));
    --service-shadow: 0 8px 25px rgba(11, 93, 42, 0.08);
    --service-image-radius: 12px;
    --category-active: #0b5d2a;
}

/* Services Hero Section */
.services-hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: var(--service-gradient);
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%230b5d2a" opacity="0.03"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"/></svg>');
    background-size: cover;
    z-index: 0;
}

.services-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.services-hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.services-hero-text .page-title {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.services-hero-text .page-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.services-hero-text .hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
}

.services-hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.services-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--service-image-radius);
    box-shadow: var(--service-shadow);
    border: 1px solid rgba(11, 93, 42, 0.1);
    transition: transform var(--transition-medium);
}

.services-hero-image:hover img {
    transform: translateY(-5px);
}

.services-hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: var(--service-image-radius);
    z-index: -1;
    opacity: 0.3;
}

/* Service Detail Sections */
.service-detail {
    scroll-margin-top: 100px;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.service-image {
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--service-image-radius);
    box-shadow: var(--service-shadow);
    border: 1px solid rgba(11, 93, 42, 0.1);
    transition: transform var(--transition-medium);
}

.service-image:hover img {
    transform: scale(1.02);
}

.service-info {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--medium-gray);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

.service-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* Service Features */
.service-features {
    margin-bottom: 2.5rem;
}

.features-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.6;
    padding: 0.5rem 0;
}

.features-list i {
    color: var(--primary-color);
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

/* Service CTA */
.service-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Services CTA Section */
.cta-services {
    background: var(--gradient-premium);
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.cta-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-title::after {
    display: none;
}

.cta-text {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

/* Animations */
@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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-hero-content,
    .service-detail-content {
        gap: 3rem;
    }
    
    .services-hero-text .page-title {
        font-size: 3rem;
    }
    
    .service-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding-top: 7rem;
    }
    
    .services-hero-content,
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-detail-content.reverse {
        direction: ltr;
    }
    
    .services-hero-text {
        text-align: center;
    }
    
    .services-hero-text .page-title {
        font-size: 2.5rem;
    }
    
    .services-hero-text .page-subtitle {
        font-size: 1.3rem;
    }
    
    .services-hero-image img,
    .service-image img {
        height: 300px;
    }
    
    .services-categories {
        gap: 1rem;
    }
    
    .service-category {
        min-width: 100px;
        padding: 1rem 0.5rem;
    }
    
    .service-category i {
        font-size: 2rem;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .package-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .services-hero-text .page-title {
        font-size: 2rem;
    }
    
    .services-hero-text .page-subtitle {
        font-size: 1.1rem;
    }
    
    .services-hero-text .hero-description {
        font-size: 1rem;
    }
    
    .services-hero-image img,
    .service-image img {
        height: 250px;
    }
    
    .service-category {
        min-width: 80px;
        padding: 0.8rem 0.3rem;
    }
    
    .service-category i {
        font-size: 1.8rem;
    }
    
    .service-category span {
        font-size: 0.9rem;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .service-tagline {
        font-size: 1.1rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .features-list li {
        font-size: 1rem;
    }
    
    .package-card {
        padding: 2rem 1.5rem;
    }
    
    .package-name {
        font-size: 1.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
}

/* Section Entrance Animations */
.services-hero,
.services-nav,
.service-detail,
.service-packages,
.cta-services {
    opacity: 0;
    animation: sectionReveal 0.8s ease forwards;
}

.services-nav {
    animation-delay: 0.1s;
}

#housekeeping {
    animation-delay: 0.2s;
}

#gardening {
    animation-delay: 0.3s;
}

#office-management {
    animation-delay: 0.4s;
}

#laundry {
    animation-delay: 0.5s;
}

#carpentry {
    animation-delay: 0.6s;
}

.service-packages {
    animation-delay: 0.7s;
}

.cta-services {
    animation-delay: 0.8s;
}

@keyframes sectionReveal {
    to {
        opacity: 1;
    }
}

/* Image Loading Animation */
.services-hero-image img,
.service-image img {
    opacity: 0;
    animation: imageReveal 0.8s ease 0.3s forwards;
}

@keyframes imageReveal {
    to {
        opacity: 1;
    }
}