/* 
 * Antonelli Advocacia - Estilos Responsivos
 * Versão: 3.0
 */

/* Desktop-only elementos */
.desktop-only {
  display: inline-block;
}

/* Grandes telas (desktops, 1200px e acima) */
@media (max-width: 1200px) {
  .container {
    width: 90%;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
}

/* Tablets e desktops menores (992px e abaixo) */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .areas-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
  }
  
  /* Ajustes para elementos futuristas em telas menores */
  .tech-lines {
    display: none;
  }
  
  .hero-pattern {
    opacity: 0.3;
  }
}

/* Tablets e celulares landscape (768px e abaixo) */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .navbar .container {
    position: relative;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    flex-direction: column;
    background: var(--dark);
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 20px;
    align-items: center;
    justify-content: center;
    z-index: 900;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .desktop-only {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .areas-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }
  
  /* Ajustes para cards */
  .area-card {
    padding: 25px 20px;
  }
  
  .area-card-icon {
    width: 60px;
    height: 60px;
  }
  
  .area-card-icon i {
    font-size: 24px;
  }
  
  .area-card h3 {
    font-size: 1.2rem;
  }
  
  /* Ajustes para a equipe */
  .team-member-img {
    height: 250px;
  }
  
  /* Formulário de contato */
  .contact-form {
    padding: 30px;
  }
  
  /* Footer */
  footer {
    padding: 60px 0 30px;
  }
}

/* Celulares (576px e abaixo) */
@media (max-width: 576px) {
  .hero {
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    align-items: center;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .areas-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  /* Ajustar tamanho da logo em telas muito pequenas */
  .logo img {
    height: 40px;
  }
  
  .team-member-img {
    height: 250px;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Ajustes para forms em mobile */
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-control {
    padding: 10px 12px;
  }
  
  /* Ajustes para os cantos angulares dos cards */
  .angle-corner {
    width: 12px;
    height: 12px;
  }
  
  /* Ajustes para a página de política de privacidade */
  .privacy-header h1 {
    font-size: 1.8rem;
  }
  
  .privacy-content h2 {
    font-size: 1.5rem;
  }
  
  .privacy-content h3 {
    font-size: 1.2rem;
  }
}

/* Celulares muito pequenos */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }
  
  .area-card-icon {
    width: 50px;
    height: 50px;
  }
  
  .area-card-icon i {
    font-size: 20px;
  }
}

/* Estilos para o menu mobile aberto */
body.menu-open {
  overflow: hidden;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Animações para entrada de elementos na visualização */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Acessibilidade - preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .animate-on-scroll.animated {
    transition: none;
  }
  
  .area-card:hover,
  .team-member:hover {
    transform: none;
  }
}