/*
  AITB Health Responsive Styles
  File: /public_html/assets/css/responsive.css
*/

/* =========================
   Global responsive helpers
========================= */

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

section {
  overflow-x: hidden;
}

.aitb-container,
.container,
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* =========================
   Large tablets / small laptops
========================= */

@media (max-width: 1100px) {
  .hero,
  .aitb-hero,
  .split,
  .two-column,
  .feature-row,
  .investor-grid,
  .technical-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-content,
  .aitb-hero-content {
    max-width: 760px;
  }

  .hero-image,
  .aitb-hero-media {
    margin-top: 28px;
  }

  h1 {
    font-size: clamp(2.25rem, 6vw, 4.25rem);
  }

  h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .card-grid,
  .features-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =========================
   Tablets
========================= */

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
  }

  header,
  .site-header,
  .aitb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav,
  .site-nav,
  .aitb-nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo,
  .site-logo,
  .aitb-logo {
    max-height: 58px;
    width: auto;
  }

  .hero,
  .aitb-hero {
    padding-top: 72px;
    padding-bottom: 64px;
    text-align: center;
  }

  .hero-actions,
  .cta-row,
  .button-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-card,
  .glass-card,
  .panel {
    padding: 24px;
  }

  .card-grid,
  .features-grid,
  .stats-grid,
  .mission-grid,
  .download-grid {
    grid-template-columns: 1fr !important;
  }

  .infographic,
  .technical-poster,
  .hero-poster {
    border-radius: 22px;
  }
}

/* =========================
   Phones
========================= */

@media (max-width: 640px) {
  .aitb-container,
  .container,
  .wrap {
    width: min(100% - 22px, 1180px);
  }

  header,
  .site-header,
  .aitb-header {
    padding: 12px 10px;
  }

  .header-inner,
  .nav-inner,
  .aitb-header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .logo,
  .site-logo,
  .aitb-logo {
    max-height: 52px;
  }

  .nav,
  .site-nav,
  .aitb-nav {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.25rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  p,
  .lead,
  .hero-lead {
    font-size: 1rem;
  }

  .hero,
  .aitb-hero {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero-actions,
  .cta-row,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .button,
  .cta-button,
  .primary-btn,
  .secondary-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-card,
  .glass-card,
  .panel,
  .feature-card,
  .stat-card {
    padding: 20px;
    border-radius: 20px;
  }

  .hero-image img,
  .aitb-hero-media img,
  .technical-poster img,
  .infographic img {
    border-radius: 18px;
  }

  .technical-poster,
  .infographic,
  .wide-visual {
    max-height: none;
    object-fit: contain;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  footer,
  .site-footer,
  .aitb-footer {
    text-align: center;
  }

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

/* =========================
   Very small phones
========================= */

@media (max-width: 420px) {
  .logo,
  .site-logo,
  .aitb-logo {
    max-height: 46px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-card,
  .glass-card,
  .panel {
    padding: 16px;
  }

  .nav,
  .site-nav,
  .aitb-nav {
    gap: 10px;
    font-size: 0.82rem;
  }

  .btn,
  .button,
  .cta-button {
    padding: 13px 16px;
  }
}