/* =========================================
   RESPONSIVIDADE E ADAPTAÇÕES UX
   ========================================= */

/* --- AJUSTES GERAIS (Todos os dispositivos) --- */
/* Garante que imagens e iframes nunca estourem a tela */
img, iframe, video {
    max-width: 100%;
    height: auto;
}

/* Força a margem de 10% solicitada nas laterais para containers principais */
.container, 
header, 
footer section, 
.hero, 
.marquee {
    width: 100%;
    max-width: 100%; /* Remove a trava de 1200px fixa para permitir fluidez */
    padding-left: 10% !important;
    padding-right: 10% !important;
}

/* Ajuste fino para o marquee não perder a funcionalidade com o padding */
.marquee {
    box-sizing: border-box;
    width: 100vw;
}

/* --- 1. ULTRA-AMPLO & MESA GRANDE (> 1440px) --- */
@media (min-width: 1441px) {
    .hero {
        min-height: 60vh;
        gap: 10rem;
    }
    .hero-text h1 {
        font-size: 4rem;
    }
    .start-btn {
        margin-bottom: 2rem;
    }
}

/* --- 2. LAPTOP / DESKTOP (1024px a 1440px) --- */
@media (max-width: 1440px) {
    .hero {
        gap: 5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features-box {
        gap: 2rem;
        padding: 4rem;
    }
}

/* --- 3. TABLET PAISAGEM & MENU SANDUÍCHE (< 1024px e < 932px) --- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        align-items: center;
        min-width: auto;
    }

    .hero-img img {
        max-height: 400px;
    }

    .features-box {
        grid-template-columns: 1fr; /* Coluna única para facilitar leitura */
        padding: 3rem;
    }

    .image-feature {
        height: auto;
        border-radius: 1rem;
    }
    
    .commercial-intro {
        font-size: 1rem;
    }

    .divider {
        display: none; /* Garante que sumiu */
    }
}

/* --- MENU SANDUÍCHE (Breakpint solicitado: < 932px) --- */
@media (max-width: 932px) {
    header {
        justify-content: space-between;
        position: relative;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Ícone do Menu Hambúrguer (Criado via CSS para não alterar HTML) */
    header nav::before {
        content: '\f0c9'; /* Código do ícone de "bars" do FontAwesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 2rem;
        color: var(--text-color);
        cursor: pointer;
        display: block;
        text-align: right;
    }

    /* Esconde a lista original */
    header nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-gray);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        z-index: 1000;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        border-bottom: 2px solid var(--accent-red);
    }

    /* Estilo dos links no menu mobile */
    header nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    header nav ul li a {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.2rem;
    }

    header nav ul li a:hover {
        background-color: var(--accent-red);
        font-size: 1.2rem; /* Mantém tamanho para não quebrar layout */
    }

    /* AÇÃO: Exibir menu ao passar o mouse (Hover) ou Foco 
       OBS: Idealmente seria com Click+JS, mas como não podemos alterar HTML, 
       usamos :hover no nav para simular a abertura */
    header nav:hover ul,
    header nav:active ul,
    header nav:focus-within ul {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .divider {
        display: none; /* Garante que sumiu */
    }
}

/* --- 4. TABLET RETRATO / MÓVEL GRANDE (< 800px) --- */
@media (max-width: 800px) {
    .section-padding {
        padding: 40px 0;
    }

    /* Ajuste de Títulos */
    .section-title, .pricing h2, .location h2, .commercial-header h2 {
        font-size: 1.8rem !important; /* Força redução */
    }

    /* Cards de Planos - Ficam um abaixo do outro */
    .plans-container {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        width: 100%; /* Ocupa 100% da largura disponível (respeitando os 10% de padding do body) */
        max-width: 400px;
    }

    .divider {
        display: none; /* Garante que sumiu */
    }

    /* Footer empilhado */
    footer section {
        flex-direction: column;
        gap: 3rem;
        margin: 2rem auto;
        text-align: center;
    }

    .footer-box {
        align-items: center;
        text-align: center;
    }
}

/* --- 5. MÓVEL MÉDIO E PEQUENO (< 568px) --- */
@media (max-width: 568px) {
    /* Ajuste crítico dos 10% de borda em telas muito pequenas */
    .container, header, footer section, .hero {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }

    /* Títulos menores para não quebrar palavra */
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text .start-btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    /* Marquee ajustado */
    .marquee h2 {
        font-size: 1.2rem;
        gap: 1.5rem;
    }

    /* Location Box */
    .location-box {
        padding: 2rem;
    }
    
    .address h3 {
        font-size: 1.2rem;
    }

    /* Iframe do Google Maps */
    iframe {
        height: 250px;
        margin-top: 2rem;
    }

    /* Ajuste dos Cards Comerciais */
    .sectors {
        flex-direction: column;
        align-items: center;
    }
    
    .sector-card {
        width: 100%;
    }

    /* Contatos empilhados */
    .contacts-box {
        flex-direction: column;
        padding: 2rem;
    }
    
    .divider {
        display: none; /* Garante que sumiu */
    }
}