.region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  max-width: 1660px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-pill {
  background-color: var(--header-bg);
  border-radius: 90px;
  display: flex;
  align-items: center;
  height: 67px;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.header-pill--left {
  padding: 2px 43px 2px 2px;
}

.header-pill--right {
  padding: 2px 2px 2px 40px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding__logo img {
  height: 63px;
  width: auto;
  border-radius: 90px;
  display: block;
}

.site-branding__name {
  display: none; /* Hide text name if we use logo */
}

/* Common Menu Styling */
.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.menu a {
  color: var(--text-color);
  font-family: var(--font-menu);
  font-weight: 500;
  font-size: 18px;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-pill--left .menu a {
  padding: 0 23px;
}

.header-pill--right .menu a {
  padding: 0 15px;
}

.menu a:hover {
  text-decoration: none;
  color: #555;
}

/* Form Button Styling & Active Items */
.menu a.is-current-section {
  background-color: #000;
  color: #fff;
  border-radius: 90px;
  height: 55px;
  margin: 0;
  padding: 0 30px;
}

.menu a.is-current-section:hover {
  color: #ddd;
}

.header-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #151313;
  color: #ffffff;
  font-family: var(--font-menu);
  font-size: 16px;
  font-weight: 500;
  height: 63px;
  padding: 0 30px;
  border-radius: 90px;
  white-space: nowrap;
  margin-left: 10px;
  transition: background-color 0.3s;
}

.header-cta-button:hover {
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
}

/* Desktop Defaults for Mobile Elements */
.header-mobile-toggle {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* Tablet & Intermediate Viewports (992px - 1200px) */
@media (max-width: 1200px) and (min-width: 992px) {
  .region-header {
    padding: 16px 24px;
  }
  .header-pill--left {
    padding: 2px 20px 2px 2px;
  }
  .header-pill--right {
    padding: 2px 2px 2px 20px;
  }
  .menu a {
    font-size: 16px;
    padding: 0 12px;
  }
  .header-cta-button {
    font-size: 15px;
    padding: 0 20px;
  }
}

/* Mobile Viewports (<= 991px) */
@media (max-width: 991px) {
  .region-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 1000;
  }

  .header-pill {
    height: 67px;
    pointer-events: auto;
  }

  .header-pill--left {
    padding: 2px;
    background-color: #1C1C1C;
    border-radius: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .header-pill--left .menu {
    display: none !important;
  }

  .header-pill--right {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
    height: 67px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header-pill--right .menu,
  .header-cta-button {
    display: none !important;
  }

  /* Hamburger Toggle Button (No background) */
  .header-mobile-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
  }

  .header-mobile-toggle__line {
    display: block;
    height: 2px;
    background-color: #151313;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
  }

  .header-mobile-toggle__line--1 {
    width: 28px;
  }

  .header-mobile-toggle__line--2 {
    width: 22px;
  }

  .header-mobile-toggle__line--3 {
    width: 28px;
  }

  /* Fullscreen Mobile Popup Menu */
  body.mobile-menu-open {
    overflow: hidden;
  }

  .mobile-menu-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #9DB075;
    z-index: 99999;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 44px;
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s;
  }

  .mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu-overlay__header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .mobile-menu-overlay__close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-overlay__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
  }

  .mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .mobile-menu__item {
    margin: 0;
    padding: 0;
  }

  .mobile-menu__link {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    color: #000000;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link:focus {
    opacity: 0.7;
    text-decoration: none;
    color: #000000;
  }

  .mobile-menu-overlay__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }

  .mobile-menu-overlay__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 50px;
    border: 1px solid #151313;
    border-radius: 100px;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #151313;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.2s, color 0.2s;
  }

  .mobile-menu-overlay__cta:hover,
  .mobile-menu-overlay__cta:focus {
    background-color: #151313;
    color: #ffffff;
    text-decoration: none;
  }

  .mobile-menu-overlay__phone {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #000000;
    text-decoration: none;
    text-align: center;
  }

  .mobile-menu-overlay__phone:hover {
    text-decoration: underline;
  }
}
