/* =========================
    RESET E BASE GLOBAL
========================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================
    TIPOGRAFIA
========================= */
p,
.texto-justificado {
    text-align: justify;
    margin-bottom: 15px;
}

/* =========================
    HEADER & NAVEGAÇÃO
========================= */
#main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    gap: 10px;
}

/* Logo */
.logo-link { text-decoration: none; }
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.logo span { color: #22c55e; }

/* Menu Desktop */
.menu-lista {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0 auto;
}

.menu-lista a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 11px;
    border-radius: 8px;
    transition: background 0.25s, color 0.25s;
    white-space: nowrap;
}

.menu-lista a:hover {
    background: #f1f5f9;
    color: #16a34a;
}

/* Botões do header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.area-do-cliente,
.btn-contato {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
    text-align: center;
}

.area-do-cliente {
    border: 2px solid #22c55e;
    color: #16a34a;
}

.area-do-cliente:hover {
    background: #22c55e;
    color: #fff;
}

.btn-contato {
    background: #22c55e;
    color: #ffffff;
    border: 2px solid #22c55e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-contato:hover {
    background: #16a34a;
    border-color: #16a34a;
}

/* =========================
    HERO
========================= */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: #fff;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-frase {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.frase-preta {
    font-weight: 600;
    font-size: 3rem;
    color: #0f172a;
    line-height: 1.15;
}

.frase-verde {
    color: #22c55e;
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.05;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =========================
    SEÇÕES GERAIS
========================= */
.section-padding {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.bg-cinza { background-color: #f8fafc; }

.section-title {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #22c55e;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.atendimento-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.atendimento-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.atendimento-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.info-card,
.info-card-texto {
    background: #fff;
    padding: 18px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #22c55e;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #0f172a;
}

.texto-coluna {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* =========================
    FAQ
========================= */
.reabilita-faq-wrapper {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.faq-card {
    max-width: 850px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.faq-topic {
    border-bottom: 1px solid #e2e8f0;
}

.faq-topic:last-child { border-bottom: none; }

.faq-topic summary {
    padding: 22px 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.2s;
}

.faq-topic summary::-webkit-details-marker { display: none; }

.faq-topic summary:hover { background: #f1f5f9; }

.faq-topic summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #22c55e;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-topic[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 5px 30px 25px;
    color: #475569;
    line-height: 1.75;
}

/* =========================
    FOOTER
========================= */
footer {
    background: #0f172a;
    padding: 40px 0 20px;
    color: #fff;
}

.footer-minimal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    flex: 1;
    min-width: 260px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.footer-registro p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.footer-registro strong {
    color: #cbd5e1;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    margin-top: 14px;
}

.social-icons a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover { color: #22c55e; }

.footer-map-container {
    width: 320px;
    flex-shrink: 0;
}

.map-canvas {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #334155;
}

.map-canvas iframe {
    display: block;
    border-radius: 10px;
}

.footer-divider {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 25px 0 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-link-politica {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.25s;
}

.footer-link-politica:hover { color: #22c55e; }

.footer-bottom-text p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.responsavel-tecnico {
    font-size: 0.72rem !important;
    opacity: 0.55;
}

/* =========================
    RESPONSIVIDADE – TABLET (≤ 1024px)
========================= */
@media screen and (max-width: 1024px) {
    .menu-lista a {
        font-size: 0.78rem;
        padding: 7px 9px;
    }

    .hero-wrapper { gap: 30px; }

    .frase-preta { font-size: 2.4rem; }
    .frase-verde  { font-size: 3.2rem; }
}

/* =========================
    RESPONSIVIDADE – MOBILE (≤ 768px)
   CORREÇÕES APLICADAS:
   1. Menu sanduíche usa display:flex via .active (não só left)
   2. Área do Cliente visível em mobile (tamanho reduzido)
   3. Links internos funcionam: fecharMenu() é chamado antes de navegar
========================= */
@media screen and (max-width: 768px) {

    /* --- Header --- */
    #main-header { padding: 12px 0; }

    .nav-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
    }

    .logo-link {
        grid-column: 2;
        text-align: center;
    }

    .header-actions {
        grid-column: 3;
        display: flex;
        gap: 5px;
        align-items: center;
    }

    /* ── CORREÇÃO: Área do Cliente visível em mobile, tamanho compacto ── */
    .area-do-cliente {
        display: inline-flex;
        font-size: 0.68rem;
        padding: 7px 9px;
        white-space: nowrap;
    }

    .btn-contato {
        font-size: 0.72rem;
        padding: 7px 10px;
    }

    /* Oculta texto "Contato" no botão em telas muito pequenas */
    @media screen and (max-width: 380px) {
        .txt-contato { display: none; }
        .area-do-cliente { padding: 7px 8px; font-size: 0.62rem; }
    }

    /* ── Menu drawer — usa flex sempre, visibility controla o acesso ── */
    .menu-lista {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 78%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        padding-top: 10px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.32s ease, visibility 0.32s ease;
    }

    /* Aberto: desliza para dentro, visível e interativo */
    .menu-lista.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .menu-lista li a {
        font-size: 1rem;
        padding: 16px 24px;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
        color: #0f172a;
        display: block;
    }

    .menu-lista li a:hover {
        background: #f0fdf4;
        color: #16a34a;
    }

    .mobile-only-close {
        display: flex;
        justify-content: flex-end;
        padding: 15px 20px 5px;
    }

    .mobile-only-close button {
        font-size: 2rem;
        background: none;
        border: none;
        color: #22c55e;
        cursor: pointer;
        line-height: 1;
        min-width: 44px;
        min-height: 44px;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
        padding: 50px 0 40px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .frase-preta { font-size: 1.9rem; }
    .frase-verde  { font-size: 2.5rem; }

    .hero-image {
        max-width: 100%;
        margin: 0 auto;
    }

    /* --- Seções --- */
    .section-padding { padding: 55px 0; }

    .section-title { font-size: 1.7rem; margin-bottom: 35px; }

    .atendimento-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .atendimento-img { order: -1; }

    .atendimento-img img {
        width: 100%;
        height: auto;
    }

    .cards-grid { grid-template-columns: 1fr; }

    /* --- FAQ --- */
    .faq-topic summary {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    .faq-content { padding: 5px 20px 20px; }

    /* --- Footer --- */
    .footer-minimal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info { min-width: 100%; text-align: center; }

    .social-icons { justify-content: center; }

    .footer-map-container {
        width: 100%;
        max-width: 360px;
    }

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

/* =========================
    MOBILE MUITO PEQUENO (≤ 400px)
========================= */
@media screen and (max-width: 400px) {
    .frase-preta  { font-size: 1.6rem; }
    .frase-verde  { font-size: 2.1rem; }
    .section-title { font-size: 1.45rem; }
    .logo { font-size: 1.3rem; }
}

/* =========================
    REVEAL TEXT — fade-in suave via CSS puro
    (não depende de JavaScript)
========================= */
@keyframes revealFade {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.frase-1 { animation-delay: 0.3s; }
.frase-2 { animation-delay: 0.8s; }
.frase-3 { animation-delay: 1.3s; }
.frase-4 { animation-delay: 1.8s; }

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
}