﻿/* service.css  estilos específicos da página Services */

/* ======================================== */
/* BASE E ESTABILIDADE DE RENDERIZAÇÃO      */
/* ======================================== */
html,
body {
    background: #050608;
}

/* Ajuda a evitar “faixa cinza” em scroll rápido, forçando composição estável */
.services-feature-card,
.services-section-inner,
.index-cta-content,
.news-hero,
.news-hero-bg-fill,
.news-hero-bg-image,
.news-hero-bg-gradient,
.news-hero-overlay,
.particles-container {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ======================================== */
/* CORPO PRINCIPAL SERVICES                 */
/* ======================================== */
.services-main {
    background: radial-gradient(900px 260px at 20% -40%, rgba(199,204,214,0.05), transparent 60%), linear-gradient(180deg, var(--footer-bg-start), var(--footer-bg-end));
    border-top: 1px solid var(--edge-line);
}

/* Ajuste do hero somente para a página de serviços */
.services-hero .hero-title-band {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.services-hero .hero-title-band-text {
    font-size: clamp(1.9rem, 3.1vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-primary);
    white-space: normal;
    text-align: center;
}

.services-section {
    padding: 5rem 0;
}

.services-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(12, 17, 24, 0.92);
    border-radius: 18px;
    border: 1px solid var(--edge-line);
    padding: 3rem 3.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.services-section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.services-section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* ======================================== */
/* GRID DE FEATURES COM IMAGENS             */
/* ======================================== */
.services-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.services-feature-card {
    background: linear-gradient(145deg, var(--card-bg), #0C121B);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    /* Sugestões para reduzir “faixa cinza” no scroll rápido */
    will-change: transform;
    contain: paint;
    /* Sombra um pouco menos pesada, reduz custo de pintura */
    box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

.services-feature-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    /* Placeholder sólido, evita “buraco” durante decode ou repaint */
    background: #0c0d10;
}

    .services-feature-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.services-feature-body {
    padding: 2rem 2rem 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.services-feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    line-height: 1.3;
}

.services-feature-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.services-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .services-feature-list li {
        color: var(--text-light);
        line-height: 1.6;
        font-size: 0.95rem;
        padding: 0.4rem 0;
        position: relative;
        padding-left: 1.5rem;
    }

        .services-feature-list li:before {
            content: "•";
            color: var(--brand-red);
            font-weight: bold;
            position: absolute;
            left: 0;
            top: 0.4rem;
        }

/* Hover */
.services-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 46px rgba(0,0,0,0.55);
}

    .services-feature-card:hover .services-feature-image img {
        transform: scale(1.08);
    }

/* ======================================== */
/* DIVISOR E CTA  REUTILIZADO DO INDEX      */
/* ======================================== */
.index-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.35) 80%, transparent 100%);
    opacity: 0.9;
}

.index-section {
    padding: 5rem 0;
}

.index-cta {
    background: radial-gradient(900px 260px at 80% -40%, rgba(227,30,36,0.15), transparent 60%), linear-gradient(180deg, var(--nav-bg-start), var(--nav-bg-end));
    border-top: 1px solid var(--edge-line);
}

.index-cta-content {
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(227,30,36,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid var(--edge-line);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    backdrop-filter: blur(10px);
}

.index-cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.index-cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.index-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Botões base, caso index.css não esteja carregado em testes isolados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: "Ebrima", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

    .btn i {
        font-size: 1rem;
    }

.btn-primary {
    background: var(--brand-red);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(227,30,36,0.35);
}

    .btn-primary:hover {
        background: #C41A20;
        transform: translateY(2px);
        box-shadow: 0 8px 24px rgba(227,30,36,0.45);
    }

.btn-outline {
    background: transparent;
    border: 1px solid var(--edge-line);
    color: var(--text-primary);
}

    .btn-outline:hover {
        border-color: rgba(255,255,255,0.6);
        color: var(--brand-red);
        box-shadow: 0 5px 18px rgba(227,30,36,0.2);
    }

/* ======================================== */
/* MELHORIA EXTRA  DESATIVAR TRANSIÇÕES      */
/* QUANDO O BODY RECEBER .is-scrolling       */
/* ======================================== */
body.is-scrolling * {
    transition: none !important;
}

/* ======================================== */
/* RESPONSIVO                               */
/* ======================================== */
@media (max-width: 1024px) {
    .services-section-inner {
        padding: 2.5rem 2.25rem;
    }

    .services-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .index-cta-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .index-cta-actions {
        width: 100%;
    }

    .index-cta-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .services-section-inner {
        padding: 2.2rem 1.75rem;
    }

    .services-feature-body {
        padding: 1.75rem 1.5rem 2rem 1.5rem;
    }

    .services-feature-image {
        height: 200px;
    }

    .index-cta-content {
        padding: 2.5rem 1.75rem;
    }

    .services-section-title {
        font-size: 1.8rem;
    }

    .services-section-description,
    .index-cta-subtitle {
        font-size: 1rem;
    }

    .services-hero .hero-title-band-text {
        font-size: 1.7rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 480px) {
    .services-features-grid {
        grid-template-columns: 1fr;
    }

    .services-section-inner {
        padding: 2rem 1.25rem;
    }

    .services-feature-body {
        padding: 1.5rem 1.25rem 1.75rem 1.25rem;
    }

    .services-feature-image {
        height: 180px;
    }

    .index-cta-content {
        padding: 2rem 1.25rem;
    }

    .services-hero .hero-title-band-text {
        font-size: 1.45rem;
        letter-spacing: 0.09em;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.4rem;
        font-size: 0.86rem;
    }

    .index-cta-actions {
        flex-direction: column;
    }
}
