/* ==========================================================================
   DIGITAL STORM TECHNOLOGIES — RESPONSIVE BREAKPOINTS v3.0
   ========================================================================== */

/* TABLET (992px and below) */
@media (max-width: 992px) {

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

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

  .footer-brand {
    grid-column: span 2;
  }

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

/* MOBILE (768px and below) */
@media (max-width: 768px) {

  :root {
    --section-pad: 64px;
  }

  * { max-width: 100%; }

  .container {
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* NAV */
  .navbar { padding: 0 1.25rem; }
  .nav-inner { height: 64px; }
  .nav-actions .btn { display: none; }
  .nav-theme-btn { display: flex; }

  /* HERO */
  .hero {
    padding-top: 64px;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

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

  .hero-cta .btn {
    max-width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  /* GRIDS */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  /* CLIENTS */
  .clients-strip { padding: 1.75rem 0; }

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

  .footer-brand {
    grid-column: span 2;
  }

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

  /* eTIMS */
  .etims-highlight-box {
    padding: 1.75rem;
  }

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

  /* CTA */
  .cta-banner { padding: 5rem 0; }
  .cta-banner-title { font-size: clamp(1.7rem, 7vw, 2.5rem); }

  /* MISC */
  #back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  /* ----------------------------------------------------
     APP UI OVERRIDES (Inserted for App-like feel)
     ---------------------------------------------------- */
  body {
    padding-bottom: 64px; /* Space for bottom nav */
  }

  .nav-hamburger, .nav-drawer {
    display: none !important; /* Completely hide standard mobile menu */
  }

  .mobile-bottom-nav {
    display: flex; /* Show bottom nav on mobile */
  }

  /* Make grids horizontally swipeable like native apps */
  .grid-2, .grid-3, .grid-4 {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem; /* Space for scrollbar if any */
    margin-right: -1.25rem; /* Break out of container on right */
    padding-right: 1.25rem; /* Padding at end of scroll */
  }

  .grid-2 > *, .grid-3 > *, .grid-4 > * {
    flex: 0 0 85%; /* Cards take up 85% width so user sees next card peaking */
    scroll-snap-align: start;
  }

  /* Hide scrollbars for cleaner app look */
  .grid-2::-webkit-scrollbar, 
  .grid-3::-webkit-scrollbar, 
  .grid-4::-webkit-scrollbar {
    display: none;
  }

}

/* SMALL PHONES (480px and below) */
@media (max-width: 480px) {

  .container { padding: 0 1rem; }

  .hero-title {
    font-size: clamp(1.75rem, 10vw, 2.3rem) !important;
  }

  .hero-kicker {
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
  }

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

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-stat-divider { display: none; }

  .section-title {
    font-size: clamp(1.5rem, 9vw, 2rem) !important;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .clients-track { animation: none; }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(255,255,255,0.2);
    --text-secondary: rgba(248,250,252,0.9);
  }
}

:focus-visible {
  outline: 3px solid var(--orange) !important;
  outline-offset: 3px;
}

