/* ==========================================================================
   GALVÃO LOGÍSTICA - RESPONSIVIDADE & MOBILE-FIRST
   ========================================================================== */

/* Laptops & Tablets Horizontais (<= 1180px) */
@media (max-width: 1180px) {
  .site-header {
    width: calc(100% - 1.5rem);
  }

  .nav-menu {
    gap: 0.85rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }
}

/* Tablets e Telas Médias (<= 1060px): Ativa Menu Mobile Limpo */
@media (max-width: 1060px) {
  .site-header {
    width: calc(100% - 1.5rem);
    top: 10px;
  }

  .site-header .header-container {
    height: 70px;
    padding: 0 1rem;
  }

  .mobile-toggle {
    display: block;
  }

  .header-actions .btn-cta-nav {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(13, 23, 46, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2rem 1.75rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 998;
    overflow-y: auto;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-section {
    padding-top: 155px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .quote-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Smartphones e Tablets Pequenos (<= 768px) */
@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-box {
    padding: 2rem 1.25rem;
  }

  .quote-form {
    padding: 1.5rem 1rem;
  }

  .bases-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .bases-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Barra Fixa Mobile no Rodapé - APENAS EM SMARTPHONES */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    background: rgba(16, 28, 56, 0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.65rem 1rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
    gap: 0.75rem;
  }

  .btn-mobile-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-btn);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
  }

  .btn-mobile-whats {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-btn);
    background: var(--whatsapp-green);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
  }

  /* Oculta o widget flutuante no mobile para não duplicar com o botão de WhatsApp fixado no rodapé */
  .floating-whatsapp-widget {
    display: none !important;
  }

  .whatsapp-bubble {
    display: none !important;
  }

  .floating-badge {
    position: relative;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: 1rem;
    width: 100%;
  }
}

/* Telas Ultra Pequenas (<= 480px) */
@media (max-width: 480px) {
  .brand-logo img {
    height: 38px;
    max-width: 150px;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  .base-card {
    padding: 1.5rem 1.2rem;
  }

  .base-actions-row {
    grid-template-columns: 1fr;
  }
}
