/* ===================================
   RSR Consultoria Financeira
   Estilos Responsivos
   =================================== */

/* Tablets e telas menores */
@media screen and (max-width: 992px) {
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    /* Hero */
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }
    
    .hero-content {
        padding: 60px 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        min-height: 400px;
    }
    
    .hero-image img {
        max-height: none;
    }
    
    /* Layout */
    .sobre-historia,
    .historia-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .historia-imagem {
        order: -1;
    }
    
    .mvv-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contato-wrapper,
    .localizacao-content {
        grid-template-columns: 1fr;
    }
    
    .servicos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .diferenciais-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    /* Spacing */
    .section-padding {
        padding: 60px 0;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .cta-section {
        padding: 80px 0;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 0;
        margin-top: 80px;
        min-height: auto;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-content {
        padding: 60px 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        min-height: 300px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    /* Header e Navegação */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--cor-branco);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 0;
        box-shadow: 0 10px 30px var(--cor-sombra);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #F0F0F0;
        font-size: 1.1rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .btn-whatsapp-nav {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-height: 400px;
    }
    
    /* Sections */
    .section-padding {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    /* Cards */
    .servicos-grid,
    .diferenciais-grid,
    .etapas-grid,
    .mvv-grid,
    .atuacao-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .servico-card,
    .etapa-card,
    .mvv-card,
    .atuacao-card {
        padding: 30px 20px;
    }
    
    /* Números */
    .numeros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .numero-valor {
        font-size: 2.5rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
    
    /* Depoimentos */
    .depoimentos-grid {
        grid-template-columns: 1fr;
    }
    
    .depoimento-card {
        padding: 25px 20px;
    }
    
    /* Localização */
    .localizacao-wrapper {
        grid-template-columns: 1fr;
    }
    
    .localizacao-info-box {
        padding: 30px 20px;
    }
    
    .mapa-home {
        height: 350px;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Formulário */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contato-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

/* Mobile pequeno */
@media screen and (max-width: 480px) {
    /* Hero - Ocultar imagem em telas muito pequenas */
    .hero-image {
        display: none;
    }
    
    .hero-content {
        padding: 50px 20px;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    /* Logo */
    .logo-img {
        height: 40px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Icons */
    .servico-icon,
    .diferencial-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .mvv-icon,
    .contato-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    /* Cards */
    .servico-card h3,
    .mvv-card h3 {
        font-size: 1.25rem;
    }
    
    .diferencial-card h3 {
        font-size: 1.1rem;
    }
    
    /* Text sizes */
    .sobre-preview-text p,
    .historia-text p {
        font-size: 1rem;
    }
    
    /* Números mobile pequeno */
    .numeros-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .numero-card {
        padding: 15px;
    }
    
    .numero-valor {
        font-size: 2rem;
    }
    
    .numero-icon {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-logo {
        height: 50px;
    }
}

/* Landscape mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 40px;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-toggle,
    .hero-buttons,
    .cta-section,
    .whatsapp-float,
    .btn-whatsapp-nav,
    .social-links {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        height: auto;
        padding: 40px 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}

/* Hover states para dispositivos touch */
@media (hover: none) {
    .nav-link:hover,
    .btn:hover,
    .servico-card:hover,
    .diferencial-card:hover,
    .mvv-card:hover,
    .atuacao-card:hover,
    .contato-card:hover,
    .footer-links a:hover,
    .social-link:hover,
    .whatsapp-float:hover,
    .stat-card:hover,
    .faq-item:hover,
    .depoimento-card:hover {
        transform: none;
    }
}

/* Responsividade específica para novas seções */
@media screen and (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stat-numero {
        font-size: 2.5rem;
    }
    
    .depoimentos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mvv-grid-mini {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-numero {
        font-size: 2rem;
    }
    
    .faq-section,
    .depoimentos-section {
        padding: 60px 0;
    }
    
    .faq-pergunta {
        padding: 20px;
    }
    
    .faq-pergunta h3 {
        font-size: 1rem;
    }
    
    .faq-resposta {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-resposta {
        padding: 0 20px 20px;
    }
    
    .depoimento-card {
        padding: 25px;
    }
    
    .depoimento-texto {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-numero {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Acessibilidade - Redução de movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-scroll {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Opcional: adicionar suporte a dark mode no futuro */
}
