/* Mobile Navigation improvements */

/* Desktop: keep default horizontal menu and hide the toggle */
@media (min-width: 993px) {
  .mobile-nav-toggle { display: none; }
  .global-nav-menu { display: flex !important; position: static; height: 60px; }
}

/* Mobile: use a fixed dropdown below header */
@media (max-width: 992px) {
  .global-navigation { position: relative; gap: 10px; display:flex; align-items:center; justify-content: space-between; width:100%; }

  /* Mobile header: Left = menu, Right = Calculator button */
  .mobile-nav-toggle { order: 1; }
  .calc-cta { order: 2; }

  .calc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    background: #7cb342;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.25);
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    cursor: pointer;
  }
  .mobile-nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
  }

  /* Hide by default */
  .global-nav-menu {
    display: none;
  }

  /* When open, show as full-width dropdown under 60px header */
  .global-nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; /* matches .global-header height */
    left: 0;
    right: 0;
    background: #1e4a72;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 8px 0 24px 0; /* extra padding for last item spacing */
    z-index: 1000; /* above content */
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  }

  .global-nav-item { height: auto !important; }
  .global-nav-item a {
    padding: 14px 20px !important;
    height: auto !important;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .global-nav-item:first-child a { border-top: 0; }
}