/* ============================================
   FIBRA NET - MELHORIAS DE RESPONSIVIDADE
   Arquivo adicional para garantir responsividade completa
   ============================================ */

/* ============================================
   VIEWPORT META E RESET RESPONSIVO
   ============================================ */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

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

/* Container responsivo */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ============================================
   NAVBAR RESPONSIVO - MELHORIAS
   ============================================ */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-collapse {
        background: rgba(0, 20, 40, 0.98) !important;
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 16px;
        margin-top: 15px;
        border: 1px solid rgba(0, 180, 216, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        display: block;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(0, 102, 204, 0.1);
    }
    
    .nav-buttons {
        margin-top: 15px;
        text-align: center;
    }
    
    .nav-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px;
    }
}

/* ============================================
   HERO SECTION - RESPONSIVIDADE COMPLETA
   ============================================ */
@media (max-width: 1200px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    .hero-buttons {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        min-width: 200px;
    }
    
    .hero-stats {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 30px;
    }
    
    .hero-visual,
    .hero-illustration {
        display: none !important;
    }
    
    .speed-meter {
        display: none !important;
    }
    
    .float-card {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   FEATURES GRID - RESPONSIVIDADE
   ============================================ */
.features-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px !important;
    }
}

/* ============================================
   PLANOS - RESPONSIVIDADE COMPLETA
   ============================================ */
.plans-grid {
    display: grid;
    gap: 25px;
}

@media (min-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

@media (max-width: 767px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .plan-card {
        padding: 25px 20px !important;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .plan-price .value {
        font-size: 42px !important;
    }
    
    .plan-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {
    .plans-grid {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .plan-card {
        padding: 20px 15px !important;
    }
    
    .plan-price .value {
        font-size: 36px !important;
    }
}

/* ============================================
   SOBRE NÓS - RESPONSIVIDADE
   ============================================ */
@media (max-width: 991px) {
    .about-section .row {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about-image img {
        max-width: 100%;
        height: auto;
    }
    
    .about-content {
        padding-left: 0 !important;
        text-align: center;
    }
    
    .about-stat-box {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        margin: 10px auto;
    }
}

.about-stats-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   CONTATO - RESPONSIVIDADE
   ============================================ */
.contact-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 20px 15px !important;
        min-height: auto !important;
    }
}

/* Formulário de contato */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 20px !important;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* Previne zoom no iOS */
    }
}

/* ============================================
   CTA SECTION - RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0 !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   FOOTER - RESPONSIVIDADE
   ============================================ */
@media (max-width: 991px) {
    .footer-main {
        padding: 40px 0 30px !important;
    }
    
    .footer-main .row > div {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand img {
        height: 60px !important;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links ul {
        padding-left: 0;
    }
    
    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 30px 0 20px !important;
    }
    
    .footer-brand img {
        height: 50px !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ============================================
   BOTÕES FLUTUANTES - RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }
    
    .back-to-top {
        bottom: 75px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 10px !important;
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
    
    .back-to-top {
        bottom: 65px !important;
        right: 10px !important;
        width: 35px !important;
        height: 35px !important;
    }
}

/* ============================================
   MODAIS - RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-contratacao .modal-body {
        height: 60vh !important;
        min-height: 400px !important;
    }
}

/* ============================================
   SEÇÕES - PADDING RESPONSIVO
   ============================================ */
section {
    padding: 80px 0;
}

@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
}

/* ============================================
   TÍTULOS - RESPONSIVIDADE
   ============================================ */
.section-title {
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   IMAGENS RESPONSIVAS
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TABELAS RESPONSIVAS
   ============================================ */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   FORMULÁRIOS - RESPONSIVIDADE
   ============================================ */
@media (max-width: 576px) {
    input, select, textarea {
        font-size: 16px !important; /* Previne zoom automático no iOS */
    }
    
    .form-control {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* ============================================
   ANIMAÇÕES - DESABILITAR EM MOBILE PARA PERFORMANCE
   ============================================ */
@media (max-width: 768px) {
    .glow-orb {
        display: none !important;
    }
    
    /* Reduzir animações para melhor performance */
    * {
        animation-duration: 0.3s !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   UTILITÁRIOS RESPONSIVOS
   ============================================ */
.d-mobile-none {
    display: block;
}

.d-mobile-block {
    display: none;
}

@media (max-width: 768px) {
    .d-mobile-none {
        display: none !important;
    }
    
    .d-mobile-block {
        display: block !important;
    }
}

/* Text alignment responsivo */
@media (max-width: 768px) {
    .text-md-center {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .text-sm-center {
        text-align: center !important;
    }
}

/* ============================================
   FIX PARA SAFARI iOS
   ============================================ */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    #preloader,
    #fiber-bg {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
