/* Cabeçalho padrão do site One Park */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#header .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(90deg,#0b7a4a,#0f9d58,#2ecc71);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#header .header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#header .header__logo img {
  height: 48px;
  width: auto;
  display: block;
}

#header .header__toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

#header .header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

#header .header__nav a {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

#header .header__nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Menu "Serviços" com submenu (NOVO) ---------- */
#header .header__dropdown {
  position: relative;
}

/* botão "Serviços" com a mesma aparência dos outros links do menu */
#header .header__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.9);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#header .header__dropdown-toggle:hover,
#header .header__dropdown.is-open .header__dropdown-toggle {
  color: #ffffff;
}

/* setinha que gira quando o submenu abre */
#header .header__dropdown-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

#header .header__dropdown.is-open .header__dropdown-toggle svg {
  transform: rotate(180deg);
}

/* caixa branca do submenu, logo abaixo de "Serviços" */
#header .header__submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15,23,42,.20);
  display: none;
  z-index: 40;
}

/* "ponte" invisível: o submenu não fecha quando o mouse desce até ele */
#header .header__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

#header .header__dropdown.is-open .header__submenu {
  display: block;
}

/* ---------- Botão "Acessos" (NOVO) ----------
   Mesmo funcionamento do "Serviços", mas com contorno arredondado
   para parecer um botão e se destacar dos links comuns. */
#header .header__dropdown--acessos .header__dropdown-toggle {
  padding: 6px 12px 6px 14px;
  border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 999px;
}

#header .header__dropdown--acessos .header__dropdown-toggle:hover,
#header .header__dropdown--acessos.is-open .header__dropdown-toggle {
  background: rgba(255,255,255,.14);
  border-color: #ffffff;
}

/* o "Acessos" é o último item do menu: o submenu se alinha pela direita,
   para não ficar por cima da busca de cidade */
#header .header__dropdown--acessos .header__submenu {
  left: auto;
  right: 0;
  transform: none;
}

/* no computador, abre também ao passar o mouse */
@media (hover: hover) and (min-width: 1001px) {
  #header .header__dropdown:hover .header__submenu {
    display: block;
  }

  #header .header__dropdown:hover .header__dropdown-toggle svg {
    transform: rotate(180deg);
  }
}

#header .header__nav .header__submenu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

#header .header__nav .header__submenu a:hover {
  background: rgba(11,122,74,.08);
  color: #0b7a4a;
  text-decoration: none;
}

#header .header__search-wrap {
  position: relative;
  min-width: 260px;
}

#header .header__search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

#header .header__search input {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 14px;
}

#header .header__search input::placeholder {
  color: rgba(255,255,255,.78);
  opacity: 1;
}

#header .header__search button {
  padding: 10px 12px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.2);
  color: white;
  font-weight: 700;
}

#header .header__search button:hover {
  background: rgba(255,255,255,.28);
}

#header .header__search-message {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 9px 11px;
  border-radius: 7px;
  background: #ffffff;
  color: #8b1d1d;
  border: 1px solid rgba(198,40,40,.22);
  box-shadow: 0 12px 26px rgba(15,23,42,.18);
  font-size: 13px;
  line-height: 1.4;
}

#header .header__search-message.is-visible {
  display: block;
}

#header .header__city-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 10000;
  overflow: hidden;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 12px 26px rgba(15,23,42,.18);
}

#header .header__city-suggestions.is-visible {
  display: block;
}

#header .header__city-suggestion {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

#header .header__city-suggestion:hover,
#header .header__city-suggestion:focus {
  background: rgba(11,122,74,.10);
  color: #0b7a4a;
  outline: none;
}

/* Notebooks e telas médias (1001px a 1200px): menu e busca um pouco mais compactos
   para caber tudo numa linha só, incluindo o botão "Sinalização". */
@media (min-width: 1001px) and (max-width: 1200px) {
  #header .header {
    gap: 16px;
    padding: 18px 20px;
  }

  #header .header__nav {
    gap: 14px;
  }

  #header .header__nav a {
    font-size: 14px;
  }

  #header .header__search-wrap {
    min-width: 200px;
  }
}

