/* Header-only correction. Preserve existing tab/button styling and content.
 * Editable logo dimensions are centralised here. Tabs never require scrolling;
 * when one row cannot fit, whole buttons move to another visible row.
 */
:root {
  --header-logo-width: 54px;
  --header-logo-height: 62px;
  --header-brand-font-size: 17px;
  --header-tagline-font-size: 8px;
}

@media (min-width: 561px) {
  .nav.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 1.4vw;
  }

  .nav.nav .brandLockup {
    flex: 0 0 auto;
    min-width: 0;
    gap: 4px;
    order: 0;
  }

  .nav.nav .brandMark {
    flex-basis: var(--header-logo-width);
    width: var(--header-logo-width);
    height: var(--header-logo-height);
  }

  .nav.nav .brandName {
    font-size: var(--header-brand-font-size);
    letter-spacing: .12em;
  }

  .nav.nav .brandTagline {
    font-size: var(--header-tagline-font-size);
    letter-spacing: .1em;
    margin-top: 6px;
    margin-left: 9px;
  }

  .nav.nav .brandType::after { margin-top: 5px; }

  .nav.nav .navLinks {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    width: auto;
    order: 1;
  }

  .nav.nav .navLinks a {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .nav.nav .whatsappWidget {
    display: flex;
    flex: 0 0 auto;
    order: 2;
  }

  .nav.nav .mobileMenu { display: none; }
}

/* Give full-size buttons the entire header width on laptops and tablets.
 * No scroll containers, clipping, font reductions or scaled tab buttons.
 */
@media (min-width: 561px) and (max-width: 1500px) {
  .nav.nav .navLinks {
    flex-basis: 100%;
    width: 100%;
    order: 3;
    padding: 0;
    border-top: 0;
  }
}

/* EDIT 2026-10-12 v9: prevent Home-only header height changes.
 * Home previously overrode the shared desktop header to 82/84px on common
 * laptop viewports while every other page retained the 128px header. That
 * caused a visible jump whenever Home was selected. Keep one stable desktop
 * header minimum height across every page; wrapped tab rows may grow naturally.
 */
@media (min-width: 901px) {
  .homePage .nav.nav {
    min-height: 128px;
  }
}
