/* ==============================================
   PÁGINAS DE SERVIÇO - ACQUA DETECT v2025
   Carrossel + Artigo + CTA
   ============================================== */

/* ============== HERO da página de serviço ============== */
.service-hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #001F3F 0%, #003D6B 50%, #0066B3 100%);
    color: var(--white);
    overflow: hidden;
}

/* Imagem de fundo do banner (desktop) */
.service-hero--agua,
.service-hero--manutencao,
.service-hero--esgoto {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.service-hero--agua {
    background-image:
        linear-gradient(135deg, rgba(0, 31, 63, 0.82) 0%, rgba(0, 61, 107, 0.72) 50%, rgba(0, 102, 179, 0.68) 100%),
        url('../assets/images/servicos/banner-agua.jpg');
}

.service-hero--manutencao {
    background-image:
        linear-gradient(135deg, rgba(0, 31, 63, 0.82) 0%, rgba(0, 61, 107, 0.72) 50%, rgba(0, 102, 179, 0.68) 100%),
        url('../assets/images/servicos/banner-manutencao.jpg');
}

.service-hero--esgoto {
    background-image:
        linear-gradient(135deg, rgba(0, 31, 63, 0.82) 0%, rgba(0, 61, 107, 0.72) 50%, rgba(0, 102, 179, 0.68) 100%),
        url('../assets/images/servicos/banner-esgoto.jpg');
}

/* Versão mobile do banner */
@media (max-width: 768px) {
    .service-hero--agua {
        background-image:
            linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 61, 107, 0.78) 50%, rgba(0, 102, 179, 0.72) 100%),
            url('../assets/images/servicos/banner-agua-mobile.jpg');
    }

    .service-hero--manutencao {
        background-image:
            linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 61, 107, 0.78) 50%, rgba(0, 102, 179, 0.72) 100%),
            url('../assets/images/servicos/banner-manutencao-mobile.jpg');
    }

    .service-hero--esgoto {
        background-image:
            linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 61, 107, 0.78) 50%, rgba(0, 102, 179, 0.72) 100%),
            url('../assets/images/servicos/banner-esgoto-mobile.jpg');
    }
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 180, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.service-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.service-hero-back:hover {
    color: var(--white);
    transform: translateX(-4px);
}

.service-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 180, 255, 0.15);
    border: 1px solid rgba(0, 180, 255, 0.35);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -1px;
    color: var(--white);
}

.service-hero-title .text-gradient {
    background: linear-gradient(135deg, #00B4FF 0%, #4ADE80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero-subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 28px;
}

.service-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============== CARROSSEL ============== */
.carousel-section {
    padding: 60px 0;
    background: var(--white);
}

.carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: var(--gray-100);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    background: linear-gradient(135deg, var(--primary-pale), rgba(0, 180, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide-placeholder {
    color: var(--primary);
    opacity: 0.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Setas */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
}

.carousel-nav:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-nav-prev {
    left: 16px;
}

.carousel-nav-next {
    right: 16px;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--primary-light);
}

/* Contador */
.carousel-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

/* ============== ARTIGO ============== */
.article-section {
    padding: 40px 0 80px;
    background: var(--white);
}

.article {
    max-width: 820px;
    margin: 0 auto;
}

.article h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    color: var(--gray-900);
    margin: 40px 0 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.article h2:first-child {
    margin-top: 0;
}

.article h3 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 14px;
    line-height: 1.3;
}

.article p {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 18px;
}

.article p strong {
    color: var(--gray-900);
    font-weight: 700;
}

.article ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article ul li {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-700);
}

.article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

/* ============== CTA INLINE NO ARTIGO ============== */
.article-cta {
    margin: 48px 0 0;
    padding: 36px;
    background: linear-gradient(135deg, var(--primary-pale) 0%, rgba(0, 180, 255, 0.05) 100%);
    border: 1px solid rgba(0, 102, 179, 0.15);
    border-radius: var(--radius-xl);
    text-align: center;
}

.article-cta h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.article-cta p {
    margin-bottom: 20px;
    color: var(--gray-700);
}

/* ============== BENEFITS BAR ============== */
.service-benefits {
    padding: 60px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.service-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-benefit {
    text-align: center;
    padding: 20px;
}

.service-benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

.service-benefit h4 {
    font-size: 16px;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-weight: 700;
}

.service-benefit p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ============== RESPONSIVO ============== */
@media (max-width: 900px) {
    .service-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .carousel-section {
        padding: 40px 0;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-prev { left: 10px; }
    .carousel-nav-next { right: 10px; }

    .article-section {
        padding: 30px 0 60px;
    }

    .article-cta {
        padding: 24px 20px;
    }

    .service-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .service-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

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

    .article p,
    .article ul li {
        font-size: 15.5px;
    }
}
