/* =========================================================
   HEADER LAYOUT
========================================================= */

.head-table {
	border-collapse: collapse;
	width: 100%;
	transition: var(--transition);
}

.head-table-spacer {
	display: none;
}

.head-image-cell {
	text-align: center;
}

.head-image-link {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.head-image-link:hover {
	transform: scale(1.0) !important;
}

.head-image {
	width: auto;
	height: 80px;
	object-fit: cover;
	border: 0;
	transition: var(--transition);
}


body.menu-open .head-table {
  opacity: 0;
}
body.menu-open .stat-item,
body.menu-open .featured-week-highlight,
body.menu-open .listing-header,
body.menu-open .toolbar-btn,
body.menu-open .listing-logo img,
body.menu-open .feature-image,
body.menu-open .feature-image-wrapper::before,
body.menu-open .feature-text-middle,
body.menu-open .research-chart-canvas-wrapper,
body.menu-open .research-insight,
body.menu-open .research-custom,
body.menu-open .research-image,
body.menu-open .research-image-wrapper::before,
body.menu-open .keyword-large-submit,
body.menu-open .spotlight-preview-mosaic,
body.menu-open .spotlight-preview-main-image {
  opacity: 0.3;
	transition: var(--transition);
}




/* =========================================================
   NAVIGATION
========================================================= */

.head-nav-wrapper {
	width: 100%;
	padding: 40px 0px;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: center;
}

.head-nav-table {
	border-collapse: collapse;
	width: 94%;
}

.head-nav-item-wrapper {
	height: 80px;
	width: 100%;
	display: inline-flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
}

.head-nav-item {
	width: 50px;
	text-align: center;
	margin-right: 20px;
}

.head-nav-item-spacer {
	width: 1px !important;
	height: 40px;
	border-right: 1px solid var(--accent);
}

.head-spacer {
	width: 30px;
}

.head-empty {
	width: 50px;
}

.head-empty-wide {
	width: 65px;
}

.head-nav-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	font-size: 11px;
	text-decoration: none;
	text-align: center;
}

.head-nav-link:hover {
  color: var(--hover-text);
}


.head-icon {
  font-size: 26px;
  line-height: 26px;
}

.head-label {
  line-height: 1;
}

.nav-home:hover .head-icon,
.nav-therapies:hover .head-icon,
.nav-products:hover .head-icon,
.nav-blogs:hover .head-icon,
.nav-register:hover .head-icon,
.nav-login:hover .head-icon,
.nav-home:hover .head-label,
.nav-products:hover .head-label,
.nav-blogs:hover .head-label,
.nav-register:hover .head-label,
.nav-login:hover .head-label {
    color: var(--accent);
}





/* =========================================================
   DARK MODE TOGGLE (Material Symbols)
========================================================= */

.head-toggle-cell {
	text-align: center;
}

.head-toggle-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--text);
}
.head-toggle-link:hover {
	transform: scale(1.2) !important;
}

/* material symbols toggle */
.head-toggle-icon {
	font-size: 26px;
	line-height: 1;
	color: var(--text);
	transition: opacity var(--transition), transform var(--transition);
}
.head-toggle-icon:hover {
	color: var(--accent);
}

/* default (light mode) */
.head-dark {
	display: none;
}

/* dark mode active */
body.dark-mode .head-light {
	display: none;
}

body.dark-mode .head-dark {
	display: inline;
}





/* =========================================================
   HAMBURGER + MOBILE SIDE MENU
========================================================= */

.head-hamburger-cell {
  text-align: right;
  width: 60px;
  display: none;
}
.hamburger {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text);
  cursor: pointer;
  padding: 5px 10px;
}

.mobile-side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
	min-height: 120vh;
	border-left: 3px solid var(--accent);
  background: transparent;
	z-index: 2000;
	box-shadow: -5px 0 15px rgba(0,0,0,0.2);
	backdrop-filter: blur(var(--blur-heavy));
  transition: right 0.35s ease;
	overflow-y: auto;
}

.mobile-side-menu.open {
  right: 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
	overflow-y: scroll;
	margin-bottom: 200px;
}

.mobile-side-menu:not(.open) {
    right: -320px !important;
}

.mobile-menu-top-row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin: 0px 0px 40px 0px;
	padding-right: 10px;
}

.mobile-menu-top-row-logo {
	width: auto;
	height: 50px;
	border-radius: 50%;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

.mobile-menu-close i {
  color: var(--accent);
}

.mobile-nav-link, .mobile-nav-link-guest {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  text-decoration: none;
  font-size: 17px;
}

.mobile-menu-heading {
	font-size: 14px;
	font-weight: bold;
	margin: 10px 0px;
	text-align: center;
}





/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .head-hamburger-cell {
    display: table-cell;
  }
	#hamburger-btn i {
    color: var(--accent);
  }

	.head-table-spacer {
		display: block;
		height: 1px;
		padding-bottom: 140px;
	}
  
  .head-nav-item-wrapper .head-nav-item {
    display: none;
  }
  
  .head-nav-item-wrapper {
    justify-content: flex-end;
  }

	.head-image {
		width: 260px;
		height: auto;
	}

	.head-nav-wrapper {
		max-width: 100%;
		width: 100vw;
		padding: 0px;
		padding-top: 20px;
		margin: 0px;
	}

	.mobile-nav-link {
		justify-content: center;
		margin-top: 20px;
	}

	.mobile-nav-link-guest {
		justify-content: flex-start;
		margin-top: 20px;
		padding: 10px 40px;
	}

	.mobile-logout {
		margin: 0px !important;
	}

	.head-nav-item-spacer {
		width: 140px !important;
		height: 1px;
		border-top: 1px solid var(--accent);
		margin: 30px 0px 10px 30px;
	}
}
