/* ==========================================================================
   R M TOOLS SOLUTIONS - RESPONSIVE STYLESHEET
   Mobile, Tablet, and Desktop Breakpoints
   ========================================================================== */

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

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

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

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

/* 992px - Tablets Landscape */
@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .site-header .main-nav,
  .site-header .header-phone {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .header-enquiry-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
    height: 36px;
  }

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

  .hero-visual {
    order: -1;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-tools-showcase {
    max-width: 580px;
    margin: 0 auto;
  }

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

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

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

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

  .catalogue-layout {
    grid-template-columns: 1fr;
  }

  .catalogue-sidebar {
    position: static;
  }

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

  .gallery-container {
    position: static;
  }

  .leadership-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .leadership-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .leadership-avatar-initials {
    font-size: 2.5rem;
  }

  .leadership-contact {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cta-grid {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* 768px - Tablets Portrait & Large Mobiles */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }

  .section {
    padding: 2.75rem 0;
  }

  /* Compact Header Action Button */
  .site-header .header-actions {
    gap: 0.5rem;
  }

  .site-header .header-enquiry-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    height: 32px !important;
    line-height: 1 !important;
    border-radius: 4px !important;
  }

  /* Buttons & CTA scaling */
  .btn-lg {
    padding: 0.65rem 1.15rem !important;
    font-size: 0.85rem !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    height: auto !important;
    text-align: center !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.5rem 0 2rem !important;
  }

  .hero-badge {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.65rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-description {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* Hero Multi-Tools Showcase Mobile */
  .hero-tools-showcase {
    max-width: 100%;
  }

  .hero-tools-frame {
    border-radius: 10px !important;
  }

  .hero-tools-overlay-badge {
    top: 8px !important;
    left: 8px !important;
    padding: 0.25rem 0.55rem !important;
    font-size: 0.7rem !important;
  }

  .hero-tools-brand-strip {
    font-size: 0.65rem !important;
    padding: 0.75rem 0.5rem 0.45rem !important;
    letter-spacing: 0.3px !important;
  }

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

  .category-card {
    padding: 0.85rem;
  }

  .category-card-figure {
    height: 125px;
  }

  .product-card {
    padding: 0.85rem;
  }

  .product-card-figure {
    height: 150px;
  }

  .product-card-title {
    font-size: 0.875rem;
    height: auto;
    min-height: 2.3rem;
    line-height: 1.3;
  }

  .product-card-price {
    font-size: 1rem;
  }

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

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  /* Section 7: Leadership Card Mobile */
  .leadership-card {
    padding: 1.5rem 1rem !important;
    gap: 1rem !important;
    border-radius: 10px !important;
  }

  .leadership-avatar {
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto 0.5rem !important;
    border-width: 3px !important;
  }

  .leadership-avatar-initials {
    font-size: 1.85rem !important;
  }

  .leadership-avatar small {
    display: none !important;
  }

  .leadership-bio {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    text-align: center !important;
    margin-bottom: 1.25rem !important;
  }

  .leadership-contact {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .leadership-contact-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0.6rem 0.85rem !important;
    background: #F4F6F8 !important;
    border: 1px solid #E3E7EC !important;
    border-radius: 6px !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    color: #092B50 !important;
    word-break: break-all !important;
    box-sizing: border-box !important;
  }

  .leadership-contact-pill svg {
    flex-shrink: 0 !important;
    margin-right: 0.35rem !important;
  }

  /* Section 9: Contact Information Grid Mobile */
  .contact-info-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Modal Backdrop & Dialog Mobile */
  .modal-backdrop {
    align-items: flex-start !important;
    padding: 0.5rem 0.25rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .modal-dialog {
    margin: 0.5rem auto !important;
    width: 96% !important;
    max-width: 480px !important;
    max-height: calc(100vh - 1rem) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 10px !important;
  }

  .modal-header {
    padding: 0.75rem 1rem !important;
    flex-shrink: 0 !important;
  }

  .modal-header-text h3 {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
  }

  .modal-header-text .modal-subtitle {
    font-size: 0.725rem !important;
  }

  .modal-close-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
  }

  .modal-body {
    padding: 0.75rem 1rem !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .modal-footer {
    padding: 0.65rem 1rem !important;
    flex-shrink: 0 !important;
  }

  /* 2 Fields in a Row inside modal */
  .form-row-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .form-group {
    margin-bottom: 0.65rem !important;
  }

  .form-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.2rem !important;
  }

  .form-control {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.85rem !important;
  }

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

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

  .footer-member-wrap {
    justify-content: center;
  }

  .main-image-wrap {
    height: 280px;
  }

  .product-actions-bar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .product-actions-bar .btn {
    width: 100%;
  }
}

/* 480px - Small Mobile Screens */
@media (max-width: 480px) {
  h1, .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }

  h2, .section-title {
    font-size: 1.3rem !important;
  }

  .section {
    padding: 2.25rem 0;
  }

  .hero-section {
    padding: 2rem 0 1.75rem !important;
  }

  .hero-tools-overlay-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.45rem !important;
  }

  .hero-tools-brand-strip {
    font-size: 0.6rem !important;
    padding: 0.5rem 0.35rem 0.35rem !important;
  }

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

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

  .header-container {
    height: 64px;
  }

  .site-logo {
    max-width: 165px;
  }

  .site-logo img {
    max-height: 38px;
  }

  .site-header .header-enquiry-btn {
    padding: 0.28rem 0.55rem !important;
    font-size: 0.72rem !important;
    height: 30px !important;
  }

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

  .floating-actions {
    bottom: 15px;
    right: 15px;
    gap: 0.5rem;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }

  .float-btn svg {
    width: 22px;
    height: 22px;
  }
}
