/* === HEADER === */
.header {
  background: linear-gradient(135deg, rgba(77, 107, 135, 0.98) 0%, rgba(107, 139, 168, 0.95) 50%, rgba(139, 165, 196, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 40px -15px rgba(77, 107, 135, 0.45);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header:hover {
  box-shadow: 0 14px 50px -18px rgba(77, 107, 135, 0.55);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.logo {
  display: block;
  height: 32px;
  width: auto;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 10px 16px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  color: var(--branco);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  opacity: 1;
}

.header-icon {
  width: 26px;
  height: 26px;
  opacity: 0.92;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-icon:hover {
  transform: rotate(20deg) scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

/* === HAMBURGER BUTTON === */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--branco);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === MOBILE NAVIGATION === */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px 20px;
  background: linear-gradient(180deg, rgba(107, 139, 168, 0.95) 0%, rgba(77, 107, 135, 0.98) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-link {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  padding: 14px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: transparent;
}

.mobile-nav-link:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .header {
    padding: 14px 0;
  }
  .logo {
    height: 26px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .header-icon-desktop {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .mobile-nav.open {
    display: flex;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Hamburger active state */
  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .logo {
    height: 24px;
  }
  
  .hamburger-btn {
    width: 36px;
    height: 36px;
  }
  
  .mobile-nav-link {
    font-size: 14px;
    padding: 12px 14px;
  }
}
