/* css/toolbar.css - Versão Otimizada */
:root {
  --toolbar-height: 60px;
  --toolbar-bg: #137a7f;
  --whatsapp-green: #25D366;
  --icon-size: 1.5rem;
  --transition-speed: 0.3s;
}

/* ===== ESTRUTURA PRINCIPAL ===== */
.toolbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--toolbar-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--toolbar-height);
  min-height: var(--toolbar-height);
  z-index: 1000;
  padding: 0;
  margin: 0;
}

.toolbar__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.toolbar__logo-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.toolbar__button-text {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== LINKS CENTRAIS ===== */
.toolbar__links-container {
  display: flex;
  gap: 0.5rem;
  height: 100%;
}

.toolbar__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  width: 140px;
  height: 48px;
  box-sizing: border-box;
}

.toolbar__button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.toolbar__icon {
  font-size: 1.2rem;
}

.toolbar__button:hover .toolbar__icon {
  transform: translateY(-2px);
}

/* Ícone do WhatsApp */
.whatsapp-icon {
  color: var(--whatsapp-green);
}

/* Indicador de página ativa */
.nav-button.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-light);
}

.nav-button {
  color: white;
  text-decoration: none;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.nav-button i {
  font-size: 16px;
}

.nav-button:hover,
.nav-button.active {
  background-color: #0f5f63;
}

/* ===== BARRA DECORATIVA INFERIOR ===== */
.title-bar {
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary-light),
    var(--secondary),
    var(--primary-light));
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

/* Botão de contato */
.btn-contato {
  display: inline-block;
  background-color: #373b3e;
  color: var(--primary-light);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-light);
  margin-top: 1rem;
}

.btn-contato:hover {
  background-color: #373b3e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #373b3e;
  border-radius: 0;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets e celulares grandes */
@media (max-width: 768px) {
  .toolbar__links-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }
  .toolbar__links-container::-webkit-scrollbar {
    display: none;
  }

  .toolbar__button {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 5px 8px;
    width: auto;
    min-width: 120px;
  }

  .toolbar__logo-icon {
    height: 40px;
  }

  .toolbar__button i {
    font-size: 1.2rem;
  }
}

/* Celulares muito pequenos */
@media (max-width: 480px) {
  .toolbar__button-text {
    display: none;
  }
  .toolbar__button {
    min-width: 60px;
    justify-content: center;
  }
  .toolbar__icon {
    font-size: 1.4rem;
  }
}