﻿/* ============================================
   CORREÇÕES DE RESPONSIVIDADE
   Cabral Consultoria - Ajustes Finais
   ============================================ */

/* Ajustes gerais para mobile */
@media (max-width: 768px) {
    /* Container padding reduzido */
    .container {
        padding: 0 15px;
    }
    
    /* Header mobile */
    .main-header .navbar {
        min-height: 60px;
    }
    
    .main-header .navbar-brand {
        padding: 10px 0;
    }
    
    .main-header .logo-img {
        max-height: 40px;
    }
    
    .main-header .navbar-nav {
        margin-top: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
    }
    
    .main-header .navbar-nav > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-white {
        width: 100%;
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* Seções mobile */
    .services-section,
    .about-section,
    .features-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    /* Service cards mobile */
    .service-grid {
        margin-top: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* About section mobile */
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        margin-top: 30px;
    }
    
    .about-content h2 {
        font-size: 1.8rem !important;
    }
    
    .about-content .lead {
        font-size: 1.1rem;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .value-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Features mobile */
    .feature-box {
        padding: 25px 15px;
        margin-bottom: 25px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .feature-box h4 {
        font-size: 1.2rem;
    }
    
    /* CTA mobile */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem !important;
        padding: 0 15px;
    }
    
    .cta-section .lead {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    /* Footer mobile */
    .main-footer {
        padding: 40px 0 15px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .footer-widget h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Scroll up button mobile */
    .scrollup {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
    
    /* Hero scroll indicator mobile */
    .hero-scroll {
        bottom: 20px;
    }
    
    .scroll-down {
        font-size: 1.5rem;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        min-height: 550px;
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .services-section,
    .about-section,
    .features-section {
        padding: 80px 0;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .about-content h2 {
        font-size: 2.2rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .service-card,
    .feature-box {
        padding: 20px 15px;
    }
    
    .about-content h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
    }
}

/* Correções de layout geral */
@media (max-width: 768px) {
    /* Garantir que imagens sejam responsivas */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Textos não devem quebrar layout */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Evitar overflow horizontal */
    body {
        overflow-x: hidden;
    }
    
    /* Ajustar padding de seções */
    section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ajustes específicos para navbar mobile */
@media (max-width: 768px) {
    .navbar-toggle {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .navbar-collapse {
        max-height: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-collapse.in {
        overflow-y: auto;
        max-height: 70vh;
    }
}

/* Garantir que botões não quebrem */
@media (max-width: 768px) {
    .btn {
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Ajustes de espaçamento em mobile */
@media (max-width: 768px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Melhorias de acessibilidade em mobile */
@media (max-width: 768px) {
    /* Áreas de toque maiores */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Links de navegação */
    .navbar-nav > li > a {
        min-height: 44px;
    }
}
