/* Adira Jr navigation refinement */

/* The drawer must never appear as a normal desktop nav row. */
.mobile-menu{display:none}

@media (min-width: 961px) {
  .nav {
    height: 88px;
    gap: 30px;
  }

  .nav-left,
  .nav-right {
    gap: 30px;
    white-space: nowrap;
  }

  .nav a:not(.wa-mini) {
    position: relative;
    padding: 31px 0 28px;
    transition: color .24s ease, opacity .24s ease;
  }

  /* Underline only the text navigation links, never the centred logo. */
  .nav-left a:not(.wa-mini)::after,
  .nav-right a:not(.wa-mini)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 100%;
    height: 1px;
    background: #54aaa9;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .24s ease;
  }

  .nav-left a:not(.wa-mini):hover,
  .nav-right a:not(.wa-mini):hover {
    color: #438f8e;
    opacity: 1;
  }

  .nav-left a:not(.wa-mini):hover::after,
  .nav-right a:not(.wa-mini):hover::after {
    transform: translateX(-50%) scaleX(1);
  }

  /* The logo gets its own clean hover treatment. */
  .nav-center a::after {
    display: none !important;
  }

  .nav-center .logo {
    transition: filter .24s ease, transform .24s ease, opacity .24s ease;
  }

  .nav-center a:hover .logo {
    filter: brightness(.78) saturate(1.18);
    transform: translateY(-1px);
    opacity: 1;
  }

  .wa-mini {
    transition: background-color .24s ease, transform .24s ease, box-shadow .24s ease;
  }

  .wa-mini:hover {
    background: #2c6665;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(44,102,101,.16);
  }
}

/* Keep full desktop navigation comfortable on smaller laptops. */
@media (min-width: 961px) and (max-width: 1180px) {
  .nav {
    gap: 18px;
  }

  .nav-left,
  .nav-right {
    gap: 20px;
  }

  .nav a {
    font-size: .84rem;
  }

  .logo{width:142px}
  .wa-mini{padding:10px 13px}
}

/* Switch to the clean hamburger layout before links become cramped. */
@media (max-width: 960px) {
  .nav{
    height:70px;
    grid-template-columns:auto 1fr auto;
    gap:12px;
  }

  /* Override the original phone rule that hid the entire left nav. */
  .nav-left{
    display:flex;
    align-items:center;
    gap:0;
  }

  .nav-left > a,
  .nav-right > a:not(.wa-mini){display:none}

  .menu-btn{
    display:block;
    cursor:pointer;
    padding:8px 10px 8px 0;
    line-height:1;
  }

  .nav-center{justify-self:center}
  .nav-right{display:flex;gap:8px}
  .logo{width:138px}
  .wa-mini{padding:9px 12px;font-size:.78rem}

  .mobile-menu{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:70px;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    padding:20px 24px 24px;
    box-shadow:0 18px 35px rgba(60,43,31,.08);
    z-index:45;
  }

  .mobile-menu.open{
    display:grid;
    gap:15px;
  }

  .mobile-menu a{
    padding:5px 0;
  }
}
