/* Quality Fence — mobile overflow repair */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  /* Header */
  .qfs-header {
    gap: 10px;
    padding: 10px 14px;
  }

  .qfs-logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .qfs-logo img {
    width: min(145px, 38vw);
    max-width: 100%;
  }

  .qfs-head-actions {
    flex: 0 0 auto;
  }

  .qfs-head-actions .qfs-btn {
    padding: 11px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Prevent hero grid contents from widening the page */
  .qfs-hero-inner,
  .qfs-hero-copy,
  .qfs-hero-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* Trusted Kansas City pill */
  .qfs-pill {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.25;
    white-space: normal;
  }

  /* Hero typography */
  .qfs-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 12vw, 49px);
    letter-spacing: -0.055em;
    overflow-wrap: break-word;
  }

  .qfs-hero p {
    max-width: 100%;
    font-size: clamp(18px, 5.5vw, 22px);
    overflow-wrap: break-word;
  }

  /* Stack the main buttons */
  .qfs-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }

  .qfs-actions .qfs-btn {
    width: 100%;
    padding: 15px 18px;
  }

  /* Quote information card */
  .qfs-hero-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .qfs-hero-panel h3 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .qfs-big-phone {
    max-width: 100%;
    padding: 20px 18px;
    font-size: clamp(25px, 8vw, 32px);
    overflow-wrap: break-word;
  }
}
.qfs-menu-toggle {
    display: none;
}

@media (max-width: 1050px) {
    .qfs-menu-toggle {
        display: block !important;
        width: 46px !important;
        height: 46px !important;
        padding: 10px !important;
        background: #f25a35 !important;
        border: 0 !important;
        border-radius: 10px !important;
    }

    .qfs-menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        margin: 4px 0 !important;
        background: #fff !important;
    }

    .qfs-nav {
        display: none !important;
    }

    .qfs-nav.is-open {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block !important;
        padding: 18px;
        background: #061b2d;
    }
}