/* Privacy page: the navbar is fixed. On wide screens the Webflow CSS gives
   .main-wrapper no top padding (the home page header makes its own room),
   so push the privacy section down below the navbar. Under 992px the
   Webflow CSS already pads .main-wrapper. */
@media screen and (min-width: 992px) {
  .section_privacy {
    padding-top: 5rem;
  }
}

/* Footer: the Site Terms link was taken out (Franc, 2026-11-12), so the
   footer row has two links, not three. On phones the Webflow CSS puts the
   copyright in row 4, which would leave an empty row. Move it to row 3. */
@media screen and (max-width: 767px) {
  #w-node-_32dd9f3c-7ca1-536b-cc30-cdabcb72e485-cb72e47f {
    grid-area: 3 / 1 / 4 / 2;
  }
}

/* Mobile menu: full cover, fade in, big spaced links (Franc, 2026-11-12).
   Webflow's nav collapses at 991px and under (data-collapse="medium").
   When open, Webflow moves the menu into .w-nav-overlay (just under the
   navbar), gives the menu [data-nav-menu-open], and slides it down with an
   inline transform. Here the overlay fills the screen below the navbar, the
   slide is turned off, and the menu fades in and out instead. The
   !important marks are only where Webflow's inline styles or its own
   !important would win. */
@media screen and (max-width: 991px) {
  /* Fill the screen below the navbar. 100% here is the navbar's height,
     plus its 2px bottom border, so the border line still shows. */
  .navbar2_component .w-nav-overlay {
    top: calc(100% + 2px);
    height: calc(100dvh - 100% - 2px) !important;
  }

  .navbar2_menu[data-nav-menu-open] {
    display: flex !important;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; /* the Webflow CSS centers this menu by its id, which would shrink it */
    height: 100%;
    padding: 1.5rem 5%;
    border-bottom: none;
    background-color: var(--teal1);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: none !important;
    transition: opacity 0.3s ease !important;
    animation: menu-fade-in 0.3s ease;
  }

  /* Fade out: the X drops .w--open 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)) .navbar2_menu[data-nav-menu-open] {
    opacity: 0;
  }

  .navbar2_menu[data-nav-menu-open] .navbar2_link {
    padding: 0.25rem 1rem;
    font-family: "Inter Tight", sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
  }

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

@media screen and (max-width: 479px) {
  .navbar2_menu[data-nav-menu-open] .navbar2_link {
    font-size: 2rem;
  }
}

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

/* Book Now on one line on phones (Franc, 2026-11-12). The Webflow CSS lets
   the button shrink, so "Book Now" wrapped to two lines. Keep it on one
   line, and at 479px and under trim the button's side padding and the gaps
   next to it, so the logo, the button and the hamburger fit down to 320px
   without shrinking the logo more than before. */
@media screen and (max-width: 767px) {
  .button.is-navbar2-button {
    white-space: nowrap;
  }
}

@media screen and (max-width: 479px) {
  .button.is-navbar2-button {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar2_button-wrapper {
    margin-left: 0.5rem;
    column-gap: 0.5rem;
  }
}

/* Very small phones (under 360px): trim a bit more, so the logo stays at
   least as big as it was before this change. */
@media screen and (max-width: 359px) {
  .button.is-navbar2-button {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.9375rem;
  }

  .navbar2_button-wrapper {
    margin-left: 0.25rem;
  }
}

/* Section jumps (Franc, 2026-11-12). The photos in Issues, Treatments and
   About have no width or height, so each one is 0 to 20px tall until it
   loads, then grows. They load lazily, so they grow while a menu link is
   scrolling the page, and the section lands short. Give each photo box its
   real shape (from the image files) so the space is held from the start.
   The photos look the same once loaded. */
.layout24_image,
.layout353_content-image {
  aspect-ratio: 2048 / 1365;
}

.layout353_content-image {
  width: 100%;
  height: auto;
}

#about .layout24_image {
  aspect-ratio: 1453 / 1364;
}

/* Land a section just below the fixed navbar, not under it. This is for a
   jump the browser makes itself, like opening /#pricing. Link taps on the
   home page are handled by /assets/js/custom.js, which measures the navbar. */
section[id] {
  scroll-margin-top: 5.625rem;
}
