/* ==========================================================================
   Service Detail Page Styles
   ========================================================================== */

/* Service Hero */
.service-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.service-hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 20px;
    line-height: 1.1;
}

.service-hero-desc {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 32px;
}

.service-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.service-hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.service-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.service-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, transparent 60%);
}

/* Features Grid */
.service-features {
    padding: 80px 0;
    background: var(--bg-alt);
}

.service-features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-features .feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}

.service-features .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.service-features .feature-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-features .feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-features .feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Benefits & Process */
.service-content {
    padding: 80px 0;
}

.service-content .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.benefits-box,
.process-box {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius);
}

.benefits-box h2,
.process-box h2 {
    font-size: 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefits-box h2 i,
.process-box h2 i {
    color: var(--accent);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: var(--success);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-step-num {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step-content h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.process-step-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* FAQ Section */
.service-faq {
    padding: 80px 0;
    background: var(--bg-alt);
}

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

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    padding: 24px 28px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--accent);
}

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

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 28px 24px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    text-align: center;
}

.service-cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.service-cta p {
    opacity: 0.9;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--accent);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
    background: #25d366;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* Service Locations */
.service-locations {
    padding: 80px 0;
    background: #f8fafc;
}

.service-locations .locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Other Services */
.other-services {
    padding: 80px 0;
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.other-service-card {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.other-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.other-service-card i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 20px;
}

.other-service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.other-service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.other-service-card .link-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.other-service-card:hover .link-text i {
    transform: translateX(4px);
}

.other-service-card .link-text i {
    transition: transform 0.3s;
}

/* Footer Compact */
.footer-compact {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .logo img {
    height: 48px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom-compact {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom-compact p {
    opacity: 0.6;
    font-size: 14px;
}

/* Section Title */
.section-title {
    font-size: clamp(28px, 3.5vw, 36px);
    text-align: center;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-alt);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-hero-image {
        order: -1;
    }

    .service-hero-image img {
        height: 300px;
    }

    .service-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .other-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 100px 0 60px;
    }

    .service-hero-content h1 {
        font-size: 32px;
    }

    .service-hero-desc {
        font-size: 16px;
    }

    .service-hero-cta {
        flex-direction: column;
    }

    .service-hero-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .service-hero-image img {
        height: 220px;
    }

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

    .service-features .feature-card {
        padding: 24px 20px;
    }

    .service-features,
    .service-content,
    .service-faq,
    .other-services {
        padding: 50px 0;
    }

    .benefits-box,
    .process-box {
        padding: 28px;
    }

    .other-services-grid {
        grid-template-columns: 1fr;
    }

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

    .service-cta .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .service-locations .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-locations .locations-grid {
        grid-template-columns: 1fr;
    }
}
