/* ==========================================================================
   GLOBAL ELECTRONICS - Responsive Stylesheet
   Mobile First & Device Adaptations
   ========================================================================== */

/* Tablets and Desktops below 1024px */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-badge-row, .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-metrics {
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .emergency-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .emergency-actions {
    justify-content: center;
  }
}

/* Mobile & Tablet below 860px */
@media (max-width: 860px) {
  .top-bar {
    display: none; /* Hide top bar on mobile to give maximum screen real estate */
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile Slide-in Drawer */
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow-y: auto;
    display: none;
    z-index: 998;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .dropdown-menu, .dropdown-menu.mega {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 6px;
    margin-bottom: 12px;
    grid-template-columns: 1fr;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }

  .btn-header-call {
    display: none; /* In header on small screens, bottom bar handles it */
  }

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

  .section-title {
    font-size: 1.85rem;
  }

  .section {
    padding: 50px 0;
  }

  /* Show floating mobile action bar */
  .mobile-action-bar {
    display: block;
  }

  body {
    padding-bottom: 70px; /* Space for sticky bottom bar */
  }

  .area-table-wrap {
    overflow-x: auto;
  }

  .area-table {
    min-width: 600px;
  }
}

/* Mobile Small Devices below 580px */
@media (max-width: 580px) {
  .hero-title {
    font-size: 1.85rem;
  }

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

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

  .hero-trust-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

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

  .footer-legal-links {
    justify-content: center;
  }

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

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

  .ticket-details-grid {
    grid-template-columns: 1fr;
  }

  .emergency-banner {
    padding: 30px 20px;
  }

  .emergency-banner h3 {
    font-size: 1.6rem;
  }
}
