/* ===== Site header — barra única ===== */
#page .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto !important;
  background: #19372F !important;
  background-image: none !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

#page .site-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 10px 0;
}

/* Logo */
#page .site-header__logo {
  float: none !important;
  height: auto !important;
  margin: 0;
  flex: 0 0 auto;
}

#page .site-header__logo a {
  display: block;
  line-height: 0;
}

#page .site-header__logo img {
  width: auto !important;
  max-width: 200px;
  max-height: 48px;
  height: auto;
  display: block;
}

/* Navigation — texto branco */
#page .site-header__nav {
  float: none !important;
  width: auto !important;
  height: auto !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page .site-header__nav > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#page .site-header__nav > ul > li {
  float: none !important;
  height: auto !important;
  margin: 0 !important;
}

#page .site-header__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.02em;
}

#page .site-header__nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none;
}

#page .site-header__nav li.active a {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  font-weight: 600;
}

#page .site-header__nav li.is-highlight a {
  background: #fff;
  color: #19372F !important;
  font-weight: 600;
  padding: 8px 16px;
}

#page .site-header__nav li.is-highlight a:hover {
  background: #f0f4f3;
  color: #19372F !important;
}

#page .site-header__nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #fff;
}

#page .site-header__nav li.is-highlight .site-header__nav-icon {
  color: #19372F;
}

#page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Search */
#page .site-header__search {
  float: none !important;
  flex: 0 0 240px;
  max-width: 280px;
  width: auto !important;
  margin: 0 !important;
}

#page .site-search-form {
  position: relative;
  width: 100%;
  float: none !important;
}

#page .site-search-form input[type="text"] {
  width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 40px 0 14px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 13px !important;
  font-family: "Lato", sans-serif !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

#page .site-search-form input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}

#page .site-search-form__submit,
#page .site-search-form .btn_enviar {
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: #19372F !important;
  background-image: none !important;
  filter: none !important;
  color: #fff;
  cursor: pointer;
  float: none !important;
  z-index: 2;
  transition: background-color 0.2s ease;
}

#page .site-search-form__submit:hover {
  background: #122820 !important;
}

#page .site-search-form__icon {
  width: 15px;
  height: 15px;
  display: block;
  color: #fff;
}

/* Mobile toggle */
#page .site-header__toggle {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
}

#page .site-header__mobnav {
  display: none;
  background: #142d26;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Legacy overrides */
#page header.site-header h1,
#page .site-header h1 {
  float: none !important;
  height: auto !important;
}

#page .site-header .menu {
  height: auto !important;
  background: transparent !important;
}

#page .site-header .busca {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

#page .site-header .busca form {
  float: none !important;
  width: 100% !important;
}

#page .site-header .busca .btn_enviar {
  float: none !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
}

#page .site-navbar.menu {
  display: none !important;
}

/* ===== Tablet ===== */
@media all and (max-width: 1200px) and (min-width: 1025px) {
  #page .site-header__bar {
    gap: 14px;
  }

  #page .site-header__nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  #page .site-header__search {
    flex: 0 0 200px;
  }

  #page .site-header__logo img {
    max-width: 175px;
    max-height: 44px;
  }
}

/* ===== Mobile ===== */
@media all and (max-width: 1024px) {
  #page .site-header__bar {
    flex-wrap: wrap;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

  #page .site-header__nav {
    display: none !important;
  }

  #page .site-header__logo img {
    max-width: 165px;
    max-height: 40px;
  }

  #page .site-header__search {
    flex: 1 1 100%;
    max-width: none;
    order: 3;
  }

  #page .site-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }

  #page .site-header__mobnav ul {
    margin: 0;
    padding: 6px 0 10px;
    list-style: none;
  }

  #page .site-header__mobnav li {
    float: none !important;
    width: 100%;
  }

  #page .site-header__mobnav li.active a {
    background: rgba(255, 255, 255, 0.1);
  }

  #page .site-header__mobnav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #fff !important;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }

  #page .site-header__mobnav li.is-highlight a {
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
  }

  #page .site-header__mobnav .site-header__nav-icon {
    width: 20px;
    height: 20px;
    color: #fff;
  }

  #page #hamburguer {
    display: flex !important;
    position: relative;
    margin: 0 !important;
    cursor: pointer;
    text-decoration: none;
  }

  #page #hamburguer span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  #page #hamburguer.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  #page #hamburguer.open span:nth-child(2) {
    opacity: 0;
  }

  #page #hamburguer.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

@media all and (max-width: 480px) {
  #page .site-header__logo img {
    max-width: 140px;
    max-height: 36px;
  }
}

@media all and (min-width: 1025px) {
  #page .site-header__toggle,
  #page .site-header__mobnav {
    display: none !important;
  }
}

/* Legado default.css / empreendimentos.less — header sempre legível */
#page > header.site-header,
#page header.site-header {
  background: #19372F !important;
  background-image: none !important;
  color: #fff;
}

#page header.site-header h1,
#page header.site-header h1 a {
  color: #fff;
}

#page header.site-header #main-nav,
#page header.site-header .site-header__mobnav,
#page header.site-header .menumob {
  background: #142d26 !important;
}

#page header.site-header #main-nav a,
#page header.site-header .site-header__mobnav a,
#page header.site-header .menumob a {
  color: #fff !important;
}

#page header.site-header #main-nav li,
#page header.site-header .site-header__mobnav li {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

@media all and (max-width: 1024px) {
  #page header.site-header #hamburguer span {
    background: #fff !important;
  }

  #page header.site-header #main-nav[style*="block"],
  #page header.site-header .site-header__mobnav[style*="block"] {
    display: block !important;
    background: #142d26 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}
