/*
 * Header navigation fixes (desktop spacing incl. the Reviews item, mobile menu colours).
 * Loaded from header.php with a file-modification version (?v=filemtime) so every page gets
 * the current rules immediately, even where an older style.css?v=... is still cached by the
 * browser or the hosting CDN. Kept separate from the 2.4 MB style.css for the same reason.
 */

/* Desktop menu: keep every top-level item (including Reviews) and the phone number on one line,
   and let the menu fill the space between the logo and the contact block with even spacing. */
@media (min-width: 1200px) {
  header.style-2 .logo-and-menu-area {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
  }

  header.style-2 .logo-and-menu-area .header-logo {
    flex-shrink: 0;
  }

  header.style-2 .logo-and-menu-area .main-menu {
    flex: 1 1 auto;
    min-width: 0;
  }

  header.style-2 .nav-right {
    flex-shrink: 0;
    margin-left: 0; /* overrides an older cached style.css that added 24px */
  }

  /* Spacing comes from the list, not from link padding, so every gap is equal:
     logo -> Home = between items = Reviews -> phone. "gap" + "padding" set the minimum. */
  header.style-2 .main-menu>ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 22px;
    padding: 0 22px;
  }

  header.style-2 .main-menu>ul>li,
  header.style-2 .main-menu>ul>li:first-child,
  header.style-2 .main-menu>ul>li:last-child {
    padding: 0;
  }

  header.style-2 .main-menu>ul>li>a {
    padding-left: 0;
    padding-right: 0;
    white-space: nowrap;
  }

  header.style-2 .contact-area .content a {
    white-space: nowrap;
  }
}

/* Very wide screens: centre the header content so the menu gaps stay balanced (background stays full width). */
@media (min-width: 2000px) {
  header.style-2>.container-fluid {
    max-width: 1840px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Smaller desktops: slightly smaller text so five items + phone + button always fit. */
@media (min-width: 1440px) and (max-width: 1599px) {
  header.style-2 .header-logo {
    width: 170px;
  }

  header.style-2 .main-menu>ul>li>a {
    font-size: 14.5px;
    letter-spacing: 0.2px;
  }

  header.style-2 .nav-right {
    gap: 24px;
  }
}

/* Laptops. */
@media (min-width: 1200px) and (max-width: 1439px) {
  header.style-2 .header-logo {
    width: 150px;
  }

  header.style-2 .main-menu>ul>li>a {
    font-size: 13.5px;
    letter-spacing: 0;
  }

  header.style-2 .main-menu>ul {
    gap: 16px;
    padding: 0 16px;
  }

  header.style-2 .nav-right {
    gap: 14px;
  }

  header.style-2 .contact-area .content a {
    font-size: 15px;
  }

  header.style-2 .primary-btn1 {
    padding: 14px 18px;
  }
}

@media (min-width: 1200px) and (max-width: 1299px) {
  header.style-2 .main-menu>ul {
    gap: 12px;
    padding: 0 12px;
  }

  /* The phone number stays visible; only the small "Need Help?" icon is dropped. */
  header.style-2 .nav-right .contact-area .icon {
    display: none;
  }
}


/* Tablet and mobile (off-canvas menu). */
@media only screen and (max-width: 1199px) {
  /* The header became white (desktop links are black), but this off-canvas panel is navy:
     its top-level links and help text must stay light, and the hamburger icon dark. */
  header.style-2 .main-menu>ul>li>a,
  header.style-2 .main-menu>ul>li>a i {
    color: #fcfdfd;
  }

  header.style-2 .main-menu>ul>li>a:hover {
    color: var(--primary-color1);
  }

  header.style-2 .main-menu .contact-area .content span {
    color: rgba(255, 255, 255, 0.7);
  }

  header.style-2 .main-menu .contact-area .content a {
    color: #fcfdfd;
  }

  header.style-2 .nav-right .mobile-menu-btn svg {
    fill: var(--title-color);
  }

}
