/* RESET INICIAL */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #0d0d0d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-height: 70px;
  display: -webkit-inline-box;
}

body {
  padding-top: 80px; /* ajuste conforme altura do header */
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site-header .container {
    min-width: 1200px;
  }
}

@media (max-width: 600px) {
  .site-header .container {
    min-width: 400px;
  }
}

.site-branding img {
  max-height: 50px;
  height: auto;
  width: auto;
  margin-top: 10px;
}

/* HAMBURGER + TRANSFORMA EM X */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 0;
  position: relative;
  z-index: 1100;
}

.toggle-icon,
.toggle-icon::before,
.toggle-icon::after {
  content: '';
  display: block;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.toggle-icon {
  width: 24px;
  position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
  position: absolute;
  width: 24px;
  left: 0;
}

.toggle-icon::before {
  top: -8px;
}

.toggle-icon::after {
  bottom: -8px;
}

.menu-toggle.active .toggle-icon {
  background-color: transparent;
}

.menu-toggle.active .toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .toggle-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* MENU */
.main-navigation {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: #111;
  padding: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
}

.main-navigation.active {
  display: flex;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: white;
  text-decoration: none;
  font-weight: 700; /* ou bold, se preferir */
  font-size: 1rem;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.2s;
  text-transform: uppercase;
  cursor: pointer; /* <<< Adicione isto */
}

@media only screen and (max-width: 899px) {
    .site-header .main-navigation {
        background: black;
        top: 70px;
    }
}

.main-navigation a:hover {
  color: #f39c12;
}

/* DESKTOP MENU */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-navigation {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
  }

  .main-navigation ul {
    display: flex;
    gap: 24px;
  }
}

/* BOTÃO DE BUSCA */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle img {
  min-width: 20px!important;
}

/* POPUP DE BUSCA */
#search-popup {
  position: fixed;
  top: 80px;
  right: 20px;
  left: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1200;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease forwards;
}

#search-popup.visible {
  display: flex;
}

#search-popup h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
}

#search-popup input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#search-popup button {
  align-self: flex-end;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#search-popup button:hover {
  background: #f39c12;
}

#close-search {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 18px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* SCROLL PROGRESS BAR */
#scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #f39c12;
  width: 0%;
  z-index: 999;
  transition: width 0.2s ease;
}
