/* Keep the existing desktop presentation; enhance navigation on narrow screens. */
.menu-toggle {
  display: none;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

@media (max-width: 960px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
  }

  header .brand {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }

  .navigation-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    min-width: 88px;
    padding: 9px 12px;
    border: 1px solid #71756d;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    font: 700 16px/1.5 Arial, sans-serif;
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 20px;
    height: 20px;
    flex: none;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: #303433;
  }

  .menu-toggle:focus-visible {
    outline: 3px solid #e0ac63;
    outline-offset: 5px;
  }

  header nav {
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #555;
  }

  .navigation-ready nav {
    display: none;
  }

  .navigation-ready nav[data-open="true"] {
    display: flex;
  }

  header nav a,
  header nav a:not(.button) {
    display: flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
    font-size: 16px;
  }

  header nav .button {
    justify-content: center;
  }

  .hero > *,
  .services > *,
  .gallery > *,
  .builder > *,
  .contact > *,
  .section-top > * {
    min-width: 0;
  }

  main,
  footer {
    overflow-wrap: anywhere;
  }

  .eyebrow,
  .credentials,
  .gallery figcaption,
  .note,
  footer,
  .button {
    font-size: 16px;
  }

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

  main a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    max-width: 100%;
  }

  main .phone {
    display: flex;
  }

  video {
    height: auto;
  }

  iframe,
  embed,
  object {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 800px) {
  h1 {
    font-size: clamp(36px, 10vw, 49px);
  }

  .hero img,
  .gallery:not(.gallery-added) img,
  .builder img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 360px) {
  .navigation-ready .menu-toggle {
    min-width: 44px;
    padding: 10px;
    gap: 0;
  }

  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
