/**
 * AS Engrenar - Estilos Responsivos
 * Mobile First Approach
 */

/* ==================== TABLET (768px - 1024px) ==================== */
@media (min-width: 768px) {
  :root {
    --h1: 4rem;
    --h2: 3rem;
    --h3: 2.25rem;
  }
  
  body {
    padding-bottom: 0;
  }
  
  .nav-menu {
    gap: var(--spacing-xl);
  }
  
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero__media {
    min-height: 420px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .whatsapp-float:hover {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
  }
  
  .whatsapp-float:hover .whatsapp-text {
    display: inline;
  }
}

/* ==================== DESKTOP (> 1024px) ==================== */
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: 4.5rem;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==================== MOBILE (< 768px) ==================== */
@media (max-width: 767px) {
  :root {
    --h1: 2.5rem;
    --h2: 2rem;
    --h3: 1.5rem;
    --h4: 1.25rem;
    --spacing-3xl: 3rem;
  }

  body {
    padding-bottom: 96px;
  }
  
  /* Navbar Mobile */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--branco);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    gap: 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--cinza-200);
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 500px;
  }
  
  /* Hero Mobile */
  .hero {
    text-align: center;
  }
  
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .hero__actions {
    justify-content: center;
  }

  .hero__media {
    min-height: 260px;
  }

  .hero__badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero__stats {
    width: 100%;
  }

  .mobile-cta-bar {
    display: flex;
  }
  
  /* Cards Mobile */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* WhatsApp Flutuante Mobile */
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
  
  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  /* Buttons Mobile */
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-ctas .btn {
    width: auto;
  }

  .media-gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .cta-banner {
    padding: var(--spacing-xl);
  }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
}

