/**
 * Estilos responsivos do site - Pessoa Jurídica
 * Adapta o layout para diferentes tamanhos de tela
 */

/* Tablets grandes e desktops pequenos */
@media screen and (max-width: 1200px) {
  .carousel-arrow.prev {
    left: 10px;
  }

  .carousel-arrow.next {
    right: 10px;
  }

  .services-carousel-container:hover .carousel-arrow.prev {
    left: 10px;
  }

  .services-carousel-container:hover .carousel-arrow.next {
    right: 10px;
  }
}

/* Tablets grandes e desktops pequenos */
@media screen and (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .services-grid {
    gap: 20px;
  }

  .about-content {
    gap: 30px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .empresa-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail-image {
    order: 1;
  }

  .service-detail-text {
    order: 2;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero-banner {
    background-position: center;
  }

  .hero-title {
    font-size: 3rem;
    padding: 0 10px;
  }

  .main-header .container {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-color);
    padding: 100px 40px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-link {
    display: block;
    font-size: 1.2rem;
  }

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

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

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-text {
    order: 2;
    padding-right: 0;
  }

  .about-image {
    order: 1;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .empresa-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .empresa-history {
    grid-template-columns: 1fr;
  }

  .history-image {
    order: 1;
  }

  .history-content {
    order: 2;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-about h3::after,
  .footer-social h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }
}

/* Smartphones */
@media screen and (max-width: 576px) {
  html {
    font-size: 13px;
  }

  .hero-banner {
    height: 60vh;
    background-position: center;
  }

  .hero-title {
    font-size: 2.2rem;
    width: 100%;
    padding: 0 10px;
  }

  .typing-text,
  .cursor {
    font-size: 1.6rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .empresa-features {
    grid-template-columns: 1fr;
  }

  .testimonial-item {
    min-width: 280px;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .service-card {
    min-width: 240px;
    max-width: 240px;
  }
}

/* Smartphones pequenos */
@media screen and (max-width: 375px) {
  .hero-title {
    font-size: 2rem;
  }

  .typing-text,
  .cursor {
    font-size: 1.4rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .service-card {
    min-width: 220px;
    max-width: 220px;
  }
}
