/* ==========================================================================
   ENERGY SOLUTIONS VSP - RESPONSIVE STYLESHEET
   Mobile-first & Desktop Breakpoint Overrides
   ========================================================================== */

/* 1. TABLETS & MEDIUM SCREENS (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.85rem; }
  .hero-title { font-size: 2.5rem; }

  /* Mobile Hamburger Menu Toggle Display */
  .mobile-menu-toggle {
    display: block;
  }

  /* Off-canvas Slide-out Mobile Navigation */
  .site-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--color-navy);
    padding: 5rem 2rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1001;
    transition: right var(--transition-normal);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
  }

  .site-nav.is-active {
    right: 0;
  }

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

  .nav-list a {
    font-size: 1.1rem;
    width: 100%;
    display: block;
  }

  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 13, 22, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
  }

  .mobile-nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Grid Layout Fallbacks */
  .enquiry-container-grid {
    grid-template-columns: 1fr;
  }

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

  .modal-body {
    grid-template-columns: 1fr;
  }
}

/* 2. SMALL TABLETS & PHONES (<= 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

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

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

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

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

  .form-group.full-width {
    grid-column: span 1;
  }

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

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

  .catalog-controls {
    flex-direction: column;
  }

  .category-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
}

/* 3. EXTRA SMALL PHONES (<= 480px) */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .header-actions .btn {
    display: none; /* Hide top CTA on very tiny screens to give space for logo */
  }

  .product-card-footer {
    flex-direction: column;
  }

  .product-card-footer .btn {
    width: 100%;
  }
}
