/* ==========================================================================
   ESQUADRIPLAN ALUMÍNIO - RESPONSIVO CSS
   Media Queries & Otimizações para Telas Mobile, Tablet e Desktop
   ========================================================================== */

/* 1. TABLET & LAPTOPS PEQUENOS (<= 1080px) */
@media (max-width: 1080px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header {
    height: 72px;
    padding: 8px 12px 8px 18px;
  }

  .btn-pill-cta {
    display: none;
  }

  .hero-top-layout {
    max-width: 100%;
  }

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

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

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

  .partners-track-labor {
    justify-content: flex-start;
    gap: 32px;
    padding: 10px 4px 14px 4px;
  }
}

/* 2. TABLETS & SMARTPHONES (<= 768px) */
@media (max-width: 768px) {
  :root {
    --container-pad: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .topbar {
    display: none;
  }

  .site-header-wrapper {
    padding: 0 10px;
  }

  .site-header {
    height: 64px;
    margin-top: 8px;
    padding: 6px 10px 6px 14px;
  }

  .brand-logo img {
    height: 36px;
  }

  .brand-name-wrap .brand-name {
    font-size: 1.1rem;
  }

  .brand-name-wrap .brand-tagline {
    font-size: 0.62rem;
  }

  .hero-labor {
    min-height: auto;
    margin-top: -72px;
    padding: 104px 0 60px;
  }

  .hero-title-labor {
    font-size: clamp(1.85rem, 6.8vw, 2.15rem);
    line-height: 1.15;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-title-labor .hero-title-line {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero-actions-labor {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .btn-labor {
    width: 100%;
  }

  .labor-card-item {
    flex: 0 0 250px;
    width: 250px;
  }

  .btn,
  .btn-lg,
  .btn-sm,
  .btn-primary,
  .btn-whatsapp,
  .btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    text-align: center !important;
    line-height: 1.35 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .products-benefits-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08)) !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 14px rgba(26, 34, 34, 0.04) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .products-benefits-row .benefit-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .products-benefits-row .benefit-icon {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    color: var(--color-primary, #7E9797) !important;
  }

  .products-benefits-row .benefit-text {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: var(--color-secondary, #394A4A) !important;
  }

  .products-benefits-row .benefit-text br {
    display: inline-block !important;
    width: 0.28em !important;
    height: 0 !important;
    overflow: hidden !important;
    vertical-align: middle !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .product-detail-grid,
  .empresa-story-grid,
  .contact-layout-grid,
  .empresa-grid-labor {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sol-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sol-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    width: 100% !important;
    max-width: 100% !important;
  }

  .solution-card-image,
  .sol-image-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 220px !important;
    max-height: 300px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .solution-card-image img,
  .sol-image-wrap img,
  .products-hero-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .products-hero-media {
    max-width: 100% !important;
    width: 100% !important;
    height: 220px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .products-hero-title {
    font-size: clamp(1.65rem, 6vw, 2rem) !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .solution-card-body h2,
  .sol-content h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .wa-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .wa-modal {
    bottom: 84px;
    right: 16px;
    left: auto;
    width: calc(100vw - 32px);
    max-width: 360px;
  }
}

/* 3. PEQUENOS SMARTPHONES (<= 480px) */
@media (max-width: 480px) {
  :root {
    --container-pad: 14px;
  }

  .site-header {
    height: 60px;
    padding: 6px 10px 6px 12px;
    gap: 8px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-logo img {
    height: 32px;
  }

  .brand-name-wrap .brand-name {
    font-size: 0.98rem;
  }

  .brand-name-wrap .brand-tagline {
    font-size: 0.58rem;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-title-labor {
    font-size: clamp(1.65rem, 6.5vw, 1.85rem);
  }

  .labor-card-item {
    flex: 0 0 220px;
    width: 220px;
  }

  .contact-quick-send {
    padding: 20px 14px;
  }

  .products-benefits-row {
    padding: 12px 14px !important;
    gap: 8px !important;
  }

  .solution-card-image,
  .sol-image-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 200px !important;
    max-height: 260px !important;
    border-radius: 16px !important;
  }
}

/* 4. TELAS ULTRA COMPACTAS (<= 360px) */
@media (max-width: 360px) {
  :root {
    --container-pad: 12px;
  }

  .site-header-wrapper {
    padding: 0 6px;
  }

  .brand-name-wrap .brand-tagline {
    display: none;
  }

  .brand-name-wrap .brand-name {
    font-size: 0.92rem;
  }
}

@media (max-width: 340px) {
  :root {
    --container-pad: 10px;
  }
}