header {
  width: 100%;
  z-index: 150;
}
.top__header p {
  font-size: 14px !important;
  color: var(--white) !important;
}
.top__header {
  padding: 8px 0;
  background-color: var(--blue);
  transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.top__header_content {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--white);
}

.top__header_content a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bottom__header {
  padding: 12px 0;
  background-color: var(--white);
  transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.bottom__header_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottom__header_support,
.mobile__menu_support {
  font-weight: 600;
  color: var(--textColor);
  padding: 0 8px;
}
.bottom__header_mobile-logo,
.bottom__header_logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bottom__header_logo {
  font-size: 24px;
  font-weight: 700;
  color: #f0f0fb;
}
.bottom__header_btn,
.mobile__menu_btn {
  color: white;
  background-color: var(--red);
  margin-bottom: 12px;
  gap: 11px;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500 !important;
  position: relative;
  line-height: 160%;
  background-color: inherit;
  cursor: pointer;
}
.dropdown-wrapper.desktop .dropdown-trigger {
  color: var(--darkBlue);
}
.dropdown-wrapper.mobile .dropdown-trigger {
  color: var(--white);
}
.dropdown-menu a::after {
  content: unset;
}
.dropdown-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.dropdown-wrapper.desktop .dropdown-arrow {
  color: var(--darkBlue);
}
.dropdown-wrapper.mobile .dropdown-arrow {
  color: var(--white);
}

.dropdown-arrow svg {
  transform: rotate(-90deg);
}

/* Default Dropdown styling (for location or fallback) */
.dropdown-menu {
  position: absolute;
  border-radius: var(--brad);
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 100;
  box-sizing: border-box;
}
.dropdown-wrapper.desktop .dropdown-menu {
  background-color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dropdown-wrapper.mobile .dropdown-menu {
  background-color: var(--blue);
  position: relative;
}

.dropdown-wrapper.desktop:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}
.dropdown-wrapper.mobile .dropdown-menu.open {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--blue);
  text-decoration: none;
  white-space: normal; 
}
.dropdown-menu a:hover {
  background-color: var(--gray2);
}

.no-scroll {
  overflow: hidden !important;
}
rect {
  transition: all 0.2s ease-in-out;
}
.header__burger {
  background-color: inherit;
  position: relative;
  top: 0;
  left: 0;
  z-index: 999;
}
.burger-active rect:nth-of-type(1) {
  transform: rotate(45deg);
  transform-origin: 3px 9.5px;
  fill: var(--red);
}
.burger-active rect:nth-of-type(2) {
  opacity: 0;
}
.burger-active rect:nth-of-type(3) {
  transform: rotate(-45deg);
  transform-origin: 3.5px 17.5px;
  fill: var(--red);
}

.mobile__menu {
  position: absolute;
  top: 108px;
  left: -150%;
  opacity: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 24px 15px 0px 15px;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease-in-out;
  font-size: 16px;
}
.mobile__menu_content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
  border-radius: var(--radius);
}
.mobile__menu a {
  max-width: 512px;
}
.mobile-nav--open {
  top: 108px;
  left: 0px;
  opacity: 1;
  z-index: 999;
  transition: all 0.4s ease-in-out;
  background-color: var(--blue);
}

.mobile__menu_links a {
  color: var(--white);
}
.bottom__header_links a {
  color: var(--darkBlue);
}

.top__header_item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.top__header_item p {
  font-weight: 500;
}
.top__header_item:nth-child(2) p {
  text-decoration: underline !important;
}
.top__header_right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.bottom__header_items,
.bottom__header_links,
.bottom__header_right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.bottom__header_items p {
  font-weight: 700;
  color: var(--darkBlue);
  font-size: 20px;
}

@media (min-width: 600px) {
  .mobile__menu_links {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 20px;
  }
}
@media (min-width: 800px) {
  .mobile__menu {
    flex-direction: row;
    gap: 20px;
    display: flex;
    justify-content: center;
  }
}
@media (min-width: 1300px) {
  .top__header_phone,
  .header__burger,
  .top__header_mobile {
    display: none !important;
  }
  .top__header_content {
    font-size: 16px;
  }
}
@media (max-width: 1300px) {
  .top__header_desktop,
  .bottom__header_items {
    display: none !important;
  }
  .top__header_mobile {
    display: flex !important;
  }
  .top__header p {
    font-size: 11px !important;
  }
}

/* ==========================================================================
   DESKTOP MEGA MENU (Commercial + Residential) - 2 Column Layout
   ========================================================================== */
@media (min-width: 1301px) {
  .bottom__header_content > nav.bottom__header_items,
  .bottom__header_content > nav.bottom__header_items .bottom__header_links {
    align-self: stretch;
  }
  .dropdown-wrapper.desktop.has-mega {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: -12px;
  }
  .dropdown-wrapper.desktop.has-mega:hover .dropdown-arrow,
  .dropdown-wrapper.desktop.has-mega:focus-within .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-wrapper.desktop .dropdown-menu.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    box-sizing: border-box;
    width: 660px;
    max-width: calc(100vw - 40px);
    min-width: 0;
    max-height: none;
    padding: 28px 32px 26px;
    overflow: visible;
    display: block !important;
    background-color: var(--white);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--brad) var(--brad);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .dropdown-wrapper.desktop:hover .dropdown-menu.mega-menu,
  .dropdown-wrapper.desktop:focus-within .dropdown-menu.mega-menu {
    max-height: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* Two balanced columns */
  .dropdown-wrapper.desktop .mega-menu .mega-menu__body {
    column-count: 2;
    column-gap: 56px;
    column-rule: 1px solid var(--gray2);
  }
  .dropdown-wrapper.desktop .mega-menu .mega-menu__group {
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 22px;
  }
  .dropdown-wrapper.desktop .mega-menu .mega-menu__group:last-child {
    margin-bottom: 0;
  }

  /* Category title styling */
  .dropdown-wrapper.desktop .mega-menu .mega-menu__title {
    margin: 0 0 8px;
    padding: 0 0 8px;
    border-bottom: 2px solid var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--darkBlue);
  }

  /* Sub-links styling */
  .dropdown-wrapper.desktop .mega-menu a {
    display: block;
    padding: 7px 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--darkBlue);
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .dropdown-wrapper.desktop .mega-menu a:hover {
    background-color: transparent;
    color: var(--red);
    transform: translateX(4px);
  }
}