/* ================= HEADER ================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 170px;
  background: #000000;
  z-index: 1000;
  transition: height 0.4s ease, box-shadow 0.4s ease;
  overflow: visible;
}

/* HEADER FIXO */
.site-header.fixed {
  position: fixed;
  height: 120px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* ================= INNER ================= */
.header-inner {
  width: 100%;
  max-width: 90%;
  height: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ================= MENU HAMBURGUER ================= */
.menu-toggle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;

  width: 48px;
  height: 38px;

  z-index: 2000;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  width: 100%;
  height: 4px;
  background: #ffcc66;
  border-radius: 4px;

  transition: transform 0.4s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ===== TRANSFORMAÇÃO PERFEITA EM X ===== */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(17px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-17px) rotate(-45deg);
}

/* ================= LOGO ================= */
.logo {
  position: relative;
  top: 55px; /* logo invade mais */
  z-index: 1001;
}

.logo img {
  max-height: 250px; /* LOGO MAIOR */
  transition: transform 0.6s ease, filter 0.6s ease;
  animation: logoPulse 4s infinite ease-in-out;
}

/* LOGO QUANDO FIXA */
.site-header.fixed .logo {
  top: 0;
}

.site-header.fixed .logo img {
  max-height: 110px;
  animation: none;
}

/* ================= ANIMAÇÃO LOGO ================= */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255,180,80,0));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 28px rgba(255,180,80,0.45));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255,180,80,0));
  }
}

/* ================= MENU OVERLAY ================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay a {
  font-size: 34px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-overlay a:hover {
  color: #ffcc66;
  transform: scale(1.06);
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
  .site-header {
    height: 160px;
  }

  .site-header.fixed {
    height: 100px;
  }

  .logo {
    top: 35px;
  }

  .logo img {
    max-height: 180px;
  }

  .site-header.fixed .logo img {
    max-height: 90px;
  }

  .menu-overlay a {
    font-size: 26px;
  }
}
