/* ==========================================
   OTIMIZAÇÕES MÓVEIS - MOBILE OPTIMIZATIONS
   Target Informações - Sistema de Manuais
   ========================================== */

/* Variáveis específicas para mobile */
:root {
  --mobile-padding: 1rem;
  --mobile-margin: 0.75rem;
  --mobile-border-radius: 12px;
  --mobile-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --touch-target-min: 44px;
  --mobile-font-small: 0.875rem;
  --mobile-font-medium: 1rem;
  --mobile-font-large: 1.25rem;
}

/* ==========================================
   MELHORIAS GERAIS PARA MOBILE
   ========================================== */

/* Otimização para toque */
@media (max-width: 768px) {
  
  /* Scroll suave otimizado */
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  
  /* Container responsivo melhorado */
  .container {
    width: 95%;
    padding: 0 var(--mobile-padding);
  }
  
  /* Tipografia otimizada para mobile */
  body {
    font-size: var(--mobile-font-medium);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* NOVO: Previne overflow horizontal */
    overflow-x: hidden;
  }
  
  /* Botões com área de toque adequada */
  .btn, 
  .btn-solution, 
  .btn-contact,
  .carousel-control-prev,
  .carousel-control-next,
  .navbar-toggler,
  .mobile-toggle,  /* NOVO: Inclui botão mobile toggle */
  .back-to-top     /* NOVO: Inclui botão voltar ao topo */
  {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* ==========================================
     SIDEBAR DO SISTEMA DE MANUAIS - NOVO
     ========================================== */
  
  /* Botão toggle mobile - aprimorado */
  .mobile-toggle {
    display: flex !important; /* Force display em mobile */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--white);
    border: 2px solid var(--primary-color);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .mobile-toggle:hover,
  .mobile-toggle:focus {
    transform: scale(1.05);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-xl);
  }
  
  /* Sidebar mobile - melhorado */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: #131d27;
    color: var(--white);
    transform: translateX(-100%); /* Inicialmente escondido */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    overflow-y: auto;
    /* NOVO: Suporte para notch (iPhone X+) */
    padding-left: env(safe-area-inset-left);
  }
  
  .sidebar.active {
    transform: translateX(0); /* Mostra quando ativo */
  }
  
  /* Overlay escuro quando sidebar está aberto - NOVO */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Main container ajustado para mobile */
  .main-container {
    margin-left: 0; /* Remove margem em mobile */
    transition: transform 0.3s ease;
  }
  
  /* NOVO: Deslocamento quando sidebar está aberto */
  .main-container.sidebar-active {
    transform: translateX(280px);
  }
  
  /* ==========================================
     CONTEÚDO DOS MANUAIS - NOVO
     ========================================== */
  
  /* Content padding ajustado para mobile */
  .content {
    padding: 1.5rem var(--mobile-padding) 3rem;
    /* NOVO: Margem superior para o botão toggle */
    margin-top: 4rem;
  }
  
  /* Header do conteúdo otimizado */
  .content-header {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .content-header h1 {
    font-size: 2rem; /* Reduzido para mobile */
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .content-header .subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 90%; /* NOVO: Limita largura em mobile */
  }
  
  /* Seções do conteúdo */
  .content-section {
    margin-bottom: 2rem; /* Reduzido para mobile */
  }
  
  /* Título das seções otimizado */
  .section-title {
    font-size: 1.375rem; /* Reduzido para mobile */
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .section-title i {
    font-size: 1.25rem;
  }
  
  /* ==========================================
     ACCORDION OTIMIZADO PARA MOBILE - NOVO
     ========================================== */
  
  /* Accordion item melhorado para mobile */
  .accordion-item {
    margin-bottom: 1rem !important;
    border-radius: var(--mobile-border-radius) !important;
    box-shadow: var(--mobile-shadow);
  }
  
  /* Botão do accordion otimizado para touch */
  .accordion-button {
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    line-height: 1.3;
    text-align: left;
    /* NOVO: Melhor quebra de linha em mobile */
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* Corpo do accordion com melhor espaçamento */
  .accordion-body {
    padding: 1.5rem 1.25rem !important;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* ==========================================
     IMAGENS DOS MANUAIS OTIMIZADAS - NOVO
     ========================================== */
  
  /* Imagens dos manuais responsivas */
  .manual-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--mobile-border-radius);
    margin: 1rem 0;
    box-shadow: var(--mobile-shadow);
    border: 1px solid var(--gray-200);
    /* NOVO: Otimizações para touch */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .manual-img:hover,
  .manual-img:focus {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
  }
  
  /* Imagens menores centralizadas */
  .text-center .manual-img {
    max-width: 90% !important;
    margin: 1rem auto;
    display: block;
  }
  
  /* ==========================================
     NOTAS E ALERTAS MOBILE - MELHORADO
     ========================================== */
  
  /* Notas otimizadas para mobile */
  .note {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--mobile-border-radius);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .note-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .note-header i {
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  
  .note-content {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .note-content p {
    margin-bottom: 0.5rem;
  }
  
  .note-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
  }
  
  .note-content li {
    margin-bottom: 0.25rem;
  }
  
  /* ==========================================
     BOTÕES MOBILE - MELHORADO
     ========================================== */
  
  /* Botões otimizados para touch */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .btn-dark {
    /* Mantém as cores existentes */
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--dark-color) 100%);
    color: var(--white);
    border: none;
  }
  
  .btn-dark:hover,
  .btn-dark:focus {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-dark:active {
    transform: translateY(0);
  }
  
  /* ==========================================
     BOTÃO VOLTAR AO TOPO - MELHORADO
     ========================================== */
  
  .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    /* NOVO: Suporte para notch */
    bottom: calc(2rem + env(safe-area-inset-bottom));
    right: calc(2rem + env(safe-area-inset-right));
  }
  
  .back-to-top.visible {
    opacity: 0.9;
    visibility: visible;
  }
  
  .back-to-top:hover,
  .back-to-top:focus {
    opacity: 1;
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
  }
  
  .back-to-top:active {
    transform: translateY(0);
  }
  
  /* ==========================================
     HEADER E NAVEGAÇÃO MOBILE
     ========================================== */
  
  /* Header otimizado */
  .main-header {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    /* NOVO: Suporte para notch */
    padding-top: env(safe-area-inset-top);
  }
  
  /* Logo responsiva */
  .logo-navbar {
    height: 40px;
    max-height: 40px;
  }
  
  /* Botão hambúrguer melhorado */
  .navbar-toggler {
    border: none;
    padding: 8px;
    border-radius: 8px;
    background: rgba(196, 30, 58, 0.1);
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.3);
    outline: none;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C41E3A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
  }
  
  /* Menu mobile melhorado */
  .navbar-collapse {
    background: white;
    border-radius: 0 0 var(--mobile-border-radius) var(--mobile-border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    padding: var(--mobile-padding);
  }
  
  .navbar-nav .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333 !important;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A !important;
  }
  
  /* ==========================================
     HERO/CARROSSEL MOBILE
     ========================================== */
  
  /* Carrossel otimizado para mobile */
  .hero .carousel-inner {
    padding-top: 90px; /* Espaço para header fixo */
  }
  
  .hero .carousel-item img {
    width: 95% !important;
    height: auto !important;
    margin: 0.5rem auto !important;
    border-radius: var(--mobile-border-radius) !important;
    object-fit: contain !important;
  }
  
  /* Indicadores do carrossel */
  .carousel-indicators {
    margin-bottom: 15px;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
  
  /* Controles do carrossel */
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    opacity: 0.8;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: rgba(196, 30, 58, 0.8);
    border-radius: 50%;
    padding: 4px;
  }
  
  /* ==========================================
     SEÇÃO DE SOLUÇÕES MOBILE
     ========================================== */
  
  .solutions-section {
    padding: 3rem 0;
    margin-top: 80px; /* Compensa header fixo */
  }
  
  .solutions-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding: 0 var(--mobile-padding);
    text-align: center;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 var(--mobile-padding);
  }
  
  .solution-item {
    padding: 1.5rem;
    border-radius: var(--mobile-border-radius);
    min-height: auto;
    box-shadow: var(--mobile-shadow);
    margin-bottom: 1rem;
  }
  
  .solution-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.15);
  }
  
  .solution-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
  }
  
  .solution-icon svg {
    width: 35px;
    height: 35px;
  }
  
  .solution-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .solution-item p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .btn-solution {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    text-align: center;
  }
  
  /* ==========================================
     SEÇÃO DE RESULTADOS MOBILE
     ========================================== */
  
  .company-results {
    padding: 3rem 0;
  }
  
  .company-results h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 var(--mobile-padding);
  }
  
  .result-item {
    padding: 1.5rem;
    border-radius: var(--mobile-border-radius);
    text-align: center;
  }
  
  .result-number {
    font-size: 2.5rem;
  }
  
  .result-label {
    font-size: 1rem;
  }
  
  .result-description {
    font-size: 0.85rem;
  }
  
  /* ==========================================
     SEÇÃO DE CONTATO MOBILE
     ========================================== */
  
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 var(--mobile-padding);
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
    padding: 1.5rem;
    border-radius: var(--mobile-border-radius);
    box-shadow: var(--mobile-shadow);
  }
  
  .contact-info h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-info p {
    text-align: center;
    font-size: 0.95rem;
  }
  
  .contact-details {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .contact-details li {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .contact-details .icon {
    width: 35px;
    height: 35px;
    margin-right: 0.75rem;
  }
  
  /* ==========================================
     FORMULÁRIOS MOBILE
     ========================================== */
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Evita zoom no iOS */
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: white;
    width: 100%;
    min-height: var(--touch-target-min);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    outline: none;
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
  }
  
  .form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
  }
  
  .btn-contact {
    width: 100%;
    min-height: var(--touch-target-min);
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .btn-contact:hover,
  .btn-contact:focus {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
  }
  
  .btn-contact:active {
    transform: translateY(0);
  }
  
  /* ==========================================
     FOOTER MOBILE
     ========================================== */
  
  footer {
    padding: 2rem 0 1rem;
    /* NOVO: Suporte para notch */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    /* NOVO: Melhor organização no mobile */
    position: relative;
    flex-direction: column;
    padding-top: 120px; /* Espaço para logos posicionados */
  }
  
  /* Criar linha divisória no topo */
  .footer-content::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    position: absolute;
    top: 100px;
    left: 0;
  }
  
  /* Logo Target (esquerda) */
  .footer-section.logo-section:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    align-items: flex-start;
  }
  
  /* Logo Parceiro (direita) */
  .footer-section.logo-section:last-child {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    align-items: flex-end;
  }
  
  /* Logos menores no mobile */
  .footer-logo {
    max-width: 80px;
    margin-bottom: 10px;
  }
  
  /* Redes sociais */
  .social-icons {
    justify-content: flex-start;
    gap: 8px;
  }
  
  .social-icons a {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  /* Seções de texto centralizadas */
  .footer-section:not(.logo-section) {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-section ul li a {
    font-size: 0.9rem;
    padding: 8px;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  
  .footer-section ul li a:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary-color);
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .footer-bottom p {
    margin: 0.25rem 0;
  }
  
  /* ==========================================
     ANIMAÇÕES SUAVES PARA MOBILE
     ========================================== */
  
  /* Reduz animações para usuários que preferem menos movimento */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* ==========================================
     OTIMIZAÇÕES PARA TELAS MUITO PEQUENAS
     ========================================== */
  
  @media (max-width: 400px) {
    .container {
      width: 98%;
      padding: 0 8px;
    }
    
    /* NOVO: Ajustes específicos para o sistema de manuais */
    .content {
      padding: 1rem 8px 2rem;
      margin-top: 3.5rem;
    }
    
    .content-header h1 {
      font-size: 1.5rem;
    }
    
    .section-title {
      font-size: 1.25rem;
    }
    
    .accordion-button {
      padding: 0.875rem 1rem !important;
      font-size: 0.95rem !important;
    }
    
    .accordion-body {
      padding: 1.25rem 1rem !important;
    }
    
    .note {
      padding: 0.875rem;
      margin: 1rem 0;
    }
    
    .mobile-toggle {
      width: 2.5rem;
      height: 2.5rem;
      font-size: 1.1rem;
    }
    
    .sidebar {
      width: 100%; /* Sidebar fullscreen em telas muito pequenas */
    }
    
    .hero .carousel-item img {
      width: 98% !important;
      height: 200px !important;
    }
    
    .solutions-section h2 {
      font-size: 1.5rem;
    }
    
    .solution-item {
      padding: 1rem;
    }
    
    .contact-form {
      padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
      padding: 10px 12px;
    }
    
    /* NOVO: Footer para telas muito pequenas */
    .footer-content {
      padding-top: 100px;
    }
    
    .footer-section.logo-section:first-child,
    .footer-section.logo-section:last-child {
      width: 48%;
    }
    
    .footer-logo {
      max-width: 70px;
    }
    
    .social-icons a {
      width: 28px;
      height: 28px;
      font-size: 12px;
    }
  }
  
  /* ==========================================
     MELHORIAS DE PERFORMANCE
     ========================================== */
  
  /* Otimização para imagens */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Lazy loading nativo quando suportado */
  img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  img[loading="lazy"].loaded {
    opacity: 1;
  }
  
  /* Otimização para SVGs */
  svg {
    max-width: 100%;
    height: auto;
  }
  
  /* NOVO: Otimizações específicas para will-change */
  .sidebar,
  .main-container,
  .mobile-toggle,
  .back-to-top,
  .manual-img {
    will-change: transform;
  }
  
  /* ==========================================
     ESTADOS DE FOCUS E ACESSIBILIDADE
     ========================================== */
  
  /* Melhor visibilidade para focus */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus,
  .accordion-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Skip link para navegação por teclado */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    transition: top 0.3s ease;
  }
  
  .skip-link:focus {
    top: 6px;
  }
  
  /* NOVO: Navegação por teclado melhorada */
  .keyboard-navigation *:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
  }
  
  /* ==========================================
     LOADING E ESTADOS INTERMEDIÁRIOS
     ========================================== */
  
  /* Placeholder para carregamento */
  .loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 8px;
  }
  
  @keyframes loading-shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }
  
  /* Estado de erro para formulários */
  .form-group .error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  }
  
  .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
  }
  
  /* ==========================================
     DARK MODE CONSIDERATIONS
     ========================================== */
  
  @media (prefers-color-scheme: dark) {
    .loading-skeleton {
      background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    }
  }
  
}

