/* ==========================================================================
   Quatsol — Responsive Overrides
   ========================================================================== */

/* Large desktop refinement */
@media (min-width: 1400px) {
  .container-xl {
    max-width: 1320px;
  }
}

/* Tablets and below: collapse desktop nav, adjust hero */
@media (max-width: 1199.98px) {
  .q-hero-visual {
    height: 360px;
  }
}

@media (max-width: 991.98px) {
  .q-navbar-collapse {
    background: var(--q-white);
    border-radius: var(--radius-md);
    margin-top: 14px;
    padding: 12px;
    box-shadow: var(--shadow-md);
    max-height: 70vh;
    overflow-y: auto;
  }

  .q-nav .nav-item.dropdown:hover .dropdown-menu {
    display: none;
  }

  .q-nav .dropdown-menu {
    position: static !important;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    display: none;
    transform: none !important;
    margin-top: 4px !important;
  }

  .q-nav .dropdown-menu.show {
    display: block;
  }

  .q-header-actions .q-icon-btn.d-lg-inline-flex {
    display: none !important;
  }

  .q-hero {
    padding: 120px 0 80px;
    text-align: center;
  }

  .q-hero h1,
  .q-hero .q-hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

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

  .q-hero-visual {
    height: 300px;
    margin-top: 40px;
  }

  .q-page-hero {
    padding: 120px 0 56px;
    text-align: center;
  }

  .q-page-hero h1,
  .q-page-hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .q-why .row {
    flex-direction: column-reverse;
  }

  .q-why-visual {
    min-height: 320px;
    margin-bottom: 32px;
  }

  .q-cta {
    padding: 48px 32px;
    text-align: center;
    margin: 0 16px;
  }

  .q-cta h2,
  .q-cta p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  .q-logo-text small {
    display: none;
  }

  .q-industry-card {
    height: 260px;
  }

  .q-footer {
    text-align: center;
  }

  .q-footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .q-social {
    justify-content: center;
  }

  .q-footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 56px 0;
  }

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

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

  .q-cta .btn-quatsol {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .q-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
