/* ===================================
   Estilos Responsivos - Tudo Mais Personalizados
   =================================== */

/* Extra Large Devices (1200px e acima) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Large Devices (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .main-nav {
        gap: 1.5rem;
    }
}

/* Medium Devices / Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    /* Prevenir overflow em tablets */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .badge-promo {
        font-size: 0.75rem;
        padding: 8px 20px;
    }

    /* Mini-testimonials tablets */
    .mini-testimonial {
        padding: 1.75rem;
    }

    .mini-testimonial__text {
        font-size: 0.95rem;
    }

    /* Trust indicators tablets */
    .trust-indicator {
        padding: 1.25rem;
    }

    .trust-indicator__number {
        font-size: 1.875rem;
    }

    .trust-indicator__text {
        font-size: 0.875rem;
    }

    /* Form responsivo tablets */
    .progressive-form-card {
        padding: 1.5rem;
    }

    .form-check-custom {
        padding: 1rem;
    }
}

/* Small Devices / Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    /* Ocultar botão sticky no mobile */
    .cta-sticky--mobile {
        display: none !important;
    }

    /* Prevenir overflow horizontal em tablets pequenos */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    /* Header Mobile */
    .header-main {
        padding: 0.6rem 0;
    }

    /* Correção para fundo transparente do header no scroll - Mobile */
    .header-main.fixed-top.scrolled {
        background: #01AFEF !important;
        background-color: #01AFEF !important;
        box-shadow: 0 4px 20px rgba(1, 175, 239, 0.2) !important;
    }

    .company-name {
        font-size: 0.95rem;
        max-width: 210px;
        margin-left: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .social-links a {
        font-size: 1.125rem;
    }

    /* Hero Mobile */
    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        font-size: 0.875rem;
        padding: 12px 24px;
    }

    .badge-promo {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    /* WhatsApp Button Mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    /* Seções Mobile */
    .display-5 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1rem;
    }

    /* Serviços Mobile */
    .services-list .row {
        margin-bottom: 3rem !important;
    }

    .service-image img,
    .img-placeholder {
        height: 250px;
    }

    /* Depoimentos Mobile */
    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    /* Formulário Mobile */
    .form-control-lg,
    .form-select-lg {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .btn-submit {
        font-size: 0.875rem;
        padding: 12px 20px;
    }

    /* Footer Mobile */
    .footer-section {
        padding: 2rem 0;
    }

    .social-links-footer a {
        font-size: 1.25rem;
    }
}

/* Extra Small Devices / Mobile Portrait (menos de 576px) */
@media (max-width: 575px) {
    /* Ocultar botão sticky no mobile */
    .cta-sticky--mobile {
        display: none !important;
    }

    /* Prevenir overflow horizontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Container Mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }

    /* Header XS */
    .header-main {
        padding: 0.5rem 0;
    }

    .company-name {
        font-size: 0.875rem;
        max-width: 195px;
        margin-left: 8px;
    }

    .logo {
        width: 28px;
        height: 28px;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links a {
        font-size: 1.6rem;
    }

    /* Hero XS */
    .hero-section {
        height: 100vh;
        min-height: 450px;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-background {
        max-width: 100%;
    }

    .hero-content {
        padding-top: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .badge-promo {
        margin-left: auto;
        margin-right: auto;
        display: inline-block;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .btn-cta {
        font-size: 0.875rem;
        padding: 14px 24px;
        width: 100%;
        max-width: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .btn-cta i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    /* Overlay com gradiente vertical para mobile */
    .hero-overlay {
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.2) 0%,
            rgba(0,0,0,0.2) 50%,
            rgba(0,0,0,0.2) 100%) !important;
    }

    /* Mobile menu otimizado */
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .mobile-menu-toggle__line {
        width: 24px;
        height: 2.5px;
    }

    /* Ajustar botão sticky para telas extra pequenas */
    .cta-sticky__button {
        font-size: 0.9rem;
        padding: 14px 20px;
    }

    .cta-sticky__icon {
        font-size: 1rem;
    }

    /* Seções XS */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .h2 {
        font-size: 1.25rem !important;
    }

    .h3 {
        font-size: 1.125rem !important;
    }

    .h4 {
        font-size: 1rem !important;
    }

    /* Problemas Box XS */
    .problems-box {
        padding: 1rem;
    }

    .problem-item {
        font-size: 0.875rem;
    }

    .solution-box {
        padding: 1rem;
    }

    /* Cards XS */
    .card-body {
        padding: 1rem !important;
    }

    /* Mini-testimonials mobile */
    .mini-testimonial {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .mini-testimonial__text {
        font-size: 0.9rem;
        padding-left: 0.5rem;
    }

    .mini-testimonial__text::before {
        font-size: 2rem;
        left: -0.25rem;
    }

    /* Footer XS */
    .footer-section {
        text-align: center;
    }

    .text-md-end {
        text-align: center !important;
    }

    .footer-section .text-muted {
        font-size: 0.75rem;
    }

    /* Trust indicators mobile */
    .trust-indicator {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .trust-indicator__icon {
        width: 45px;
        height: 45px;
        margin-right: 1rem;
    }

    .trust-indicator__icon i {
        font-size: 1.25rem;
    }

    .trust-indicator__number {
        font-size: 1.5rem;
    }

    .trust-indicator__text {
        font-size: 0.8rem;
    }

    /* Form trust badges mobile */
    .form-trust-badges {
        margin-bottom: 1.5rem;
    }

    .trust-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Progressive form mobile */
    .progress-indicator {
        margin-bottom: 1rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .progress-line {
        width: 60px;
        top: 15px;
    }
}

/* Orientação Landscape em Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        max-height: 100vh;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    /* Ajustar badge e botão */
    .badge-promo {
        display: none;
    }

    .btn-cta {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 359px) {
    .company-name {
        font-size: 0.8rem;
        max-width: 170px;
    }

    .logo {
        width: 26px;
        height: 26px;
    }

    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
    }
}

/* Print Styles */
@media print {
    .header-main,
    .whatsapp-float,
    .social-links,
    .social-links-footer {
        display: none !important;
    }

    .hero-section {
        height: auto;
        min-height: auto;
    }

    .hero-overlay {
        background: none;
    }

    * {
        color: black !important;
        background: white !important;
    }
}