/* Phone width fix (Franc, 2026-11-19). On phones the navbar pill ran off
   the right side and the menu button was cut in half, but only on the
   home page. The cause is the "BOOK US FOR YOUR OCCASION" title near the
   bottom of the home page. Its spaces are no-break spaces, so it can't wrap
   to a second line. At 40px it is about 430px wide, wider than a phone. That
   made the whole page wider than the screen (450px on a 390px phone), and
   the navbar, which is pinned to the page width, grew with it. Here the
   title shrinks just enough to fit the screen, so the page is the screen's
   width again and the pill fits with even gaps. The text is not changed.
   Above about 530px wide the title is its old size. */
@media screen and (max-width: 767px) {
  .section_header70 h1 {
    font-size: min(2.5rem, 7.5vw);
  }
}

/* Mobile menu: full screen, fade in, big spaced links, X in the top right
   (Franc, 2026-11-19: "Give this one a similar navbar treatment to the
   clockwork chiropractic project, except, since the bar floats, have the
   fade in nav encompass the whole screen with an X in the top right
   corner." and "leave desktop the same as it is now.")
   Webflow's nav folds into the menu button at 991px and under
   (data-collapse="medium"). When open, Webflow moves the menu into
   .w-nav-overlay, gives the menu [data-nav-menu-open], and slides it down
   with an inline transform. Here the overlay covers the whole screen, the
   pill too, the slide is turned off, and the menu fades in and out instead.
   The X is a button that /assets/js/custom.js adds to the menu.
   The !important marks are only where Webflow's inline styles or its own
   !important would win. Desktop (992px and up) is not touched. */
.menu-close {
  display: none;
}

@media screen and (max-width: 991px) {
  /* Cover the whole screen. The overlay sits inside the navbar, which is
     above the page (z-index 1000), and the overlay is above the pill. */
  .navbar14_component .w-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100vh !important; /* Webflow sets the height inline */
    height: 100dvh !important;
  }

  .navbar14_menu[data-nav-menu-open] {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 6rem 5% 3rem; /* room at the top for the X */
    background-color: var(--cigar); /* the brown of the top of the home page */
    color: var(--white);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: none !important;
    transition: opacity 0.35s ease !important;
    animation: menu-fade-in 0.4s ease;
  }

  /* Fade out: closing drops .w--open from the menu button right away, while
     Webflow keeps the menu shown for 400ms more (data-duration) before it
     hides it. */
  .w-nav:not(:has(.w-nav-button.w--open)) .navbar14_menu[data-nav-menu-open] {
    opacity: 0;
  }

  /* The white box Webflow puts around the links on phones: gone. The links
     are stacked, centered and spread down the screen. */
  .navbar14_menu[data-nav-menu-open] .navbar14_menu-link-wrapper {
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
    background-color: transparent;
  }

  .navbar14_menu[data-nav-menu-open] .navbar14_link,
  .navbar14_menu[data-nav-menu-open] .navbar14_link.w--current {
    padding: 0.25rem 1rem;
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
  }

  .navbar14_menu[data-nav-menu-open] .navbar14_link:hover {
    background-color: #ffffff1f;
  }

  /* Book Event: white button with black text, like the site's other
     buttons on brown (Email Us). Same link, same classes. */
  .navbar14_menu[data-nav-menu-open] .navbar14_button-wrapper {
    margin: 0;
    align-items: center;
  }

  .navbar14_menu[data-nav-menu-open] .navbar14_button-wrapper .button {
    border-color: var(--white);
    background-color: var(--white);
    color: var(--black);
    padding: 0.75rem 2rem;
    font-size: 1.25rem;
  }

  /* The X: in the same spot as the menu button on the pill. */
  .navbar14_menu[data-nav-menu-open] .menu-close {
    display: block;
    position: absolute;
    top: 2.25rem;
    right: calc(5% + 1.5rem + 3px);
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-close::before,
  .menu-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 3px;
    margin: -1.5px 0 0 -16px;
    border-radius: 2px;
    background-color: var(--white);
    transform: rotate(45deg);
  }

  .menu-close::after {
    transform: rotate(-45deg);
  }

  /* Stop the page from scrolling under the open menu. */
  html:has(.w-nav-button.w--open) {
    overflow: hidden;
  }
}

@media screen and (max-width: 767px) {
  .navbar14_menu[data-nav-menu-open] .menu-close {
    top: 1.75rem;
    right: calc(5% + 0.75rem + 3px);
  }
}

@media screen and (max-width: 479px) {
  .navbar14_menu[data-nav-menu-open] .navbar14_link,
  .navbar14_menu[data-nav-menu-open] .navbar14_link.w--current {
    font-size: 2rem;
  }
}

@keyframes menu-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
