:root {
  --primary: #2563eb;
  --text-dark: #1e293b;
  --text-light: #64748b;
}

/* ===== HEADER UNIVERSAL ===== */
.host-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  width: 100%;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  transition: all 0.3s ease;
}

.host-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  transition: all 0.3s ease;
}

/* ===== ESTADO SCROLLED (desktop) ===== */
.host-header.is-scrolled .host-header__inner {
  flex-direction: row;
  align-items: center;
  justify-content: center; /* 🔹 centraliza menu */
  gap: 1rem;
  padding: 0.5rem 1rem;
}

@media (min-width: 851px) {
  .host-header.is-scrolled .host-header__inner {
    justify-content: space-between; /* 🔹 desktop continua normal */
  }
}


.host-header.is-scrolled .host-logo img {
  height: 2.4rem;
}

.host-logo img {
  height: 3rem;
  transition: height 0.4s ease, transform 0.3s ease;
}

/* ===== MENU ===== */
.host-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.host-menu {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0 0.5rem;
  overflow-x: auto;              /* 🔹 corrige quebra */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.host-menu::-webkit-scrollbar { display: none; }
.host-menu li { scroll-snap-align: start; }

.host-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color .25s, background .25s;
  white-space: nowrap;
}

.host-link:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

/* ===== BOTÃO ===== */
.host-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all .25s ease;
  white-space: nowrap;
}
.host-btn:hover {
  background: #fff;
  color: var(--primary);
}

/* ===== MOBILE ===== */
@media (max-width: 850px) {
  /* 🔹 mantém fixo, sem sticky bugado */
  .host-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .host-header__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .host-logo img {
    height: 2.6rem;
  }

  .host-nav, .host-menu {
    justify-content: center;
    max-width: 100%;
  }

  .host-header.is-scrolled .host-header__inner {
    flex-direction: column;
  }

  .host-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .host-btn {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  /* 🔹 Quando rolar, esconder o logo e fixar o menu */
  .host-header.is-scrolled .host-logo {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    height: 0;
    margin: 0;
  }

  .host-header.is-scrolled .host-header__inner {
    padding: 0.5rem 0.6rem;
  }

  .host-header,
  .host-header__inner {
    transition: all 0.3s ease;
  }
}

.host-menu li {
  padding-left: 0.6rem;     /* 🔹 menos espaço antes do texto */
}

.host-menu li::before {
  color: var(--primary);
  font-size: 0.8rem;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}