:root {
  --primary: #ff6600; /* Laranja para links e hover */
  --header-bg: rgba(255, 255, 255, 0.95); /* Fundo claro padrão */
  --header-bg-scrolled: rgba(255, 255, 255, 0.98); /* Fundo ao rolar */
  --text-color: #333; /* Cor do texto padrão */
  --text-hover: #ff6600; /* Hover dos links */
}

/* =========================
   Header
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #333;
  z-index: 999;
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 10px 20px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  opacity:0.9;
}

.header.hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Brand */
.brand img {
  height: 62px;
  width: auto;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* =========================
   Menu Desktop
=========================== */
.nav {
  display: flex;
  align-items: center;
}

.menu-items {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.menu-items li a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 12px;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.menu-items li a:hover,
.menu-items li a:focus,
.menu-items li a.active {
  color: var(--text-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255,102,0,0.25);
}

.menu-items li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.menu-items li a:hover::after,
.menu-items li a.active::after {
  width: 100%;
}

/* =========================
   Hamburger
=========================== */
.menu-toggle {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-toggle.open .hamburger {
  background-color: transparent;
}

.menu-toggle.open .hamburger::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.open .hamburger::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* =========================
   Menu Mobile
=========================== */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0 20px;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 998;
  }

  .nav.open {
    max-height: 500px;
    padding: 12px 20px;
  }

  .nav ul.menu-items {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .nav ul.menu-items li a {
    color: var(--primary);
  }

  .nav ul.menu-items li a:hover {
    color: var(--text-hover);
    text-shadow: 0 2px 6px rgba(255,102,0,0.2);
    transform: translateX(6px);
  }

  /* Brand mobile */
  .brand img {
    height: 40px;
  }
}




/* =========================
   Menu Mobile
=========================== */
/* Menu mobile */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0 20px;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 998;
  }

  .nav.open {
    max-height: 1000px; /* garante abertura completa */
    padding: 12px 20px;
  }

  .nav ul.menu-items {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .nav ul.menu-items li a {
    color: #FF6600; /* links laranja */
  }

  .brand img {
    height: 40px;
  }
}
