/* Services Pages Styles */

/* Hero Section - Services */
.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.5) 0%, rgba(46, 125, 50, 0.55) 100%),
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover;
    margin-top: 0;
    font-family: var(--font-secondary);
}

/* Payroll specific hero */
.payroll-hero {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.5) 0%, rgba(21, 101, 192, 0.55) 100%),
                url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover;
}

/* Recruitment specific hero */
.recruitment-hero {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.5) 0%, rgba(123, 31, 162, 0.55) 100%),
                url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-4.0.3&auto=format&fit=crop&w=1469&q=80') center/cover;
}

/* Dark Overlay */
.service-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Grid Overlay */
.service-hero .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(76, 175, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 175, 80, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
}

/* Accent Lines */
.service-hero .accent-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.5), transparent);
    z-index: 3;
}

.service-hero .line-1 {
    top: 20%;
    left: 0;
    width: 100%;
    height: 2px;
    animation: lineSlide 3s ease-in-out infinite;
}

.service-hero .line-2 {
    top: 60%;
    left: 0;
    width: 100%;
    height: 2px;
    animation: lineSlide 3s ease-in-out infinite reverse;
}

@keyframes lineSlide {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Content */
.service-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    padding: 0 40px;
}

.service-hero .beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.5);
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease-out;
}

.service-hero .beta-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

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

.service-hero .hero-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: white;
    font-family: var(--font-secondary);
    animation: heroTitleFadeIn 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
    font-size: clamp(32px, 5vw, 52px);
}

.service-hero .hero-title .highlight {
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
}

.service-hero .hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #22c55e 0%, #ef4444 100%);
}

@keyframes heroTitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-hero .hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    font-family: var(--font-secondary);
    animation: heroSubtitleFadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(30px);
    font-size: clamp(16px, 2.5vw, 19px);
}

@keyframes heroSubtitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header .lead {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* Service Overview Section */
.service-overview {
    padding: 100px 0;
    background: white;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.overview-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.2);
}

.overview-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(239, 83, 80, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.overview-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-red));
    transform: scale(1.1) rotate(10deg);
}

.overview-card .card-icon i {
    font-size: 2.5rem;
    color: var(--primary-green);
    transition: all 0.4s ease;
}

.overview-card:hover .card-icon i {
    color: white;
}

.overview-card h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.overview-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-text);
}

/* Process Timeline Section */
.service-process {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-red));
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-red));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.process-step:hover .step-number {
    transform: scale(1.15);
}

.step-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.process-step:hover .step-content {
    border-color: var(--primary-green);
    transform: translateX(10px);
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.15);
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-text);
}

/* Service Features Section */
.service-features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(239, 83, 80, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-red));
    transform: scale(1.1) rotate(10deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-green);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-text);
}

/* Service Benefits Section */
.service-benefits {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.15);
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(239, 83, 80, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.benefit-item:hover .benefit-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-red));
    transform: rotate(-10deg) scale(1.1);
}

.benefit-icon i {
    font-size: 1.8rem;
    color: var(--primary-green);
    transition: all 0.4s ease;
}

.benefit-item:hover .benefit-icon i {
    color: white;
}

.benefit-item h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);
}

/* Service Packages Section */
.service-packages {
    padding: 100px 0;
    background: white;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.package-card.featured {
    border-color: var(--primary-green);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.2);
    transform: scale(1.05);
}

.package-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.2);
}

.package-card.featured:hover {
    transform: scale(1.08);
}

.package-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-red));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.package-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.package-header h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.package-desc {
    font-size: 1rem;
    color: var(--light-text);
}

.package-features {
    list-style: none;
    padding: 0;
}

.package-features li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--light-text);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* CTA Section */
.service-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95) 0%, rgba(67, 160, 71, 0.95) 100%),
                url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1974&q=80') center/cover fixed;
    text-align: center;
    color: white;
    position: relative;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

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

.service-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-cta .lead {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 10px 40px rgba(239, 83, 80, 0.4);
}

.btn-primary:hover {
    background: #B71C1C;
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(239, 83, 80, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero {
        min-height: 55vh;
    }

    .service-hero .hero-content {
        padding: 0 20px;
    }

    .service-hero .beta-badge {
        font-size: 11px;
        padding: 6px 16px;
    }

    .service-hero .hero-title {
        margin-bottom: 20px;
        letter-spacing: -1px;
    }

    .service-hero .hero-subtitle {
        line-height: 1.6;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .overview-grid,
    .features-grid,
    .benefits-grid,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        gap: 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .service-cta h2 {
        font-size: 2rem;
    }

    .service-cta .lead {
        font-size: 1.1rem;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .service-hero {
        min-height: 50vh;
    }

    .service-hero .hero-content {
        padding: 0 15px;
    }

    .service-hero .beta-badge {
        font-size: 10px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .service-hero .hero-title {
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }

    .service-hero .hero-subtitle {
        line-height: 1.5;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .overview-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }

    .process-step {
        flex-direction: column;
    }

    .process-timeline::before {
        display: none;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto;
    }
}
