/* ==========================================================================
   Baby Safety Inc. — Responsive
   ========================================================================== */

@media (max-width: 1180px) {

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 78px;
  }

  .brand-tagline {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(360px, 86vw);
    height: calc(100vh - var(--header-h));
    background: var(--white);
    box-shadow: -12px 0 32px rgba(0, 47, 93, 0.12);
    padding: 28px 24px 40px;
    transform: translateX(104%);
    transition: transform 0.3s ease;
    z-index: 90;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 18px;
  }

  .site-nav .nav-mobile-cta {
    display: inline-flex;
    margin-top: 20px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 30, 60, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 70;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
    max-width: var(--container);
  }

  h1,
  .h1 {
    font-size: clamp(2.1rem, 10vw, 2.7rem);
    overflow-wrap: break-word;
  }

  .eyebrow {
    max-width: 100%;
    line-height: 1.55;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .header-inner .btn {
    width: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
