/* Responsive Styles */

/* Tablet and smaller devices */
@media screen and (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .service-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding: var(--spacing-sm);
  }
  
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--primary-color);
    height: 2px;
    width: 24px;
    position: relative;
    transition: all var(--transition);
  }
  
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: '';
    position: absolute;
  }
  
  .nav-toggle-label span::before {
    bottom: 8px;
  }
  
  .nav-toggle-label span::after {
    top: 8px;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    bottom: 0;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    transition: right 0.3s ease;
    z-index: 1;
  }
  
  .nav-toggle:checked ~ .nav-menu {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: var(--spacing-md) 0;
  }
  
  .btn-contato {
    display: inline-block;
    margin-top: var(--spacing-md);
  }
  
  /* Hero adjustments */
  .hero {
    height: 400px;
  }
  
  .hero-content {
    padding: var(--spacing-lg);
    width: 90%;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }
  
  /* Services adjustments */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-gallery {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .gallery-item {
    height: 180px;
  }
  
  /* Brands adjustments */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .cta-content h2, .secondary-cta h2 {
    font-size: 1.4rem;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
  
  .logo-text h1 {
    font-size: 1.2rem;
  }
  
  .logo-text p {
    font-size: 0.7rem;
  }
  
  .logo-icon {
    font-size: 1.5rem;
  }
  
  .hero {
    height: 350px;
  }
  
  .hero-content {
    padding: var(--spacing-md);
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .brands-grid {
    gap: var(--spacing-md);
  }
  
  .brand-item {
    width: 100px;
    height: 70px;
  }
  
  .social-links {
    gap: var(--spacing-md);
  }
  
  .social-icon {
    font-size: 1.3rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* Animation for cards on scroll */
@media (prefers-reduced-motion: no-preference) {
  .service-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }
  .service-card:nth-child(5) { animation-delay: 0.5s; }
  
  .gallery-item {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.5s ease forwards;
  }
  
  @keyframes scaleIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .gallery-item:nth-child(1) { animation-delay: 0.6s; }
  .gallery-item:nth-child(2) { animation-delay: 0.7s; }
  .gallery-item:nth-child(3) { animation-delay: 0.8s; }
  .gallery-item:nth-child(4) { animation-delay: 0.9s; }
}