/* Otimizações de responsividade e desempenho */

/* Otimizações para imagens */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Melhorias de carregamento para fontes */
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  font-display: swap;
}

/* Melhorias de acessibilidade */
:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(108, 19, 251, 0.5);
}

/* Otimizações para dispositivos móveis */
@media screen and (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .value-card, 
  .service-card, 
  .responsibility-card, 
  .benefit-card {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Otimizações para tablets */
@media screen and (min-width: 577px) and (max-width: 768px) {
  .values-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .career-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Otimizações para desktops pequenos */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Otimizações de desempenho */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Melhorias de interação */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:active::after {
  opacity: 0.3;
  transform: scale(50, 50) translate(-50%, -50%);
  transition: transform 0.5s, opacity 1s;
}

/* Melhorias de navegação */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
}

/* Melhorias de animação */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Otimizações para impressão */
@media print {
  .header, 
  .footer, 
  .contact-form,
  .btn {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}

/* Otimizações para modo escuro */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1A1A40;
    --dark-color: #FFFFFF;
    --light-gray: #2A2A5A;
  }
  
  .header {
    background-color: rgba(26, 26, 64, 0.95);
  }
  
  .value-card,
  .service-card,
  .stat-card,
  .responsibility-card,
  .benefit-card,
  .testimonial-card,
  .contact-form {
    background-color: var(--light-gray);
  }
  
  .form-control {
    background-color: var(--light-gray);
    border-color: #444;
    color: var(--dark-color);
  }
}

/* Otimizações para carregamento */
.content-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  height: 1em;
  margin-bottom: 0.5em;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Melhorias de desempenho para animações */
.fade-in {
  will-change: opacity, transform;
}

/* Otimizações para telas grandes */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  p {
    font-size: 1.2rem;
  }
}

/* Otimizações para dispositivos de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-size: cover;
  }
}
