/* Mobile navigation and sticky contact bar.
   Shown only under 768px. */

.nav-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

.mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 56px;
  }

  .nav .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid #3BBFBF;
    outline-offset: 2px;
  }

  .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #2D4459;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 150;
    background: #2D4459;
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, visibility 0.35s ease;
  }

  .nav.is-open .mobile-nav {
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.35s ease, visibility 0s;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  }

  .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
  }

  .mobile-nav a {
    display: block;
    padding: 14px 24px;
    color: #FFFFFF;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
  }

  .mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
  }

  .mobile-nav a.active {
    color: #3BBFBF;
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    height: 56px;
    background: #2D4459;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
  }

  .mobile-cta a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 56px;
    min-width: 0;
    padding: 4px 2px;
    color: #FFFFFF;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-cta a + a {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.18);
  }

  .mobile-cta a:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
  }

  .mobile-cta-icon {
    font-size: 16px;
    line-height: 1;
  }
}
