/* ==========================================================================
   ROBONI GROUP MANUFACTURER - RESPONSIVE STYLESHEET
   Mobile, Tablet, and Desktop Breakpoint Adjustments
   ========================================================================== */

/* --- Large Laptops & Desktops (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

/* --- Tablets & Medium Screens (max-width: 991px) --- */
@media (max-width: 991px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Top Bar adjustments */
  .top-bar-social {
    display: none;
  }

  .top-bar-left, .top-bar-right {
    gap: 1rem;
  }

  /* Mobile Navigation Drawer */
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-primary-dark);
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem;
    transition: right var(--transition-slow);
    z-index: 1060;
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background-color: rgba(200, 16, 46, 0.15);
    color: #FFFFFF;
    border-left: 3px solid var(--color-secondary);
  }

  /* Mobile Nav Close Button */
  .mobile-nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Overlay backdrop for mobile drawer */
  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1055;
  }

  .mobile-nav-backdrop.active {
    display: block;
  }

  .header-action .btn {
    display: none; /* Hide top CTA in compact mobile header bar; shown inside drawer or sticky */
  }

  .main-nav-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
  }

  /* Hero */
  .hero-section {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  /* Trust Strip */
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  /* Grids */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

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

  .showcase-row.reversed {
    direction: ltr;
  }

  .showcase-img-box img {
    height: 320px;
  }

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

  .detail-gallery-main {
    height: 380px;
  }

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

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

  .b2b-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Mobile Landscape & Large Phones (max-width: 767px) --- */
@media (max-width: 767px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left {
    justify-content: center;
    width: 100%;
  }

  .top-bar-right {
    display: none; /* Keep top bar clean on small devices */
  }

  .header-hero-transparent {
    position: relative;
    top: 0;
    background-color: var(--color-primary);
  }

  .brand-logo img {
    height: 38px;
    max-width: 190px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .trust-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
  }

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

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

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

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

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

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

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

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

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    left: 1.25rem;
  }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    padding: 1.5rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .detail-gallery-main {
    height: 280px;
  }

  .detail-specs-table th {
    width: 40%;
  }
}
