/* Services Page Styles */

/* Services Hero Section */
.services-hero {
    position: relative;
    padding: 140px 0;
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-gray);
    text-align: center;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/hero/hero-services-desktop.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.webp .services-hero::before {
    background-image: url('/images/hero/hero-services-desktop.webp');
}

.services-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.services-hero .container {
    position: relative;
    z-index: 10;
}

.services-hero .hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-hero .hero-description {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Services Overview */
.services-overview {
    padding: 50px 0 80px;
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-detail-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary-color);
}

.service-detail-card .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.service-detail-card:hover .service-icon {
    opacity: 1;
}

.web-design-icon {
    background-image: url('/images/icons/web-design.svg');
}

.responsive-icon {
    background-image: url('/images/icons/responsive.svg');
}

.ecommerce-icon {
    background-image: url('/images/icons/ecommerce.svg');
}

.seo-icon {
    background-image: url('/images/icons/seo.svg');
}

.service-detail-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.service-summary {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin: 1.5rem auto;
    text-align: left;
    display: table;
}

.service-features li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--medium-gray);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Additional Services */
.additional-services {
    padding: 50px 0 80px;
    background-color: var(--white);
    border-bottom: 2px solid var(--accent-color);
}

.additional-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.additional-service-card {
    flex: 1 1 340px;
    max-width: 400px;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.additional-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.additional-service-card .service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.maintenance-icon {
    background-image: url('/images/icons/maintenance.svg');
}

.hosting-icon {
    background-image: url('/images/icons/hosting.svg');
}

.content-icon {
    background-image: url('/images/icons/content.svg');
}

.additional-service-card h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.additional-service-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Process Section */
.our-process {
    padding: 50px 0 20px;
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--accent-color);
}

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

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    z-index: 1;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
    text-align: right;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 2rem;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.step-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 300px;
}

.step-content h3 {
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Pricing Section */
.current-pricing {
    padding: 50px 0 80px;
    background-color: var(--white);
    border-bottom: 2px solid var(--accent-color);
}

.pricing-content {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-highlight {
    text-align: center;
    margin-bottom: 4rem;
}

.current-rate {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 126, 110, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-rate:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 126, 110, 0.4);
}

.rate-label {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.rate-value {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-explanation {
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card {
    padding: 3rem;
}

.pricing-card h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.pricing-card h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.pricing-card > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    text-align: left;
}

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

.ph-adjust {
    margin-top: 2rem !important;
}

.highlight-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.ph-adjust .highlight-item:nth-child(1) {
    border-left-color: var(--secondary-color);
}

.ph-adjust .highlight-item:nth-child(1):hover {
    border-left-color: var(--primary-color);
}

.ph-adjust .highlight-item:nth-child(2) {
    border-left-color: var(--accent-color);
}

.ph-adjust .highlight-item:nth-child(2):hover {
    border-left-color: var(--primary-color);
}

.highlight-item h4 {
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-item p {
    color: var(--medium-gray);
    line-height: 1.7;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 50px 0 70px;
    background-color: var(--light-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Services CTA */
.services-cta {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.services-cta .cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.services-cta .cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

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

.services-cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.services-cta .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.services-cta .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Responsive Design */
@media (max-width: 1067px) {
    .services-hero::before {
        background-image: url('/images/hero/hero-services-tablet.jpg');
    }

    .webp .services-hero::before {
        background-image: url('/images/hero/hero-services-tablet.webp');
    }
}

@media (max-width: 800px) {
    .services-hero::before {
        background-image: url('/images/hero/hero-services-mobile.jpg');
    }

    .webp .services-hero::before {
        background-image: url('/images/hero/hero-services-mobile.webp');
    }
}

@media (max-width: 860px) {
    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        flex-direction: row !important;
    }

    .process-step:nth-child(even) .step-content {
        text-align: left;
    }

    .step-number {
        margin: 0 2rem 0 0;
    }

    .step-content {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .services-hero .hero-title {
        font-size: 2.5rem;
    }

    .services-hero .hero-description {
        font-size: 1.1rem;
    }

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

    .service-detail-card {
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
    }
    
    .additional-services-grid {
        flex-direction: column;
    }
    
    .additional-service-card {
        flex: none;
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
    }

    .current-rate {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem 2rem;
        text-align: center;
    }

    .rate-label {
        font-size: 1.2rem;
    }

    .rate-value {
        font-size: 2.8rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .pricing-card h3 {
        font-size: 1.8rem;
    }

    .pricing-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlight-item {
        padding: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .services-cta .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 120px 0 80px;
    }

    .services-hero .hero-title {
        font-size: 2rem;
    }

    .service-detail-card {
        padding: 2rem 1.5rem;
    }

    .additional-service-card {
        padding: 1.5rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .current-rate {
        padding: 1.2rem 1.5rem;
    }

    .rate-value {
        font-size: 2.4rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card h3 {
        font-size: 1.6rem;
    }

    .highlight-item {
        padding: 1.2rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }

    .services-cta .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Focus Management for Services Page */

.services-cta .btn-primary:focus-visible,
.services-cta .btn-secondary:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(215, 192, 151, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .current-rate:hover,
    .highlight-item:hover {
        transition: none;
        transform: none;
    }
}