

.to-header {
  position: sticky;       /* remove if you don't want it fixed on top when scrolling */
  top: 0;
  z-index: 1000;
  background: var(--color-back-dark);
  color: #f9fafb;
  border-bottom: 1px solid #ca8f2940;
  padding: 10px 0px;
  flex: 0;
}

.to-header__inner {
  max-width: 1700px;
  margin: 0 auto;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.to-header__logo {
  display: inline;
  text-decoration: none;
  color: inherit;
}

.to-header__logo > img{
	width: 220px;
}

.to-nav {
	display: none;
}

.to-nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.to-nav__item {
	position: relative;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 14px;
  
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.to-nav__item:hover,
.to-nav__item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.to-nav__item-caret {
  font-size: 14px;
  margin-left: 10px;
}

.to-nav__item a{
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 4px 16px;
}

.to-nav__item p{
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 4px 16px;
}


.to-nav__submenu{
	position: absolute;
	right: 0px;
	width: auto;
	min-width: 100%;
	top: 100%;
	background: var(--color-back-dark);
	display: none;
	list-style: none;
	border-radius: 8px;
	padding: 10px 0px;
}

.to-nav__submenu > li{
	position: relative;
	height: 100%;
}

.to-nav__submenu > li > a{
	display: block;
	width: 100%;
	height: 100%;
	padding: 5px 16px 5px 16px;;
	white-space: nowrap;
}

.to-nav__submenu > li:hover{
	background: rgba(255, 255, 255, 0.08);
}

.to-nav__item:hover > .to-nav__submenu{
	display: block;
}

/* Mobile toggle (hamburger) */
.to-header__toggle {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.to-header__toggle-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 4px 0;
  background: #f9fafb;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.to-header button{
	position: absolute;
	right: 20px;
	top: 50%;
	width: 40px;
	height: auto;
	cursor: pointer;
	transform: translate(0,-50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: transparent;
}

.to-header button > p{
	height: 1px;
	background: #ffffff;
	border-radius: 2px;

}

.to-mobile-menu{
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background: var(--color-back-dark);
	color: #f0f0f0;
	z-index: 1001;
	display: none;
	overflow: auto;
}

.to-mobile-menu > p{
	position: sticky;
	top: 0;
	background: var(--color-back-dark);
	padding: 20px;
}

.to-mobile-menu > p > img{
	width: 200px;
}

.to-mobile-menu > p > i{
	position: absolute;
	right: 0px;
	top: 0px;
	font-size: 32px;
	line-height: 32px;
	cursor: pointer;
	padding: 10px 20px;
}

.to-mobile-menu > div{
	padding: 40px;
}

.to-mobile-menu > div > div{
	margin-bottom: 20px;
}

.to-mobile-menu > div > div > div{
	padding-left: 30px;
}

.to-mobile-menu a{
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--color-brand);
	transition: all 0.15s ease;
}

.to-mobile-menu a:hover{
	color: var(--color-brand);
}

@media screen and (min-width: 0px) {
 
	.to-header button{ display: flex; }
	.to-nav{ display: none; }
}

@media screen and (min-width: 1024px) {

	.to-header button{ display: none; }
	.to-nav{ display: block; }

}
