/* ==========================================================================
   SRA SOLUTIONS — RESPONSIVE STYLESHEET
   Tested breakpoints: 320px, 360px, 375px, 390px, 414px, 768px, 1024px, 1280px, 1440px
   ========================================================================== */

/* Global Viewport Containment — Zero Horizontal Overflow */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* --------------------------------------------------------------------------
   Large Desktops & Laptops (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

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

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

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

/* --------------------------------------------------------------------------
   Tablets & Medium Screens (max-width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  /* Navigation */
  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  /* Hero Section */
  .hero {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

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

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

  .hero-badge-pill {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-fast-notice {
    justify-content: center;
  }

  .hero-trust-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .hero-floating-card {
    display: none !important;
  }

  .hero-visual-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  /* Capability Rows */
  .capability-row,
  .capability-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }

  /* Contact Page Grid */
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Mission & Vision */
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

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

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

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

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

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

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

  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .console-telemetry-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .console-terminal {
    padding: 1rem;
  }

  .hero-floating-card {
    display: none !important;
  }

  .ambient-glow-orb {
    width: 250px !important;
    height: 250px !important;
    filter: blur(40px) !important;
    opacity: 0.3 !important;
  }

  .hero-glow-1 {
    width: 200px !important;
    height: 200px !important;
    filter: blur(35px) !important;
    opacity: 0.25 !important;
    left: 0 !important;
  }

  .hero-glow-2 {
    width: 200px !important;
    height: 200px !important;
    filter: blur(35px) !important;
    opacity: 0.25 !important;
    right: 0 !important;
    max-width: 100%;
  }

  .status-pill {
    display: none !important;
  }

  .contact-preview-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

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

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

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

/* --------------------------------------------------------------------------
   Mobile Phones & Devices (max-width: 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  /* Header clean-up */
  .header-actions .btn {
    display: none !important;
  }

  /* Hero Section Typography & Spacing */
  .hero {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .hero-badge-pill {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.45rem;
    max-width: 100%;
  }

  .badge-desktop-only {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-desc {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
  }

  .hero-fast-notice {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0 0.5rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
  }

  /* Console Terminal Mobile Architecture */
  .console-terminal {
    padding: 0.85rem;
    border-radius: var(--radius-lg);
  }

  .console-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .window-dots {
    justify-content: flex-start;
  }

  .console-tabs {
    width: 100%;
    display: flex;
    padding: 2px;
  }

  .console-tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.2rem;
    font-size: 0.6875rem;
    white-space: normal;
  }

  .console-telemetry-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .console-telemetry-row .telemetry-chip:last-child {
    grid-column: 1 / -1;
  }

  .telemetry-chip {
    padding: 0.5rem 0.6rem;
  }

  .telemetry-label {
    font-size: 0.625rem;
  }

  .telemetry-value {
    font-size: 0.85rem;
  }

  .console-stage-box {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .stage-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .stage-title {
    font-size: 0.75rem;
  }

  .stage-action-badge {
    font-size: 0.65rem;
  }

  .chart-sim-bars {
    height: 50px;
    gap: 4px;
  }

  .pipeline-flow-row {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0;
  }

  .pipeline-step-node {
    width: 100%;
    padding: 0.45rem 0.6rem;
  }

  .pipeline-arrow-conn {
    transform: rotate(90deg);
    margin: 0.1rem auto;
    font-size: 0.75rem;
  }

  .console-tech-pills {
    gap: 0.35rem;
    padding-top: 0.65rem;
  }

  .tech-tag-chip {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Viewports (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container,
  .container-wide,
  .container-narrow {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .header-actions .btn {
    display: none; /* Keep header clean on small phones, CTA is in mobile drawer */
  }

  .status-pill {
    display: none;
  }

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

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

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

  .cta-banner .cta-buttons .btn {
    width: 100%;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .form-card {
    padding: 1.5rem 1.15rem;
  }

  .nexus-nodes {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .nexus-nodes::before {
    display: none;
  }

  .brand-sub {
    display: none;
  }
}
