/* Responsive foundation — Elementor breakpoints: tablet ≤1024, mobile ≤767 */

@media (max-width: 1024px) {
  :root {
    --fs-h1: 50px;
    --fs-h2: 40px;
    --container-width: 1024px;
    --header-pad-y: 20px;
  }

  .site-header__brand {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .site-header__logo {
    max-width: 160px;
  }

  .site-header__menu-toggle {
    margin-right: 12px;
  }

  .site-header__cta {
    flex: 0 0 auto;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --fs-h1: 40px;
    --fs-h2: 32px;
    --fs-h3: 28px;
    --fs-h4: 24px;
    --container-width: 767px;
    --header-pad-y: 10px;
  }

  h1 {
    line-height: 1.2em;
  }

  h2 {
    line-height: 1.2em;
  }

  .site-header__inner {
    padding: 10px 20px;
  }

  .site-header__brand {
    flex: 0 0 auto;
    max-width: 55%;
  }

  .site-header__logo {
    max-width: 140px;
  }

  /* Live mobile header has no Inquiry Now CTA */
  .site-header__cta {
    display: none !important;
  }

  .site-header__menu-toggle {
    margin-left: auto;
    margin-right: 0;
  }

  .site-footer {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__brand-logo {
    max-width: 140px;
  }

  .site-footer__contact-item {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .site-header__logo {
    max-width: 120px;
  }

  .btn--inquiry {
    padding: 12px 14px;
    font-size: 16px;
  }
}

/* Prevent horizontal overflow site-wide */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.site-header,
.site-footer,
.site-main {
  max-width: 100%;
}