/* Páginas internas usam cabeçalho fixo, então precisam deste espaço no topo. */
body.site-inner-page {
  padding-top: 84px;
}

/* =========================================================
   CABEÇALHO NO CELULAR E TABLET (até 1000px)
   ALTERAÇÃO (responsividade): antes o cabeçalho ocupava 2 linhas
   (logo + menu em cima, busca embaixo) e chegava a 158px de altura,
   cobrindo o topo das páginas. Agora fica em UMA linha só (~64px):
     [logo]  [busca de cidade.........]  [☰]
   O menu abre logo abaixo, ocupando a largura toda.
   Limite em 1000px (antes 768px): abaixo disso os links do menu
   (agora com "Cidades") não cabem numa linha e o cabeçalho "quebrava" em duas.
   ========================================================= */
@media (max-width: 1000px) {
  #header .header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  #header .header__logo {
    order: 1;
    flex: 0 0 auto;
  }

  #header .header__logo img {
    height: 38px; /* era 48px: logo um pouco menor para caber a busca na mesma linha */
  }

  /* busca ocupa todo o espaço que sobra entre o logo e o botão do menu */
  #header .header__search-wrap {
    order: 2;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin-top: 0;
  }

  #header .header__search input {
    padding: 9px 10px;
    font-size: 16px; /* 16px evita o zoom automático do iPhone ao tocar no campo */
  }

  #header .header__search button {
    padding: 9px 11px;
  }

  #header .header__toggle {
    order: 3;
    display: block;
    flex: 0 0 auto;
    padding: 0 4px;
    line-height: 1;
  }

  /* menu aberto: aparece numa linha própria, abaixo de tudo */
  #header .header__nav {
    order: 4;
    display: none;
    width: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,.22);
  }

  #header .header__nav.is-open {
    display: flex;
  }

  /* "Serviços" dentro do menu aberto do celular: vira um item da lista
     e o submenu abre logo abaixo, recuado (sem caixa flutuante) */
  #header .header__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  /* "Acessos" no celular: perde o contorno e vira um item igual aos outros */
  #header .header__dropdown--acessos .header__dropdown-toggle {
    padding: 13px 4px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    border-radius: 0;
  }

  #header .header__dropdown--acessos .header__dropdown-toggle:hover,
  #header .header__dropdown--acessos.is-open .header__dropdown-toggle {
    background: transparent;
  }

  #header .header__submenu {
    position: static;
    transform: none;
    min-width: 0;
    padding: 4px 0 8px 14px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #header .header__submenu::before {
    display: none;
  }

  #header .header__nav .header__submenu a {
    color: rgba(255,255,255,.92);
    padding: 11px 4px;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  #header .header__nav .header__submenu a:hover {
    background: transparent;
    color: #ffffff;
  }

  /* links do menu com área de toque maior (mais fácil de acertar com o dedo) */
  #header .header__nav a {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  /* sugestões e mensagem de erro da busca voltam a "flutuar" abaixo do campo,
     sem empurrar o cabeçalho para baixo */
  #header .header__city-suggestions,
  #header .header__search-message {
    position: absolute;
    left: auto;
    right: 0;
    min-width: 220px;
    margin-top: 0;
  }

  body.site-inner-page {
    padding-top: 62px; /* altura do cabeçalho compacto (era 88px) */
  }
}

/* Celulares bem pequenos (até 360px): logo ainda menor */
@media (max-width: 360px) {
  #header .header {
    gap: 8px;
    padding: 12px 10px;
  }

  #header .header__logo img {
    height: 32px;
  }

  body.site-inner-page {
    padding-top: 56px;
  }
}

/* ---------- Ícones do cabeçalho em SVG (NOVO) ----------
   Substituem os símbolos de texto ☰ (menu) e 🔍 (busca), que mudavam de
   aparência em cada aparelho. Usam a cor do texto (currentColor). */
#header .header__toggle {
  line-height: 0;
}

#header .icone-menu {
  width: 30px;
  height: 30px;
  display: block;
}

#header .header__search button {
  display: grid;
  place-items: center;
}

#header .icone-busca {
  width: 18px;
  height: 18px;
  display: block;
}

