/* ==========================================================================
   Abrolhos Engenharia — páginas de serviço no padrão anterior ao redesign

   Antes, cada uma das 9 páginas trazia uma cópia própria destas regras num
   <style> inline, com pequenas divergências entre elas. Esta folha reúne a
   versão mais recente (a de SPDA e PPCIP, que já tinha as correções de
   mobile) e é carregada logo depois do style.css, na mesma posição em que
   ficava o <style>, para manter a cascata.

   engenharia-eletrica.html já está no padrão novo (abrolhos-ds.css) e não
   usa este arquivo. Quando as demais migrarem, ele pode ser apagado.
   ========================================================================== */

.service-page {
    background: linear-gradient(-45deg, #0a0a0a, #001a33, #0d1b2e, #1a1a1a);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: bg-shift 15s ease infinite;
    min-height: 100vh;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.service-hero {
    width: 100%;
    padding: 10rem 1rem 9rem;
    text-align: center;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 9rem), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 9rem), transparent 100%);
}

.service-hero > * {
    position: relative;
    z-index: 2;
}

.service-hero .icon-badge {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 4rem;
    color: var(--accent-color);
}

.service-hero .tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(248, 229, 149, 0.12);
    border: 1px solid rgba(248, 229, 149, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.service-hero h1 {
    width: min(100%, 900px);
    margin: 0 auto 1.2rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.service-hero p {
    width: min(100%, 760px);
    margin: 0 auto 2.5rem;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.service-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ── Corpo e cartões ────────────────────────────────────────────────── */
.service-body {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: -7rem auto 0;
    padding: 0 1rem 6rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.service-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(248, 229, 149, 0.08);
}

.service-card i {
    display: block;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
    font-weight: 700;
}

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

/* ── Perguntas frequentes (abre/fecha no site-shell.js) ─────────────── */
.faq-section {
    margin-bottom: 4rem;
}

.faq-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

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

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer.open {
    display: block;
}

/* ── Chamada final ──────────────────────────────────────────────────── */
.cta-strip {
    padding: 3rem;
    background: rgba(0, 51, 102, 0.3);
    border: 1px solid rgba(0, 100, 200, 0.3);
    border-radius: 16px;
    text-align: center;
}

.cta-strip h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.cta-strip p {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.7;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background: #25d366;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-wa:hover {
    background: #1ebe5b;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Mobile: nada passa da largura da tela ──────────────────────────── */
@media (max-width: 600px) {
    .service-hero {
        width: 100vw;
        max-width: 100vw;
        padding-inline: 1.25rem;
        overflow: hidden;
    }

    .service-hero h1,
    .service-hero p {
        width: calc(100vw - 2.5rem);
        max-width: calc(100vw - 2.5rem);
    }

    .service-hero h1 {
        font-size: 1.8rem;
    }

    .service-hero p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .service-body {
        width: 100%;
        max-width: 100vw;
    }

    .service-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-card {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .cta-strip {
        padding: 2rem 1.25rem;
    }
}
