/* =============================================================
   SITE NAV — clean, self-contained navbar
   BEM-style classes: .site-nav, .site-nav__inner, etc.
   No !important needed — all rules are scoped to .site-nav
   ============================================================= */

/* ----- Outer bar ----- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

/* ----- Inner flex container — two rows on desktop ----- */
.site-nav__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ----- Row 1: Logo ----- */
.site-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 8px 0 4px;
}

.site-nav__logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ----- Row 2: Nav links ----- */
.site-nav__links {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 8px;
}

/* ----- Individual link ----- */
.site-nav__link {
  display: block;
  padding: 0;
  color: #1b1a1a;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 38px;
}

.site-nav__link:hover {
  color: #e11d07;
  text-decoration: none;
}

/* ----- CTA button (CONTACT US) — pushed to far right ----- */
.site-nav__link--cta {
  background-color: #e11d07;
  color: #ffffff;
  border-radius: 3px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__link--cta:hover {
  background-color: #c01820;
  color: #ffffff;
}

/* ----- Hamburger toggle (hidden on desktop) ----- */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

/* Three-line hamburger via span + ::before + ::after */
.site-nav__toggle span,
.site-nav__toggle span::before,
.site-nav__toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1b1a1a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
  position: relative;
}

.site-nav__toggle span::before,
.site-nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav__toggle span::before {
  top: -7px;
}

.site-nav__toggle span::after {
  top: 7px;
}

/* ✕ state when menu is open */
.site-nav__toggle.is-open span {
  background-color: transparent;
}

.site-nav__toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav__toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =============================================================
   MOBILE  (≤ 991px)
   ============================================================= */
@media (max-width: 991.98px) {

  /* Inner row: logo left, toggle right on one line */
  .site-nav__inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 16px;
    position: relative;
  }

  .site-nav__logo {
    padding: 0;
  }

  .site-nav__logo img {
    height: 42px;
  }

  /* Show hamburger button, push to far right */
  .site-nav__toggle {
    display: flex;
    margin-left: auto;
  }

  /* Nav links: hidden by default, full-width dropdown when open */
  .site-nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0 16px;
    margin-top: 0;

    /* Slide-in animation */
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav__links.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Individual link in mobile menu */
  .site-nav__link {
    line-height: 1;
    padding: 14px 20px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
  }

  .site-nav__link:last-child {
    border-bottom: none;
  }

  /* CTA button in mobile menu — reset desktop margin-left: auto */
  .site-nav__link--cta {
    display: inline-block;
    width: auto;
    margin: 14px 20px 4px;
    padding: 12px 20px;
    text-align: center;
    border-radius: 4px;
    line-height: 1;
  }
}

/* =============================================================
   SMALL MOBILE  (< 576px)
   ============================================================= */
@media (max-width: 575.98px) {
  .site-nav__inner {
    padding: 8px 12px;
  }

  .site-nav__logo img {
    height: 38px;
  }
}
