/* Noon Computers — responsive: 320–1440+ */

/* Small phones already covered by mobile-first base */

@media (max-width: 767px) {
  .page-home .hero__title {
    max-width: none;
    font-size: clamp(1.65rem, 7.5vw, 2rem);
  }

  .page-home .hero--split .hero__title {
    max-width: none;
  }

  .hero__lead {
    font-size: var(--fs-base);
  }

  .hero__actions,
  .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__actions .btn,
  .btn-group .btn {
    width: 100%;
  }

  /* Lab hero: image + CTAs share one row — buttons sized to the right column only */
  .hero--lab .hero__actions {
    flex-direction: column;
    width: auto;
  }

  .section {
    padding-block: var(--space-6);
  }

  .section__header {
    margin-bottom: var(--space-5);
  }

  .section__title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  .stat-strip__grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: var(--space-4) var(--space-5);
  }

  .stat-card__label {
    font-size: var(--fs-xs);
    text-transform: none;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 479px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 480px) {  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .header-actions {
    display: flex;
  }

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

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .country-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero__title {
    max-width: 14ch;
  }

  .page-home .hero__title {
    max-width: 16ch;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-8);
  }

  .home-training__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .cta-block {
    padding: var(--space-7);
  }

  .prose-panel {
    padding: var(--space-7);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }

  .status-board__row {
    grid-template-columns: 10rem 1fr auto;
    align-items: center;
    gap: var(--space-4);
  }

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

  .country-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-4);
  }

  .site-header.is-nav-open .site-nav {
    max-height: none;
    overflow: visible;
    border: 0;
  }

  .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 0;
  }

  .site-nav__link {
    padding: 0.45rem 0.65rem;
    font-size: var(--fs-sm);
  }

  .site-nav__actions {
    display: none;
  }

  .site-header__inner {
    gap: var(--space-5);
  }

  .site-footer__grid {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  }

  .home-location__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    padding-block: 6.5rem 5.5rem;
  }

  .section {
    padding-block: var(--space-9);
  }
}

@media (min-width: 1280px) {
  :root {
    --container: 76rem;
  }

  .site-nav__link {
    padding: 0.5rem 0.75rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 80rem;
    --container-wide: 90rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover {
    transform: none;
  }
}

/* Print */
@media print {
  .site-header,
  .site-nav,
  .nav-toggle,
  .header-actions,
  .cta-block,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .prose,
  .section--panel {
    color: #000;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}