/* ==========================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ========================================== */

@media (max-width: 768px) and (orientation: landscape) {
  .hero .carousel-item img {
    height: 200px !important;
  }
  
  .solutions-section {
    padding: 2rem 0;
  }
  
  .contact-section {
    padding: 2rem 0;
  }
  
  /* NOVO: Ajustes específicos para manuais em landscape */
  .content {
    margin-top: 3rem;
  }
  
  .sidebar {
    width: 300px; /* Aumenta largura em landscape */
  }
  
  .main-container.sidebar-active {
    transform: translateX(300px);
  }
}

/* ==========================================
   PRINT STYLES PARA MOBILE
   ========================================== */

@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  .btn-solution,
  .btn-contact,
  .mobile-toggle,
  .back-to-top,
  .sidebar,
  .sidebar-overlay {
    display: none !important;
  }
  
  .main-container {
    margin-left: 0 !important;
    transform: none !important;
  }
  
  .hero .carousel-item img {
    height: auto !important;
    border-radius: 0 !important;
  }
  
  .solution-item,
  .result-item,
  .contact-form,
  .content-section,
  .accordion-item {
    break-inside: avoid;
  }
  
  .manual-img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* ==========================================
   ANIMAÇÕES ADICIONAIS - NOVO
   ========================================== */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classe para imagens carregadas */
.loaded {
  animation: fadeInUp 0.6s ease-out;
}

/* ==========================================
   CUSTOMIZAÇÕES FINAIS - NOVO
   ========================================== */

/* Altura de viewport CSS para mobile */
:root {
  --vh: 1vh;
}

.sidebar,
.sidebar-overlay {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

/* Suavização para webkit */
@supports (-webkit-touch-callout: none) {
  .sidebar,
  .main-container,
  .mobile-toggle {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}